/* ==========================================================================
   Listing page (/aircraft/<id>) + listing-card additions
   ========================================================================== */

/* ---- card / feed additions ---- */
.aircraft-card__badge--pending { background: #8a5a1f; color: var(--cream); }
.aircraft-card__id { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 .45rem; font-weight: 500; }
.tab__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgba(171, 154, 85, .18); }
.tab[aria-selected="true"] .tab__count { background: var(--gold); color: var(--ink); }
.aircraft-feature__media { position: relative; }
.aircraft-feature__media .aircraft-card__badge { position: absolute; top: 14px; left: 14px; }
.aircraft-feature__headline { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; margin: -.3em 0 1.1em; color: var(--muted); }
.section--dark .aircraft-feature__headline { color: var(--muted-on-dark); }
[data-hide-empty][hidden] { display: none !important; }

/* ---- hero ---- */
/* Photo gets its own stage; the title band sits below it on the fade, so text never covers the aircraft. */
.lx-hero { position: relative; isolation: isolate; color: var(--cream); overflow: hidden; background: var(--ink); }
.lx-hero__media { position: relative; height: clamp(320px, 62vh, 700px); overflow: hidden; }
.lx-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: lxZoom 16s ease-out both; }
.lx-hero__media img.is-profile { object-fit: contain; padding: 6% 8% 12%; background: radial-gradient(ellipse at 50% 45%, #3a3436, var(--ink) 70%); animation: none; }
.lx-hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(20, 16, 17, .5) 0%, rgba(20, 16, 17, 0) 22%, rgba(20, 16, 17, 0) 62%, rgba(35, 31, 32, .85) 90%, var(--ink) 100%); }
.lx-hero__inner { position: relative; width: 100%; margin-top: -96px; padding-bottom: clamp(36px, 5vw, 60px); }
.lx-hero .breadcrumbs { position: absolute; top: calc(-1 * clamp(320px, 62vh, 700px) + 96px + 22px); left: var(--gutter); margin: 0; }
.lx-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.lx-hero__title { max-width: 820px; }
.lx-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: .98; margin: .25em 0 .3em; text-shadow: 0 4px 40px rgba(0, 0, 0, .35); }
.lx-hero__id { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 254, 241, .78); margin: 0; }
.lx-hero__id strong { color: var(--gold); font-weight: 600; letter-spacing: .1em; }
.lx-hero__id span { color: var(--gold-deep); }
.lx-hero__headline { font-family: var(--font-head); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.6rem); margin: .9rem 0 0; color: var(--cream); }
.lx-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; background: rgba(20, 16, 17, .55); border: 1px solid rgba(210, 188, 104, .5); backdrop-filter: blur(6px); }
.lx-pill span { width: 8px; height: 8px; border-radius: 50%; background: #6fcf8a; box-shadow: 0 0 0 0 rgba(111, 207, 138, .6); animation: lxPulse 2.2s infinite; }
.lx-pill--pending span { background: #e3a84b; box-shadow: 0 0 0 0 rgba(227, 168, 75, .6); }
.lx-pill--sold span, .lx-pill--wanted span { background: var(--gold); animation: none; }
.lx-hero__price { min-width: 280px; padding: 22px 24px; border-radius: 10px; background: rgba(20, 16, 17, .62); border: 1px solid rgba(210, 188, 104, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lx-hero__price-label { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.lx-hero__price-value { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; margin: 4px 0 16px; color: var(--white); }
.lx-hero__actions { display: flex; flex-direction: column; gap: 10px; }
.lx-hero__actions .btn { width: 100%; }
.lx-hero__actions svg, .lx-card__flyer svg { width: 18px; height: 18px; }
.lx-ribbon { position: absolute; top: 46px; right: -64px; z-index: 2; transform: rotate(35deg); background: var(--gold-gradient); color: var(--ink); font-family: var(--font-head); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; padding: 10px 90px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
@keyframes lxZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes lxPulse { 0% { box-shadow: 0 0 0 0 rgba(111, 207, 138, .55); } 70% { box-shadow: 0 0 0 10px rgba(111, 207, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 207, 138, 0); } }

/* loading skeleton */
.lx-hero--loading { min-height: 70vh; background: linear-gradient(110deg, #2a2526 30%, #352f30 50%, #2a2526 70%); background-size: 200% 100%; animation: lxShimmer 1.4s linear infinite; }
.lx-skeleton { background: rgba(255, 254, 241, .12); border-radius: 999px; }
.lx-skeleton--pill { width: 160px; height: 30px; }
.lx-skeleton--line { width: 320px; max-width: 70%; height: 16px; }
.lx-skeleton-title { color: rgba(255, 254, 241, .55); font-size: clamp(2.2rem, 5vw, 4rem); margin: 18px 0; }
@keyframes lxShimmer { to { background-position: -200% 0; } }

/* ---- stats band ---- */
.lx-stats { background: var(--ink); color: var(--cream); border-top: 1px solid rgba(210, 188, 104, .25); }
.lx-stats__grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.lx-stats__grid--1 { --n: 1; } .lx-stats__grid--2 { --n: 2; } .lx-stats__grid--3 { --n: 3; } .lx-stats__grid--4 { --n: 4; }
.lx-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 28px 24px; position: relative; }
.lx-stat + .lx-stat::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(180deg, transparent, var(--gold-deep), transparent); }
.lx-stat__icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(210, 188, 104, .4); }
.lx-stat__icon svg { width: 22px; height: 22px; }
.lx-stat__value { font-family: var(--font-head); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 600; line-height: 1.1; color: var(--white); }
.lx-stat__label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 900px) {
  .lx-stats__grid { grid-template-columns: 1fr 1fr; }
  .lx-stats__grid--1 { grid-template-columns: 1fr; }
  .lx-stat:nth-child(3)::before { display: none; }
  .lx-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 254, 241, .08); }
}
@media (max-width: 480px) { .lx-stat { padding: 20px 8px; column-gap: 12px; } .lx-stat__icon { width: 38px; height: 38px; } }

/* ---- gallery ---- */
.lx-gallery-wrap { background: var(--ink); padding: 0 0 clamp(48px, 6vw, 80px); }
.lx-gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(150px, 15vw)); max-height: 620px; }
.lx-gallery__item { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: 6px; cursor: zoom-in; background: #2b2627; }
.lx-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
.lx-gallery__item:hover img, .lx-gallery__item:focus-visible img { transform: scale(1.05); filter: brightness(1.08); }
.lx-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.lx-gallery--2 .lx-gallery__item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.lx-gallery--3 .lx-gallery__item:nth-child(2), .lx-gallery--3 .lx-gallery__item:nth-child(3) { grid-column: span 2; }
.lx-gallery--4 .lx-gallery__item:nth-child(2) { grid-column: span 2; }
.lx-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(20, 16, 17, .6); color: var(--cream); font-weight: 500; letter-spacing: .04em; }
.lx-gallery__more svg, .lx-gallery__all svg { width: 18px; height: 18px; }
.lx-gallery__all { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid rgba(210, 188, 104, .5); color: var(--cream); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: .9rem; transition: background .2s, color .2s; }
.lx-gallery__all:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 760px) {
  .lx-gallery { grid-template-columns: repeat(3, 1fr); grid-template-rows: 56vw 22vw; max-height: none; }
  .lx-gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .lx-gallery .lx-gallery__item:nth-child(n+2) { grid-column: auto; grid-row: auto; }
  .lx-gallery__item:nth-child(n+5) { display: none; }
  .lx-gallery--2 { grid-template-rows: 56vw; } .lx-gallery--2 .lx-gallery__item:nth-child(2) { display: none; }
}

/* ---- body ---- */
.lx-body { background: var(--cream); }
.lx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(36px, 5vw, 80px); align-items: start; }
.lx-block + .lx-block { margin-top: clamp(44px, 5vw, 64px); }
.lx-h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.lx-h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-deep), transparent); }
.lx-prose { font-size: 1.08rem; line-height: 1.75; max-width: 70ch; }
.lx-features { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lx-features li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-weight: 500; transition: border-color .2s, transform .25s var(--ease); }
.lx-features li:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.lx-features svg { flex: 0 0 auto; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--ink); color: var(--gold); }
.lx-specs { margin: 0; border-top: 1px solid var(--line); }
.lx-spec { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.lx-spec dt { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; line-height: 1.2; position: relative; padding-left: 18px; }
.lx-spec dt::before { content: ""; position: absolute; left: 0; top: .45em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); }
.lx-spec dd { margin: 0; line-height: 1.7; }
@media (max-width: 640px) { .lx-spec { grid-template-columns: 1fr; gap: 6px; } }

/* inquiry card */
.lx-aside { position: sticky; top: 110px; scroll-margin-top: 100px; }
.lx-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold-deep); border-radius: 12px; padding: 28px; box-shadow: 0 30px 60px -40px rgba(20, 16, 17, .45); }
.lx-card__kicker { margin: 0 0 4px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.lx-card__title { font-family: var(--font-head); font-size: 1.75rem; font-weight: 600; line-height: 1.15; margin: 0 0 16px; }
.lx-card__contact { display: grid; gap: 8px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.lx-card__contact a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.lx-card__contact a:hover { color: var(--gold-deep); }
.lx-card__contact svg { flex: 0 0 auto; width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--cream-2); color: var(--gold-deep); }
.lx-form { display: grid; gap: 12px; }
.lx-form .field input, .lx-form .field textarea { border-color: rgba(35, 31, 32, .2); background: var(--cream); }
.lx-form .field input:focus, .lx-form .field textarea:focus { background: var(--white); }
.lx-form .form-success h3 { color: var(--ink); }
.lx-card__flyer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.lx-card__flyer:hover { color: var(--gold-deep); }
@media (max-width: 1000px) {
  .lx-layout { grid-template-columns: 1fr; }
  .lx-aside { position: static; }
}

/* mobile action bar */
.lx-mobilebar { display: none; }
@media (max-width: 760px) {
  .lx-hero__media { height: 68vw; min-height: 250px; }
  .lx-hero__inner { margin-top: -40px; }
  .lx-hero .breadcrumbs { top: calc(-68vw + 40px + 14px); font-size: .75rem; }
  .lx-hero__price { width: 100%; min-width: 0; }
  .lx-ribbon { top: 30px; right: -78px; font-size: .85rem; }
  .lx-mobilebar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; background: rgba(35, 31, 32, .96); color: var(--cream); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); transform: translateY(140%); transition: transform .35s var(--ease); }
  .lx-mobilebar.is-shown { transform: none; }
  .lx-mobilebar.is-hidden { transform: translateY(140%); }
  .lx-mobilebar div { display: flex; flex-direction: column; min-width: 0; }
  .lx-mobilebar span { font-size: .75rem; color: var(--muted-on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lx-mobilebar strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold); }
}

/* lightbox */
.lx-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(14, 11, 12, .97); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .25s ease; color: var(--cream); }
.lx-lightbox.is-open { opacity: 1; }
.lx-lightbox[hidden] { display: none; } /* display:grid above would otherwise override [hidden] and leave an invisible layer over the page */
.lx-lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.lx-lightbox__count { font-size: .85rem; letter-spacing: .16em; color: var(--gold); }
.lx-lightbox__close, .lx-lightbox__nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 254, 241, .25); background: rgba(255, 254, 241, .06); color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.lx-lightbox__close:hover, .lx-lightbox__nav:hover { background: var(--gold); color: var(--ink); }
.lx-lightbox__close svg, .lx-lightbox__nav svg { width: 22px; height: 22px; }
.lx-lightbox__stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 18px; min-height: 0; }
.lx-lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.lx-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; border-radius: 4px; opacity: 0; transform: scale(.98); transition: opacity .35s ease, transform .45s var(--ease); }
.lx-lightbox__figure img.is-in { opacity: 1; transform: none; }
.lx-lightbox__figure figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted-on-dark); min-height: 1.2em; }
.lx-lightbox__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 18px 18px; justify-content: safe center; scrollbar-width: thin; }
.lx-lightbox__thumbs button { flex: 0 0 auto; width: 92px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .55; background: none; transition: opacity .2s, border-color .2s; }
.lx-lightbox__thumbs button[aria-current="true"], .lx-lightbox__thumbs button:hover { opacity: 1; border-color: var(--gold); }
.lx-lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .lx-lightbox__nav { display: none; } .lx-lightbox__stage { grid-template-columns: 1fr; } }
body.lx-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .lx-hero__media img, .lx-pill span, .lx-hero--loading { animation: none !important; } }
