/* ==========================================================================
   ReviewPlace.com
   Mobile-first. Breakpoints: 640 (large phone), 900 (tablet), 1140 (desktop).
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #10182f;
  --navy-800: #17224a;
  --navy-700: #22305e;
  --blue-600: #2f5fd0;
  --blue-700: #2650b4;
  --blue-100: #e7effc;
  --blue-050: #f3f7fe;

  /* Accents */
  --star: #e8a317;
  --star-empty: #d7dbe4;
  --green-600: #12805c;
  --green-100: #e2f5ee;
  --amber-100: #fdf3e0;
  --amber-700: #8a6114;
  --red-600: #cf3b3b;
  --red-100: #fdecec;

  /* Neutrals */
  --ink-900: #131822;
  --ink-700: #2c3646;
  --ink-600: #47536a;
  --ink-500: #6a7588;
  --ink-400: #8d96a8;
  --line: #e3e7ef;
  --line-soft: #eef1f7;
  --bg: #ffffff;
  --bg-tint: #f7f9fc;
  --bg-sunk: #f1f4fa;

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Shape */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(19, 24, 34, .06), 0 1px 3px rgba(19, 24, 34, .05);
  --shadow: 0 2px 4px rgba(19, 24, 34, .05), 0 8px 20px rgba(19, 24, 34, .07);
  --shadow-lg: 0 12px 40px rgba(19, 24, 34, .14);

  --wrap: 1180px;
  --gap: 24px;
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--ink-900); font-weight: 650; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* The HTML `hidden` attribute is applied by the UA stylesheet as
   `[hidden] { display: none }`, which ANY author `display` declaration beats on
   specificity. `.modal { display: grid }` therefore made a `hidden` modal render
   on every page load, dimming the whole screen. Guard it globally so `hidden`
   means hidden regardless of what a component sets. */
[hidden] { display: none !important; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  background: var(--bg-sunk);
  padding: 2px 6px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; 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: 8px; top: -60px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 18px;
  border-radius: var(--r); transition: top .15s;
}
.skip-link:focus { top: 8px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .06s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); color: #fff; }

.btn--ghost { background: #fff; color: var(--ink-700); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-tint); border-color: #ccd4e2; color: var(--ink-900); }

.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: #eef2fb; color: var(--navy-800); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn--danger { background: var(--red-600); color: #fff; }
.btn--danger:hover { background: #b32f2f; color: #fff; }

.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--xs { padding: 5px 10px; font-size: 13px; border-radius: var(--r-sm); }
.btn--block { display: flex; width: 100%; }

.btn--chip {
  background: #fff; border-color: var(--line); color: var(--ink-600);
  border-radius: var(--r-pill); padding: 7px 15px; font-size: 14px; font-weight: 500;
}
.btn--chip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--chip.is-active { background: var(--blue-100); border-color: var(--blue-600); color: var(--blue-700); }
.btn--chip.is-static { cursor: default; color: var(--ink-500); }
.btn--chip.is-static:hover { border-color: var(--line); color: var(--ink-500); }
.btn--chip svg { flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.link-arrow { font-weight: 600; font-size: 15px; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding-top: 10px; padding-bottom: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand:hover { text-decoration: none; }
.brand__mark { flex: none; border-radius: 9px; }
/* Wordmark sits in the UI face, not the display serif: a geometric mark next
   to a serif wordmark read as two unrelated logos. One weight, one colour. */
.brand__text {
  font-family: var(--sans);
  font-size: 19px; font-weight: 700; letter-spacing: -.035em;
  color: var(--navy-800);
}
.brand--footer .brand__text { color: #fff; }

.city-pill {
  display: none; align-items: center; gap: 7px; flex: none;
  padding: 6px 13px; font-size: 14px; font-weight: 600;
  background: var(--blue-050); color: var(--navy-700);
  border: 1px solid var(--blue-100); border-radius: var(--r-pill);
}
.city-pill:hover { text-decoration: none; border-color: var(--blue-600); }
.city-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }
.city-pill__caret { border: 4px solid transparent; border-top-color: currentColor; margin-top: 3px; }

.search { position: relative; flex: 1 1 auto; min-width: 0; display: none; }
.search__icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-400); pointer-events: none;
}
/* Specificity note: the generic input[type="search"] rule in the Forms section
   below has the SAME specificity as a bare `.search input`, so it would win on
   source order and strip the left padding that clears the icon. Qualifying the
   selector with the attribute keeps these wins independent of order. */
.search input[type="search"] {
  width: 100%; padding: 10px 16px 10px 42px;
  background: var(--bg-sunk); border: 1px solid transparent;
  border-radius: var(--r-pill); font-size: 15px; color: var(--ink-900);
}
.search input[type="search"]:focus { background: #fff; border-color: var(--blue-600); outline: none; }
.search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 120;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.search__results a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-700);
}
.search__results a:last-child { border-bottom: 0; }
.search__results a:hover, .search__results a.is-active { background: var(--blue-050); text-decoration: none; }
.search__results img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.search__rname { font-weight: 600; color: var(--ink-900); display: block; }
.search__rmeta { font-size: 13px; color: var(--ink-500); }
.search__empty { padding: 14px; color: var(--ink-500); font-size: 14px; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; font-size: 15px; font-weight: 550;
  color: var(--ink-600); border-radius: var(--r-sm);
}
.main-nav a:hover { background: var(--bg-sunk); color: var(--navy-800); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.header-actions .btn--primary { display: none; }
.header-actions > .btn--ghost { display: none; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 0 9px;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
}
.nav-toggle span { display: block; height: 2px; background: var(--ink-700); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.usermenu { position: relative; }
.usermenu__trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; background: none;
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.usermenu__trigger:hover { border-color: #ccd4e2; background: var(--bg-tint); }
.usermenu__name { display: none; font-size: 14px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.usermenu__caret { border: 4px solid transparent; border-top-color: var(--ink-400); margin-top: 3px; }

.usermenu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 130;
  width: 250px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}
.usermenu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.usermenu__username { margin: 0 0 6px; font-weight: 650; color: var(--ink-900); }
.usermenu__points { margin: 8px 0 0; font-size: 13px; color: var(--ink-500); }
.usermenu__panel a, .usermenu__logout {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; font-size: 15px; color: var(--ink-700);
  background: none; border: 0; border-radius: var(--r-sm);
}
.usermenu__panel a:hover, .usermenu__logout:hover { background: var(--bg-sunk); text-decoration: none; color: var(--navy-800); }
.usermenu__admin { color: var(--blue-600) !important; font-weight: 600; }
.usermenu__logout { color: var(--red-600); border-top: 1px solid var(--line-soft); margin-top: 6px; border-radius: 0 0 var(--r-sm) var(--r-sm); }

.mobile-nav { border-top: 1px solid var(--line); background: #fff; padding: 16px 0 24px; }
.mobile-nav__primary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 14px; }
.mobile-nav__primary a {
  display: block; padding: 12px 14px; font-weight: 600; color: var(--navy-800);
  background: var(--bg-sunk); border-radius: var(--r);
}
.mobile-nav__secondary { margin-bottom: 16px; }
.mobile-nav__secondary a { display: block; padding: 10px 2px; color: var(--ink-600); border-bottom: 1px solid var(--line-soft); }
.mobile-nav__auth { display: grid; gap: 8px; }

@media (min-width: 640px) {
  .search { display: block; max-width: 420px; }
  .usermenu__name { display: inline; }
  .header-actions .btn--primary { display: inline-flex; }
}
@media (min-width: 900px) {
  .city-pill { display: inline-flex; }
  .header-actions > .btn--ghost { display: inline-flex; }
}
@media (min-width: 1140px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* --- Breadcrumbs, flashes ------------------------------------------------- */

.breadcrumbs { border-bottom: 1px solid var(--line-soft); background: var(--bg-tint); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0; font-size: 13px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-400); }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs [aria-current] { color: var(--ink-700); font-weight: 550; }

.flashes { padding-top: 16px; }
.flash {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; margin-bottom: 10px;
  border: 1px solid; border-radius: var(--r); font-size: 15px;
}
.flash p { margin: 0; flex: 1; }
.flash__close { background: none; border: 0; font-size: 22px; line-height: 1; color: inherit; opacity: .5; padding: 0 4px; }
.flash__close:hover { opacity: 1; }
.flash__icon { width: 8px; height: 8px; border-radius: 50%; margin-top: 9px; flex: none; background: currentColor; }
.flash--success { background: var(--green-100); border-color: #b7e2d2; color: #0d5f45; }
.flash--error   { background: var(--red-100);   border-color: #f2c2c2; color: #962929; }
.flash--warning { background: var(--amber-100); border-color: #f0d9a8; color: var(--amber-700); }
.flash--info    { background: var(--blue-100);  border-color: #c6d9f8; color: #23478f; }

/* --- Sections ------------------------------------------------------------- */

.section { padding: 44px 0; }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line-soft); }
.section__head { margin-bottom: 24px; }
.section__title { font-size: 25px; letter-spacing: -.02em; margin-bottom: 6px; }
.section__title--sm { font-size: 19px; }
.section__sub { color: var(--ink-500); margin: 0; }
.section__cta { margin-top: 22px; }
.lede { font-size: 17px; color: var(--ink-600); }

@media (min-width: 900px) {
  .section { padding: 60px 0; }
  .section__title { font-size: 30px; }
  .section__title--sm { font-size: 21px; }
}

.page-head { padding: 30px 0 24px; border-bottom: 1px solid var(--line-soft); background: var(--bg-tint); }
.page-head__title { font-size: 27px; letter-spacing: -.02em; margin-bottom: 8px; }
.page-head__intro { color: var(--ink-600); max-width: 70ch; margin-bottom: 8px; }
.page-head__count { color: var(--ink-500); font-size: 14px; margin: 0; }
.page-head__eyebrow { font-size: 14px; margin-bottom: 8px; }
@media (min-width: 900px) { .page-head__title { font-size: 34px; } }

.prose { max-width: 72ch; color: var(--ink-600); }
.prose h2 { font-size: 20px; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.prose ol { list-style: decimal; padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink-900); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 460px at 15% -10%, rgba(47,95,208,.20), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff; padding: 52px 0 56px;
}
.hero__inner { display: grid; }
.hero__content { max-width: 720px; }
.hero__eyebrow {
  font-size: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: #8fb4f5; margin-bottom: 10px;
}
.hero__title {
  font-family: var(--display);
  font-size: 33px; line-height: 1.12; letter-spacing: -.025em;
  color: #fff; margin-bottom: 14px;
}
.hero__sub { font-size: 17px; color: #c3ccdf; max-width: 62ch; margin-bottom: 26px; }
.hero__note { margin-top: 16px; font-size: 14px; color: #9aa7c0; }

.hero__search { position: relative; display: flex; gap: 8px; max-width: 620px; }
/* Same specificity guard as .search above. */
.hero__search input[type="search"] {
  flex: 1; min-width: 0; padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r);
  background: rgba(255,255,255,.10); color: #fff; font-size: 16px;
}
.hero__search input[type="search"]::placeholder { color: #96a3bd; }
.hero__search input[type="search"]:focus {
  outline: none; background: #fff; color: var(--ink-900);
  border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(47,95,208,.35);
}
.hero__search .btn { flex: none; }
.hero__search--standalone input[type="search"] { background: #fff; color: var(--ink-900); border-color: var(--line); }
.hero__search--standalone input[type="search"]::placeholder { color: var(--ink-400); }

.hero__stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; font-size: 14px; color: #9aa7c0; }
.hero__stats strong { display: block; font-size: 22px; color: #fff; font-weight: 650; }

.hero--city { padding: 46px 0 50px; }
.hero--business {
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(18,128,92,.28), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
}

@media (min-width: 900px) {
  .hero { padding: 76px 0 80px; }
  .hero__title { font-size: 48px; }
  .hero__sub { font-size: 19px; }
}

/* --- Cards / grids -------------------------------------------------------- */

.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card-grid--compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3dae7; }

.listing-card__link { display: block; color: inherit; height: 100%; }
.listing-card__link:hover { text-decoration: none; }
.listing-card__media {
  position: relative; aspect-ratio: 16 / 10; background: var(--bg-sunk);
  display: grid; place-items: center; overflow: hidden;
}
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__placeholder {
  font-family: var(--display); font-size: 44px; font-weight: 700; color: #c3ccdd;
}
.listing-card__rank {
  position: absolute; top: 10px; left: 10px;
  background: var(--navy-800); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: var(--r-pill);
}
.listing-card__claimed {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.95); color: var(--green-600);
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--r-pill);
}
.listing-card__body { padding: 14px 16px 18px; }
.listing-card__eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-400); margin-bottom: 6px;
}
.listing-card__title { font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; }
.listing-card__rating { margin-bottom: 8px; }
.listing-card__summary { font-size: 14px; color: var(--ink-500); margin: 0; }
.listing-card__trend { font-size: 13px; color: var(--green-600); font-weight: 600; margin: 8px 0 0; }

/* The <li> IS the card. Previously the <a> was the card with height:100%,
   which made it fill the whole grid cell so the chip list rendered outside the
   border and collided with the row below. */
.vertical-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* There are exactly five verticals. auto-fit lands on four columns at desktop
   widths and strands the fifth on its own row, so pin five across once there
   is room for them. */
@media (min-width: 1120px) { .vertical-grid { grid-template-columns: repeat(5, 1fr); } }
.vertical-card {
  display: flex; flex-direction: column;
  padding: 22px 20px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.vertical-card:hover { border-color: var(--blue-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.vertical-card__main { position: relative; display: block; color: inherit; padding-right: 26px; }
.vertical-card__main:hover { text-decoration: none; }
.vertical-card__main:hover h3 { color: var(--blue-600); }
.vertical-card h3 { font-size: 19px; margin-bottom: 6px; transition: color .15s; }
.vertical-card p { font-size: 14px; color: var(--ink-500); margin: 0; }
.vertical-card__go { position: absolute; top: 2px; right: 0; color: var(--blue-600); font-size: 18px; line-height: 1; }
.vertical-card__subs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.vertical-card__subs a { font-size: 13px; color: var(--ink-500); background: var(--bg-sunk); padding: 4px 10px; border-radius: var(--r-pill); }
.vertical-card__subs a:hover { background: var(--blue-100); color: var(--blue-700); text-decoration: none; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; font-size: 15px; font-weight: 550;
  background: #fff; color: var(--ink-700);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); text-decoration: none; }
.chip__count { font-size: 13px; color: var(--ink-400); }

.city-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.city-tile {
  display: block; padding: 14px 16px; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.city-tile:hover { text-decoration: none; border-color: var(--blue-600); box-shadow: var(--shadow-sm); }
.city-tile__name { display: block; font-weight: 650; color: var(--ink-900); }
.city-tile__meta { display: block; font-size: 13px; color: var(--ink-400); margin-top: 2px; }

.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-500); margin: 0; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { position: relative; padding: 22px 22px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px;
  background: var(--blue-100); color: var(--blue-700);
  font-weight: 700; font-size: 14px; border-radius: 50%;
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--ink-500); margin: 0; }

.split { display: grid; gap: 34px; padding: 44px 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1.5fr 1fr; gap: 48px; } }
.split__side { padding: 22px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* --- Stars ---------------------------------------------------------------- */

.stars { display: inline-flex; align-items: center; gap: 8px; }
.stars__track {
  position: relative; display: inline-block; flex: none;
  width: calc(var(--star-size) * 5.5); height: var(--star-size);
  --star-size: 16px;
  background-image: var(--star-svg-empty);
  background-size: calc(var(--star-size) * 1.1) var(--star-size);
  background-repeat: repeat-x;
}
.stars__fill {
  position: absolute; inset: 0; overflow: hidden;
  background-image: var(--star-svg-full);
  background-size: calc(var(--star-size) * 1.1) var(--star-size);
  background-repeat: repeat-x;
}
.stars--sm { --star-size: 14px; }
.stars--md { --star-size: 17px; }
.stars--lg { --star-size: 22px; }
.stars--sm .stars__track, .stars--md .stars__track, .stars--lg .stars__track { height: var(--star-size); width: calc(var(--star-size) * 5.5); }

.stars {
  --star-svg-full: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 0l2.47 5.01 5.53.8-4 3.9.94 5.51L10 12.62l-4.94 2.6.94-5.51-4-3.9 5.53-.8z' fill='%23e8a317'/%3E%3C/svg%3E");
  --star-svg-empty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 0l2.47 5.01 5.53.8-4 3.9.94 5.51L10 12.62l-4.94 2.6.94-5.51-4-3.9 5.53-.8z' fill='%23d7dbe4'/%3E%3C/svg%3E");
}
.stars__value { font-weight: 700; color: var(--ink-900); font-size: .95em; }
.stars__count { font-size: 13px; color: var(--ink-500); }

/* --- Rating breakdown ----------------------------------------------------- */

.ratings-panel {
  padding: 22px; margin-bottom: 28px;
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.ratings-panel__inner { display: grid; gap: 22px; }
@media (min-width: 640px) { .ratings-panel__inner { grid-template-columns: 150px 1fr; align-items: center; } }
.ratings-panel__score { text-align: center; }
.ratings-panel__big { font-family: var(--display); font-size: 46px; line-height: 1; font-weight: 700; color: var(--ink-900); margin: 0 0 8px; }
.ratings-panel__count { font-size: 13px; color: var(--ink-500); margin: 8px 0 0; }
.ratings-panel__bars li { margin-bottom: 6px; }
.ratings-panel__bars a { display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 10px; color: var(--ink-600); font-size: 13px; }
.ratings-panel__bars a:hover { text-decoration: none; }
.ratings-panel__bars a:hover .ratings-panel__fill { background: var(--blue-600); }
.ratings-panel__bars a.is-active { font-weight: 700; color: var(--blue-700); }
.ratings-panel__track { height: 9px; background: var(--bg-sunk); border-radius: var(--r-pill); overflow: hidden; }
.ratings-panel__fill { display: block; height: 100%; background: var(--star); border-radius: var(--r-pill); transition: background-color .15s; }
.ratings-panel__n { text-align: right; color: var(--ink-500); }
.ratings-panel__clear { margin: 14px 0 0; font-size: 14px; color: var(--ink-500); }

/* --- Listing detail ------------------------------------------------------- */

.listing__hero { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding: 28px 0 30px; }
.listing__heroinner { display: grid; gap: 22px; }
@media (min-width: 640px) { .listing__heroinner { grid-template-columns: 200px 1fr; } }
@media (min-width: 900px) { .listing__heroinner { grid-template-columns: 280px 1fr; gap: 32px; } }

.listing__heromedia {
  aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center;
}
.listing__heromedia img { width: 100%; height: 100%; object-fit: cover; }
.listing__heroplaceholder { font-family: var(--display); font-size: 68px; font-weight: 700; color: #c3ccdd; }

.listing__eyebrow { font-size: 14px; color: var(--ink-500); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 7px; }
.listing__title { font-family: var(--display); font-size: 28px; letter-spacing: -.02em; margin-bottom: 10px; }
@media (min-width: 900px) { .listing__title { font-size: 38px; } }
.listing__claimed {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px;
  font-size: 13px; font-weight: 650; color: var(--green-600);
  background: var(--green-100); padding: 4px 11px; border-radius: var(--r-pill);
}
.listing__ratingrow { margin-bottom: 14px; }
.listing__summary { color: var(--ink-600); max-width: 65ch; }
.listing__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.listing__layout { display: grid; gap: 32px; padding: 34px 0 60px; }
@media (min-width: 900px) { .listing__layout { grid-template-columns: minmax(0,1fr) 300px; gap: 40px; } }
.listing__about { margin-bottom: 32px; }
.listing__side { display: grid; gap: 18px; align-content: start; }

.side-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.side-card--accent { background: var(--blue-050); border-color: #cfdefa; }
.side-card__title { font-size: 16px; margin-bottom: 12px; }
.side-card p { font-size: 14px; color: var(--ink-500); margin-bottom: 14px; }

.detail-list { margin: 0 0 14px; font-size: 14px; }
.detail-list dt { font-weight: 650; color: var(--ink-900); margin-top: 10px; }
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: 2px 0 0; color: var(--ink-600); }

.mini-list li { border-bottom: 1px solid var(--line-soft); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { display: block; padding: 10px 0; color: inherit; }
.mini-list a:hover { text-decoration: none; }
.mini-list a:hover .mini-list__name { color: var(--blue-600); }
.mini-list__name { display: block; font-weight: 600; font-size: 14px; color: var(--ink-900); margin-bottom: 3px; }

.mini-stats li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.mini-stats li:last-child { border-bottom: 0; }
.mini-stats__value { color: var(--ink-500); font-weight: 600; white-space: nowrap; }

.share { position: relative; }
.share__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 210px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.share__menu a, .share__menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  font-size: 14px; color: var(--ink-700); background: none; border: 0; border-radius: var(--r-sm);
}
.share__menu a:hover, .share__menu button:hover { background: var(--bg-sunk); text-decoration: none; }

/* --- Listing map + opening hours ------------------------------------------ */

.listing-map {
  height: 190px;
  margin-bottom: 16px;
  border-radius: var(--r);
  background: var(--bg-sunk);
  overflow: hidden;
  position: relative;
  z-index: 0;               /* keeps Leaflet panes under the sticky header */
}
.listing-map::after {
  content: "Loading map\2026";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 13px; color: var(--ink-400);
}
.listing-map.is-ready::after { content: none; }
.listing-map.is-failed::after { content: "Map unavailable"; }
.listing-map .leaflet-container { font: inherit; }
.listing-map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.85); }

.side-card__actions { display: grid; gap: 8px; margin-top: 14px; }
.side-card__note { font-size: 12px; color: var(--ink-400); margin: 12px 0 0; }

.hours { margin: 0; font-size: 14px; }
.hours__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft);
}
.hours__row:last-child { border-bottom: 0; }
.hours__row dt { color: var(--ink-600); margin: 0; font-weight: 400; }
.hours__row dd { margin: 0; color: var(--ink-900); text-align: right; font-variant-numeric: tabular-nums; }
.hours__row.is-today dt, .hours__row.is-today dd { font-weight: 650; color: var(--ink-900); }
.hours__today {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--blue-100); color: var(--blue-700); border-radius: var(--r-pill);
}
.hours dd.is-closed { color: var(--ink-400); }
.hours-always { font-size: 14px; font-weight: 600; color: var(--green-600); margin: 0; }
.hours-raw { font-size: 14px; color: var(--ink-600); margin: 0; word-break: break-word; }

/* --- Reviews -------------------------------------------------------------- */

.reviews__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.reviews__sort, .browse__sort, .form--inlinepicker { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.reviews__sort label, .browse__sort label { color: var(--ink-500); }
select, .admin-filter input, .admin-filter select {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: 14px;
}
select:focus { outline: none; border-color: var(--blue-600); }

.review-feed { display: grid; gap: 18px; }
.reviews__list { display: grid; gap: 18px; margin-bottom: 26px; }

.review {
  padding: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  scroll-margin-top: 90px;
}
.review:target { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.review__head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.review__author { display: flex; gap: 11px; align-items: center; color: inherit; }
.review__author:hover { text-decoration: none; }
.review__author:hover .review__username { color: var(--blue-600); }
.review__authorinfo { display: flex; flex-direction: column; gap: 3px; }
.review__username { font-weight: 650; color: var(--ink-900); font-size: 15px; }
.review__meta { font-size: 12px; color: var(--ink-400); }
.review__rating { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.review__rating time { font-size: 12px; color: var(--ink-400); }
.review__subject { font-size: 14px; color: var(--ink-500); margin-bottom: 8px; }
.review__subjectcity { color: var(--ink-400); }
.review__title { font-size: 17px; margin-bottom: 8px; }
.review__body { color: var(--ink-600); font-size: 15px; }
.review__body p { margin-bottom: .8em; }
.review__visit { font-size: 13px; color: var(--ink-400); margin: 10px 0 0; }

.review__aspects { display: grid; gap: 7px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); }
@media (min-width: 640px) { .review__aspects { grid-template-columns: repeat(2, 1fr); gap: 8px 24px; } }
.review__aspects li { display: grid; grid-template-columns: 1fr 70px 34px; align-items: center; gap: 10px; font-size: 13px; }
.review__aspectlabel { color: var(--ink-600); }
.review__aspectbar { height: 6px; background: var(--bg-sunk); border-radius: var(--r-pill); overflow: hidden; }
.review__aspectbar span { display: block; height: 100%; background: var(--star); border-radius: var(--r-pill); }
.review__aspectscore { text-align: right; color: var(--ink-400); }

.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.review__photos img { width: 106px; height: 80px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.review__photos a:hover img { border-color: var(--blue-600); }

.review__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.review__action { background: none; border: 0; padding: 4px; font-size: 13px; color: var(--ink-400); text-decoration: underline; }
.review__action:hover { color: var(--ink-700); }
.review__action--danger:hover { color: var(--red-600); }
.review__inlineform { display: inline; }

.owner-response {
  margin-top: 16px; padding: 15px 17px;
  background: var(--blue-050); border-left: 3px solid var(--blue-600); border-radius: 0 var(--r) var(--r) 0;
}
.owner-response__head { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 7px; font-size: 13px; }
.owner-response__badge { background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .04em; }
.owner-response__who { font-weight: 650; color: var(--ink-900); }
.owner-response__head time { color: var(--ink-400); }
.owner-response__body { font-size: 14px; color: var(--ink-600); }

.owner-review { display: grid; gap: 0; }
.respond-form { margin: -1px 0 0; padding: 18px 20px 20px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.respond-form textarea { margin-bottom: 10px; }
.respond-edit { margin-top: 8px; }
.respond-edit summary { cursor: pointer; font-size: 14px; color: var(--ink-500); padding: 6px 0; }

/* --- Avatars, titles, badges ---------------------------------------------- */

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-sunk); }
.avatar--sm { width: 32px; height: 32px; }
.avatar--lg { width: 88px; height: 88px; }
.avatar--xl { width: 96px; height: 96px; }
.avatar--initial {
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue-600), var(--navy-800));
  color: #fff; font-weight: 700; font-size: 18px;
}
.avatar--sm.avatar--initial { font-size: 14px; }
.avatar--lg.avatar--initial, .avatar--xl.avatar--initial { font-size: 34px; }
@media (min-width: 640px) { .avatar--xl { width: 112px; height: 112px; } }

.title-badge {
  display: inline-block; padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.title-badge--lg { font-size: 13px; padding: 4px 13px; }
.title-badge--slate  { background: #eceff4; color: #4a5567; }
.title-badge--sky    { background: #e2f0fd; color: #1c6394; }
.title-badge--teal   { background: #ddf3f0; color: #10645c; }
.title-badge--green  { background: var(--green-100); color: #0d6a4c; }
.title-badge--amber  { background: var(--amber-100); color: var(--amber-700); }
.title-badge--orange { background: #fdeadd; color: #96501b; }
.title-badge--violet { background: #eee7fc; color: #5b3aa8; }
.title-badge--rose   { background: #fce7ee; color: #9c2c53; }

.badge-chip {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700;
}
.badge-chip--bronze   { background: #f7e8d8; color: #8a5a25; }
.badge-chip--silver   { background: #eceef2; color: #4d5768; }
.badge-chip--gold     { background: #fbeec4; color: #866418; }
.badge-chip--platinum { background: #e4ecfb; color: #2a4b8d; }

.badge-list li { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.badge-list li:last-child { border-bottom: 0; }
.badge-list__desc { font-size: 13px; color: var(--ink-500); }

.badge-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.badge-card {
  padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  opacity: .58; transition: opacity .15s, border-color .15s;
}
.badge-card.is-earned { opacity: 1; border-color: #cfdefa; background: var(--blue-050); }
.badge-card__desc { font-size: 14px; color: var(--ink-600); margin: 10px 0 8px; }
.badge-card__points { font-size: 13px; font-weight: 700; color: var(--green-600); margin: 0; }
.badge-card__status { font-size: 12px; color: var(--ink-400); margin: 8px 0 0; }

.progress { height: 9px; background: var(--bg-sunk); border-radius: var(--r-pill); overflow: hidden; }
.progress--sm { height: 6px; margin-top: 10px; }
.progress__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), #5b8ef0); border-radius: var(--r-pill); }

.badge-toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 150; width: min(330px, calc(100vw - 32px));
  padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.badge-toast__close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 20px; color: var(--ink-400); }
.badge-toast__eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--green-600); margin-bottom: 10px; }
.badge-toast__item { margin-bottom: 12px; }
.badge-toast__item p { font-size: 13px; color: var(--ink-500); margin: 6px 0 0; }
.badge-toast__link { font-size: 14px; font-weight: 600; }

.reward-list { display: grid; gap: 9px; margin: 18px 0 22px; }
.reward-list--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 24px; }
.reward-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-600); }
.reward-list__points {
  flex: none; min-width: 46px; text-align: center;
  background: var(--green-100); color: #0d6a4c;
  font-weight: 700; font-size: 14px; padding: 3px 9px; border-radius: var(--r-pill);
}

.title-ladder { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.title-ladder li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.title-ladder__points { font-size: 13px; color: var(--ink-500); white-space: nowrap; }

/* --- Leaderboard ---------------------------------------------------------- */

.leader-list li { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.leader-list li:last-child { border-bottom: 0; }
.leader-list__rank { width: 20px; font-size: 13px; font-weight: 700; color: var(--ink-400); flex: none; }
.leader-list__person { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; color: inherit; }
.leader-list__person:hover { text-decoration: none; }
.leader-list__name { display: block; font-weight: 600; font-size: 14px; color: var(--ink-900); margin-bottom: 2px; }
.leader-list__score { font-weight: 700; font-size: 14px; color: var(--blue-600); flex: none; }

.leaderboard { display: grid; gap: 8px; }
.leaderboard__row {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}
.leaderboard__row--top { border-color: #cfdefa; background: var(--blue-050); }
.leaderboard__rank { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--ink-400); text-align: center; }
.leaderboard__row--top .leaderboard__rank { color: var(--blue-600); }
.leaderboard__person { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.leaderboard__person:hover { text-decoration: none; }
.leaderboard__name { display: block; font-weight: 650; color: var(--ink-900); margin-bottom: 3px; }
.leaderboard__meta { display: none; font-size: 13px; color: var(--ink-500); }
.leaderboard__score { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--blue-600); }
@media (min-width: 640px) {
  .leaderboard__row { grid-template-columns: 40px 1fr 120px auto; }
  .leaderboard__meta { display: block; text-align: right; }
}

/* --- Profile -------------------------------------------------------------- */

.profile-head { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding: 30px 0; }
.profile-head__inner { display: grid; gap: 24px; }
@media (min-width: 900px) { .profile-head__inner { grid-template-columns: 1fr auto; align-items: center; } }
.profile-head__identity { display: flex; gap: 18px; align-items: flex-start; }
.profile-head__name { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin-bottom: 4px; }
.profile-head__handle { font-size: 14px; color: var(--ink-400); margin-bottom: 8px; }
.profile-head__title { margin-bottom: 10px; }
.profile-head__location, .profile-head__joined { font-size: 14px; color: var(--ink-500); margin-bottom: 6px; }
.profile-head__bio { color: var(--ink-600); max-width: 55ch; margin-bottom: 10px; }
.profile-head__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 900px) { .profile-head__stats { gap: 24px; } }
.stat { text-align: center; padding: 10px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.stat__value { display: block; font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink-900); }
.stat__label { display: block; font-size: 12px; color: var(--ink-400); }

.profile-layout { display: grid; gap: 32px; padding: 34px 0 60px; }
@media (min-width: 900px) { .profile-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 40px; } }
.profile-layout__side { display: grid; gap: 18px; align-content: start; }

/* --- Browse --------------------------------------------------------------- */

.browse { display: grid; gap: 30px; padding: 30px 0 60px; }
@media (min-width: 900px) { .browse { grid-template-columns: 250px minmax(0,1fr); gap: 40px; } }
.browse__filters { display: grid; gap: 20px; align-content: start; }
.filter-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.filter-list a {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 14px; font-size: 14px; color: var(--ink-600);
  border-bottom: 1px solid var(--line-soft);
}
.filter-list li:last-child a { border-bottom: 0; }
.filter-list a:hover { background: var(--bg-tint); text-decoration: none; color: var(--navy-800); }
.filter-list a.is-active { background: var(--blue-100); color: var(--blue-700); font-weight: 650; }
.filter-list__count { font-size: 12px; color: var(--ink-400); }
.browse__sort { justify-content: flex-end; margin-bottom: 18px; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.filter-tabs a {
  display: block; padding: 7px 15px; font-size: 14px; font-weight: 550;
  color: var(--ink-600); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
}
.filter-tabs a:hover { border-color: var(--blue-600); text-decoration: none; }
.filter-tabs a.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* --- Pagination ----------------------------------------------------------- */

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination__pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pagination__page, .pagination__step {
  display: block; padding: 8px 13px; font-size: 14px; font-weight: 550;
  color: var(--ink-600); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.pagination__page:hover, .pagination__step:hover { border-color: var(--blue-600); color: var(--blue-600); text-decoration: none; }
.pagination__page.is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pagination__step.is-disabled { opacity: .4; pointer-events: none; }
.pagination__gap { padding: 8px 4px; color: var(--ink-400); }

/* --- Forms ---------------------------------------------------------------- */

.form-page { padding: 30px 0 60px; }
.form-page__back { margin-bottom: 18px; font-size: 14px; }
.form-page__head { margin-bottom: 26px; }
.form-page__head h1 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 8px; }
.form-page__subject { display: flex; gap: 14px; align-items: center; }
.form-page__thumb { width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; flex: none; }
.form-page__eyebrow { font-size: 13px; color: var(--ink-400); margin-bottom: 4px; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; font-size: 15px; color: var(--ink-900); }
.field__labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field__aside { font-size: 13px; }
.field__hint { font-size: 13px; color: var(--ink-500); margin: 0; font-weight: 400; }
.field__error { font-size: 13px; color: var(--red-600); margin: 0; font-weight: 500; }
.field__counter { font-size: 13px; color: var(--ink-400); margin: 0; }
.field__bonus { color: var(--green-600); }
.req { color: var(--red-600); }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="tel"], input[type="search"], input[type="date"], input[type="number"], textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; font-size: 16px; color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100);
}
input::placeholder, textarea::placeholder { color: var(--ink-400); }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
input[type="file"] { font-size: 14px; padding: 10px 0; }

.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue-600); }
.field--check label { font-size: 14px; color: var(--ink-600); }
.field--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--turnstile { min-height: 68px; }

.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.form__legal { font-size: 13px; color: var(--ink-400); margin: 0; }

.form-errors {
  padding: 14px 18px; margin-bottom: 22px;
  background: var(--red-100); border: 1px solid #f2c2c2; border-radius: var(--r); color: #962929;
}
.form-errors p { font-weight: 650; margin-bottom: 6px; }
.form-errors ul { list-style: disc; padding-left: 20px; font-size: 14px; }
.form-errors li { margin-bottom: 3px; }

.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { cursor: pointer; padding: 2px; line-height: 0; }
.rating-input svg { width: 34px; height: 34px; fill: var(--star-empty); transition: fill .12s, transform .12s; }
.rating-input label:hover svg,
.rating-input label:hover ~ label svg,
.rating-input input:checked ~ label svg { fill: var(--star); }
.rating-input label:hover svg { transform: scale(1.12); }
.rating-input input:focus-visible + label svg { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 3px; }
.rating-input__label { margin-left: 12px; font-size: 14px; font-weight: 600; color: var(--ink-600); order: 10; }

.aspect-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .aspect-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 26px; } }
.aspect-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aspect-row__label { font-size: 14px; color: var(--ink-600); }
.aspect-row__stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.aspect-row__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aspect-row__stars label {
  width: 20px; height: 20px; cursor: pointer;
  background: var(--star-empty);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: background-color .12s;
}
.aspect-row__stars label:hover,
.aspect-row__stars label:hover ~ label,
.aspect-row__stars input:checked ~ label { background: var(--star); }

.photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.photo-strip img { width: 90px; height: 68px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }

.choose-add { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; padding: 18px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r); }
.choose-add p { margin: 0; color: var(--ink-500); font-size: 15px; }

/* --- Auth ----------------------------------------------------------------- */

.auth { display: grid; place-items: center; padding: 40px 16px 70px; min-height: 62vh; }
.auth__panel { width: 100%; max-width: 440px; padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.auth__panel--message { text-align: center; }
.auth__title { font-family: var(--display); font-size: 25px; letter-spacing: -.02em; margin-bottom: 8px; }
.auth__sub { color: var(--ink-500); font-size: 15px; margin-bottom: 24px; }
.auth__alt { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--ink-500); }
.auth__note { margin: 18px 0 0; font-size: 13px; color: var(--ink-400); text-align: center; }

/* --- Settings, business, notices ------------------------------------------ */

.settings-block { padding: 26px 0; border-top: 1px solid var(--line-soft); }
.settings-block:first-of-type { border-top: 0; }
.settings-block--danger { margin-top: 14px; padding: 22px; background: var(--red-100); border: 1px solid #f2c2c2; border-radius: var(--r-lg); }
.settings-block--danger p { font-size: 14px; color: #7a2b2b; }
.avatar-form { display: flex; gap: 20px; align-items: flex-start; }
.avatar-form > div { display: grid; gap: 8px; }

.ledger li { display: grid; grid-template-columns: 1fr auto 90px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.ledger li:last-child { border-bottom: 0; }
.ledger__delta { font-weight: 700; color: var(--green-600); }
.ledger__delta.is-negative { color: var(--red-600); }
.ledger time { font-size: 13px; color: var(--ink-400); text-align: right; }

.notice { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 20px; margin-bottom: 26px; border: 1px solid; border-radius: var(--r-lg); }
.notice h2 { font-size: 16px; margin-bottom: 5px; }
.notice p { font-size: 14px; margin: 0; }
.notice--warning { background: var(--amber-100); border-color: #f0d9a8; color: var(--amber-700); }
.notice--warning h2 { color: #6b4d10; }
.notice--info { background: var(--blue-050); border-color: #cfdefa; color: #2c4a86; }
.notice--info h2 { color: var(--navy-800); }

.manage-list { display: grid; gap: 10px; }
.manage-list__item { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.manage-list__item h3 { font-size: 16px; margin-bottom: 4px; }
.manage-list__meta { font-size: 13px; color: var(--ink-500); margin: 0; }
.manage-list__actions { display: flex; align-items: center; gap: 10px; }

.pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 650; }
.pill--ok { background: var(--green-100); color: #0d6a4c; }
.pill--warn { background: var(--amber-100); color: var(--amber-700); }
.pill--danger { background: var(--red-100); color: #962929; }
.pill--muted { background: var(--bg-sunk); color: var(--ink-500); }

.empty { padding: 44px 24px; text-align: center; background: var(--bg-tint); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty h2, .empty h3 { font-size: 19px; margin-bottom: 8px; }
.empty p { color: var(--ink-500); max-width: 46ch; margin: 0 auto 18px; }

.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--blue-700)); color: #fff; padding: 40px 0; }
.cta-band--inline { border-radius: var(--r-lg); padding: 28px; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: 23px; margin-bottom: 6px; }
.cta-band p { color: #c3ccdf; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.country-block { margin-bottom: 34px; }

/* --- Error pages ---------------------------------------------------------- */

.error-page { padding: 60px 0 80px; text-align: center; max-width: 720px; }
.error-page__code { font-family: var(--display); font-size: 64px; font-weight: 700; color: var(--blue-100); line-height: 1; margin: 0 0 8px; }
.error-page__title { font-size: 26px; letter-spacing: -.02em; margin-bottom: 10px; }
.error-page__sub { color: var(--ink-500); margin-bottom: 26px; }
.error-page .hero__search { margin: 0 auto; }
.error-page .btn-row { justify-content: center; }

/* --- Modal ---------------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(16,24,47,.55); }
.modal__panel { position: relative; width: 100%; max-width: 460px; padding: 26px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.modal__panel h2 { font-size: 20px; margin-bottom: 6px; }
.modal__panel > p { color: var(--ink-500); font-size: 14px; margin-bottom: 18px; }
.modal__panel label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.modal__panel select { width: 100%; }
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 24px; color: var(--ink-400); line-height: 1; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* --- Admin ---------------------------------------------------------------- */

.admin { padding: 26px 0 70px; }
.admin__title { font-size: 26px; letter-spacing: -.02em; margin-bottom: 16px; }
.admin-nav { margin-bottom: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-nav ul { display: flex; gap: 2px; min-width: max-content; }
.admin-nav a { display: block; padding: 10px 15px; font-size: 14px; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; white-space: nowrap; }
.admin-nav a:hover { color: var(--navy-800); text-decoration: none; }
.admin-nav a.is-active { color: var(--blue-600); border-bottom-color: var(--blue-600); }

.admin-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 30px; }
.admin-card { display: block; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: inherit; }
.admin-card:hover { text-decoration: none; border-color: var(--blue-600); }
.admin-card.is-alert { background: var(--amber-100); border-color: #f0d9a8; }
.admin-card__n { display: block; font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--ink-900); }
.admin-card__label { display: block; font-size: 13px; color: var(--ink-500); margin-top: 2px; }

.admin-panels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 34px; }
.admin-panel { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.admin-panel h2 { font-size: 15px; margin-bottom: 14px; }
.admin-panel__sub { font-weight: 400; color: var(--ink-400); font-size: 13px; }
.admin-panel__total { font-size: 13px; color: var(--ink-500); margin: 12px 0 0; }
.spark { width: 100%; height: 40px; }

.admin-section { margin-top: 30px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: block; overflow-x: auto; white-space: nowrap; }
@media (min-width: 900px) { .admin-table { display: table; white-space: normal; } }
.admin-table th { text-align: left; padding: 11px 14px; background: var(--bg-tint); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table__sub { font-size: 12px; color: var(--ink-400); }

.admin-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-filter input { min-width: 200px; }

.admin-queue { display: grid; gap: 16px; }
.admin-queue__item { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.admin-queue__item header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.admin-queue__item h2 { font-size: 17px; margin-bottom: 4px; }
.admin-queue__meta { font-size: 13px; color: var(--ink-500); margin: 0 0 4px; }
.admin-queue__body { padding: 14px 16px; background: var(--bg-tint); border-radius: var(--r); font-size: 14px; color: var(--ink-600); margin-bottom: 14px; }
.admin-queue__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-queue__actions input[type="text"] { flex: 1; min-width: 180px; }
.admin-queue__note { font-size: 13px; color: var(--ink-500); margin: 0; }

.claim-detail { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; margin: 0 0 16px; }
.claim-detail dt { color: var(--ink-500); }
.claim-detail dd { margin: 0; color: var(--ink-900); }
.claim-detail__warn { color: var(--red-600); font-weight: 600; }

.admin-add, .admin-inline-edit { margin-bottom: 20px; }
.admin-add summary, .admin-inline-edit summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 0; color: var(--blue-600); }
.admin-add > form, .admin-inline-edit > form { padding: 20px; margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.admin-inline-edit > form { min-width: 300px; }
.admin-settings { max-width: 600px; }

/* --- Footer --------------------------------------------------------------- */

.site-footer { background: var(--navy-900); color: #98a3ba; padding: 46px 0 28px; margin-top: auto; }
.site-footer__top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.10); }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 300px 1fr; gap: 56px; } }
.site-footer__tagline { font-size: 14px; margin: 14px 0 18px; max-width: 40ch; }
.site-footer__cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.site-footer__col h2 { font-size: 13px; color: #fff; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.site-footer__col a { display: block; padding: 4px 0; font-size: 14px; color: #98a3ba; }
.site-footer__col a:hover { color: #fff; text-decoration: none; }

.site-footer__cities { padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.site-footer__cities h2 { font-size: 13px; color: #fff; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.site-footer__cities ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__cities a { font-size: 14px; color: #98a3ba; }
.site-footer__cities a:hover { color: #fff; text-decoration: none; }
.site-footer__more { color: #8fb4f5 !important; font-weight: 600; }

.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 22px; font-size: 13px; }
.site-footer__bottom p { margin: 0; }
.site-footer__note { color: #6f7b93; }

/* --- Layout glue ---------------------------------------------------------- */

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* --- Print ---------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .listing__actions, .review__foot,
  .badge-toast, .breadcrumbs, .pagination, .flashes { display: none !important; }
  body { color: #000; }
  .card, .review { border-color: #ccc; break-inside: avoid; }
}
