/* aircraft-detail.css — premium aircraft profile pages */

/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  --ac-gold:    #B8893A;
  --ac-navy:    #1e2a3a;
  --ac-border:  #e5e5e5;
  --ac-muted:   #888;
  --ac-light:   #f7f7f6;
  --ac-text:    #2c2c2c;
  --ac-serif:   'Playfair Display', Georgia, serif;
  --ac-sans:    'Inter', system-ui, sans-serif;
  --ac-wrap:    1240px;
}

/* ── LEGACY CONTAINER RESET ──────────────────────────────────────────────── */
#content-resp {
  width: auto   !important;
  max-width: none !important;
  margin: 0     !important;
  padding: 0    !important;
}

/* ── CONTACT FORM FULL-WIDTH OVERRIDE ────────────────────────────────────── */
#contact-form {
  width: 100% !important;
  max-width: none !important;
  background-size: cover !important;
  background-position: center top !important;
}

/* ── SECTION / CONTAINER ─────────────────────────────────────────────────── */
.ac-section {
  padding: 80px 0;
}

.ac-section.ac-bg-light {
  background: var(--ac-light);
}

.ac-section.ac-bg-navy {
  background: var(--ac-navy);
}

.ac-wrap {
  max-width: var(--ac-wrap);
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}

/* ── SHARED TYPOGRAPHY ───────────────────────────────────────────────────── */
.ac-eyebrow {
  display: block;
  font-family: var(--ac-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ac-gold);
  margin-bottom: 14px;
}

.ac-heading {
  font-family: var(--ac-serif);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ac-navy);
  line-height: 1.15;
  margin: 0 0 36px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* HERO                                                                        */
/* ─────────────────────────────────────────────────────────────────────────── */
.ac-hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  max-height: 860px;
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
}

.ac-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 33, 55, .92) 0%,
    rgba(14, 33, 55, .38) 48%,
    rgba(0, 0, 0, .06)    100%
  );
}

.ac-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--ac-wrap);
  margin: 0 auto;
  padding: 0 48px 68px;
  box-sizing: border-box;
}

.ac-hero-label {
  display: block;
  font-family: var(--ac-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
}

h1.ac-hero-title {
  font-family: var(--ac-serif);
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}

.ac-hero-stats {
  display: flex;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  gap: 8px 0;
}

.ac-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.ac-hero-stat:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.ac-hero-stat-lbl {
  font-family: var(--ac-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .44);
}

.ac-hero-stat-val {
  font-family: var(--ac-sans);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.ac-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-family: var(--ac-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: color .18s, border-color .18s;
}

.ac-hero-cta:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.7);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* INTRO                                                                       */
/* ─────────────────────────────────────────────────────────────────────────── */
.ac-intro-grid {
  display: grid;
  grid-template-columns: 56fr 44fr;
  gap: 80px;
  align-items: start;
}

.ac-intro-lead {
  font-family: var(--ac-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ac-navy);
  line-height: 1.65;
  margin: 0 0 28px;
}

.ac-intro-body {
  font-family: var(--ac-sans);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ac-text);
}

.ac-intro-body p {
  margin: 0 0 18px;
}

.ac-intro-body p:last-child {
  margin-bottom: 0;
}

.ac-intro-body a {
  color: var(--ac-navy);
  border-bottom: 1px solid var(--ac-gold);
  padding-bottom: 1px;
  text-decoration: none;
  transition: color .18s;
}

.ac-intro-body a:hover {
  color: var(--ac-gold);
}

.ac-intro-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ac-aside-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.ac-aside-caption {
  display: block;
  font-family: var(--ac-sans);
  font-size: 11px;
  color: var(--ac-muted);
  letter-spacing: 0.06em;
  margin-top: 10px;
  border-left: 2px solid var(--ac-gold);
  padding-left: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* SPECS                                                                       */
/* ─────────────────────────────────────────────────────────────────────────── */
.ac-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ac-border);
  border: 1px solid var(--ac-border);
}

.ac-spec-card {
  background: #fff;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ac-spec-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.ac-spec-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.ac-spec-label {
  font-family: var(--ac-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ac-muted);
}

.ac-spec-value {
  font-family: var(--ac-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ac-navy);
  line-height: 1.2;
}

.ac-spec-note {
  font-family: var(--ac-sans);
  font-size: 12px;
  color: var(--ac-muted);
  font-weight: 400;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* GALLERY                                                                     */
/* ─────────────────────────────────────────────────────────────────────────── */
.ac-gallery-header {
  margin-bottom: 28px;
}

.ac-gallery-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 360px 260px;
  gap: 5px;
}

.ac-gp {
  display: block;
  background-size: cover;
  background-position: center;
  background-color: #d8d8d8;
  overflow: hidden;
  transition: filter .28s;
  cursor: zoom-in;
  text-decoration: none;
}

.ac-gp:hover {
  filter: brightness(.86);
}

.ac-gp-1 { grid-column: 1; grid-row: 1 / 3; }
.ac-gp-2 { grid-column: 2; grid-row: 1; }
.ac-gp-3 { grid-column: 3; grid-row: 1; }
.ac-gp-4 { grid-column: 2; grid-row: 2; }
.ac-gp-5 { grid-column: 3; grid-row: 2; }

/* ── GALLERY STRIP (extras, horizontally scrollable) ─────────────────────── */
.ac-gallery-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: 5px;
  scrollbar-width: thin;
  scrollbar-color: var(--ac-border) transparent;
}

.ac-gallery-strip::-webkit-scrollbar {
  height: 4px;
}

.ac-gallery-strip::-webkit-scrollbar-thumb {
  background: var(--ac-border);
  border-radius: 2px;
}

.ac-gallery-strip .ac-gp {
  flex: 0 0 240px;
  height: 150px;
  scroll-snap-align: start;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RANGE MAP                                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */
.ac-map-desc {
  font-family: var(--ac-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ac-muted);
  max-width: 600px;
  margin: -24px 0 36px;
}

#ac-range-map {
  width: 100%;
  height: 500px;
  background: var(--ac-light);
}

.leaflet-bottom.leaflet-right {
  z-index: 400;
}

/* Leaflet popup overrides */
#ac-range-map .leaflet-popup-content-wrapper {
  border-radius: 0;
  font-family: var(--ac-sans);
  font-size: 13px;
  color: var(--ac-navy);
}

#ac-range-map .leaflet-popup-tip {
  background: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* CABIN LAYOUT                                                                */
/* ─────────────────────────────────────────────────────────────────────────── */
.ac-cabin-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.ac-cabin-svg-wrap {
  position: sticky;
  top: 24px;
}

svg.cabin-diagram,
img.cabin-diagram {
  width: 100%;
  height: auto;
  display: block;
}

.cabin-fuselage      { fill: #fff; stroke: var(--ac-navy); stroke-width: 3; }
.cabin-wing          { fill: #e8ebf0; stroke: var(--ac-navy); stroke-width: 1.5; }
.cabin-cockpit-zone  { fill: #e8ebf0; }
.cabin-sep           { stroke: var(--ac-border); stroke-width: 1; stroke-dasharray: 4 3; }
.cabin-galley-zone   { fill: #f5f0e8; stroke: var(--ac-border); stroke-width: 1; }
.cabin-seat          { fill: var(--ac-navy); rx: 4; }
.cabin-seat-rear     { fill: #3a5070; }
.cabin-divan         { fill: var(--ac-navy); }
.cabin-table         { fill: var(--ac-border); stroke: #ccc; stroke-width: 1; }
.cabin-lav-zone      { fill: #eef2f6; stroke: var(--ac-border); stroke-width: 1; }
.cabin-label         { font-family: var(--ac-sans); fill: var(--ac-muted); font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-anchor: middle; text-transform: uppercase; }
.cabin-zone-label    { font-family: var(--ac-sans); fill: #aaa; font-size: 8px; font-weight: 700; letter-spacing: 0.14em; text-anchor: middle; }
.cabin-arrow         { fill: rgba(255,255,255,.55); }
.cabin-axis          { stroke: var(--ac-gold); stroke-width: 0.8; stroke-dasharray: 3 4; }

.ac-cabin-legend-title {
  font-family: var(--ac-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ac-navy);
  margin: 0 0 24px;
}

.ac-cabin-zones {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.ac-cz-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ac-cz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.ac-cz-dot.gold  { background: var(--ac-gold); }
.ac-cz-dot.navy  { background: var(--ac-navy); }
.ac-cz-dot.mid   { background: #3a5070; }
.ac-cz-dot.light { background: #b8c4d0; }
.ac-cz-dot.pale  { background: #cfd8e3; }

.ac-cz-info strong {
  display: block;
  font-family: var(--ac-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ac-navy);
  margin-bottom: 2px;
}

.ac-cz-info span {
  font-family: var(--ac-sans);
  font-size: 12px;
  color: var(--ac-muted);
  line-height: 1.5;
}

.ac-cabin-specs-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ac-border);
  border: 1px solid var(--ac-border);
  margin-top: 40px;
}

.ac-cabin-spec-mini {
  background: var(--ac-light);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ac-cabin-spec-mini span {
  font-family: var(--ac-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ac-muted);
}

.ac-cabin-spec-mini strong {
  font-family: var(--ac-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ac-navy);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* CTA STRIP                                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */
.ac-cta-section {
  background: var(--ac-navy);
  padding: 84px 0;
  text-align: center;
}

.ac-cta-section .ac-eyebrow {
  color: rgba(255, 255, 255, 0.48);
}

.ac-cta-title {
  font-family: var(--ac-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
}

.ac-cta-sub {
  font-family: var(--ac-sans);
  font-size: 15px;
  color: rgba(255, 255, 255, .52);
  margin: 0 0 44px;
  line-height: 1.7;
}

.ac-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--ac-navy);
  font-family: var(--ac-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 38px;
  transition: background .2s, transform .2s;
}

.ac-wa-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
  color: var(--ac-navy);
  text-decoration: none;
}

.ac-wa-btn i {
  font-size: 18px;
}

.ac-or-link {
  display: block;
  margin-top: 20px;
  font-family: var(--ac-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, .36);
  letter-spacing: 0.08em;
}

.ac-or-link a {
  color: rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  text-decoration: none;
  transition: color .18s;
}

.ac-or-link a:hover {
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                                  */
/* ─────────────────────────────────────────────────────────────────────────── */
@media screen and (max-width: 1020px) {
  .ac-intro-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ac-intro-aside {
    position: static;
  }
  .ac-aside-img {
    height: 380px;
  }
  .ac-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ac-cabin-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ac-cabin-svg-wrap {
    position: static;
    max-width: 200px;
    margin: 0 auto;
  }
  .ac-cabin-specs-mini {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 680px) {
  .ac-wrap {
    padding: 0 20px;
  }
  .ac-section {
    padding: 56px 0;
  }
  .ac-hero-inner {
    padding: 0 20px 48px;
  }
  .ac-hero-stat {
    padding-right: 20px;
    margin-right: 20px;
  }
  .ac-gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px 180px;
  }
  .ac-gp-1 { grid-column: 1 / 3; grid-row: 1; }
  .ac-gp-2 { grid-column: 1;     grid-row: 2; }
  .ac-gp-3 { grid-column: 2;     grid-row: 2; }
  .ac-gp-4 { grid-column: 1;     grid-row: 3; }
  .ac-gp-5 { grid-column: 2;     grid-row: 3; }
  .ac-gallery-strip .ac-gp {
    flex: 0 0 160px;
    height: 110px;
  }
  .ac-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #ac-range-map {
    height: 360px;
  }
  .ac-cabin-specs-mini {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* GALLERY MODAL                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */
#ac-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 22, .94);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#ac-modal.ac-open {
  display: flex;
}

#ac-modal-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  display: block;
}

#ac-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 34px;
  line-height: 1;
  color: rgba(255, 255, 255, .5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  font-family: var(--ac-sans);
  font-weight: 300;
  transition: color .15s;
}

#ac-modal-close:hover {
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* CABIN SVG                                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */
.cabin-diagram {
  border-radius: 4px;
  overflow: hidden;
}

.cb-bg          { fill: #fff; }
.cb-fuselage    { fill: #b8bec8; stroke: #868e9a; stroke-width: 1.5; }
.cb-interior    { fill: #e8e0cc; }
.cb-sep         { stroke: #b0bcc8; stroke-width: 0.7; stroke-dasharray: 4 3; }
.cb-galley      { fill: #d4c8a8; stroke: #b8a87e; stroke-width: 0.7; }
.cb-lav         { fill: #c8d4de; stroke: #9eb0be; stroke-width: 0.7; }
.cb-seat-fwd    { fill: #B8893A; }
.cb-seat-aft    { fill: #2a5080; }
.cb-seat-solo   { fill: #B8893A; }
.cb-divan       { fill: #1e4068; }
.cb-table       { fill: #c8a85a; }
.cb-text        { font-family: 'Inter', system-ui, sans-serif; fill: #7a8ea0; font-size: 8px; font-weight: 600; letter-spacing: 0.10em; text-anchor: middle; }
.cb-num         { font-family: 'Inter', system-ui, sans-serif; fill: #fff; font-size: 8.5px; font-weight: 700; text-anchor: middle; }
.cb-dim         { stroke: #9aacba; stroke-width: 0.8; }
