/* srindex.eu — Effortless Luxury Design System v3 */

/* ── Design Tokens ── */
:root {
  --bg: #FAFAF8;
  --card: #FFFFFF;
  --ink: #0F0F0E;
  --ink-mid: #2A2A28;
  --ink-muted: #3D3D3A;
  --ink-faint: #6B6B67;
  --border: #E8E4DE;
  --border-light: #EEEAE4;
  --hover-bg: #F4F1EC;

  /* Muted luxury badge palette — warm tones only */
  --badge-easa-bg: #EAE7E0;
  --badge-easa-text: #3A3730;
  --badge-nreg-bg: #EDE9E2;
  --badge-nreg-text: #6B6056;
  --badge-fiki-bg: #E8ECF0;
  --badge-fiki-text: #3A4A5A;
  --badge-gen-bg: rgba(15, 15, 14, 0.72);
  --badge-gen-text: rgba(250, 250, 248, 0.95);

  --caps-warn: #8B2E2E;
  --caps-warn-bg: #FEF0F0;

  --nav-h: 56px;
  --filter-h: 52px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

/* ── Logo Wordmark ── */
.logo {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}
.logo .logo-sr    { font-weight: 400; }
.logo .logo-index { font-weight: 600; }
.logo .logo-eu    { font-weight: 400; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  height: var(--nav-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s ease;
}
.nav.scrolled {
  box-shadow: 0 1px 0 var(--border-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }

.filter-bar-stack {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--bg);
}

/* ── Filter Bar ── */
.filter-bar {
  background: var(--bg);
  padding: 0 48px;
  min-height: var(--filter-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar-secondary {
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
  align-items: flex-start;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.filter-group-wrap {
  flex-wrap: wrap;
  row-gap: 8px;
}
.filter-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-right: 3px;
}
.filter-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}
.filter-spacer { flex: 1; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--ink-mid);
  color: var(--ink-mid);
}
.pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.pill-fiki {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill-fiki:hover {
  border-color: var(--badge-fiki-text);
  color: var(--badge-fiki-text);
}
.pill-fiki.active {
  background: var(--badge-fiki-bg);
  border-color: var(--badge-fiki-text);
  color: var(--badge-fiki-text);
}

/* Sort select */
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 28px 4px 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B6B67'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s ease;
}
.sort-select:hover { border-color: var(--ink-mid); }
.sort-select:focus { outline: none; border-color: var(--ink-mid); }

.filter-clear-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-clear-btn:hover {
  border-color: var(--ink-mid);
  color: var(--ink);
}

.filter-input-group,
.filter-price-group {
  gap: 8px;
}
.filter-input-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.filter-input {
  width: 112px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  background: var(--card);
}
.filter-input::placeholder {
  color: var(--ink-muted);
}
.filter-input:focus {
  outline: none;
  border-color: var(--ink-mid);
}

.results-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* View toggle */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-btn:hover { background: var(--hover-bg); color: var(--ink-mid); }
.view-btn.active { background: var(--hover-bg); color: var(--ink); }
.view-btn svg { width: 14px; height: 14px; }

/* ── Stats Banner ── */
.stats-banner {
  padding: 10px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.stat-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-div {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Badges — muted, luxury ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.6;
}
.badge-easa { background: var(--badge-easa-bg); color: var(--badge-easa-text); }
.badge-nreg { background: var(--badge-nreg-bg); color: var(--badge-nreg-text); }
.badge-fiki { background: var(--badge-fiki-bg); color: var(--badge-fiki-text); }
.badge-gen  {
  background: var(--badge-gen-bg);
  color: var(--badge-gen-text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge-gen-inline {
  background: var(--hover-bg);
  color: var(--ink-mid);
}
.badge-caps-warn {
  background: var(--caps-warn-bg);
  color: var(--caps-warn);
}

/* ── Card Grid View ── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 40px 48px;
}

.aircraft-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.aircraft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(160deg, #E8E4DE 0%, #D6D1CA 100%);
  flex-shrink: 0;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.aircraft-card:hover .card-img { transform: scale(1.04); }

.card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #E8E4DE 0%, #D6D1CA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-placeholder-icon {
  opacity: 0.25;
  color: var(--ink-mid);
}

.card-badge-gen {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.card-badge-reg {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.card-body {
  padding: 20px 22px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-year-model {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.card-location {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.card-ttaf {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
}
.card-price {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.card-price-poa {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
  min-height: 38px;
}
.card-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-source {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.card-smoh {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}
.card-fiki-indicator {
  font-size: 12px;
  font-weight: 400;
  color: var(--badge-fiki-text);
  letter-spacing: 0.03em;
}
.card-reg-indicator {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Table (Editorial Row) View ── */
.listings-table-wrap {
  padding: 24px 48px 48px;
}
.listings-table {
  width: 100%;
  border-collapse: collapse;
}
.listings-table thead th {
  padding: 0 14px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.listings-table thead th:first-child { padding-left: 0; }

.table-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.table-sort-btn.active {
  color: var(--ink-mid);
}
.table-sort-right {
  justify-content: flex-end;
  width: 100%;
}
.table-sort-center {
  justify-content: center;
  width: 100%;
}
.sort-indicator {
  font-size: 11px;
  letter-spacing: 0;
}

.table-cell-center {
  text-align: center;
}
.table-cell-right {
  text-align: right;
}

.aircraft-row { cursor: pointer; }
.aircraft-row td {
  padding: 14px 14px;
  vertical-align: middle;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
}
.aircraft-row td:first-child { padding-left: 0; }
.aircraft-row:hover td { background: var(--hover-bg); }
.aircraft-row:nth-child(even) td { background: rgba(250,250,248,0.6); }
.aircraft-row:nth-child(even):hover td { background: var(--hover-bg); }

.row-thumb-cell { width: 60px; }
.row-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.row-thumb-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(160deg, #E8E4DE 0%, #D6D1CA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-thumb-placeholder-icon {
  opacity: 0.3;
  color: var(--ink-mid);
}

.row-year-gen {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
.row-model { font-weight: 500; color: var(--ink); }
.row-ttaf { white-space: nowrap; color: var(--ink-mid); font-weight: 500; }
.row-avionics,
.row-smoh,
.row-vat { white-space: nowrap; color: var(--ink-mid); }
.row-engine { color: var(--ink-mid); font-size: 12px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.row-location { white-space: nowrap; color: var(--ink-mid); }

.row-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
  letter-spacing: -0.01em;
}
.row-price-poa {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
}
.row-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.row-fiki-icon {
  font-size: 12px;
  color: var(--badge-fiki-text);
}
.row-fiki-empty {
  font-size: 11px;
  color: var(--ink-muted);
}

/* ── Empty / Loading states ── */
.empty-state {
  padding: 100px 48px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

/* ── HOME PAGE ── */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.75) brightness(0.9);
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 7, 0.72) 0%,
    rgba(8, 8, 7, 0.55) 40%,
    rgba(8, 8, 7, 0.65) 70%,
    rgba(8, 8, 7, 0.82) 100%
  );
}
.home-hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1E1C19 0%, #2A2720 100%);
}

.home-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-nav .logo { color: rgba(250,250,248,0.95); }
.home-nav .nav-link { color: rgba(250,250,248,0.45); transition: color 0.2s ease; }
.home-nav .nav-link:hover { color: rgba(250,250,248,0.85); }

.home-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 88px 48px 56px;
  max-width: 1120px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.home-hero-spacer {
  flex: 1;
}

.home-headline {
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 400;
  color: rgba(250,250,248,0.97);
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 780px;
}
.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 16px 36px;
  background: rgba(250,250,248,0.14);
  border: 1px solid rgba(250,250,248,0.58);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(250,250,248,0.97);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.home-cta:hover {
  background: rgba(250,250,248,0.22);
  border-color: rgba(250,250,248,0.9);
  color: #FAFAF8;
}

.home-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 980px);
}
.home-stat {
  padding: 22px 20px 20px;
  border: 1px solid rgba(250,250,248,0.16);
  background: rgba(15,15,14,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
}
.home-stat-value {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: rgba(250,250,248,0.97);
  margin-bottom: 6px;
  line-height: 1;
}
.home-stat-label {
  font-size: 12px;
  font-weight: 400;
  color: rgba(250,250,248,0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── DETAIL PAGE ── */
.detail-layout {
  display: flex;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.detail-photo-col {
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
  background: #161410;
  display: flex;
  flex-direction: column;
}
.detail-main-photo {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.detail-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-main-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #252320 0%, #161410 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 36px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  pointer-events: none;
}
.detail-photo-reg {
  font-size: 12px;
  font-weight: 400;
  color: rgba(250,250,248,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.detail-photo-model {
  font-size: 24px;
  font-weight: 400;
  color: rgba(250,250,248,0.92);
  letter-spacing: -0.02em;
}

.detail-thumb-strip {
  flex-shrink: 0;
  height: 76px;
  padding: 10px 18px;
  background: #0E0D0B;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(250,250,248,0.08) transparent;
}
.detail-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 56px;
  border-radius: 2px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.detail-thumb:hover { opacity: 0.8; }
.detail-thumb.active {
  opacity: 1;
  border-color: rgba(250,250,248,0.35);
}

.detail-info-col {
  flex: 0 0 40%;
  overflow-y: auto;
  padding: 34px 40px 40px;
  display: flex;
  flex-direction: column;
}
.detail-spec-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-back {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.detail-back:hover { color: var(--ink-mid); }

.detail-reg {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.detail-year-model {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.detail-generation {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.detail-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.detail-price {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.detail-price-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-vat-badge,
.detail-yes-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.detail-vat-badge {
  background: var(--hover-bg);
  color: var(--ink-mid);
}
.detail-yes-badge {
  background: #E6F0E8;
  color: #2C5B37;
}
.detail-price-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.detail-spec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail-spec-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: start;
}
.detail-spec-label,
.detail-data-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.detail-spec-value,
.detail-data-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.45;
}

/* CAPS warning */
.caps-block {
  margin-top: 4px;
}
.caps-inner {
  border-radius: 3px;
  padding: 12px 16px;
}
.caps-inner.warn {
  background: var(--caps-warn-bg);
  border: 1px solid rgba(139,46,46,0.12);
}
.caps-inner.ok {
  background: var(--hover-bg);
  border: 1px solid var(--border-light);
}
.caps-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.caps-label.warn { color: var(--caps-warn); }
.caps-label.ok   { color: var(--ink-muted); }
.caps-label.est  { color: #a07830; }
.caps-value {
  font-size: 13px;
  font-weight: 400;
}
.caps-value.warn { color: var(--caps-warn); }
.caps-value.ok   { color: var(--ink-mid); }
.caps-value.est  { color: #c8a84b; }
.caps-inner.est  { background: rgba(200,168,75,.07); border: 1px solid rgba(200,168,75,.18); }

/* Seller block */
.seller-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}
.seller-name {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}
.seller-contact {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.seller-contact:hover { color: var(--ink); }
.seller-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: 6px;
}
.seller-cta:hover { background: var(--ink-mid); }

.detail-badge-block {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.badge-nodmg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  background: #EAE7E0;
  color: var(--ink-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.warranty-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
}
.source-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-top: 10px;
  line-height: 1.6;
}
.source-note a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.source-note a:hover { color: var(--ink-muted); }

/* Footer links */
.detail-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.detail-footer-link {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.detail-footer-link:hover { color: var(--ink-mid); }
.detail-footer-sep { color: var(--ink-muted); font-size: 11px; }

/* Below-fold detail sections */
.detail-full-sections {
  padding: 72px 48px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.detail-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.detail-tab.active,
.detail-tab:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.detail-tab-panel {
  display: none;
}
.detail-tab-panel.active {
  display: block;
}
.section-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.description-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.85;
  max-width: 680px;
  white-space: pre-line;
}
.detail-data-list {
  display: grid;
  gap: 18px;
}
.detail-data-item {
  display: grid;
  gap: 5px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.detail-data-empty {
  font-size: 13px;
  color: var(--ink-muted);
}
.avionics-bullets {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.avionics-bullets li {
  color: var(--ink-mid);
  line-height: 1.6;
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — 768px and below
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Nav ── */
  .nav {
    padding: 0 20px;
    height: 52px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 12px;
  }
  .logo {
    font-size: 17px;
  }

  /* ── Home Hero ── */
  .hero {
    min-height: 100svh;
  }
  .hero-content {
    padding: 0 24px;
    padding-top: 80px;
  }
  .hero-headline {
    font-size: 36px;
    letter-spacing: -0.02em;
  }
  .hero-sub {
    font-size: 15px;
    margin-top: 12px;
  }
  .hero-cta {
    margin-top: 32px;
    font-size: 13px;
    padding: 12px 28px;
  }
  .hero-stats,
  .home-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }
  .hero-stat,
  .home-stat {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  .hero-stat:last-child,
  .home-stat:last-child {
    border-bottom: none;
  }
  .hero-stat-num,
  .home-stat-value {
    font-size: 28px;
  }

  /* Featured cards on home — single column */
  .home-hero-content {
    padding: 92px 20px 24px;
    gap: 18px;
  }
  .home-wordmark {
    font-size: 12px;
  }
  .home-headline {
    font-size: 34px;
  }
  .home-cta {
    min-width: 100%;
  }

  /* ── Filter Bar — horizontal scroll on mobile ── */
  .filter-bar-stack {
    position: static;
  }
  .filter-bar {
    padding: 0 16px;
    height: auto;
    min-height: 44px;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar-secondary {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-group {
    flex-shrink: 0;
    gap: 4px;
  }
  .filter-label {
    font-size: 11px;
    white-space: nowrap;
  }
  .pill {
    font-size: 12px;
    padding: 5px 9px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .filter-spacer {
    flex: 1;
    min-width: 8px;
  }
  .results-count {
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .filter-clear-btn,
  .filter-input {
    flex-shrink: 0;
  }
  .filter-input {
    width: 100px;
  }
  .view-toggle {
    gap: 4px;
    flex-shrink: 0;
  }

  /* ── Stats Banner ── */
  .stats-banner {
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 4px 12px;
    overflow: hidden;
  }
  .stat-item {
    font-size: 11px;
    white-space: nowrap;
  }
  .stat-div {
    display: none;
  }

  /* ── Listings: Card Grid → 1 column ── */
  .listings-grid,
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .aircraft-card {
    max-width: 100%;
  }
  .card-image {
    height: 200px;
  }
  .card-body {
    padding: 16px;
  }
  .card-title {
    font-size: 20px;
  }
  .card-meta-row {
    gap: 12px;
  }
  .card-footer {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* ── Listings: Table → simplified ── */
  /* ── Table: allow horizontal scroll on mobile ── */
  .listings-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 16px;
  }
  .listings-table {
    min-width: 580px;
  }
  .listings-table th,
  .listings-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  .row-thumb-cell {
    display: none;
  }
  .row-model {
    font-size: 14px;
  }
  .row-price {
    font-size: 13px;
    font-weight: 600;
  }

  /* ── Detail Page: split → stacked ── */
  .detail-layout {
    flex-direction: column;
    height: auto;
    min-height: unset;
  }
  .detail-photo-col {
    width: 100% !important;
    height: 280px;
    flex: none;
    position: relative;
  }
  .detail-main-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }
  .detail-thumb-strip {
    display: none; /* hide thumbnails on mobile to save space */
  }
  .detail-info-col {
    width: 100% !important;
    height: auto;
    overflow: visible;
    padding: 24px 20px 48px;
    flex: none;
  }
  .detail-back {
    margin-bottom: 16px;
    font-size: 13px;
  }
  .detail-reg {
    font-size: 24px;
  }
  .detail-price {
    font-size: 28px;
  }
  .detail-spec-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .seller-block {
    margin-top: 8px;
  }

  /* ── Detail below-fold sections ── */
  .detail-full-sections {
    padding: 32px 20px 48px;
  }
  .detail-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  /* ── Sort bar ── */
  .sort-bar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sort-bar-count {
    font-size: 13px;
    width: 100%;
  }

}

/* ── Very small phones (< 400px) ── */
@media (max-width: 400px) {
  .home-headline {
    font-size: 30px;
  }
  .listings-grid {
    padding: 12px;
  }
}
