/* Motobacs · used cars, Hurlingham Nairobi
   Photography-first, white canvas, one red accent (the logo red), WhatsApp green
   for the action. Display: Archivo (wide/condensed axis). Body: Instrument Sans. */

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #ebebeb;
  --ink: #171a20;
  --ink-soft: #393c41;
  --ink-faint: #6b6e73;
  --line: #e6e6e6;
  --line-strong: #d0d1d2;
  --red: #c8102e;
  --red-deep: #a10c25;
  --red-soft: rgba(200, 16, 46, 0.08);
  --green: #009245;
  --wa: #25d366;
  --wa-deep: #1da851;
  --amber: #d97706;
  /* fleet aliases so shared admin/overlay code reads the brand colour */
  --gold: var(--red);
  --gold-deep: var(--red-deep);
  --gold-light: #e04a62;
  --choco: var(--ink);
  --choco-deep: #0d0f13;
  --rose: var(--red);
  --shadow: 0 10px 30px rgba(23, 26, 32, 0.08);
  --display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 4px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--ink) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 8px; border: 3px solid var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
.container { width: min(1240px, 100% - 40px); margin: 0 auto; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.serif-accent { font-style: italic; font-weight: 500; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ===== Nav ===== */
nav.top {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 26, 32, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-name small { display: block; font-size: 9.5px; letter-spacing: 0.24em; font-weight: 600; color: var(--ink-faint); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 14px; border-radius: var(--radius); transition: background-color 0.33s, color 0.33s; }
.nav-links a:hover { background: var(--surface); }
.nav-links a.nav-wa { background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.nav-links a.nav-wa:hover { background: var(--wa-deep); }
.nav-links a.nav-list { display: inline-flex; align-items: center; gap: 6px; }
.wl-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.nav-list.has-items .wl-count { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.33s, opacity 0.33s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 66px 0 auto 0; z-index: 210; background: #ffffff; flex-direction: column; align-items: stretch; padding: 4px 20px 20px; gap: 0; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(23,26,32,0.18); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform 0.33s var(--ease), opacity 0.33s; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; font-size: 17px; font-weight: 600; border-radius: 0; }
  .nav-links a:hover { background: none; }
  .nav-links a:not(.nav-wa)::after { content: "›"; font-size: 22px; line-height: 1; color: var(--ink-faint); }
  .nav-links a.nav-list .wl-count { margin-left: auto; margin-right: 10px; min-width: 24px; height: 24px; border-radius: 12px; font-size: 12px; }
  .nav-links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-links a.nav-wa { display: flex; width: 100%; background: var(--wa); color: #0b2b18; justify-content: center; padding: 15px; border-radius: 8px; font-weight: 700; gap: 10px; }
  .nav-links a.nav-wa:hover { background: var(--wa-deep); color: #fff; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 150; background: rgba(23,26,32,0.45); }
}

/* ===== Hero ===== */
.hero { position: relative; min-height: 78vh; min-height: 78svh; max-height: 860px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,26,32,0.05) 0%, rgba(23,26,32,0.15) 45%, rgba(23,26,32,0.82) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 60px 0 56px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.25); padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; margin-bottom: 22px; }
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,0.25); }
.hero h1 { font-size: clamp(38px, 6.4vw, 78px); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; max-width: 12ch; font-stretch: 95%; }
.hero h1 em { font-style: normal; color: #ff5c78; }
.hero p { font-size: clamp(16px, 1.6vw, 19px); max-width: 52ch; color: rgba(255,255,255,0.86); margin: 20px 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: var(--radius); font-weight: 600; font-size: 14.5px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color 0.33s, color 0.33s, border-color 0.33s; white-space: nowrap; }
.btn-primary { background: var(--wa); color: #0b2b18; }
.btn-primary:hover { background: #4ae287; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--surface); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.22); flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; }
.hero-stat span { font-size: 12.5px; color: rgba(255,255,255,0.72); letter-spacing: 0.04em; }

/* ===== Stock section ===== */
.stock { padding: 64px 0 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.section-head p { margin: 8px 0 0; color: var(--ink-faint); max-width: 56ch; }
.filter-meta { font-size: 13.5px; color: var(--ink-faint); }

.filters { position: sticky; top: 66px; z-index: 150; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 26px; display: grid; gap: 10px; }
.search-wrap { position: relative; min-width: 0; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.search-wrap input { width: 100%; min-width: 0; height: 44px; padding: 0 38px 0 40px; border: 1px solid var(--line-strong); border-radius: 999px; font: inherit; font-size: 15px; background: #fff; }
.search-wrap input:focus { outline: none; border-color: var(--ink); }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: var(--surface); border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--ink-soft); }
.drop-row { display: flex; flex-wrap: wrap; gap: 8px; }
.drop-row > div { flex: 1 1 150px; min-width: 0; }
.sort-select { width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; padding: 0 36px 0 14px; font: inherit; font-size: 14px; color: var(--ink); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23171a20' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.pill-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft); padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.pill-sold.active { background: var(--ink-faint); border-color: var(--ink-faint); }
.pill.pill-avail.active { background: var(--green); border-color: var(--green); }

/* Custom filter dropdown (ported from Ryker): page-controlled so the open list can
   show a "scroll for more" cue, which an OS-drawn native select never can. */
.cdrop { position: relative; }
.cdrop-trigger { width: 100%; max-width: 100%; text-align: left; display: flex; align-items: center; }
.cdrop-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdrop.open .cdrop-trigger { border-color: var(--ink); }
.cdrop--active .cdrop-trigger { background-color: var(--red-soft); border-color: var(--red); color: var(--ink); font-weight: 600; }
.cdrop-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 200px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(23,26,32,0.16); overflow: hidden; }
.cdrop-panel[hidden] { display: none; }
.cdrop-scroll { max-height: 280px; overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: var(--ink) var(--surface); }
.cdrop-scroll::-webkit-scrollbar { width: 9px; }
.cdrop-scroll::-webkit-scrollbar-track { background: var(--surface); border-radius: 4px; }
.cdrop-scroll::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 4px; }
.cdrop-group { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); padding: 8px 12px 4px; }
.cdrop-opt { display: block; width: 100%; text-align: left; padding: 11px 14px; border: none; background: none; cursor: pointer; font-family: inherit; font-size: 14px; color: var(--ink); border-radius: 9px; }
.cdrop-opt:hover { background: var(--surface); }
.cdrop-opt.selected { background: var(--ink); color: #fff; font-weight: 600; }
.cdrop-morehint { position: absolute; left: 1px; right: 1px; bottom: 0; height: 38px; pointer-events: none; opacity: 0; transition: opacity 0.18s ease; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 78%); border-radius: 0 0 14px 14px; }
.cdrop-morehint.show { opacity: 1; }
.cdrop-morehint::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 11px; height: 11px; margin-left: -5.5px; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg); animation: cdropBob 1.3s ease-in-out infinite; }
@keyframes cdropBob { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(3px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .cdrop-morehint::after { animation: none; } }
@media (max-width: 760px) {
  .filters { position: relative; top: auto; z-index: 150; backdrop-filter: none; background: #fff; padding-top: 6px; }
  .pill { padding: 6px 11px; font-size: 12.5px; }
  .sort-select { height: 42px; font-size: 13.5px; }
  .drop-row > div { flex: 1 1 calc(50% - 4px); }
}

.multi-enquire-hint { background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 14px; padding: 10px 18px; text-align: center; max-width: 640px; margin: 2px auto 22px; font-size: 14px; }
.meh-heart { color: var(--red); font-weight: 700; }

/* ===== Cards ===== */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; gap: 18px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color 0.33s, transform 0.33s var(--ease), box-shadow 0.33s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card.sold .card-img { filter: grayscale(0.7) brightness(0.9); }
.card-img-wrap { position: relative; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; cursor: pointer; touch-action: pan-y; }
.card-track { display: flex; height: 100%; transition: transform 0.4s var(--ease); will-change: transform; }
.card-img { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.86); color: var(--ink); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.carousel-arrow.prev { left: 10px; } .carousel-arrow.next { right: 10px; }
.has-carousel .carousel-arrow { display: inline-flex; opacity: 0.92; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.carousel-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.carousel-dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.photo-count { position: absolute; bottom: 10px; right: 10px; z-index: 2; background: rgba(23,26,32,0.7); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }
.badge { position: absolute; z-index: 3; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius); }
.badge-new { top: 12px; left: 12px; background: var(--red); color: #fff; }
.badge-reserved { top: 12px; left: 12px; background: var(--amber); color: #fff; }
.badge-sold { top: 12px; left: 12px; background: var(--ink); color: #fff; }
.badge-body { top: 12px; right: 12px; background: rgba(255,255,255,0.9); color: var(--ink); font-weight: 600; letter-spacing: 0.08em; }
.like-pill { position: absolute; bottom: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.92); border: 0; border-radius: 999px; padding: 5px 10px 5px 8px; font-size: 12px; font-weight: 700; color: var(--ink-soft); cursor: pointer; transition: transform 0.2s; }
.like-pill svg { fill: none; stroke: currentColor; stroke-width: 2; }
.like-pill.liked { color: var(--red); }
.like-pill.liked svg { fill: var(--red); stroke: var(--red); }
.like-pill.pop { transform: scale(1.18); }
.card-body { padding: 16px 16px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.card-title small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.card-price { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--red); letter-spacing: -0.02em; line-height: 1; }
.card-price small { font-size: 12px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0.02em; margin-left: 6px; font-family: var(--body); }
.card-price.por { font-size: 15px; color: var(--ink-soft); font-style: italic; font-weight: 500; font-family: var(--body); }
.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.spec-strip div { padding: 8px 6px; text-align: center; border-left: 1px solid var(--line); min-width: 0; }
.spec-strip div:first-child { border-left: 0; }
.spec-strip b { display: block; font-family: var(--display); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-strip span { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.card-actions { display: flex; gap: 8px; margin-top: 2px; }
.btn-card { flex: 1 1 0; min-width: 0; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--line-strong); color: var(--ink); background: #fff; cursor: pointer; transition: background-color 0.33s, color 0.33s, border-color 0.33s; padding: 0 10px; white-space: nowrap; }
.btn-card.primary { background: var(--wa); border-color: var(--wa); color: #0b2b18; flex: 1.4 1 0; }
.btn-card.primary:hover { background: var(--wa-deep); border-color: var(--wa-deep); color: #fff; }
.btn-card:hover { border-color: var(--ink); }
.card.sold .btn-card.primary { background: var(--surface); border-color: var(--line); color: var(--ink-faint); }
.card-added { font-size: 12px; color: var(--ink-faint); }

.empty { grid-column: 1 / -1; padding: 50px 20px; text-align: center; color: var(--ink-faint); }
.pager-wrap { display: flex; justify-content: center; gap: 6px; margin: 30px 0 0; flex-wrap: wrap; }
.pager-btn { min-width: 40px; height: 40px; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer; padding: 0 10px; }
.pager-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager-btn.disabled { opacity: 0.4; cursor: default; }
.pager-btn.ellipsis { border: 0; cursor: default; }

/* ===== Detail sheet ===== */
.sheet { position: fixed; inset: 0; z-index: 400; display: none; background: rgba(23,26,32,0.6); padding: 20px; align-items: center; justify-content: center; }
.sheet.open { display: flex; }
.sheet-card { background: #fff; width: min(1180px, 100%); height: calc(100dvh - 40px); max-height: 860px; border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: minmax(0, 1fr); position: relative; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92); font-size: 22px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.sheet-gallery { background: var(--ink); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sheet-main { position: relative; flex: 1 1 auto; min-height: 0; background: #0d0f13; display: flex; align-items: center; justify-content: center; }
.sheet-main img { width: 100%; height: 100%; object-fit: contain; max-height: 100%; }
.sheet-main .carousel-arrow { display: inline-flex; width: 42px; height: 42px; }
.sheet-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(23,26,32,0.7); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.sheet-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #0d0f13; scrollbar-width: thin; scrollbar-color: #555 #0d0f13; }
.sheet-thumbs img { width: 68px; height: 52px; object-fit: cover; border-radius: 4px; opacity: 0.55; cursor: pointer; flex: 0 0 auto; border: 2px solid transparent; transition: opacity 0.25s; }
.sheet-thumbs img.on { opacity: 1; border-color: #fff; }
.sheet-info { padding: 28px 28px 24px; overflow-y: auto; min-width: 0; min-height: 0; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sheet-info::-webkit-scrollbar { width: 8px; }
.sheet-info::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.sheet-scroll-hint { position: sticky; bottom: -24px; margin: 0 -28px -24px; height: 48px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 70%); pointer-events: none; }
.sheet-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-soft); margin-bottom: 12px; }
.sheet-status.available { background: rgba(0,146,69,0.1); color: var(--green); }
.sheet-status.reserved { background: rgba(217,119,6,0.12); color: var(--amber); }
.sheet-status.sold { background: var(--ink); color: #fff; }
.sheet-info h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.sheet-sub { color: var(--ink-faint); margin: 6px 0 14px; font-size: 14px; }
.sheet-price { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--red); letter-spacing: -0.02em; line-height: 1; }
.sheet-price small { font-family: var(--body); font-size: 13px; color: var(--ink-faint); font-weight: 500; margin-left: 8px; letter-spacing: 0.02em; }
.sheet-ctas { display: flex; gap: 10px; margin: 20px 0 22px; flex-wrap: wrap; }
.sheet-ctas .btn { flex: 1 1 160px; }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--line); }
.spec-table div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.spec-table span { color: var(--ink-faint); }
.spec-table b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sheet-h { font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin: 22px 0 10px; }
.feat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-chips span { background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; color: var(--ink-soft); }
.sheet-desc { color: var(--ink-soft); font-size: 14.5px; white-space: pre-line; }
.sheet-links { display: flex; gap: 14px; margin-top: 20px; font-size: 13px; flex-wrap: wrap; }
.sheet-links a { color: var(--ink-faint); }
@media (max-width: 900px) {
  .sheet { padding: 0; align-items: stretch; }
  .sheet-card { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); border-radius: 0; max-height: 100dvh; height: 100dvh; width: 100%; }
  .sheet-scroll-hint { margin: 0 -18px -30px; bottom: -30px; }
  .sheet-gallery { max-height: 46dvh; }
  .sheet-main { aspect-ratio: 4 / 3; flex: 0 0 auto; }
  .sheet-thumbs img { width: 56px; height: 42px; }
  .sheet-info { padding: 20px 18px 30px; }
  .spec-table { grid-template-columns: 1fr; }
}

/* ===== Shortlist drawer ===== */
.modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(23,26,32,0.6); padding: 20px; }
.modal.open, .modal[style*="flex"] { display: flex; }
.modal-card { background: #fff; width: min(560px, 100%); border-radius: var(--radius-lg); padding: 22px; max-height: calc(100dvh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-card h3 { font-size: 22px; font-weight: 700; }
.wl-intro { color: var(--ink-faint); font-size: 13px; margin: 4px 0 14px; }
.wl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wl-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.wl-row-body { flex: 1 1 auto; min-width: 0; }
.wl-row-name { font-weight: 600; font-size: 14px; }
.wl-row-meta { color: var(--ink-faint); font-size: 13px; }
.wl-remove { border: 0; background: var(--surface); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: flex-end; }
.wl-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300; display: none; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; border: 0; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.25); transform: translateY(12px); opacity: 0; transition: transform 0.33s var(--ease), opacity 0.33s; }
.wl-bar.show { transform: none; opacity: 1; }
@media (max-width: 860px) { .wl-bar:not([hidden]) { display: flex; } }

/* ===== Why / Visit ===== */
.why { padding: 70px 0; background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.why-card { background: #fff; border-radius: var(--radius-lg); padding: 26px 24px; border: 1px solid var(--line); }
.why-card b { display: block; font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--red); letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.why-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.why-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }

.visit { padding: 70px 0; }
.visit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.visit address { font-style: normal; font-size: 17px; line-height: 1.6; margin: 18px 0; }
.visit-lines { display: grid; gap: 12px; margin: 18px 0 24px; }
.visit-line { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 14.5px; }
.visit-line svg { flex: 0 0 auto; color: var(--red); margin-top: 2px; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } .map-wrap iframe { height: 300px; } }

/* ===== Footer ===== */
.footer { position: relative; background: linear-gradient(180deg, var(--ink) 0%, #0b0d11 100%); color: #d9dbe0; padding: 56px 0 26px; margin-top: 30px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--red) 50%, transparent); opacity: 0.7; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #ff5c78; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.f-brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 6px; border: 2px solid var(--red); object-fit: contain; }
.f-brand b { font-family: var(--display); font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; display: block; }
.f-brand span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #ff5c78; }
.f-blurb { color: rgba(217,219,224,0.75); font-size: 14px; max-width: 330px; margin: 0 0 16px; }
.pay-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(217,219,224,0.6); }
.pay-row span { border: 1px solid rgba(255,92,120,0.35); background: rgba(255,92,120,0.12); color: #ffb3bf; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em; text-transform: none; font-size: 12px; }
.footer address { font-style: normal; font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: block; padding: 5px 0; color: #d9dbe0; text-decoration: none; font-size: 14px; position: relative; transition: color 0.25s; }
.footer li a::before { content: "›"; color: var(--red); margin-right: 8px; opacity: 0; transition: opacity 0.25s; }
.footer li a:hover { color: #fff; } .footer li a:hover::before { opacity: 1; }
.dir-link { display: inline-flex; align-items: center; gap: 6px; color: #ff5c78; text-decoration: none; font-weight: 600; font-size: 14px; }
.soc { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; color: inherit; }
.soc:last-child { border-bottom: 0; }
.soc i { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,92,120,0.14); display: inline-flex; align-items: center; justify-content: center; color: #ff5c78; flex: 0 0 auto; transition: background-color 0.25s, color 0.25s; }
.soc:hover i { background: var(--red); color: #fff; }
.soc strong { display: block; font-size: 14px; color: #fff; }
.soc span { font-size: 13px; color: rgba(217,219,224,0.7); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(217,219,224,0.6); flex-wrap: wrap; }
.footer-bottom a { color: #ff5c78; text-decoration: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; } }

/* ===== Toast, back to top ===== */
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 600; max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toTop { position: fixed; right: 16px; bottom: 76px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; z-index: 250; opacity: 0; transition: opacity 0.3s; display: inline-flex; align-items: center; justify-content: center; }
#toTop.show { opacity: 1; }
@media (max-width: 860px) { #toTop { bottom: 84px; } }

/* ===== Motion ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transition 0.65s; transition-property: opacity, transform; }
  .fade-up.in-view { opacity: 1; transform: none; }
  .hero-inner > * { animation: heroIn 0.7s var(--ease) both; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.08s; } .hero-inner > *:nth-child(3) { animation-delay: 0.16s; } .hero-inner > *:nth-child(4) { animation-delay: 0.24s; } .hero-inner > *:nth-child(5) { animation-delay: 0.32s; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .card { animation: cardIn 0.6s var(--ease) both; animation-play-state: paused; }
  .card.in-view { animation-play-state: running; }
  .card:nth-child(2) { animation-delay: 0.06s; } .card:nth-child(3) { animation-delay: 0.12s; } .card:nth-child(4) { animation-delay: 0.18s; } .card:nth-child(5) { animation-delay: 0.24s; } .card:nth-child(6) { animation-delay: 0.3s; } .card:nth-child(7) { animation-delay: 0.36s; } .card:nth-child(8) { animation-delay: 0.42s; } .card:nth-child(9) { animation-delay: 0.48s; } .card:nth-child(n+10) { animation-delay: 0.54s; }
  @keyframes cardIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

/* Narrow phones: four spec cells cannot hold "107,000" side by side, so go 2x2 rather than truncate. */
@media (max-width: 360px) {
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip div:nth-child(3) { border-left: 0; }
  .spec-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
