/* ==========================================================================
   Spice Page – shared styles (homepage + city pages)
   Light theme by default; dark theme via <html data-theme="dark">.
   ========================================================================== */

/* ---------- Fonts (self-hosted Poppins, latin subset) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

/* ---------- Theme tokens ---------- */
:root {
  /* brand (shared) */
  --brand: #e63946;          /* original Spice Page red */
  --brand-2: #ff8a3d;        /* chili orange */
  --stem: #5f9e2f;           /* chili stem green */
  --grad: linear-gradient(120deg, #e63946 0%, #f2543d 45%, #ff8a3d 100%);

  /* light theme (default) */
  --bg: #ffffff;
  --bg-alt: #fcf7f6;
  --surface: #ffffff;
  --surface-2: #f7f1f0;
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --border: rgba(60, 20, 28, .09);
  --border-strong: rgba(60, 20, 28, .16);
  --tint: rgba(60, 20, 28, .04);
  --tint-2: rgba(60, 20, 28, .07);
  --brand-tint: rgba(230, 57, 70, .08);
  --brand-tint-2: rgba(230, 57, 70, .14);

  --text: #1f1416;
  --text-soft: #4b3c3f;
  --muted: #7b6b6e;
  --brand-text: #d12a38;     /* red that passes contrast on white */
  --icon: #e63946;

  --header-bg: rgba(255, 255, 255, .78);
  --header-bg-solid: rgba(255, 255, 255, .95);
  --menu-bg: #ffffff;
  --popover-bg: #ffffff;
  --footer-bg: #faf5f4;
  --tile-bg: linear-gradient(160deg, #fff3f1 0%, #ffffff 75%);
  --tile-letters: rgba(230, 57, 70, .09);
  --hero-glow-1: rgba(230, 57, 70, .16);
  --hero-glow-2: rgba(255, 138, 61, .14);
  --hero-glow-3: rgba(230, 57, 70, .06);
  --grid-line: rgba(60, 20, 28, .05);
  --finder-bg: rgba(248, 240, 239, .92);
  --check-bg: rgba(95, 158, 47, .12);

  --shadow-sm: 0 1px 2px rgba(60, 20, 28, .05), 0 2px 8px -2px rgba(60, 20, 28, .06);
  --shadow: 0 12px 32px -14px rgba(60, 20, 28, .22);
  --shadow-lg: 0 30px 60px -28px rgba(60, 20, 28, .35);
  --glow: 0 0 0 1px rgba(230, 57, 70, .28), 0 14px 34px -14px rgba(230, 57, 70, .45);
  --backdrop: rgba(30, 14, 18, .45);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --stem: #8bc34a;
  --bg: #0f0b0d;
  --bg-alt: #140e11;
  --surface: #1b1418;
  --surface-2: #241a1f;
  --input-bg: #241a1f;
  --input-bg-focus: #2a1f25;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --tint: rgba(255, 255, 255, .04);
  --tint-2: rgba(255, 255, 255, .07);
  --brand-tint: rgba(230, 57, 70, .12);
  --brand-tint-2: rgba(230, 57, 70, .2);

  --text: #f6eff0;
  --text-soft: #cfc4c6;
  --muted: #9d9092;
  --brand-text: #ff5d69;
  --icon: #ff6b75;

  --header-bg: rgba(15, 11, 13, .72);
  --header-bg-solid: rgba(15, 11, 13, .92);
  --menu-bg: #120d10;
  --popover-bg: #1f171b;
  --footer-bg: #0b0809;
  --tile-bg: linear-gradient(160deg, #2a1a20 0%, #1a1216 70%);
  --tile-letters: rgba(255, 255, 255, .05);
  --hero-glow-1: rgba(230, 57, 70, .30);
  --hero-glow-2: rgba(255, 138, 61, .20);
  --hero-glow-3: rgba(230, 57, 70, .14);
  --grid-line: rgba(255, 255, 255, .035);
  --finder-bg: rgba(27, 20, 24, .85);
  --check-bg: rgba(139, 195, 74, .14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 25px 60px -25px rgba(0, 0, 0, .9);
  --glow: 0 0 0 1px rgba(230, 57, 70, .35), 0 12px 40px -10px rgba(230, 57, 70, .45);
  --backdrop: rgba(8, 5, 7, .78);

  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* smooth colour swap when toggling theme (class added briefly by JS) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, fill .3s ease !important;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: .975rem; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(230, 57, 70, .75); }
.btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(230, 57, 70, .85); filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--tint); border-color: var(--muted); }
.btn-light { background: #fff; color: #1a1013; }
.btn-light:hover { box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .4); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: var(--header-bg-solid); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: 150px; }

/* Main menu: "Categories" and "Cities" open full-width mega panels under the header */
.main-nav { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }
.nav-list { display: flex; gap: .15rem; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .75rem .5rem .9rem; border: 0; border-radius: 999px;
  background: none; color: var(--text-soft); font: inherit; font-weight: 500; font-size: .95rem; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.nav-trigger .ico { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.nav-trigger:hover, .nav-item.is-open .nav-trigger { color: var(--text); background: var(--tint-2); }
.nav-item.is-open .nav-trigger .ico { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 49;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--menu-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px -24px rgba(60, 20, 28, .28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .22s var(--ease), visibility 0s .22s;
}
.nav-item.is-open .mega,
.no-js .nav-item:hover .mega, .no-js .nav-item:focus-within .mega {
  opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .22s var(--ease);
}
.mega-inner { padding-block: 1.5rem 1.75rem; }
.mega-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.mega-title { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mega-col .mega-title { margin-bottom: .75rem; }
.mega-head-link, .mega-all {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--brand-text); font-size: .9rem; font-weight: 600; text-decoration: none;
}
.mega-all { display: flex; width: fit-content; margin-top: .35rem; }
.mega-links + .mega-all { margin-top: .9rem; }
.mega-head-link .ico, .mega-all .ico { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.mega-head-link:hover .ico, .mega-all:hover .ico { transform: translateX(3px); }

/* categories panel */
.mega-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem .75rem; }
.mega-cat {
  display: flex; align-items: flex-start; gap: .75rem; height: 100%; padding: .6rem .7rem; border-radius: 12px;
  color: var(--text); text-decoration: none; transition: background-color .15s;
}
.mega-cat:hover, .mega-cat:focus-visible, .mega-cat[aria-current] { background: var(--brand-tint); }
.mega-ico {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(140deg, rgba(230, 57, 70, .14), rgba(255, 138, 61, .08));
  border: 1px solid rgba(230, 57, 70, .2); color: var(--icon);
}
.mega-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega-cat-text { display: grid; min-width: 0; }
.mega-cat-text strong { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.mega-cat-text small { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.mega-cat:hover strong, .mega-cat[aria-current] strong { color: var(--brand-text); }

/* cities panel */
.mega-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr); gap: 2.5rem; }
.mega-links { display: grid; gap: .1rem 1rem; }
.mega-links--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-states { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: .9rem; }
.mega-links a {
  display: block; overflow: hidden; padding: .3rem .5rem; margin-inline: -.5rem; border-radius: 8px;
  color: var(--text-soft); font-size: .9rem; white-space: nowrap; text-overflow: ellipsis; text-decoration: none;
  transition: color .15s, background-color .15s;
}
.mega-states a { font-size: .85rem; padding-block: .2rem; }
.mega-links a:hover, .mega-links a:focus-visible { color: var(--brand-text); background: var(--brand-tint); }

/* city search (header + Cities panel): live results as links */
.city-search { position: relative; }
.city-search input { width: 100%; }
.city-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  max-height: 320px; overflow-y: auto; padding: .35rem;
  background: var(--menu-bg); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.city-search-results a, .city-search-results .none {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  padding: .55rem .7rem; border-radius: 9px; color: var(--text); font-size: .925rem; text-decoration: none;
}
.city-search-results a:hover, .city-search-results a:focus { background: var(--brand-tint-2); outline: none; }
.city-search-results a span { color: var(--muted); font-size: .8rem; }
.city-search-results mark { background: none; color: var(--brand-text); font-weight: 600; }
.city-search-results .none { color: var(--muted); }
.header-search { flex: 0 1 230px; margin-left: auto; }
.header-search input { height: 40px; border-radius: 999px; font-size: .9rem; }
.header-search > .ico { width: 1rem; height: 1rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--tint-2); }
.icon-btn .ico { width: 20px; height: 20px; }

/* theme toggle: show moon in light mode, sun in dark mode */
.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.theme-toggle:hover .ico { transform: rotate(-18deg); }
.theme-toggle .ico { transition: transform .3s var(--ease); }

.nav-toggle { display: none; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (min-width: 881px) {
  .theme-toggle { order: 3; }
}
@media (max-width: 1080px) and (min-width: 881px) {
  .main-nav .header-search { display: none; }
  .nav-cta { margin-left: auto; }
  .mega-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .mega-col--side { grid-column: 1 / -1; }
  .mega-states { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* phones/tablets: one scrollable drawer – city search, categories, popular cities, Post an ad */
@media (max-width: 880px) {
  .theme-toggle { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  body.nav-locked { overflow: hidden; }
  .main-nav {
    /* fixed inside the header (its backdrop-filter makes it the containing block), so size it explicitly */
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: .25rem 0 0;
    background: var(--menu-bg); border-top: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-trigger, .main-nav .header-search, .mega-title--states, .mega-states, .mega-cat-text small { display: none; }
  /* drawer order: find your city → categories → popular cities → more in state */
  .nav-item--cities, .nav-item--cities .mega, .nav-item--cities .mega-grid { display: contents; }
  .mega-col { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; padding-block: 1rem; }
  .mega-col { order: 3; }
  .mega-col--find { order: 1; }
  .nav-item--cats { order: 2; border-block: 1px solid var(--border); }
  .mega-col--side { order: 4; padding-top: 0; }
  .mega, .no-js .nav-item:hover .mega {
    position: static; max-height: none; overflow: visible;
    opacity: 1; visibility: visible; transform: none; transition: none;
    background: none; border: 0; box-shadow: none;
  }
  .mega-inner { padding-block: 1rem; }
  .mega-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .mega-cat { gap: .6rem; padding: .55rem; border: 1px solid var(--border); }
  .mega-ico { width: 34px; height: 34px; border-radius: 10px; }
  .mega-ico svg { width: 18px; height: 18px; }
  .mega-cat-text strong { font-size: .875rem; }
  .mega-links--2 { display: flex; flex-wrap: wrap; gap: .45rem; }
  .mega-links--2 a {
    margin: 0; padding: .4rem .85rem; border: 1px solid var(--border-strong); border-radius: 999px;
    color: var(--text-soft); font-size: .875rem;
  }
  .mega-all { margin-top: -.25rem; }
  .city-search-results { position: static; margin-top: .5rem; max-height: none; box-shadow: none; }
  .nav-cta {
    position: sticky; bottom: 0; margin-top: auto; min-height: 54px; border-radius: 0;
    box-shadow: 0 -10px 24px -12px rgba(60, 20, 28, .25);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 2; isolation: isolate;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 45% at 22% 30%, var(--hero-glow-1), transparent 70%),
    radial-gradient(35% 40% at 80% 20%, var(--hero-glow-2), transparent 70%),
    radial-gradient(50% 50% at 50% 100%, var(--hero-glow-3), transparent 70%);
  filter: blur(10px);
}
.hero-bg::after { /* fine grid texture */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .95rem; margin-bottom: 1.5rem;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft); font-size: .85rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--stem); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(120,180,60,.55); } 70% { box-shadow: 0 0 0 9px rgba(120,180,60,0); } 100% { box-shadow: 0 0 0 0 rgba(120,180,60,0); } }

.hero h1 { font-size: clamp(2.25rem, 6.2vw, 4.4rem); max-width: 17ch; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 .grad { white-space: nowrap; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 40rem; margin-top: 1.25rem; color: var(--text-soft); font-size: clamp(1rem, 1.6vw, 1.15rem); }

/* Finder (city + category search) */
.finder {
  position: relative;
  display: grid; grid-template-columns: 1.35fr 1fr auto; gap: .5rem;
  width: min(100%, 860px); margin-top: 2.25rem; padding: .5rem;
  background: var(--finder-bg);
  border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.finder--compact { grid-template-columns: 1fr auto; width: min(100%, 520px); margin-top: 0; box-shadow: var(--shadow); }
.finder-field { position: relative; display: flex; align-items: center; }
.finder-field label {
  position: absolute; top: .55rem; left: 3rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  pointer-events: none;
}
.finder-field > .ico { position: absolute; left: 1rem; color: var(--icon); pointer-events: none; }
.finder-field input, .finder-field select {
  width: 100%; height: 62px; padding: 1.35rem 1rem .4rem 3rem;
  background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(60, 20, 28, .06);
  font-size: 1rem; font-weight: 500; outline: none; cursor: text;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.finder-field input:hover, .finder-field select:hover { border-color: rgba(230, 57, 70, .35); }
.finder-field input::placeholder { color: var(--muted); font-weight: 400; opacity: .85; }
.finder-field input:focus, .finder-field select:focus {
  border-color: rgba(230, 57, 70, .45); background: var(--input-bg-focus); box-shadow: 0 0 0 4px var(--brand-tint), var(--shadow-sm);
}
.finder-field select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.finder-field select option { background: var(--surface); color: var(--text); }
.ico-caret { position: absolute; right: 1rem; color: var(--muted); pointer-events: none; }
.finder-go { height: 62px; border-radius: 16px; padding-inline: 1.6rem; font-size: 1rem; }
.finder--compact .finder-field input, .finder--compact .finder-go { height: 54px; }
.finder--compact .finder-field input { padding-top: 1.1rem; }
.finder--compact .finder-field label { top: .4rem; }
.finder-error { grid-column: 1 / -1; padding: .4rem .75rem .2rem; color: var(--brand-text); font-size: .9rem; }
.finder-error a { color: inherit; font-weight: 600; }

/* Autocomplete list */
.suggest {
  position: absolute; z-index: 20; top: calc(100% + .5rem); left: 0; right: 0;
  max-height: 320px; overflow-y: auto; padding: .4rem;
  background: var(--popover-bg); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.suggest li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .85rem; border-radius: 10px; cursor: pointer;
}
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--brand-tint-2); }
.suggest mark { background: none; color: var(--brand-text); font-weight: 600; }
.suggest .st { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.suggest .none { color: var(--muted); cursor: default; }
.suggest .none:hover { background: none; }

.quick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem .75rem; margin-top: 1.5rem; }
.quick-label { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chips--left { justify-content: flex-start; }
.chip {
  display: inline-block; padding: .4rem .9rem;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  color: var(--text-soft); font-size: .875rem; font-weight: 500; text-decoration: none;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--brand-text); border-color: rgba(230, 57, 70, .45); background: var(--brand-tint); }

@media (max-width: 760px) {
  .finder { grid-template-columns: 1fr; border-radius: 20px; }
  .finder-go { width: 100%; }
  /* the one-field city search keeps its square arrow button beside the field */
  .finder--compact { grid-template-columns: 1fr auto; border-radius: 20px; }
  .finder--compact .finder-go { width: 54px; padding: 0; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--border); background: var(--bg-alt); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-list li { display: flex; align-items: center; gap: .9rem; padding: 1.4rem 1.25rem; }
.trust-list li + li { border-left: 1px solid var(--border); }
.trust-list .ico { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 12px; background: var(--brand-tint); color: var(--icon); stroke-width: 1.8; }
.trust-list strong { display: block; font-size: .95rem; font-weight: 600; }
.trust-list span { display: block; color: var(--muted); font-size: .825rem; line-height: 1.4; }
@media (max-width: 960px) {
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(3) { border-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .trust-list li { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.1rem .9rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section-head { max-width: 40rem; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.section-head p:not(.kicker) { margin-top: .85rem; color: var(--text-soft); }
.section-head a { color: var(--brand-text); }
.kicker {
  display: inline-block; margin-bottom: .75rem;
  color: var(--brand-text); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.kicker--light { color: rgba(255, 255, 255, .9); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cat-card {
  /* icon · title · arrow on one row, description full width below */
  position: relative; height: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; align-content: start;
  column-gap: .85rem; row-gap: .75rem;
  padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background-color .25s;
}
.cat-card::before { /* soft hover glow */
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, var(--brand-tint-2), transparent 60%);
  transition: opacity .3s;
}
.cat-card:hover { transform: translateY(-3px); border-color: rgba(230, 57, 70, .4); box-shadow: var(--glow); }
.cat-card:hover::before { opacity: 1; }
.cat-ico {
  position: relative; flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(140deg, rgba(230, 57, 70, .14), rgba(255, 138, 61, .08));
  border: 1px solid rgba(230, 57, 70, .2);
  color: var(--icon);
}
.cat-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-body { display: contents; }
.cat-body strong { position: relative; grid-column: 2; grid-row: 1; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.cat-body span { position: relative; grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.cat-arrow { position: relative; grid-column: 3; grid-row: 1; width: 1.1rem; height: 1.1rem; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--brand-text); }
.cat-card--cta { background: linear-gradient(140deg, var(--brand-tint-2), var(--brand-tint)); border-color: rgba(230, 57, 70, .3); }

/* ---------- City tiles ---------- */
.popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.city-tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .1rem;
  min-height: 132px; padding: 1.1rem 1.2rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--tile-bg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, color .25s;
}
.city-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: var(--grad); transition: opacity .3s;
}
.city-tile:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--glow); color: #fff; }
.city-tile:hover::after { opacity: 1; }
.city-tile-st {
  position: absolute; top: -.35rem; right: .6rem; z-index: -1;
  font-size: 4.5rem; font-weight: 700; letter-spacing: -.05em; line-height: 1;
  color: var(--tile-letters); transition: color .3s;
}
.city-tile:hover .city-tile-st { color: rgba(255, 255, 255, .22); }
.city-tile strong { font-size: 1.15rem; font-weight: 600; }
.city-tile span:not(.city-tile-st) { color: var(--muted); font-size: .85rem; transition: color .3s; }
.city-tile:hover span:not(.city-tile-st) { color: rgba(255, 255, 255, .9); }
@media (max-width: 860px) { .popular-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- City directory ---------- */
.directory {
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.directory-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.field { position: relative; display: flex; align-items: center; }
.field > .ico { position: absolute; left: .95rem; color: var(--muted); pointer-events: none; width: 1.1rem; height: 1.1rem; }
.field input, .field select {
  height: 48px; padding: 0 1rem 0 2.6rem;
  background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: 12px; outline: none;
  box-shadow: inset 0 1px 2px rgba(60, 20, 28, .06);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field select:hover { border-color: rgba(230, 57, 70, .35); }
.field input:focus, .field select:focus {
  border-color: rgba(230, 57, 70, .45); background: var(--input-bg-focus); box-shadow: 0 0 0 4px var(--brand-tint);
}
.field > .ico-caret { left: auto; right: 1rem; }
.field-search { flex: 1 1 260px; }
.field-search input { width: 100%; }
.field-select select { appearance: none; padding: 0 2.75rem 0 1rem; min-width: 220px; color: var(--text); font-weight: 500; cursor: pointer; }
.field-select select option { background: var(--surface); color: var(--text); }
.dir-count { margin-left: auto; color: var(--muted); font-size: .875rem; }
.city-main .dir-count { flex-basis: 100%; margin-left: 0; } /* narrower column on category pages */
@media (max-width: 640px) {
  .field-select { flex: 1 1 100%; }
  .field-select select { width: 100%; }
  .dir-count { margin-left: 0; }
}

.dir-list { position: relative; }
.state-group {
  display: grid; grid-template-columns: 210px 1fr; gap: .5rem 1.5rem; align-items: start;
  padding: 1rem 0; border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.state-group:first-child { border-top: 0; padding-top: 0; }
.state-group h3 {
  display: flex; align-items: center; gap: .6rem; padding-top: .3rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft);
  transition: color .3s;
}
.state-group ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 1rem; }
@media (max-width: 640px) {
  .state-group { grid-template-columns: 1fr; }
  .state-group ul { grid-template-columns: repeat(2, 1fr); }
}
.state-n { min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; background: var(--tint-2); color: var(--muted); font-size: .7rem; text-align: center; letter-spacing: 0; }
.state-group li a {
  display: block; padding: .28rem .5rem; margin-inline: -.5rem; border-radius: 8px;
  color: var(--text-soft); font-size: .925rem; text-decoration: none;
  transition: color .15s, background-color .15s;
}
.state-group li a:hover { color: var(--brand-text); background: var(--brand-tint); }
.state-group mark { background: var(--brand-tint-2); color: var(--text); border-radius: 3px; }
.state-group.is-flash h3 { color: var(--brand-text); }

/* collapsed state (JS only) */
.js .directory:not(.is-expanded) .dir-list { max-height: 520px; overflow: hidden; }
.js .directory:not(.is-expanded) .dir-list::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0), var(--surface));
}
.dir-more { display: none; justify-content: center; padding-top: 1rem; }
.js .dir-more { display: flex; }
.directory.is-filtering .dir-more { display: none; }
#dir-toggle .ico { transition: transform .25s var(--ease); }
#dir-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.dir-empty { padding: 2rem 1rem; text-align: center; color: var(--text-soft); }
.dir-empty a { color: var(--brand-text); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step {
  position: relative; padding: 1.75rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.1rem;
  border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(230, 57, 70, .8);
}
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .95rem; }
@media (min-width: 861px) {
  .step:not(:last-child)::after { /* connector line */
    content: ""; position: absolute; top: calc(1.75rem + 22px); left: calc(1.5rem + 52px); right: -1rem; height: 1px;
    background: linear-gradient(90deg, rgba(230, 57, 70, .45), transparent);
  }
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-copy h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); margin-bottom: 1.1rem; }
.about-copy p + p { margin-top: 1rem; }
.about-copy p:not(.kicker) { color: var(--text-soft); }
.prose a, .about-copy a, .checklist a { color: var(--text); text-decoration-color: rgba(230, 57, 70, .55); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover, .about-copy a:hover, .checklist a:hover { color: var(--brand-text); }
.checklist {
  display: grid; gap: .25rem;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.checklist li { display: flex; align-items: center; gap: .8rem; padding: .6rem .25rem; }
.checklist li + li { border-top: 1px dashed var(--border-strong); }
.checklist .ico { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; background: var(--check-bg); color: var(--stem); stroke-width: 2.6; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: var(--radius-lg);
  background: var(--grad);
  box-shadow: 0 30px 60px -30px rgba(230, 57, 70, .7);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(40% 80% at 0% 100%, rgba(0, 0, 0, .14), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: #fff; }
.cta-band p:not(.kicker) { max-width: 36rem; margin-top: .6rem; color: rgba(255, 255, 255, .92); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; flex: none; }
@media (max-width: 860px) { .cta-band { flex-direction: column; align-items: flex-start; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq details[open] { border-color: rgba(230, 57, 70, .35); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; cursor: pointer; list-style: none;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.faq details[open] summary .ico { transform: rotate(180deg); color: var(--brand-text); }
.faq details p { padding: 0 1.25rem 1.2rem; color: var(--text-soft); }
.faq details a { color: var(--brand-text); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ==========================================================================
   City page
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .875rem; }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand-text); }
.crumbs .ico { width: .9rem; height: .9rem; transform: rotate(-90deg); opacity: .6; }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }

.city-hero {
  position: relative; z-index: 2; isolation: isolate;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.city-hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 3rem; align-items: end; }
.city-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.03em; }
.city-hero h1 .grad { display: inline; }
.city-hero .lead { margin-top: .9rem; font-size: 1.05rem; }
.city-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-soft); font-size: .825rem; font-weight: 500;
}
.pill .ico { width: 1rem; height: 1rem; color: var(--icon); }
.city-switch p { margin-bottom: .6rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
@media (max-width: 860px) { .city-hero-inner { grid-template-columns: 1fr; } }

.city-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.city-main > * + * { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.city-side { display: grid; gap: 1rem; }
@media (max-width: 960px) { .city-layout { grid-template-columns: minmax(0, 1fr); } }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.block-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.block-head p { margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.cat-grid--city { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  padding: 1.35rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card h2, .card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }


.tips li { display: flex; gap: .7rem; padding: .55rem 0; color: var(--text-soft); font-size: .9rem; line-height: 1.5; }
.tips li + li { border-top: 1px dashed var(--border-strong); }
.tips .ico { width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--stem); }
.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem; color: var(--brand-text); font-size: .875rem; font-weight: 600; text-decoration: none; }
.card-link .ico { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.card-link:hover .ico { transform: translateX(3px); }

/* "<Category> in other <State> cities" (category pages) */
.other-cities .block-head { flex-wrap: wrap; }
.city-filter { flex: 0 1 260px; }
.city-filter input { width: 100%; height: 44px; }
.towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .6rem; }
.town {
  display: flex; align-items: center; gap: .55rem; height: 100%; padding: .7rem .85rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--text); font-size: .925rem; font-weight: 500; line-height: 1.25; text-decoration: none;
  transition: color .15s, border-color .15s, background-color .15s, transform .2s var(--ease), box-shadow .2s;
}
.town > .ico { width: 1.05rem; height: 1.05rem; color: var(--icon); }
.town-name { flex: 1; min-width: 0; }
.town-go { opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .2s var(--ease); }
.town:hover { color: var(--brand-text); border-color: rgba(230, 57, 70, .4); background: var(--brand-tint); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.town:hover .town-go, .town:focus-visible .town-go { opacity: 1; transform: none; }
/* long lists: first 12 (8 on phones) until "Show all"; a search shows every match */
.js .other-cities.is-long:not(.is-open):not(.is-filtering) .towns > li:nth-child(n+13) { display: none; }
.city-more { display: flex; margin: 1rem auto 0; }
.city-more .ico { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.other-cities.is-open .city-more .ico { transform: rotate(180deg); }
.other-cities.is-filtering .city-more { display: none; }
.city-filter-empty { margin-top: .25rem; color: var(--muted); font-size: .925rem; }
.city-filter-empty:empty { display: none; }
@media (max-width: 560px) {
  .city-filter { flex-basis: 100%; }
  .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .town { padding: .65rem .7rem; font-size: .9rem; }
  .js .other-cities.is-long:not(.is-open):not(.is-filtering) .towns > li:nth-child(n+9) { display: none; }
}
.prose { color: var(--text-soft); }
.prose h2 { color: var(--text); font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .9rem; }
.prose p + p { margin-top: 1rem; }

/* ==========================================================================
   Category page (city + category)
   ========================================================================== */
/* 404 page */
.nf-section { min-height: calc(100vh - var(--header-h) - 4rem); display: grid; align-items: center; }
.nf { padding-block: clamp(1.5rem, 5vw, 3rem); }
.nf .nf-code {
  font-size: clamp(4.5rem, 14vw, 7.5rem); font-weight: 700; line-height: 1; letter-spacing: -.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf h1 { margin-top: .5rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.nf-search { width: min(100%, 420px); margin: 1.5rem auto 0; text-align: left; }
.nf-cats { max-width: 40rem; margin: 1.25rem auto 0; }

/* policy pages + contact */
.page-hero { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem); }
.page-hero .crumbs { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-meta { margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.doc { max-width: 46rem; color: var(--text-soft); font-size: 1rem; line-height: 1.75; }
.doc > * + * { margin-top: 1rem; }
.doc h2 { margin-top: 2.25rem; color: var(--text); font-size: 1.2rem; line-height: 1.35; letter-spacing: -.01em; }
.doc h2:first-child { margin-top: 0; }
.doc h2 + * { margin-top: .6rem; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { display: grid; gap: .45rem; padding-left: 1.35rem; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li::marker { color: var(--icon); }
.doc a { color: var(--text); text-decoration-color: rgba(230, 57, 70, .55); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.doc a:hover { color: var(--brand-text); }
.side-cats a[aria-current] { color: var(--brand-text); background: var(--brand-tint); font-weight: 600; }

.contact-form { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 1.75rem); }
.form-row { display: grid; gap: .45rem; }
.form-row > label { color: var(--text); font-size: .9rem; font-weight: 600; }
.contact-form .field select, .contact-form .field input { width: 100%; }
.contact-form textarea {
  width: 100%; min-height: 10rem; padding: .85rem 1rem; resize: vertical;
  background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: 12px; outline: none;
  box-shadow: inset 0 1px 2px rgba(60, 20, 28, .06); color: var(--text); font: inherit; line-height: 1.6;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea:hover { border-color: rgba(230, 57, 70, .35); }
.contact-form textarea:focus { border-color: rgba(230, 57, 70, .45); background: var(--input-bg-focus); box-shadow: 0 0 0 4px var(--brand-tint); }
.form-hint { padding: .8rem 1rem; border-radius: 12px; background: var(--brand-tint); color: var(--text-soft); font-size: .9rem; line-height: 1.6; }
.form-hint strong { color: var(--text); }
.form-hint a { color: var(--brand-text); font-weight: 600; }
.form-error { color: var(--brand-text); font-size: .875rem; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.form-note { flex: 1 1 16rem; color: var(--muted); font-size: .825rem; line-height: 1.5; }
.form-note strong { color: var(--text-soft); font-weight: 600; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.contact-mail a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-mail a:hover { color: var(--brand-text); }

/* national category pages (/escorts/ etc.): compact two-column hero like the city pages */
.hub-hero { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem); border-bottom: 0; }
.hub-hero .crumbs { margin-bottom: 1rem; }
.hub-hero-inner { grid-template-columns: 1.55fr 1fr; align-items: center; }
.city-hero .hub-h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }   /* long names ("Casual Encounters near you") stay on one line */
.hub-hero .lead { max-width: 36rem; margin-top: .75rem; font-size: 1rem; }
.hub-hero .cat-see-also { margin-top: .6rem; }
@media (max-width: 860px) { .hub-hero-inner { grid-template-columns: 1fr; } }
.cat-hero { border-bottom: 0; padding-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.cat-hero-head { display: flex; align-items: flex-start; gap: 1.25rem; }
.cat-hero-head .lead { max-width: 44rem; }
.cat-see-also { margin-top: .6rem; color: var(--muted); font-size: .925rem; }
.cat-see-also a { color: var(--text-soft); font-weight: 600; text-decoration-color: rgba(230, 57, 70, .55); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.cat-see-also a:hover { color: var(--brand-text); }
.cat-ico--lg { width: 64px; height: 64px; border-radius: 18px; margin-top: .25rem; }
.cat-ico--lg svg { width: 32px; height: 32px; }
@media (max-width: 640px) {
  .cat-hero-head { flex-direction: column; gap: 1rem; }
  .cat-ico--lg { width: 52px; height: 52px; border-radius: 15px; }
  .cat-ico--lg svg { width: 26px; height: 26px; }
}

/* sticky, horizontally scrollable category switcher */
.cat-tabs {
  position: sticky; top: var(--header-h); z-index: 30;
  background: var(--header-bg-solid);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-block: 1px solid var(--border);
}
.cat-tabs-scroll { position: relative; }
.cat-tabs-list {
  display: flex; gap: .4rem; padding-block: .65rem;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  --fade-l: 0px; --fade-r: 0px;
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.cat-tabs-scroll.can-prev .cat-tabs-list { --fade-l: 56px; }
.cat-tabs-scroll.can-next .cat-tabs-list { --fade-r: 56px; }
.no-js .cat-tabs-list { --fade-r: 40px; }
.cat-tabs-list::-webkit-scrollbar { display: none; }
.cat-tabs-list li { flex: none; scroll-snap-align: start; }
/* arrow buttons for mouse users (touch users just swipe) */
.cat-tabs-btn {
  position: absolute; top: 50%; z-index: 2; display: none; place-items: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  box-shadow: var(--shadow-sm); transition: background-color .2s, color .2s, border-color .2s;
}
.cat-tabs-btn:hover { color: var(--brand-text); border-color: rgba(230, 57, 70, .45); background: var(--brand-tint); }
.cat-tabs-btn .ico { width: 1rem; height: 1rem; }
.cat-tabs-btn--prev { left: 0; transform: translateY(-50%) rotate(90deg); }
.cat-tabs-btn--next { right: 0; transform: translateY(-50%) rotate(-90deg); }
.can-prev .cat-tabs-btn--prev, .can-next .cat-tabs-btn--next { display: grid; }
@media (hover: none) { .cat-tabs-btn { display: none !important; } }
.cat-tab {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-soft); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .2s, background-color .2s, border-color .2s;
}
.cat-tab svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--icon); }
.cat-tab:hover { color: var(--brand-text); border-color: rgba(230, 57, 70, .45); background: var(--brand-tint); }
.cat-tab[aria-current="page"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgba(230, 57, 70, .8); }
.cat-tab[aria-current="page"] svg { color: #fff; }

/* empty state for a section with no ads */
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  background: var(--surface); border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.empty-ico {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--brand-tint); color: var(--icon);
}
.empty-ico .ico { width: 28px; height: 28px; stroke-width: 1.8; }
.empty-state h3 { font-size: 1.2rem; font-weight: 600; }
.empty-state p { max-width: 30rem; margin-top: .5rem; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.4rem; }

.empty-state--compact {
  flex-direction: row; align-items: center; gap: 1rem; text-align: left;
  padding: 1.1rem 1.25rem;
}
.empty-state--compact .empty-ico { width: 48px; height: 48px; margin: 0; flex: none; }
.empty-state--compact .empty-ico .ico { width: 22px; height: 22px; }
.empty-state--compact .empty-copy { flex: 1; }
.empty-state--compact h3 { font-size: 1rem; }
.empty-state--compact p { margin-top: .1rem; font-size: .9rem; }
.empty-state--compact .btn { flex: none; }
@media (max-width: 560px) {
  .empty-state--compact { flex-wrap: wrap; }
  .empty-state--compact .btn { width: 100%; }
}

/* ---------- Ad cards (real user ads) ---------- */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ad-card {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.ad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ad-card.is-featured { border-color: rgba(230, 57, 70, .45); box-shadow: var(--glow); }
.ad-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.ad-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ad-card:hover .ad-media img { transform: scale(1.04); }
.ad-badge {
  position: absolute; top: .65rem; left: .65rem;
  padding: .2rem .6rem; border-radius: 999px; background: var(--grad); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; box-shadow: 0 4px 12px -4px rgba(230, 57, 70, .8);
}
/* "New" = posted today or yesterday (added by main.js) – top right, so it can sit beside "Featured" */
.ad-badge--new {
  left: auto; right: .65rem; display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(20, 16, 24, .72); box-shadow: none; backdrop-filter: blur(4px);
}
.ad-badge--new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 3px rgba(94, 224, 138, .25); }
.ad-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.05rem 1.05rem; }
.ad-title {
  font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-meta { display: flex; align-items: center; gap: .35rem; margin-top: .35rem; color: var(--muted); font-size: .8rem; }
.ad-meta .ico { width: .9rem; height: .9rem; color: var(--icon); }
.ad-text {
  margin-top: .55rem; color: var(--text-soft); font-size: .875rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .7rem; }
.ad-tags li { padding: .12rem .5rem; border-radius: 6px; background: var(--tint-2); color: var(--text-soft); font-size: .72rem; font-weight: 500; }
.ad-actions { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .9rem; }
.ad-actions .btn { flex: 1; }

/* whole card is clickable: the title link stretches over the card */
.ad-link { color: inherit; text-decoration: none; }
.ad-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ad-link:focus-visible { outline: none; }
.ad-card:has(.ad-link:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.ad-card:hover .ad-title { color: var(--brand-text); }
.ad-view .ico { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.ad-card:hover .ad-view .ico { transform: translateX(3px); }
.ad-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ad-grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
/* phones: two tall cards per row, photo-led; full text lives on the ad page */
@media (max-width: 560px) {
  .ad-grid, .ad-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .ad-grid .ad-text, .ad-grid .ad-tags { display: none; }
  .ad-grid .ad-body { padding: .7rem .7rem .75rem; }
  .ad-grid .ad-title { font-size: .875rem; }
  .ad-grid .ad-meta { font-size: .72rem; }
  .ad-grid .ad-actions { padding-top: .65rem; gap: .4rem; }
  .ad-grid .ad-actions .btn { min-height: 36px; padding: .4rem .5rem; font-size: .8rem; }
  .ad-grid .ad-view .ico { display: none; }
  .ad-grid .ad-badge { top: .45rem; left: .45rem; font-size: .64rem; padding: .15rem .5rem; }
  .ad-grid .ad-badge--new { left: auto; right: .45rem; }
}

/* ---------- Ad page ---------- */
.ad-section { padding-top: 1.5rem; }
.ad-section .crumbs { margin-bottom: 1rem; }
/* single ad page: placeholder while ad.js loads the ad, and the "no longer available" state */
#ad-root { min-height: 60vh; }
.ad-status { padding-block: 4rem; color: var(--muted); text-align: center; }
.no-js .js-only { display: none; }
.ad-gone { max-width: 40rem; margin-inline: auto; }
.ad-gone h1 { font-size: clamp(1.35rem, 3vw, 1.6rem); }
.back-link {
  display: none; align-items: center; gap: .3rem; margin: -.25rem 0 1rem;
  color: var(--text-soft); font-size: .9rem; font-weight: 500; text-decoration: none;
}
.back-link .ico { width: 1rem; height: 1rem; transform: rotate(90deg); }
.ad-detail {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.5rem 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.ad-detail-media { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.ad-detail-media .ad-art svg { width: 34%; height: 34%; }
.ad-detail-body { display: flex; flex-direction: column; align-self: stretch; min-width: 0; padding-block: .25rem; }
.ad-kicker {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; margin-bottom: .7rem;
  padding: .25rem .7rem .25rem .55rem; border-radius: 999px; background: var(--brand-tint);
  color: var(--brand-text); font-size: .78rem; font-weight: 600; text-decoration: none;
}
.ad-kicker svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ad-kicker:hover { filter: brightness(.95); }
.ad-detail h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; letter-spacing: -.025em; }
.ad-detail .ad-meta { flex-wrap: wrap; margin-top: .6rem; font-size: .9rem; }
.ad-detail-text { margin-top: 1.1rem; color: var(--text-soft); }
.ad-detail-text p { font-size: 1rem; line-height: 1.7; }
.ad-detail-text p + p { margin-top: .8rem; }
.ad-detail .ad-tags { margin-top: 1rem; }
.ad-detail .ad-tags li { padding: .25rem .65rem; font-size: .8rem; }
.ad-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 1.4rem;
  overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border);
}
.ad-facts > div { padding: .65rem .85rem; background: var(--surface); }
.ad-facts dt { color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.ad-facts dd { margin: .1rem 0 0; overflow: hidden; color: var(--text); font-size: .9rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ad-facts dd a { color: inherit; text-decoration-color: rgba(230, 57, 70, .55); text-underline-offset: 3px; }
.ad-facts dd a:hover { color: var(--brand-text); }
.ad-detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1.4rem; }
.ad-detail-actions .btn-primary { flex: 1 1 14rem; }
.ad-detail-actions .ico, .ad-bar .ico { width: 1.1rem; height: 1.1rem; }
.ad-disclaimer {
  grid-column: 1 / -1; display: flex; gap: .65rem; padding: .85rem 1rem;
  background: var(--tint); border-radius: var(--radius); color: var(--muted); font-size: .85rem; line-height: 1.5;
}
.ad-disclaimer .ico { width: 1.1rem; height: 1.1rem; margin-top: .1rem; color: var(--stem); }
.ad-disclaimer a { color: var(--text-soft); text-underline-offset: 2px; }

/* sticky contact bar – phones/tablets only */
.ad-bar { display: none; }
@media (max-width: 960px) {
  .back-link { display: inline-flex; }
  .ad-section .crumbs { display: none; }
  .ad-bar {
    position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; gap: .6rem;
    padding: .7rem max(1rem, env(safe-area-inset-right)) calc(.7rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .ad-bar .btn-primary { flex: 1; }
  .ad-bar-report { width: 48px; padding: 0; flex: none; }
  .ad-bar-report .ico { width: 1.1rem; height: 1.1rem; }
  .ad-page:has(.ad-bar) .site-footer { padding-bottom: 5.5rem; }
  .ad-page:has(.ad-bar) .to-top { bottom: 5.5rem; }
}
@media (max-width: 640px) {
  .ad-detail { grid-template-columns: minmax(0, 1fr); }
  .ad-detail-media { max-height: 70vh; aspect-ratio: 3 / 4; margin: calc(-1 * clamp(1rem, 3vw, 1.5rem)) calc(-1 * clamp(1rem, 3vw, 1.5rem)) 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .ad-detail-actions { display: none; } /* the sticky bar does this job */
}

/* artwork used when an ad has no photo */
.ad-art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: #fff; }
.ad-art::before { /* soft light + texture */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 25% 20%, rgba(255, 255, 255, .28), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 14px);
}
.ad-art svg { position: relative; width: 38%; height: 38%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .92; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25)); }
.ad-art--0 { background: linear-gradient(135deg, #e63946, #ff8a3d); }
.ad-art--1 { background: linear-gradient(135deg, #7a1f4b, #e63946); }
.ad-art--2 { background: linear-gradient(135deg, #f2543d, #ffb347); }

.preview-note {
  padding: .7rem 1.25rem; background: #fff4d6; color: #5c4400; border-bottom: 1px solid #f0d78a;
  font-size: .875rem; font-weight: 500; text-align: center;
}
.preview-note code { font-size: .85em; }

/* numbered tips */
.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: tip; }
.tip-grid li {
  counter-increment: tip; position: relative;
  padding: 1.25rem 1.2rem 1.3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.tip-grid li::before {
  content: counter(tip, decimal-leading-zero);
  display: block; margin-bottom: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--brand-text);
}
.tip-grid h3 { font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.tip-grid p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
@media (max-width: 760px) { .tip-grid { grid-template-columns: 1fr; } }

/* sidebar category list */
.side-cats { display: grid; gap: .15rem; margin-inline: -.5rem; }
.side-cats a {
  display: flex; align-items: center; gap: .7rem;
  padding: .45rem .5rem; border-radius: 10px;
  color: var(--text-soft); font-size: .925rem; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.side-cats a:hover { background: var(--brand-tint); color: var(--brand-text); }
.side-cats svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--icon); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(3rem, 7vw, 4.5rem); border-top: 1px solid var(--border); background: var(--footer-bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { width: 160px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .925rem; max-width: 22rem; }
.footer-mail { display: inline-block; margin-top: 1rem; color: var(--text-soft); font-size: .925rem; }
.footer-title { margin-bottom: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.site-footer nav li + li { margin-top: .5rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; }
.footer-cols li + li { margin-top: 0 !important; }
.site-footer nav a { color: var(--muted); font-size: .925rem; text-decoration: none; transition: color .2s; }
.site-footer nav a:hover { color: var(--brand-text); }
.footer-bottom {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: 1.5rem 2rem; padding-right: 3.5rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .825rem;
}
.footer-bottom p:nth-child(2) { flex: 1; }
.badge-18 { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--brand); border-radius: 50%; color: var(--brand-text); font-weight: 700; font-size: .8rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s, background-color .2s, color .2s;
}
.to-top .ico { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease), background-color .2s, color .2s; }
.to-top:hover { background: var(--brand); color: #fff; border-color: transparent; }

/* ---------- Age gate ---------- */
.age-gate {
  width: min(100% - 2rem, 440px); padding: 2.25rem 2rem 2rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); text-align: center;
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.age-gate::backdrop { background: var(--backdrop); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.age-logo { width: 150px; margin: 0 auto 1.25rem; }
.age-gate h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.age-gate p { color: var(--text-soft); font-size: .95rem; }
.age-gate p a { color: var(--brand-text); }
.age-actions { display: grid; gap: .6rem; margin-top: 1.5rem; }
.age-gate[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Redirect page for "Reply to ad" (/go/) ----------
   Wide card: the ad's photo in a circle with the countdown ring around it (left), text (right).
   Stacks on phones. Without a saved ad the circle shows "18+". */
.go-page {
  display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 1.25rem;
  /* slightly deeper than the card, glows kept to the bottom corners so the card's pink top stands out */
  background:
    radial-gradient(55% 40% at 0% 100%, var(--hero-glow-1), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, var(--hero-glow-2), transparent 70%),
    linear-gradient(var(--tint-2), var(--tint-2)),
    var(--surface-2);
}
.go-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); width: min(100%, 680px); overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(60, 20, 28, .06), 0 28px 60px -24px rgba(60, 20, 28, .38);
  animation: pop .35s var(--ease) both;
}
.go-visual {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, var(--brand-tint-2), var(--brand-tint) 55%, transparent);
  border-right: 1px solid var(--border);
}
.go-avatar { position: relative; width: 168px; aspect-ratio: 1; }
.go-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.go-ring circle { fill: none; stroke-width: 4; }
.go-ring-bg { stroke: var(--tint-2); }
.go-ring-fg { stroke: var(--icon); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.is-counting .go-ring-fg { animation: go-ring var(--go-s, 3s) linear forwards; }
@keyframes go-ring { to { stroke-dashoffset: 0; } }
.go-photo {
  position: absolute; inset: 11px; display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(230, 57, 70, .6);
}
.go-photo img { width: 100%; height: 100%; object-fit: cover; }
.go-photo-ph { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; }
.go-count { color: var(--muted); font-size: .85rem; text-align: center; }
.go-count strong { color: var(--text); font-variant-numeric: tabular-nums; }

.go-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2rem 2rem 1.75rem; }
.go-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem .3rem .3rem;
  border: 1px solid var(--brand-tint-2); border-radius: 999px; background: var(--brand-tint);
  color: var(--brand-text); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.go-18 {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-text); color: #fff; font-size: .58rem; letter-spacing: 0;
}
.go-card h1 { margin-top: 1rem; font-size: 1.45rem; letter-spacing: -.02em; }
.go-ad { width: 100%; margin-top: .9rem; padding: .8rem .95rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.go-ad-title { color: var(--text); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.go-ad-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .25rem; color: var(--muted); font-size: .825rem; }
.go-tag { padding: .05rem .5rem; border-radius: 999px; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 600; }
.go-tag--new { background: rgba(94, 224, 138, .18); color: #1f8a4c; }
[data-theme="dark"] .go-tag--new { color: #7be3a3; }
.go-text { margin-top: .85rem; color: var(--text-soft); font-size: .925rem; line-height: 1.6; }
.go-cancel { margin-top: 1.25rem; }

@media (max-width: 640px) {
  .go-card { grid-template-columns: 1fr; width: min(100%, 420px); text-align: center; }
  .go-visual { padding: 1.75rem 1.25rem 1.25rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .go-avatar { width: 140px; }
  .go-photo { inset: 9px; }
  .go-body { align-items: center; padding: 1.5rem 1.35rem 1.5rem; }
  .go-ad-meta { justify-content: center; }
  .go-cancel { width: 100%; }
}

/* ---------- Reveal on scroll (JS only) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
