/* Photo galleries on Our Fleet cards (Tier 1). */
.fleet-gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
}

.academy-rows .academy-row-image:has(.fleet-gallery),
.academy-rows .academy-row-image:has(.fleet-placeholder) {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
}

.fleet-gallery-main {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy, #07182B);
}

/* Show the whole aircraft in a stable frame, including portrait photographs. */
.academy-row-image .fleet-gallery-main img {
  object-fit: contain;
  object-position: center;
}

.academy-row-image:hover .fleet-gallery-main img {
  transform: none;
}

.fleet-gallery-thumbs {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  background: rgb(7 24 43 / .88);
}

.fleet-gallery-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 58px;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.fleet-gallery-thumb img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.fleet-gallery-thumb[aria-current="true"] {
  border-color: #C6A467;
}

.fleet-gallery-thumb:focus-visible {
  outline: 2px solid #C6A467;
  outline-offset: 2px;
}

.fleet-training-only {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid #C6A467;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #C6A467;
}

.fleet-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(7 24 43 / .92);
}

.fleet-lightbox[hidden] {
  display: none;
}

.fleet-lightbox img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.fleet-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #F7F8FA;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.fleet-lightbox-close:focus-visible {
  outline: 2px solid #C6A467;
}

.fleet-confirm {
  display: block;
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px dashed #C6A467;
  background: rgb(198 164 103 / .14);
  color: #C6A467;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.fleet-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 24px;
  background: rgb(7 24 43 / .55);
  color: #C6A467;
  text-align: center;
  font-weight: 600;
  letter-spacing: .04em;
}

.sms-smallprint {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted, #AAB8C5);
}

.sms-placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
}

/* POH handbook: secondary/outline button, same height as the card CTA. */
.academy-rows .academy-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.fleet-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
.academy-rows .academy-actions .fleet-cta-row .poh-link,
.academy-rows .academy-actions .fleet-cta-row .btn {
  margin: 0;
  min-height: 51px;
  box-sizing: border-box;
  align-self: stretch;
}
.poh-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 51px;
  padding: 12px 20px;
  border: 2px solid #C6A467;
  border-radius: 999px;
  background: transparent;
  color: #C6A467;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.poh-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.poh-link:is(:hover, :focus-visible) {
  background: #C6A467;
  color: #07182B;
  border-color: #C6A467;
  box-shadow: 0 6px 20px rgb(198 164 103 / .38);
  transform: translateY(-1px);
}
.poh-link:focus-visible {
  outline: 2px solid #C6A467;
  outline-offset: 3px;
}

/* Keep hash targets clear of the overlay header. */
.academy-card[id^="fleet-"] {
  scroll-margin-top: 140px;
}
@media (max-width: 1180px) {
  .academy-card[id^="fleet-"] { scroll-margin-top: 120px; }
}
@media (max-width: 560px) {
  .academy-card[id^="fleet-"] { scroll-margin-top: 100px; }
}

.fleet-rate-note {
  margin: 14px 0 0;
  max-width: 46rem;
  color: #AAB8C5;
  font-size: 14px;
  line-height: 1.65;
}

/* Fleet cards: compact specs, full-width rates and actions. */
.academy-rows > .fleet-card-compact {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "photo copy" "rates rates" "actions actions";
  gap: 0;
}
.academy-rows > .fleet-card-compact:nth-child(even) {
  grid-template-areas: "copy photo" "rates rates" "actions actions";
}
.academy-rows .fleet-card-compact .academy-row-image {
  align-self: start;
}
.fleet-card-compact .fleet-gallery {
  height: auto;
}
.fleet-card-compact .fleet-gallery-main {
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
}
.fleet-card-compact .fleet-gallery-main img {
  object-fit: cover;
}
.fleet-card-compact .fleet-placeholder {
  height: 100%;
}
.academy-rows .fleet-card-compact .academy-card-copy {
  align-self: start;
  padding: clamp(22px, 2.4vw, 34px);
}
.academy-rows .fleet-card-compact h3 {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.2;
  margin: 0;
}
.fleet-card-compact .academy-card-copy > p {
  margin: 10px 0 22px;
}
.fleet-card-compact .academy-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
}
.fleet-card-compact .academy-specs > div {
  padding-block: 11px;
}
.fleet-card-compact .academy-specs > div:last-child {
  grid-column: 1 / -1;
}
.fleet-card-compact .academy-specs dt {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.fleet-card-compact .academy-specs dd {
  font-size: 16px;
  line-height: 1.45;
}
.fleet-compact-rates {
  grid-area: rates;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 22px clamp(22px, 2.4vw, 34px);
  gap: 12px;
  border-block: 1px solid rgb(198 164 103 / .25);
  background: rgb(7 24 43 / .45);
}
.fleet-compact-rates > div {
  min-width: 0;
}
.fleet-compact-rates dt {
  color: #AAB8C5;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 7px;
}
body.aviation-theme .fleet-compact-rates dd {
  margin: 0;
  color: #C6A467;
  font-size: clamp(23px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.fleet-compact-footer {
  grid-area: actions;
  padding: 20px clamp(22px, 2.4vw, 34px);
}
.academy-rows .fleet-card-compact .academy-actions {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fleet-card-compact .fleet-cta-row {
  gap: 12px;
}
@media (max-width: 760px) {
  .academy-rows > .fleet-card-compact,
  .academy-rows > .fleet-card-compact:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "copy" "rates" "actions";
  }
  .fleet-card-compact .fleet-gallery-main {
    flex: 0 0 auto;
  }
  .fleet-card-compact .fleet-compact-rates {
    padding: 20px;
    gap: 10px;
  }
  body.aviation-theme .fleet-card-compact .fleet-compact-rates dd {
    font-size: clamp(21px, 5.7vw, 28px);
  }
  .fleet-card-compact .fleet-compact-rates dt {
    font-size: 12px;
  }
  .fleet-card-compact .fleet-cta-row {
    width: 100%;
  }
  .fleet-card-compact .fleet-cta-row > a {
    flex: 1 1 auto;
  }
}

/* Aircraft specifications accordion */
.fleet-card-compact .fleet-details { margin: 14px 0 0; border: 1px solid rgb(198 164 103 / .4); border-radius: 10px; background: rgb(7 24 43 / .24); }
.fleet-details summary { color: #F7F8FA; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 48px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.fleet-details summary::-webkit-details-marker { display: none; }
.fleet-details summary::after { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-right: 2px solid #C6A467; border-bottom: 2px solid #C6A467; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.fleet-details[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.fleet-details summary:hover { color: #C6A467; }
.fleet-details summary:focus-visible { outline: 3px solid #DCE7F0; outline-offset: 3px; border-radius: 8px; }
.fleet-details-content { padding: 16px 15px 18px; border-top: 1px solid rgb(198 164 103 / .25); }
.fleet-details-content dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 0; }
.fleet-details-content dt { color: #AAB8C5; font-size: 12px; margin-bottom: 4px; }
.fleet-details-content dd { color: #F7F8FA; font-size: 14px; line-height: 1.4; margin: 0; }
@media (prefers-reduced-motion: reduce) { .fleet-details summary::after { transition: none; } }

/* Align pricing and actions in one balanced desktop row. */
.fleet-compact-rates > div { text-align: center; }
.fleet-compact-rates dt.block-rate-label { justify-content: center; }
@media (min-width: 1200px) {
  .academy-rows > .fleet-card-compact { grid-template-areas: "photo copy" "rates actions"; }
  .academy-rows > .fleet-card-compact:nth-child(even) { grid-template-areas: "copy photo" "rates actions"; }
  .fleet-compact-rates { align-items: center; padding-right: 12px; }
  .fleet-compact-footer { display: flex; justify-content: flex-end; align-items: center; padding-left: 12px; border-block: 1px solid rgb(198 164 103 / .25); background: rgb(7 24 43 / .45); }
  .academy-rows .fleet-card-compact .academy-actions { justify-content: flex-end; }
  .fleet-card-compact .fleet-cta-row { justify-content: flex-end; }
}
