/* Kothari Hyundai Promise — Hyundai brand palette */
:root {
  --blue: #002c5f;          /* Hyundai Blue */
  --blue-hover: #003a7a;
  --blue-deep: #001a3a;
  --blue-night: #00132b;
  --active: #00aad2;        /* Hyundai Active Blue */
  --active-hover: #1bbde2;
  --active-soft: #e3f5fa;
  --active-on-dark: #7fd6ea;
  --sand: #e4dcd3;          /* Hyundai Sand */
  --sand-light: #f6f3f2;    /* Hyundai Light Sand */
  --ink: #1c1b1b;
  --body: #46464b;
  --muted: #6b6b71;
  --faint: #9b9ba1;
  --line: #e4ded7;
  --white: #fff;
  --success: #0b7a4b;
  --warning: #9a6200;
  --danger: #b3261e;

  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1312px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --header: 72px;
  --shadow-dock: 0 22px 60px rgba(0, 26, 58, 0.18);
  --shadow-card: 0 14px 40px rgba(0, 26, 58, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sand-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--active); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.muted { color: var(--muted); }

.display {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.06;
  color: var(--blue);
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--active); flex-shrink: 0; }
.eyebrow--light { color: var(--active-on-dark); }

.icon { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.icon--sm { width: 14px; height: 14px; }
.icon--lg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--text); font-size: 14.5px; font-weight: 600; letter-spacing: 0.005em;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-active { background: var(--active); color: var(--blue-deep); }
.btn-active:hover { background: var(--active-hover); color: var(--blue-deep); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.34); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-lg { width: 50px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--blue);
}
.text-link:hover { color: var(--blue-hover); }
.text-link .icon { transition: transform 0.15s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header__inner { height: var(--header); display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--blue); }
.brand:hover { color: var(--blue); }
.brand__logo { height: 19px; width: auto; }
.brand__rule { width: 1px; height: 26px; background: var(--line); }
.brand__text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand__name {
  font-family: var(--display); font-stretch: 118%; font-weight: 800;
  font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.brand__tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; display: block; padding: 25px 0;
  font-size: 14.5px; font-weight: 500; color: var(--body);
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current='page'] { color: var(--blue); font-weight: 600; }
.site-nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--active);
}

.header-contact { display: flex; align-items: center; gap: 16px; }
.header-contact__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header-contact__label { font-size: 11px; color: var(--muted); letter-spacing: 0.03em; }
.header-contact__number { font-size: 14px; font-weight: 600; color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--blue); cursor: pointer; margin-right: -10px;
}
.header-call-icon { display: none; }

@media (max-width: 1080px) {
  .header-contact__phone { display: none; }
}
@media (max-width: 900px) {
  :root { --header: 60px; }
  .site-header__inner { gap: 8px; }
  .brand { gap: 10px; }
  .brand__logo { height: 15px; }
  .brand__rule { height: 22px; }
  .brand__name { font-size: 14px; }
  .brand__tag { font-size: 8.5px; }
  .nav-toggle, .header-call-icon { display: inline-flex; }
  .header-contact .btn { display: none; }
  .header-call-icon { width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--blue); margin-left: auto; }
  .site-nav {
    display: none; position: absolute; inset: var(--header) 0 auto; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 26, 58, 0.1); padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a[aria-current='page']::after { display: none; }
}

/* -------------------------------------------------------------------- hero */

.hero { position: relative; height: 600px; background: var(--blue-deep); overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 70% 60%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 26, 58, 0.95) 0%, rgba(0, 26, 58, 0.82) 32%, rgba(0, 26, 58, 0.2) 62%, rgba(0, 26, 58, 0) 100%),
    linear-gradient(0deg, rgba(0, 26, 58, 0.55) 0%, rgba(0, 26, 58, 0) 32%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding-bottom: 40px;
}
.hero__title { font-size: clamp(42px, 5.6vw, 68px); color: var(--white); max-width: 12ch; line-height: 1.02; }
.hero__lede { font-size: clamp(16px, 1.5vw, 18px); color: #cdd9e6; max-width: 430px; line-height: 1.6; }

@media (max-width: 760px) {
  .hero { height: 520px; }
  .hero__media img { object-position: 78% 62%; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 26, 58, 0.92) 0%, rgba(0, 26, 58, 0.72) 48%, rgba(0, 26, 58, 0.35) 100%);
  }
  .hero__content { justify-content: flex-start; padding-top: 48px; }
}

/* ------------------------------------------------------------- search dock */

.dock { position: relative; z-index: 5; margin-top: -54px; }
.dock__panel {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-dock);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}
.dock__field { position: relative; padding: 14px 20px; border-right: 1px solid var(--line); }
.dock__field:nth-child(4) { border-right: 0; }
.dock__field label {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.dock__field select {
  width: 100%; border: 0; background: transparent; padding: 2px 22px 2px 0;
  font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}
.dock__field select:focus { outline: none; }
.dock__field:focus-within { box-shadow: inset 0 -2px 0 var(--active); }
.dock__submit { padding: 12px; display: flex; }
.dock__submit .btn { height: auto; padding: 0 30px; }
.dock__below { display: flex; justify-content: flex-end; margin-top: 14px; }

@media (max-width: 860px) {
  .dock { margin-top: -110px; }
  .dock__panel { grid-template-columns: 1fr 1fr; }
  .dock__field { border-bottom: 1px solid var(--line); }
  .dock__field:nth-child(2n) { border-right: 0; }
  .dock__submit { grid-column: 1 / -1; }
  .dock__submit .btn { width: 100%; height: 50px; }
  .dock__below { justify-content: center; }
}

/* ---------------------------------------------------------------- sections */

.section { padding-block: clamp(40px, 5vw, 64px); }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.section-head__title { font-size: clamp(26px, 2.6vw, 32px); }
.section-head p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ------------------------------------------------------------------- cards */

.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.car-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.car-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); border-color: transparent; }
.car-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.car-card__media > a { display: block; width: 100%; height: 100%; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.car-card:hover .car-card__media img { transform: scale(1.03); }
.car-card__empty {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px;
}
.car-card__body { padding: 15px 16px 14px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.car-card__title { font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.car-card__title a { color: inherit; }
.car-card__title a:hover { color: var(--blue); }
.car-card__sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.car-card__specs { display: flex; gap: 14px; font-size: 12.5px; color: var(--body); }
.car-card__specs span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.car-card__specs .icon { color: var(--faint); }
.car-card__foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.car-card__price {
  font-family: var(--display); font-stretch: 108%; font-size: 21px; font-weight: 700;
  color: var(--blue); letter-spacing: -0.01em;
}
.car-card__actions { display: flex; gap: 6px; }
.car-card--unavailable .car-card__media img { filter: grayscale(1); opacity: 0.7; }
.car-card--unavailable .car-card__price { color: var(--muted); }

.tag {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 3px;
  background: rgba(0, 19, 43, 0.72); color: var(--white);
}
.tag--location { left: 10px; bottom: 10px; }
.tag--photos { right: 10px; bottom: 10px; }
.tag .icon { width: 12px; height: 12px; }
.badge {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 3px;
}
.badge--reserved { background: var(--sand); color: var(--blue); }
.badge--sold { background: var(--blue-deep); color: var(--white); }
.badge--inactive { background: var(--white); color: var(--muted); }

/* ----------------------------------------------------------------- promise */

.promise { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.promise__media { height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--blue-deep); }
.promise__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.promise__body { display: flex; flex-direction: column; gap: 18px; }
.promise__title { font-size: clamp(28px, 3vw, 38px); max-width: 560px; line-height: 1.12; }
.promise__summary { font-size: 16px; color: var(--body); max-width: 560px; }
.promise__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.promise-point {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: var(--sand-light); border-radius: var(--radius);
}
.promise-point__icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--active-soft); color: var(--blue);
  display: grid; place-items: center;
}
.promise-point h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.promise-point p { font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .promise { grid-template-columns: 1fr; }
  .promise__media { height: 260px; }
  .promise__points { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- sell band */

.sell-band { display: grid; grid-template-columns: 7fr 5fr; min-height: 420px; background: var(--blue-deep); overflow: hidden; }
.sell-band__media { position: relative; overflow: hidden; }
.sell-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.sell-band__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 26, 58, 0) 55%, rgba(0, 26, 58, 1) 100%);
}
.sell-band__body {
  padding: 54px var(--gutter) 54px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.sell-band__title { font-size: clamp(28px, 2.6vw, 34px); color: var(--white); line-height: 1.14; }
.sell-band__text { font-size: 15.5px; color: #b9c7d6; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.28);
}
.pill:hover { border-color: var(--white); color: var(--white); }

@media (max-width: 900px) {
  .sell-band { grid-template-columns: 1fr; }
  .sell-band__media { height: 220px; }
  .sell-band__media::after { background: linear-gradient(180deg, rgba(0, 26, 58, 0) 50%, rgba(0, 26, 58, 1) 100%); }
  .sell-band__body { padding: 8px var(--gutter) 44px; }
}

/* -------------------------------------------------------------- page band */

.page-band { position: relative; height: 196px; background: var(--blue-deep); overflow: hidden; }
.page-band__media { position: absolute; top: 0; right: 0; width: 64%; height: 100%; }
.page-band__media img { width: 100%; height: 100%; object-fit: cover; }
.page-band::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 26, 58, 1) 36%, rgba(0, 26, 58, 0.78) 56%, rgba(0, 26, 58, 0.12) 100%);
}
.page-band__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.page-band__crumbs { font-size: 12.5px; color: #8fa3b8; }
.page-band__crumbs a { color: #8fa3b8; }
.page-band__crumbs a:hover { color: var(--white); }
.page-band__title { font-size: clamp(32px, 3.4vw, 42px); color: var(--white); }
.page-band__text { font-size: 15px; color: #b9c7d6; }

@media (max-width: 760px) {
  .page-band { height: 172px; }
  .page-band__media { width: 100%; }
  .page-band::before { background: linear-gradient(90deg, rgba(0, 26, 58, 0.95) 0%, rgba(0, 26, 58, 0.7) 100%); }
}

/* ------------------------------------------------------------- filter bar */

.filter-bar {
  position: sticky; top: var(--header); z-index: 40;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.filter-bar form { display: flex; align-items: center; gap: 8px; padding-block: 12px; }
.filter-bar__label {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 4px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.filter-select {
  height: 40px; padding: 0 32px 0 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background-color: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 500; cursor: pointer; max-width: 190px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%236b6b71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.filter-select:hover { border-color: #c9c1b7; }
.filter-select.is-set {
  background-color: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.filter-bar__spacer { display: none; }
.filter-search {
  display: flex; align-items: center; gap: 9px; flex: 1 1 180px; min-width: 150px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted);
}
.filter-search:focus-within { border-color: var(--active); }
.filter-search input { border: 0; outline: 0; width: 100%; font-size: 14px; background: transparent; color: var(--ink); }
.filter-sort { border-color: transparent; }

.filter-select { flex: 0 1 auto; min-width: 0; }

@media (max-width: 1520px) {
  .filter-bar__label { display: none; }
}
@media (max-width: 1480px) {
  .filter-bar form { flex-wrap: wrap; }
  .filter-search { order: -1; flex-basis: 100%; }
}
@media (max-width: 760px) {
  .filter-bar { position: static; }
  .filter-bar form { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: 1 / -1; min-width: 0; }
  .filter-select { max-width: none; width: 100%; }
  .filter-sort { grid-column: 1 / -1; border-color: var(--line); }
}

.results-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.results-row__count { font-size: 15px; font-weight: 600; margin-right: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 8px 0 12px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.chip:hover { border-color: var(--blue); color: var(--ink); }
.chip .icon { color: var(--muted); }
.clear-link { font-size: 13.5px; font-weight: 600; color: var(--blue); margin-left: 4px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 14px;
}
.pagination a:hover { border-color: var(--blue); }
.pagination .is-current { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 600; }

.empty-state {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-state h2 { font-size: 22px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-size: 14.5px; color: var(--body);
}
.notice strong { color: var(--ink); }

/* ----------------------------------------------------------------- vehicle */

.vehicle-head { padding-block: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.crumbs { font-size: 12.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.vehicle-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vehicle-head__title { font-size: clamp(28px, 3.2vw, 40px); }
.vehicle-head__sub { font-size: 15px; color: var(--muted); margin-top: 6px; }
.vehicle-head__meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }

.status-banner {
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-size: 14.5px;
  background: var(--white); border: 1px solid var(--line); color: var(--body);
}
.status-banner strong { color: var(--ink); }
.status-banner--sold { background: var(--blue-deep); border-color: var(--blue-deep); color: #cdd9e6; }
.status-banner--sold strong { color: var(--white); }
.status-banner--sold a { color: var(--active-on-dark); }
.status-banner--reserved { background: var(--sand); border-color: var(--sand); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 254px 254px; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery--single { grid-template-columns: 1fr; grid-template-rows: 508px; }
.gallery--double .gallery__tile { grid-row: span 2; }
.gallery__main { position: relative; grid-row: span 2; background: var(--sand); overflow: hidden; }
.gallery--single .gallery__main { grid-row: auto; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__tile { position: relative; padding: 0; border: 0; background: var(--sand); overflow: hidden; cursor: pointer; }
.gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery__tile:hover img { transform: scale(1.04); }
.gallery__more {
  position: absolute; inset: 0; background: rgba(0, 26, 58, 0.55); color: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 15px; font-weight: 600;
}
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--blue);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.gallery__nav:hover { background: var(--white); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__counter {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(0, 19, 43, 0.72); color: var(--white); font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
}
.gallery__expand {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--blue);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.gallery__empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }

@media (max-width: 860px) {
  .gallery, .gallery--double, .gallery--single {
    grid-template-columns: 1fr; grid-template-rows: auto;
    margin-inline: calc(var(--gutter) * -1); border-radius: 0;
  }
  .gallery__main { grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery__tile { display: none; }
}

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 24px; align-items: start; padding-top: 24px; }
.detail__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.panel__title { font-family: var(--display); font-stretch: 106%; font-size: 19px; font-weight: 600; color: var(--blue); margin-bottom: 16px; }

.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.spec { display: flex; gap: 11px; align-items: flex-start; }
.spec .icon { color: var(--muted); margin-top: 2px; }
.spec dt { font-size: 12px; color: var(--muted); }
.spec dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }

.features { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.features li {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  background: var(--sand-light); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--body);
}
.features .icon { color: var(--active); }

.about { display: flex; flex-direction: column; gap: 16px; }
.about p { font-size: 15.5px; line-height: 1.65; color: var(--body); }
.about__notes { padding-top: 16px; border-top: 1px solid var(--line); }
.about__notes h3 { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.about__notes p { font-size: 14.5px; color: var(--muted); }

.buy-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.buy-card__label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.buy-card__price { font-family: var(--display); font-stretch: 108%; font-size: 36px; font-weight: 700; color: var(--blue); letter-spacing: -0.015em; line-height: 1.1; }
.divider-text { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); margin-block: 2px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.visit { display: flex; gap: 10px; padding: 14px; background: var(--sand-light); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; color: var(--body); }
.visit .icon { color: var(--muted); margin-top: 1px; }
.visit strong { display: block; color: var(--ink); }

/* One element is sticky — nothing can slide underneath it — and only on screens tall enough to show all of it. */
@media (min-width: 981px) and (min-height: 820px) {
  .buy-card { position: sticky; top: calc(var(--header) + 20px); }
}
@media (max-width: 1100px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .detail { grid-template-columns: 1fr; }
}

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 26, 58, 0.08);
}
.sticky-cta__price { margin-right: auto; padding-left: 4px; line-height: 1.2; }
.sticky-cta__price span { display: block; font-size: 11px; color: var(--muted); }
.sticky-cta__price strong { font-family: var(--display); font-stretch: 108%; font-size: 19px; color: var(--blue); }
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 84px; }
}

/* ------------------------------------------------------------------- forms */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.field { margin-bottom: 14px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); font-size: 15px; color: var(--ink);
}
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
textarea.input { height: auto; min-height: 82px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--active); box-shadow: 0 0 0 3px var(--active-soft); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }

.form-message { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14.5px; line-height: 1.5; }
.form-message--ok { background: #e7f6ee; color: var(--success); }
.form-message--error { background: #fdeceb; color: var(--danger); margin-bottom: 14px; }
.form-message strong { display: block; }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--body); background: var(--white); margin: 0;
}
.segmented input:checked + label { border-color: var(--blue); background: var(--blue); color: var(--white); font-weight: 600; }
.segmented input:focus-visible + label { outline: 2px solid var(--active); outline-offset: 2px; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr; }
}

.form-section + .form-section { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-section__title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

.check-list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--ink); }
.check-list__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--active-soft); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }

.contact-list { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; font-size: 15px; color: var(--body); }
.contact-list .icon { color: var(--blue); margin-top: 2px; }
.contact-list strong { display: block; color: var(--ink); font-size: 13px; }

/* ------------------------------------------------------------------- modal */

.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: rgba(0, 19, 43, 0.6);
}
.modal__panel { position: relative; width: min(480px, 100%); background: var(--white); border-radius: var(--radius); padding: 28px; }
.modal__title { font-size: 24px; margin-bottom: 6px; padding-right: 32px; }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none;
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.modal__vehicle { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(0, 10, 22, 0.94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 84vh; object-fit: contain; border-radius: 4px; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--white); display: grid; place-items: center;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cdd9e6; font-size: 14px; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--blue-night); color: #9fb1c4; padding-block: 48px 26px; }
.site-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand__logo { height: 18px; }
.site-footer .brand__rule { background: rgba(255, 255, 255, 0.2); }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__tag { color: #7f93a8; }
.site-footer__about { font-size: 14px; line-height: 1.65; margin-top: 18px; max-width: 320px; }
.site-footer h2 { font-family: var(--text); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #6f8499; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #c3d0dd; font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.site-footer li { font-size: 14px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12.5px; color: #6f8499;
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------- simple pages */

.center-card { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 28px; }
.center-card__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--active-soft); color: var(--blue); }
.center-card__icon--error { background: #fdeceb; color: var(--danger); }
.center-card h1 { font-size: 30px; }
.center-card p { color: var(--muted); }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ------------------------------------------------------------- branches -- */
.branch-card__map { position: relative; aspect-ratio: 4 / 3; max-width: 100%; margin-block: 18px 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--sand-light); }
.branch-card__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.site-footer__grid li + li { margin-top: 8px; }
