/* Getaway Deals — "warm editorial escape"
   Deep forest + warm paper + ochre. Fraunces display over Hanken Grotesk.
   Depth via grain + layered shadows; polish via precise type & spacing. */

:root {
  /* ink / text */
  --ink: #16241c;
  --ink-soft: #46564b;
  --ink-faint: #6d7a70;
  /* surfaces */
  --paper: #f3eddf;
  --paper-2: #ece4d2;
  --card: #fffcf5;
  /* brand */
  --forest: #123328;
  --forest-2: #1c4636;
  --teal: #2b7a72;
  --ochre: #c4922e;
  --ochre-soft: #e6b955;
  --coral: #d75e37;
  --coral-dark: #b0451f;
  /* structure */
  --line: rgba(22, 36, 28, 0.10);
  --line-2: rgba(22, 36, 28, 0.16);
  /* shadow: layered, soft */
  --sh-1: 0 1px 2px rgba(23, 45, 34, 0.06), 0 6px 16px rgba(23, 45, 34, 0.07);
  --sh-2: 0 2px 6px rgba(23, 45, 34, 0.08), 0 18px 40px rgba(23, 45, 34, 0.16);
  --radius: 16px;
  --radius-sm: 11px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font-sans);
  color-scheme: light;
}

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

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

/* subtle paper grain for tactility (very low opacity) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; }
::selection { background: rgba(196, 146, 46, 0.28); }
a { color: inherit; }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { height: 8px; width: 8px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 4px; }

/* ============ hero ============ */
.hero {
  position: relative;
  color: #f4ecdb;
  overflow: hidden;
  padding: 30px 22px 46px;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(230, 185, 85, 0.18), transparent 55%),
    linear-gradient(158deg, #163b2d 0%, var(--forest) 46%, #0e2c22 100%);
}
/* faint back ridge for depth behind the paper skyline */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 66px;
  background: rgba(9, 30, 22, 0.55);
  clip-path: polygon(0 100%, 0 62%, 12% 30%, 22% 58%, 34% 22%, 46% 52%, 58% 28%,
    70% 55%, 82% 24%, 92% 50%, 100% 34%, 100% 100%);
}
.hero-skyline {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 44px;
  background: var(--paper);
  z-index: 1;
  clip-path: polygon(0% 100%, 0% 72%, 8% 46%, 16% 66%, 24% 32%, 33% 61%, 42% 42%,
    50% 68%, 58% 36%, 68% 59%, 78% 26%, 88% 56%, 100% 42%, 100% 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 15px; }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  color: var(--ochre-soft);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
.brand h1 {
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
  line-height: 1.02;
}
.tagline {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: rgba(224, 235, 220, 0.82);
  max-width: 48ch;
  font-weight: 400;
}

.hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.stat-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(246, 236, 214, 0.24);
  color: #f4ecdb;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.scan-indicator {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.02em;
  color: rgba(244, 236, 219, 0.7);
  animation: scan-fade-in 0.6s ease both;
}
.scan-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ochre-soft);
  animation: scan-pulse 1.7s ease-in-out infinite;
}
@keyframes scan-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.82); box-shadow: 0 0 0 0 rgba(230, 185, 85, 0.45); }
  50%      { opacity: 1;   transform: scale(1);    box-shadow: 0 0 0 6px rgba(230, 185, 85, 0); }
}
@keyframes scan-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ============ filter bar ============ */
.filterbar-wrap {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 237, 223, 0.86);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.filterbar {
  max-width: 1180px; margin: 0 auto;
  display: flex; gap: 15px; align-items: flex-end;
  padding: 13px 20px 12px;
  overflow-x: auto;
}
.field { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.field > span {
  font-size: 0.63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-faint);
}
.field select {
  font: inherit; font-size: 0.86rem; font-weight: 500;
  padding: 9px 30px 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background-color: var(--card);
  color: var(--ink); min-width: 150px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2346564b' stroke-width='1.6'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select:hover { border-color: var(--ink-faint); }
.field select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(18, 51, 40, 0.10); outline: none; }

.segmented, .stepper {
  display: flex; align-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--card);
}
.segmented button {
  font: inherit; font-size: 0.82rem; font-weight: 500;
  border: none; background: transparent; padding: 8px 13px; cursor: pointer;
  color: var(--ink-soft); border-right: 1px solid var(--line);
  transition: background 0.15s, color 0.15s;
}
.segmented button:last-child { border-right: none; }
.segmented button:hover { background: rgba(18, 51, 40, 0.05); }
.segmented button.active { background: var(--forest); color: #f4ecdb; font-weight: 600; }

.stepper button {
  font: inherit; font-size: 1.05rem; width: 34px; height: 36px;
  border: none; background: transparent; cursor: pointer; color: var(--coral-dark);
  transition: background 0.15s;
}
.stepper button:hover { background: rgba(215, 94, 55, 0.08); }
.stepper output { min-width: 46px; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--ink); }

.pet-toggle {
  font: inherit; font-size: 0.82rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink-soft); cursor: pointer; white-space: nowrap; align-self: center;
  transition: all 0.15s;
}
.pet-toggle .paw { font-size: 1rem; }
.pet-toggle:hover { border-color: var(--teal); }
.pet-toggle.active { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 4px 12px rgba(43, 122, 114, 0.28); }

.feature-filter {
  display: flex; flex-wrap: wrap; gap: 7px;
  max-width: 1180px; margin: 0 auto; padding: 0 20px 12px;
}
.feat-toggle {
  font: inherit; font-size: 0.76rem; font-weight: 500;
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-soft);
  transition: all 0.15s;
}
.feat-toggle:hover { border-color: var(--ink-faint); }
.feat-toggle.active {
  background: var(--forest); color: #f4ecdb; border-color: var(--forest);
  box-shadow: 0 3px 10px rgba(18, 51, 40, 0.22);
}

/* ============ subscribe bar ============ */
.subscribe-bar {
  color: #f4ecdb;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(230, 185, 85, 0.14), transparent 60%),
    linear-gradient(120deg, var(--forest) 0%, #163b2d 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.subscribe-inner {
  max-width: 1180px; margin: 0 auto; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
}
.subscribe-copy strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.subscribe-copy span { font-size: 0.82rem; opacity: 0.78; }
.subscribe-form { display: flex; gap: 9px; margin-left: auto; }
.subscribe-form input {
  padding: 11px 14px; border-radius: 10px; font: inherit; font-size: 0.9rem; min-width: 220px;
  border: 1px solid rgba(246, 236, 214, 0.22);
  background: rgba(255, 255, 255, 0.08); color: #f4ecdb;
  transition: border-color 0.15s, background 0.15s;
}
.subscribe-form input::placeholder { color: rgba(244, 236, 219, 0.5); }
.subscribe-form input:focus { outline: none; border-color: var(--ochre-soft); background: rgba(255, 255, 255, 0.12); }
.btn-subscribe {
  padding: 11px 20px; border-radius: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.9rem;
  background: linear-gradient(180deg, var(--ochre-soft), var(--ochre));
  color: #2a1c04; box-shadow: 0 4px 14px rgba(196, 146, 46, 0.35);
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}
.btn-subscribe:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 6px 18px rgba(196, 146, 46, 0.45); }
.btn-subscribe:active { transform: translateY(0); }
.subscribe-msg { width: 100%; font-size: 0.82rem; font-weight: 500; color: var(--ochre-soft); }

/* ============ grid + cards ============ */
main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 8px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 620px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-1);
  cursor: pointer;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s;
  animation: card-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.10s; }
.card:nth-child(4) { animation-delay: 0.14s; }
.card:nth-child(5) { animation-delay: 0.18s; }
.card:nth-child(6) { animation-delay: 0.22s; }
.card:nth-child(7) { animation-delay: 0.26s; }
.card:nth-child(8) { animation-delay: 0.30s; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card:hover, .card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}

.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #ddd7c4;
  background-size: cover; background-position: center;
}
.card-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 33, 25, 0.62) 0%, rgba(15, 33, 25, 0.10) 34%, transparent 60%);
}

.tag-price {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  background: linear-gradient(180deg, var(--coral), var(--coral-dark));
  color: #fff; font-weight: 800; font-size: 1.12rem;
  padding: 6px 12px; border-radius: 11px;
  box-shadow: 0 4px 12px rgba(176, 69, 31, 0.4);
  letter-spacing: -0.01em;
}
.tag-price small { font-weight: 500; font-size: 0.66rem; opacity: 0.92; letter-spacing: 0; }

.tag-pets {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: rgba(43, 122, 114, 0.94); color: #fff; font-size: 0.9rem;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 999px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--teal);
}
.card-top .dates { color: var(--ink-faint); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* "Great Drives" road badge — the enthusiast hook ("🏁 near Tail of the Dragon") */
.drive-road {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 2px 0 1px; padding: 2px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--forest); background: rgba(196, 146, 46, 0.16);
  border: 1px solid rgba(196, 146, 46, 0.45);
  width: fit-content; max-width: 100%;
}

.title {
  font-family: var(--font-display); font-size: 1.08rem; line-height: 1.24;
  font-weight: 500; color: var(--ink); letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-blurb {
  margin: 0 0 2px; font-size: 0.83rem; line-height: 1.4;
  color: var(--ink-soft); font-style: italic;
  font-family: var(--font-display); font-weight: 400;
}

.badges, .feats, .options { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(196, 146, 46, 0.16); color: #856320; white-space: nowrap;
}
.chip-price_drop { background: rgba(215, 94, 55, 0.15); color: var(--coral-dark); }
.chip-below_own_rate { background: rgba(43, 122, 114, 0.15); color: #216760; }
.chip-below_comps { background: rgba(196, 146, 46, 0.18); color: #856320; }

.feats .feat {
  font-size: 0.68rem; font-weight: 500; padding: 3px 9px; border-radius: 999px;
  background: rgba(18, 51, 40, 0.06); color: var(--ink-soft);
}

.options { margin: 2px 0 4px; }
.options .opt {
  font-size: 0.72rem; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.options .opt-more { background: transparent; border-style: dashed; }

.card-actions {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding-top: 6px;
}

.btn-ghost {
  font: inherit; font-size: 0.76rem; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--ink-faint); background: rgba(18, 51, 40, 0.04); }

.btn-book {
  font: inherit; font-size: 0.78rem; font-weight: 700; color: #f4ecdb;
  background: var(--forest); border-radius: 999px; padding: 8px 15px;
  text-decoration: none; white-space: nowrap; transition: background 0.15s, transform 0.12s;
}
.btn-book:hover { background: var(--forest-2); transform: translateY(-1px); }

.tip-link {
  display: inline-block; margin: 2px 0 0; font-size: 0.72rem;
  color: var(--ink-faint); opacity: 0.75; text-decoration: none; transition: all 0.15s;
}
.tip-link:hover { opacity: 1; color: var(--ochre); }

.load-more {
  display: block; margin: 28px auto 8px; padding: 11px 26px; font-size: 0.85rem;
  border-radius: 999px;
}

/* ============ empty / loading ============ */
.empty { text-align: center; padding: 72px 20px; color: var(--ink-soft); }
.empty p { margin: 5px 0; font-size: 1rem; }
.empty .hint { font-size: 0.86rem; opacity: 0.8; }
#loading-state p { font-family: var(--font-display); font-style: italic; }
.hidden { display: none !important; }

/* ============ footer ============ */
.site-footer {
  max-width: 1180px; margin: 0 auto; padding: 16px 20px 44px;
  color: var(--ink-faint); font-size: 0.78rem; text-align: center;
}

/* ============ modal ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 33, 25, 0.5);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 620px) { .modal-backdrop { align-items: center; padding: 24px; } }
body.modal-open { overflow: hidden; }

.modal {
  position: relative; background: var(--card);
  width: 100%; max-width: 470px; max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  animation: modal-up 0.32s cubic-bezier(0.2, 0.75, 0.2, 1);
}
@keyframes modal-up { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 620px) { .modal { border-radius: 22px; } }

.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(15, 33, 25, 0.5); color: #fff; font-size: 1.3rem; line-height: 1;
  cursor: pointer; backdrop-filter: blur(4px); transition: background 0.15s;
}
.modal-close:hover { background: rgba(15, 33, 25, 0.75); }

.modal-photo {
  aspect-ratio: 16 / 9; background-size: cover; background-position: center;
  background-color: #ddd7c4; border-radius: 22px 22px 0 0;
}

.modal-body { padding: 18px 22px 26px; display: flex; flex-direction: column; gap: 11px; }
.modal-top {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--teal);
}
.modal-top .dates { color: var(--ink-faint); font-weight: 500; text-transform: none; letter-spacing: 0; }
#modal-title { font-size: 1.4rem; line-height: 1.22; font-weight: 500; letter-spacing: -0.01em; }
.modal-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-price { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--coral-dark); }
.tag-pets.hidden { display: none; }
#modal-pets:not(.hidden) {
  position: static; width: auto; height: auto; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; box-shadow: none;
}

.sparkline-wrap { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.sparkline-label {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 8px;
}
#modal-sparkline { width: 100%; height: 84px; display: block; }
.spark-area { fill: rgba(43, 122, 114, 0.13); stroke: none; }
.spark-line { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.spark-dot { stroke: #fff; stroke-width: 1.5; }
.spark-dot-min { fill: var(--coral); }
.spark-dot-last { fill: var(--forest); }

.modal-body .btn-book { margin-top: 10px; text-align: center; padding: 12px 16px; font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ bold hero hook (brand direction) ============ */
.hero-inner { display: block; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.01em; color: #f4ecdb; text-transform: lowercase;
}
.wm-gone { font-style: italic; color: var(--ochre-soft); }
.hero-hook {
  margin: 30px 0 0;
  font-family: var(--font-display); font-weight: 600;
  line-height: 0.96; letter-spacing: -0.03em;
  font-size: clamp(2.5rem, 8.5vw, 4.8rem);
}
.hook-slam { display: block; color: #f4ecdb; font-style: italic; font-weight: 500; }
.hook-slam .ast { color: var(--ochre-soft); font-style: normal; font-weight: 600; margin: 0 0.04em; opacity: 0.8; }
.hook-until {
  display: block; font-style: normal; font-weight: 600;
  color: rgba(244, 236, 219, 0.9); font-size: 0.56em; margin-top: 0.18em;
}
.hook-word {
  color: var(--ochre-soft);
  border-bottom: 3px solid rgba(230, 185, 85, 0.38);
  padding-bottom: 0.02em; transition: opacity 0.26s ease;
}
.hero .tagline { margin-top: 20px; max-width: 42ch; font-size: 0.95rem; }
@media (min-width: 620px) { .hero { padding: 44px 24px 58px; } }

/* ── Gravel badge variant (distinct from the ochre paved 🏁 badge) ── */
.drive-road.gravel {
  color: var(--teal);
  background: rgba(43, 122, 114, 0.14);
  border-color: rgba(43, 122, 114, 0.42);
}

/* ── The Drives Atlas page ── */
.drives-hero { padding-bottom: 40px; }
.atlas-back {
  font-size: 0.82rem; font-weight: 600; color: rgba(244, 236, 219, 0.72);
  text-decoration: none; white-space: nowrap;
}
.atlas-back:hover { color: #f4ecdb; }
.atlas { max-width: 1160px; margin: 0 auto; padding: 26px 20px 60px; }

/* email gate */
.atlas-gate { display: flex; justify-content: center; padding: 30px 0; }
.gate-card {
  max-width: 540px; text-align: center; background: var(--paper-2);
  border: 1px solid rgba(18, 51, 40, 0.12); border-radius: 18px;
  padding: 40px 34px; box-shadow: 0 20px 50px -30px rgba(18, 51, 40, 0.5);
}
.gate-stat {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ochre); background: rgba(196, 146, 46, 0.14);
  border: 1px solid rgba(196, 146, 46, 0.4); border-radius: 999px; padding: 4px 12px;
}
.gate-card h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem;
  margin: 16px 0 8px; color: var(--ink); letter-spacing: -0.01em;
}
.gate-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin: 0 0 18px; }
.gate-form { justify-content: center; }
/* the gate sits on light paper, so undo the dark-hero input styling */
.gate-form input {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-2);
}
.gate-form input::placeholder { color: var(--ink-faint); }
.gate-form input:focus { background: var(--card); border-color: var(--ochre); }
.gate-fine { font-size: 0.78rem; color: var(--ink-faint); margin: 14px 0 0; }

/* atlas toolbar + regions */
.atlas-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 22px;
}
.atlas-count {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft);
}
.atlas-typefilter { display: flex; gap: 8px; }
.atlas-region { margin-bottom: 34px; }
.atlas-region-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--forest); letter-spacing: -0.01em; margin: 0 0 14px;
  border-bottom: 1px solid rgba(18, 51, 40, 0.12); padding-bottom: 8px;
}
.atlas-region-title span { color: var(--ink-faint); font-weight: 500; font-size: 0.85rem; }
.atlas-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.atlas-card {
  background: var(--paper); border: 1px solid rgba(18, 51, 40, 0.1);
  border-radius: 14px; padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.atlas-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(18, 51, 40, 0.55); }
.atlas-card-top { display: flex; justify-content: space-between; align-items: center; }
.atlas-state { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-faint); }
.atlas-road {
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  line-height: 1.22; color: var(--ink); margin: 2px 0 0;
}
.atlas-base { font-size: 0.84rem; color: var(--ink-soft); font-weight: 500; }
.atlas-links {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(18, 51, 40, 0.08);
  display: flex; flex-direction: column; gap: 4px;
}
.atlas-map {
  font-size: 0.82rem; font-weight: 700; color: var(--teal);
  text-decoration: none; align-self: flex-start;
}
.atlas-map:hover { color: var(--forest); }
.atlas-deals {
  font-size: 0.82rem; font-weight: 700; color: var(--ochre);
  text-decoration: none; align-self: flex-start;
}
.atlas-deals:hover { color: var(--forest); }
.atlas-deals.none { color: var(--ink-faint); font-weight: 500; }

/* "avoid highways" tip banner */
.atlas-tip {
  background: rgba(43, 122, 114, 0.1); border: 1px solid rgba(43, 122, 114, 0.28);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 20px;
  font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft);
}
.atlas-tip strong { color: var(--forest); }
.atlas-tip em { font-style: normal; font-weight: 700; color: var(--teal); }

/* atlas CTA on the main page */
.atlas-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em;
  color: #f4ecdb; background: rgba(244, 236, 219, 0.1);
  border: 1px solid rgba(244, 236, 219, 0.28); border-radius: 999px;
  padding: 7px 15px; text-decoration: none; transition: background 0.14s ease;
}
.atlas-cta:hover { background: rgba(244, 236, 219, 0.2); }

/* ── Measured-release teaser ── */
.release-teaser {
  background: var(--forest); color: #f4ecdb; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 18px; font-size: 0.9rem; line-height: 1.5;
}
.release-teaser strong { color: var(--ochre-soft); }

/* ── Leaderboard ── */
.leaderboard {
  background: var(--paper-2); border: 1px solid rgba(18,51,40,0.1);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 22px;
}
.leaderboard-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--forest); margin: 0 0 10px; }
.leaderboard-list { list-style: none; margin: 0; padding: 0; counter-reset: lb; }
.leaderboard-list li {
  counter-increment: lb; display: flex; justify-content: space-between; align-items: baseline;
  padding: 5px 0; border-bottom: 1px solid rgba(18,51,40,0.07); font-size: 0.9rem;
}
.leaderboard-list li::before { content: counter(lb) "."; color: var(--ochre); font-weight: 700; margin-right: 8px; }
.leaderboard-list .lb-handle { flex: 1; color: var(--ink-soft); }
.leaderboard-list .lb-count { font-weight: 700; color: var(--forest); }

/* ── Card social + member actions ── */
.atlas-social { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }
.atlas-stars { color: var(--ochre); letter-spacing: 1px; }
.drive-member { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(18,51,40,0.08); }
.drove-btn {
  font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  color: var(--forest); background: rgba(18,51,40,0.06);
  border: 1px solid rgba(18,51,40,0.16); border-radius: 999px; padding: 5px 12px;
  transition: background 0.14s;
}
.drove-btn:hover { background: rgba(18,51,40,0.12); }
.drove-btn.done { color: var(--teal); border-color: rgba(43,122,114,0.4); background: rgba(43,122,114,0.1); }
.review-form { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.rating-pick { display: flex; gap: 2px; }
.star { font: inherit; font-size: 1.15rem; line-height: 1; color: var(--ochre);
  background: none; border: none; cursor: pointer; padding: 0 1px; }
.review-text {
  font: inherit; font-size: 0.84rem; border: 1px solid var(--line-2);
  border-radius: 8px; padding: 6px 8px; resize: vertical; background: var(--card); color: var(--ink);
}
.post-review {
  align-self: flex-start; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  color: #f4ecdb; background: var(--forest); border: none; border-radius: 999px; padding: 5px 14px;
}
.review-msg { font-size: 0.78rem; color: var(--teal); font-weight: 600; }
