/* ─────────────────────────────────────────────────────────────
   誠鑫國際汽車 · 線上車庫
   Dark warm-black + metallic gold — deployable static site theme
   ───────────────────────────────────────────────────────────── */

:root {
  --bg-0: #0A0907;
  --bg-1: #14110C;
  --bg-2: #1E1913;
  --bg-3: #2A2218;
  --bg-glass: rgba(20, 17, 12, 0.78);

  --line: rgba(212, 168, 87, 0.10);
  --line-strong: rgba(212, 168, 87, 0.24);

  --gold: #D4A857;
  --gold-light: #EFD08A;
  --gold-deep: #9B7530;
  --gold-shadow: rgba(212, 168, 87, 0.32);
  --gold-gradient: linear-gradient(135deg, #EFD08A 0%, #D4A857 38%, #9B7530 72%, #C99948 100%);

  --text-0: #F5EDE0;
  --text-1: #B8AC97;
  --text-2: #6F6553;
  --text-on-gold: #1A130A;

  --hot:  #E26A4C;
  --ok:   #6FB591;
  --warn: #E0B25C;
  --bad:  #D45050;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --f-zh:   'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --f-en:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --max-w: 1280px;
}

/* ─── Light mode override ─── */
:root[data-mode="light"] {
  --bg-0: #FAF6EA;
  --bg-1: #FFFFFF;
  --bg-2: #F4EBD6;
  --bg-3: #EADEBF;
  --bg-glass: rgba(255, 252, 244, 0.82);
  --line: rgba(155, 117, 48, 0.12);
  --line-strong: rgba(155, 117, 48, 0.28);
  --gold: #9B7530;
  --gold-light: #C99948;
  --gold-deep: #6B4F1E;
  --gold-shadow: rgba(155, 117, 48, 0.18);
  --gold-gradient: linear-gradient(135deg, #DDB269 0%, #B98A2F 45%, #6B4F1E 100%);
  --text-0: #1A130A;
  --text-1: #5C503D;
  --text-2: #9A8D77;
  --text-on-gold: #1A130A;
  --hot:  #C8472A;
  --ok:   #4B8F6C;
  --warn: #B98A2F;
  --bad:  #B53939;
}
:root[data-mode="light"] .car-stripe {
  background:
    repeating-linear-gradient(135deg,
      rgba(155,117,48,0.10) 0,
      rgba(155,117,48,0.10) 14px,
      rgba(155,117,48,0.04) 14px,
      rgba(155,117,48,0.04) 28px),
    linear-gradient(180deg, #F5EBD2 0%, #EADEBF 100%);
}
:root[data-mode="light"] .map-block iframe,
:root[data-mode="light"] .info-card iframe { filter: none; }
:root[data-mode="light"] .contact-dock__btn { background: var(--bg-1); }
:root[data-mode="light"] .contact-dock__btn--line { background: #06C755; }
:root[data-mode="light"] .lb { background: rgba(20,15,8,0.96); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-0); }
body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--f-zh);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ─── Type utilities ─── */
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num  { font-family: var(--f-en);   font-variant-numeric: tabular-nums; }
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.muted { color: var(--text-1); }
.dim   { color: var(--text-2); }

/* ─── Layout shell ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 720px) { .container { padding: 0 16px; } }

/* ─── Header ─── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-head__row {
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gold-gradient);
  display: grid; place-items: center;
  color: var(--text-on-gold);
  font-family: var(--f-en); font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 20px var(--gold-shadow);
  overflow: hidden;
  flex-shrink: 0;
}
.brand__mark--logo {
  background: #000;
  border: 1px solid var(--line-strong);
}
.brand__mark--logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.brand__name { font-weight: 700; letter-spacing: 0.02em; font-size: 16px; }
.brand__en   { font-family: var(--f-en); color: var(--text-2); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-sm);
  color: var(--text-1);
  font-weight: 500; font-size: 14px;
  transition: background .15s, color .15s;
}
.nav a:hover { color: var(--text-0); background: var(--bg-2); }
.nav a.active { color: var(--gold); }
.head-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 16px var(--gold-shadow);
}
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-1);
  font-size: 16px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.theme-toggle:hover { color: var(--gold); background: var(--bg-3); }
@media (max-width: 720px) {
  .site-head__row { height: 56px; gap: 10px; }
  .brand__en { display: none; }
  .nav { display: none; }
}

/* ─── Mobile bottom nav ─── */
.mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.mob-nav__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.mob-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px; color: var(--text-2); font-size: 11px;
}
.mob-nav a.active { color: var(--gold); }
.mob-nav__ico { font-size: 18px; line-height: 1; }
@media (max-width: 720px) {
  .mob-nav { display: block; }
  body { padding-bottom: 64px; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px;
  background: var(--bg-2);
  color: var(--text-0);
  border: 1px solid var(--line);
  transition: background .15s, border-color .15s, transform .08s;
  cursor: pointer;
}
.btn:hover { background: var(--bg-3); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border-color: transparent;
  box-shadow: 0 8px 22px var(--gold-shadow);
}
.btn--gold:hover { background: var(--gold-gradient); filter: brightness(1.05); }
.btn--line { background: #06C755; color: #fff; border-color: transparent; }
.btn--line:hover { background: #05b04c; }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--sm { padding: 7px 12px; font-size: 12px; }

/* ─── Card ─── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.card--hover { transition: border-color .18s, transform .18s; }
.card--hover:hover { border-color: var(--line-strong); transform: translateY(-2px); }

/* ─── Striped car placeholder ─── */
.car-stripe {
  background:
    repeating-linear-gradient(135deg,
      rgba(212,168,87,0.10) 0,
      rgba(212,168,87,0.10) 14px,
      rgba(212,168,87,0.04) 14px,
      rgba(212,168,87,0.04) 28px),
    linear-gradient(180deg, #1E1913 0%, #0E0B08 100%);
  position: relative;
}
.car-stripe::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(212, 168, 87, 0.55);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px;
}

/* uploaded photo cover (overrides striped placeholder) */
.car-card__cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.gallery__main .gallery__img + .car-stripe::before { display: none; }

/* admin photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.photo-slot {
  aspect-ratio: 4/3;
  border-radius: 8px;
  border: 1px dashed var(--line-strong);
  background: var(--bg-2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.photo-slot:hover { border-color: var(--gold); background: var(--bg-3); }
.photo-slot.has-img { border-style: solid; border-color: var(--line); }
.photo-slot.empty::before {
  content: '+ 上傳';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-2); font-size: 12px;
  font-family: var(--f-zh);
  letter-spacing: 0.04em;
}
.photo-slot.dragover { border-color: var(--gold); border-style: solid; background: var(--bg-3); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot__rm {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,0.78); color: #fff;
  border: 0; font-size: 12px;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 2;
}
.photo-slot__rm:hover { background: var(--bad); }
.photo-slot__badge {
  position: absolute; bottom: 6px; left: 6px;
  background: var(--gold-gradient); color: var(--text-on-gold);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.04em;
}
.photo-slot.uploading::after {
  content: '處理中…';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.6);
  color: var(--gold);
  font-size: 11px;
}

/* ─── Badges & chips ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
}
.badge--hot { background: rgba(226,106,76,0.16); color: var(--hot); }
.badge--new { background: rgba(111,181,145,0.16); color: var(--ok); }
.badge--gold { background: rgba(212,168,87,0.16); color: var(--gold); }
.badge--sold { background: rgba(0,0,0,0.6); color: var(--text-1); border: 1px solid var(--line); }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-1);
}
.chip strong { color: var(--text-0); font-weight: 600; }

/* ─── Form controls ─── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; color: var(--text-1); letter-spacing: 0.04em; }
.input, .select, .textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-0);
  padding: 11px 13px;
  border-radius: var(--r-sm);
  width: 100%;
  font-size: 14px;
  transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold);
}
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-1) 50%),
                    linear-gradient(-45deg, transparent 50%, var(--text-1) 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ─── Section headings ─── */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.section-head__title { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: 0.01em; }
.section-head__sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.eyebrow {
  display: inline-block;
  font-family: var(--f-zh);
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}
.eyebrow::before {
  content: '— ';
  color: var(--gold-deep);
  font-family: var(--f-en);
}

/* ─── Footer ─── */
.site-foot {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-0) 0%, #07060410 100%);
  padding: 36px 0 28px;
  color: var(--text-2);
  font-size: 13px;
}
.site-foot__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}
.site-foot h4 { color: var(--text-1); font-size: 13px; margin: 0 0 12px; font-weight: 600; letter-spacing: 0.04em; }
.site-foot a { color: var(--text-1); display: block; padding: 4px 0; }
.site-foot a:hover { color: var(--gold); }
.site-foot__bottom {
  border-top: 1px solid var(--line);
  margin-top: 28px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--text-2);
}
@media (max-width: 720px) {
  .site-foot__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ─── Scrollbar in main page ─── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a2d1c; }

/* ─── Toast ─── */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text-0);
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* ─── Floating contact dock ─── */
.contact-dock {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  display: flex; flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.contact-dock__btn {
  display: flex; align-items: center; gap: 0;
  height: 56px;
  padding: 0 22px 0 0;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-0);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0,0,0,0.45);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.contact-dock__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0,0,0,0.55); }
.contact-dock__btn .ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}
.contact-dock__btn .label {
  font-size: 14px;
  letter-spacing: 0.02em;
}
.contact-dock__btn--line {
  background: #06C755; color: #fff; border-color: transparent;
  animation: dockPulse 2.4s ease-in-out infinite;
}
.contact-dock__btn--gold { background: var(--gold-gradient); color: var(--text-on-gold); border-color: transparent; }
@keyframes dockPulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(6,199,85,0.35), 0 0 0 0 rgba(6,199,85,0.55); }
  50%      { box-shadow: 0 10px 32px rgba(6,199,85,0.45), 0 0 0 12px rgba(6,199,85,0); }
}
@media (max-width: 720px) {
  .contact-dock { right: 12px; bottom: 78px; gap: 10px; }
  .contact-dock__btn { height: 50px; padding-right: 18px; font-size: 13px; }
  .contact-dock__btn .ico { width: 50px; height: 50px; font-size: 21px; }
}

/* ─── Loan calculator ─── */
.loan-calc {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 18px;
}
.loan-calc__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.loan-calc__bar .l { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-1); }
.loan-calc__bar .l b { color: var(--gold); font-family: var(--f-en); font-size: 17px; font-weight: 700; }
.loan-calc__bar .toggle { color: var(--text-2); font-size: 12px; transition: transform .15s; }
.loan-calc.open .loan-calc__bar .toggle { transform: rotate(180deg); }
.loan-calc__body {
  display: none;
  padding: 4px 16px 18px;
  border-top: 1px solid var(--line);
}
.loan-calc.open .loan-calc__body { display: block; }
.loan-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.loan-row label { font-size: 12px; color: var(--text-2); width: 80px; flex-shrink: 0; }
.loan-row input[type="range"] { flex: 1; accent-color: var(--gold); }
.loan-row .v { font-family: var(--f-en); font-weight: 600; color: var(--text-0); min-width: 64px; text-align: right; }
.loan-calc__result {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  background: rgba(212,168,87,0.08);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.loan-calc__result .item .k { color: var(--text-2); font-size: 11px; }
.loan-calc__result .item .v { color: var(--gold); font-family: var(--f-en); font-weight: 700; font-size: 15px; }
.loan-calc__note { font-size: 11px; color: var(--text-2); margin-top: 8px; line-height: 1.6; }

/* ─── Lightbox ─── */
.lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center; justify-content: center;
}
.lb.on { display: flex; }
.lb__stage {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.lb__img {
  max-width: 95vw; max-height: 86vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lb__btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.lb__btn:hover { background: rgba(0,0,0,0.85); color: var(--gold); }
.lb__btn--close { top: 20px; right: 20px; font-size: 22px; }
.lb__btn--prev  { top: 50%; left: 20px; transform: translateY(-50%); }
.lb__btn--next  { top: 50%; right: 20px; transform: translateY(-50%); }
.lb__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(0,0,0,0.6);
  border-radius: 999px;
  color: #fff; font-family: var(--f-mono); font-size: 13px;
}
.lb__caption {
  position: absolute; bottom: 60px; left: 0; right: 0; text-align: center;
  color: var(--text-1); font-size: 13px;
  padding: 0 20px;
}
@media (max-width: 720px) {
  .lb__btn { width: 44px; height: 44px; font-size: 22px; }
  .lb__btn--close { top: 14px; right: 14px; }
  .lb__btn--prev  { left: 8px; }
  .lb__btn--next  { right: 8px; }
}
.gallery__main { cursor: zoom-in; }

/* ─── Recently viewed strip ─── */
.recent-strip {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  padding: 4px 0 14px;
  scroll-snap-type: x mandatory;
}
.recent-strip::-webkit-scrollbar { height: 6px; }
.recent-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
.recent-card .car-card__media { aspect-ratio: 16/10; }
.recent-card .car-card__body { padding: 10px 12px 12px; }
.recent-card .car-card__title { font-size: 13px; margin-bottom: 6px; }
.recent-card .car-card__price .gold-text { font-size: 17px; }
.recent-card .car-card__chips { display: none; }

/* ─── Per-car video embed ─── */
.car-video {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.car-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ─── Description block ─── */
.car-desc {
  white-space: pre-wrap;
  color: var(--text-0);
  font-size: 14.5px;
  line-height: 1.85;
}
.car-desc::first-line { font-weight: 600; color: var(--gold-light); }

/* ─── Modal (generic, for find-car form) ─── */
.modal {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.on { display: flex; }
.modal__card {
  width: 100%; max-width: 480px;
  max-height: 92vh;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: pop .18s;
  display: flex; flex-direction: column;
}
@keyframes pop {
  from { transform: scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  flex-shrink: 0;
}
.modal__head h3 { margin: 0; font-size: 18px; flex: 1; }
.modal__head .close { color: var(--text-1); font-size: 22px; }
.modal__body { padding: 22px 24px; flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.modal__foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: end; flex-shrink: 0; background: var(--bg-1); }

/* ─── Reviews ─── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.review-bubble {
  position: relative;
  padding: 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .15s, transform .15s;
}
.review-bubble:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.review-bubble__stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.review-bubble__content {
  color: var(--text-0);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 14px;
  /* clamp to 5 lines on grid */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-bubble__foot {
  display: flex; justify-content: space-between; align-items: end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-2);
}
.review-bubble__name { color: var(--text-0); font-weight: 700; font-size: 13px; }
.review-bubble__car { color: var(--gold); font-size: 11px; margin-top: 2px; font-family: var(--f-en); }

/* star rating input */
.star-rate {
  display: inline-flex; gap: 4px;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}
.star-rate .star {
  color: var(--bg-3);
  transition: color .1s;
}
.star-rate .star.on { color: var(--gold); }
.star-rate:hover .star { color: var(--bg-3); }
.star-rate .star.hover, .star-rate .star.hover ~ .star { color: var(--gold-light); }
