/* SearchFindGet design system.
   Mobile-first, light and dark, no scripts required, no external files.
   Order: tokens, base, shell (header, tab bar, footer), components, pages,
   then phone-only and desktop-only layouts, then motion. */

/* ================================================================== Tokens */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-alt: #f3f1ed;
  --surface-glass: rgb(250 249 246 / 86%);
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #78716c;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;

  --brand: #0369a1;
  --brand-strong: #075985;
  --brand-ink: #ffffff;
  --brand-soft: #e0f2fe;
  --brand-glow: rgb(2 132 199 / 22%);
  --accent: #c2570c;
  --star: #d97706;

  --ok: #15803d;
  --ok-soft: #e3f4e8;
  --stop: #b91c1c;
  --stop-soft: #fcebea;
  --verified: #0b5cab;
  --verified-soft: #e3effc;
  --owner: #6b3fa0;
  --owner-soft: #f0e8fb;

  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 20px;
  --radius-small: var(--radius-s); /* older name, still used */

  --shadow-1: 0 1px 2px rgb(28 25 23 / 6%), 0 1px 1px rgb(28 25 23 / 4%);
  --shadow-2: 0 2px 4px rgb(28 25 23 / 5%), 0 10px 24px -8px rgb(28 25 23 / 14%);
  --shadow-3: 0 4px 10px rgb(28 25 23 / 7%), 0 24px 48px -12px rgb(28 25 23 / 26%);
  --shadow: var(--shadow-1);

  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  --wrap: 1160px;
  --header-h: 64px;
  --tabbar-h: 62px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f172a;
    --surface: #17213a;
    --surface-alt: #202c48;
    --surface-glass: rgb(15 23 42 / 82%);
    --ink: #f1f5f9;
    --ink-soft: #b9c4d6;
    --ink-faint: #8a98ae;
    --line: #283552;
    --line-strong: #3d4c6e;

    --brand: #38bdf8;
    --brand-strong: #7dd3fc;
    --brand-ink: #04263a;
    --brand-soft: #12314d;
    --brand-glow: rgb(56 189 248 / 26%);
    --accent: #f0975a;
    --star: #fbbf4a;

    --ok: #6fd596;
    --ok-soft: #123528;
    --stop: #f6958b;
    --stop-soft: #3b1a17;
    --verified: #86bdf5;
    --verified-soft: #1a3358;
    --owner: #c7a8ef;
    --owner-soft: #291f3d;

    --shadow-1: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-2: 0 2px 4px rgb(0 0 0 / 30%), 0 12px 28px -8px rgb(0 0 0 / 55%);
    --shadow-3: 0 4px 10px rgb(0 0 0 / 35%), 0 28px 56px -12px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #17213a;
  --surface-alt: #202c48;
  --surface-glass: rgb(15 23 42 / 82%);
  --ink: #f1f5f9;
  --ink-soft: #b9c4d6;
  --ink-faint: #8a98ae;
  --line: #283552;
  --line-strong: #3d4c6e;

  --brand: #38bdf8;
  --brand-strong: #7dd3fc;
  --brand-ink: #04263a;
  --brand-soft: #12314d;
  --brand-glow: rgb(56 189 248 / 26%);
  --accent: #f0975a;
  --star: #fbbf4a;

  --ok: #6fd596;
  --ok-soft: #123528;
  --stop: #f6958b;
  --stop-soft: #3b1a17;
  --verified: #86bdf5;
  --verified-soft: #1a3358;
  --owner: #c7a8ef;
  --owner-soft: #291f3d;

  --shadow-1: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-2: 0 2px 4px rgb(0 0 0 / 30%), 0 12px 28px -8px rgb(0 0 0 / 55%);
  --shadow-3: 0 4px 10px rgb(0 0 0 / 35%), 0 28px 56px -12px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

/* Category colour families. --tone is the hue; --tone-fg is readable on the tinted tile. */
.tone-food-drink { --tone: #e8590c; }
.tone-health { --tone: #e03131; }
.tone-shopping { --tone: #7048e8; }
.tone-repairs-services { --tone: #1971c2; }
.tone-education { --tone: #0c8599; }
.tone-money { --tone: #2b8a3e; }
.tone-transport { --tone: #d9730d; }
.tone-government-public { --tone: #475569; }
.tone-accommodation { --tone: #c2255c; }
.tone-worship { --tone: #9c36b5; }
.tone-entertainment { --tone: #d6336c; }

/* ================================================================== Base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5rem; text-wrap: balance; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0 0 .75rem; text-wrap: pretty; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: .85em; background: var(--surface-alt); padding: .1em .4em; border-radius: 6px; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; color: var(--ink-soft); }
::selection { background: var(--brand-glow); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: absolute; inset-inline-start: 8px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 650;
}
.skip-link:focus { top: 8px; }

/* ================================================================== Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgb(28 25 23 / 5%); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.025em; }
.brand__logo { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 4px var(--brand-glow)); }
.brand__logo-bg { fill: var(--brand); }
.brand__logo-pin { fill: var(--brand-ink); }
.brand__mid { color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: .95rem; border-radius: 999px;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--ink); background: var(--surface-alt); }
.site-nav .button { margin-inline-start: 6px; }

.avatar {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-strong)); color: var(--brand-ink);
  font-weight: 700; font-size: .9rem; letter-spacing: 0;
}
.avatar--soft { background: var(--surface-alt); color: var(--ink-soft); }

.icon-button {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-soft); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.icon-button:hover { background: var(--surface-alt); color: var(--ink); }
.icon-button[hidden] { display: none; }
.icon-button .icon { width: 20px; height: 20px; }
.theme-toggle .icon--sun { display: none; }
.user-menu { position: relative; margin-inline-start: 6px; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; color: var(--ink-soft); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { background: var(--surface-alt); }
.user-menu__panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-3);
}
.user-menu__who { padding: 10px 12px 8px; font-size: .85rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; }
.user-menu__panel a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-weight: 500; }
.user-menu__panel a:hover { background: var(--surface-alt); }
.user-menu__panel .icon { color: var(--ink-faint); }

/* ================================================================== Buttons */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-s);
  background: var(--brand); color: var(--brand-ink);
  font: inherit; font-weight: 650; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgb(28 25 23 / 14%), inset 0 1px 0 rgb(255 255 255 / 16%);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.button:hover { background: var(--brand-strong); }
.button:active { transform: translateY(1px) scale(.985); }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.button--small { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.button--large { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; border-radius: var(--radius); }
.button--block { width: 100%; }
.button--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.button--ghost:hover { background: var(--surface-alt); border-color: var(--ink-faint); }
.button--quiet { background: transparent; color: var(--brand); box-shadow: none; }
.button--quiet:hover { background: var(--brand-soft); }
.button--whatsapp { background: #128c4a; color: #fff; }
.button--whatsapp:hover { background: #0e7740; }
.button--danger { background: var(--stop); color: #fff; }
.button--danger:hover { background: var(--stop); filter: brightness(.92); }
.button--provider { width: 100%; }
.button[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); box-shadow: none; }
.button-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .button--whatsapp { background: #1fae63; color: #03200f; }
  :root:not([data-theme="light"]) .button--danger { color: #2a0906; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
}
:root[data-theme="dark"] .button--whatsapp { background: #1fae63; color: #03200f; }
:root[data-theme="dark"] .button--danger { color: #2a0906; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }

/* ================================================================== Search */
.search-form {
  display: grid; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: 8px; box-shadow: var(--shadow-3);
}
.search-form__field {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-s); cursor: text; min-width: 0;
}
.search-form__field > .icon { grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--ink-faint); }
.search-form__field:focus-within { background: var(--surface-alt); box-shadow: inset 0 0 0 2px var(--brand); }
.search-form__field:focus-within > .icon { color: var(--brand); }
.search-form__label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.2; }
.search-form .search-form__input {
  width: 100%; min-height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font: inherit; font-size: 1.03rem; color: var(--ink); outline: 0; text-overflow: ellipsis;
}
.search-form .search-form__input::placeholder { color: var(--ink-faint); opacity: 1; }
.search-form .search-form__input::-webkit-search-cancel-button { display: none; }
.search-form__field + .search-form__field { border-top: 1px solid var(--line); border-start-start-radius: 0; border-start-end-radius: 0; }
.search-form__submit { margin-top: 8px; min-height: 52px; border-radius: var(--radius); font-size: 1.02rem; }
.search-form__key { display: none; }

.search-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 0; }
.search-form--compact { box-shadow: none; padding: 4px; border-radius: var(--radius); background: var(--bg); }
.search-form--compact .search-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-form--compact .search-form__field { grid-template-columns: auto 1fr auto; padding-block: 6px; }
.search-form--compact .search-form__field > .icon { grid-row: auto; }
.search-form--compact .search-form__submit { min-height: 44px; margin-top: 4px; border-radius: var(--radius-s); }

/* ================================================================== Hero */
.hero {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  background: linear-gradient(155deg, #082f49 0%, #075985 46%, #0284c7 100%);
  padding: 32px 0 40px; margin-top: calc(-1 * var(--header-h) - env(safe-area-inset-top)); padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 28px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 75% at 92% 0%, rgb(125 211 252 / 38%), transparent 62%),
    radial-gradient(50% 60% at -5% 105%, rgb(250 204 21 / 17%), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 15%) 1px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 80%); mask-image: linear-gradient(to bottom, #000 10%, transparent 80%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero__grid > * { min-width: 0; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px 5px 8px; border-radius: 999px;
  background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 20%); font-size: .82rem; font-weight: 600;
}
.hero__eyebrow .icon { width: 16px; height: 16px; }
.hero__title { font-size: clamp(2.1rem, 8.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin-bottom: 14px; }
.hero__title em { font-style: normal; color: #a5e3ff; }
.hero__lead { color: rgb(255 255 255 / 82%); font-size: 1.08rem; max-width: 46ch; margin-bottom: 22px; }
.hero__chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: rgb(255 255 255 / 75%); }
.hero__chips a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 550;
  background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 18%);
}
.hero__chips a:hover { background: rgb(255 255 255 / 22%); }
.hero :focus-visible { outline-color: #fff; }
.hero .search-form :focus-visible { outline-color: var(--brand); }
.hero__showcase { display: none; }

/* The header sits transparently on top of the hero on the home page. */
.page-home .site-header:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-home .site-header:not(.is-scrolled) .brand,
.page-home .site-header:not(.is-scrolled) .site-nav__link { color: #fff; }
.page-home .site-header:not(.is-scrolled) .brand__mid { color: #a5e3ff; }
.page-home .site-header:not(.is-scrolled) .brand__logo-bg { fill: #fff; }
.page-home .site-header:not(.is-scrolled) .brand__logo-pin { fill: #075985; }
.page-home .site-header:not(.is-scrolled) .site-nav__link:hover { background: rgb(255 255 255 / 14%); }
.page-home .site-header:not(.is-scrolled) .button { background: #fff; color: #0c3a57; }
.page-home .site-header:not(.is-scrolled) .user-menu > summary { color: #fff; }
.page-home .site-header:not(.is-scrolled) .icon-button { color: #fff; }
.page-home .site-header:not(.is-scrolled) .icon-button:hover { background: rgb(255 255 255 / 14%); }
.page-home .site-header:not(.is-scrolled) .user-menu > summary:hover,
.page-home .site-header:not(.is-scrolled) .user-menu[open] > summary { background: rgb(255 255 255 / 14%); }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.point { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.point__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.point__title { font-weight: 700; margin: 0 0 2px; }
.point p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ================================================================== Sections and categories */
.section { padding: 36px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section__title { font-size: 1.35rem; margin: 0; }
.section__sub { color: var(--ink-soft); margin: 4px 0 0; font-size: .95rem; }
.section__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section__more:hover { text-decoration: underline; }

.category-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.category-tile {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1);
}
.tile-icon {
  --tone-fg: var(--tone, var(--brand));
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px;
  background: var(--brand-soft); background: color-mix(in oklab, var(--tone, var(--brand)) 13%, var(--surface)); color: var(--tone-fg);
}
.tile-icon .icon { width: 24px; height: 24px; }
.tile-icon--large { width: 60px; height: 60px; border-radius: 17px; }
.tile-icon--large .icon { width: 30px; height: 30px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile-icon { --tone-fg: var(--brand); --tone-fg: color-mix(in oklab, var(--tone, var(--brand)) 55%, white); background: color-mix(in oklab, var(--tone, var(--brand)) 22%, var(--surface)); }
}
:root[data-theme="dark"] .tile-icon { --tone-fg: var(--brand); --tone-fg: color-mix(in oklab, var(--tone, var(--brand)) 55%, white); background: color-mix(in oklab, var(--tone, var(--brand)) 22%, var(--surface)); }
.category-tile__icon { grid-row: 1 / span 2; align-self: start; }
.category-tile__name { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.category-tile__name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.category-tile__children { position: relative; z-index: 1; margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.category-tile__children a { color: var(--ink-soft); text-decoration: none; }
.category-tile__children a:hover { color: var(--brand); text-decoration: underline; }

.cta {
  display: grid; gap: 16px; align-items: center; padding: 24px; border-radius: var(--radius-l); color: #fff;
  background: radial-gradient(70% 120% at 100% 0%, rgb(125 211 252 / 30%), transparent 60%), linear-gradient(140deg, #0a3350, #0369a1);
  box-shadow: var(--shadow-2);
}
.cta__title { font-size: 1.4rem; margin: 0 0 4px; }
.cta p { margin: 0; color: rgb(255 255 255 / 80%); }
.cta .button { background: #fff; color: #0c3a57; }
.cta .button:hover { background: #e6fbf6; }

/* ================================================================== Place cards */
.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.place-list--grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.place-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1);
}
.place-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.place-card__name { font-size: 1.06rem; margin: 0; letter-spacing: -.012em; }
.place-card__name a { color: var(--ink); text-decoration: none; }
.place-card__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.place-card__meta { color: var(--ink-soft); margin: 2px 0 8px; font-size: .9rem; }
.place-card__landmark { display: flex; gap: 6px; font-size: .93rem; margin-bottom: 10px; color: var(--ink); }
.place-card__landmark .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--ink-faint); }
.place-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: .84rem; color: var(--ink-soft); }
.place-card__rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink); }
.place-card__rating .icon { width: 15px; height: 15px; fill: var(--star); stroke: var(--star); }

/* Badges and pills: the label text always carries the meaning; colour only reinforces it. */
.badge, .pill, .state {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 650; letter-spacing: .005em; white-space: nowrap; line-height: 1.5;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-verified { background: var(--verified-soft); color: var(--verified); }
.badge-owner { background: var(--owner-soft); color: var(--owner); }
.badge-community { background: var(--ok-soft); color: var(--ok); }
.badge-unverified { background: var(--surface-alt); color: var(--ink-soft); }
.pill--open { background: var(--ok-soft); color: var(--ok); }
.pill--open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 25%, transparent); }
.pill--closed { background: var(--stop-soft); color: var(--stop); }

.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars .icon { width: 16px; height: 16px; stroke: var(--line-strong); fill: var(--line-strong); stroke-width: 1; }
.stars .icon.is-on { stroke: var(--star); fill: var(--star); }
.stars--large .icon { width: 22px; height: 22px; }

/* ================================================================== Results */
.results { display: grid; gap: 16px; padding-block: 18px 48px; }
.results > * { min-width: 0; }
.results__title { font-size: 1.2rem; margin-bottom: 14px; }
.results__title b { font-weight: 800; }
.filters { display: grid; gap: 10px; }
.filters__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin: 0; font-weight: 700; }
.filters__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.filters__list a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap;
}
.filters__list a .icon { width: 18px; height: 18px; color: var(--ink-faint); }
.filters__list a:hover { border-color: var(--ink-faint); }
.filters__list a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 650; }
.filters__list a[aria-current="true"] .icon { color: inherit; }
.tabs { list-style: none; margin: 0; padding: 4px; display: inline-flex; flex-wrap: wrap; gap: 4px; justify-self: start; background: var(--surface-alt); border-radius: var(--radius); }
.tabs.filters__list a { border-color: transparent; background: transparent; border-radius: var(--radius-s); color: var(--ink-soft); font-weight: 600; }
.tabs.filters__list a:hover { color: var(--ink); border-color: transparent; }
.tabs.filters__list a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); border-color: transparent; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }

.empty { color: var(--ink-soft); }
.empty--box { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-l); padding: 40px 24px; text-align: center; }
.empty--box h2 { color: var(--ink); font-size: 1.15rem; }
.empty--box p { max-width: 44ch; margin-inline: auto; }
.empty__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--surface-alt); color: var(--ink-faint); }
.empty__icon .icon { width: 26px; height: 26px; }

/* ================================================================== Place page */
.place { padding-block: 14px 56px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .85rem; color: var(--ink-faint); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }
.place__header { display: grid; gap: 16px; margin-bottom: 18px; }
.place__title-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.place__name { font-size: clamp(1.55rem, 5.6vw, 2.4rem); letter-spacing: -.028em; font-weight: 800; margin-bottom: 4px; }
.place__meta { color: var(--ink-soft); margin-bottom: 10px; }
.place__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.place__rating { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-soft); text-decoration: none; }
.place__rating strong { color: var(--ink); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.place__grid { display: grid; gap: 14px; }
.place__main, .place__side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.place__main > *, .place__side > * { min-width: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); overflow-wrap: break-word; }
.panel h2 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin-bottom: 12px; }
.panel h2 .icon { width: 19px; height: 19px; color: var(--ink-faint); }
.panel > :last-child { margin-bottom: 0; }
.panel--trust { border-color: color-mix(in oklab, var(--brand) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 6%, var(--surface)), var(--surface) 70%); }
.panel--trust h2 .icon { color: var(--brand); }
.landmark { font-size: 1.1rem; line-height: 1.5; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.facts--hours dd { text-align: end; font-variant-numeric: tabular-nums; }
.facts--hours .is-today { font-weight: 700; color: var(--ink); }
.facts + .small { margin-top: 12px; }
.facts--hours dt.is-today::after { content: "Today"; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 700; vertical-align: 1px; }

.meter { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-soft); }
.meter__dots { display: inline-flex; gap: 4px; }
.meter__dots span { width: 22px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.meter__dots span.is-on { background: var(--ok); }

.offer-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.offer-table th, .offer-table td { text-align: start; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.offer-table tbody tr:last-child > * { border-bottom: 0; }
.offer-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); font-weight: 700; padding-top: 0; }
.offer-table tbody th { font-weight: 600; padding-inline-end: 12px; overflow-wrap: break-word; }
.offer-table td { text-align: end; font-variant-numeric: tabular-nums; }
.offer-table thead th:last-child { text-align: end; }

.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plain-list .muted { display: inline-block; min-width: 86px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--surface-alt); border-radius: 999px; padding: 4px 12px; font-size: .86rem; }

.rating-summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 4px; border-radius: var(--radius-s); background: var(--surface-alt); }
.rating-summary__score { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rating-summary p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-soft); }
.review { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px; }
.review__name { font-weight: 650; }
.review__date { color: var(--ink-faint); font-size: .85rem; }
.review__body > p:last-of-type { margin-bottom: 0; }
.review__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.review--mine { border: 1px solid var(--line); background: var(--surface-alt); border-radius: var(--radius-s); padding: 14px; }
.rating-summary + .review, .card__head + .review { border-top: 0; padding-top: 0; }
.rating-summary + .review--mine, .card__head + .review--mine { padding-top: 14px; border-top: 1px solid var(--line); }

.disclosure { margin-top: 10px; }
.disclosure > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; list-style: none; border-radius: var(--radius-s); }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { color: var(--ink); }
.disclosure > summary .icon { width: 18px; height: 18px; }
.disclosure[open] > summary .icon { transform: rotate(180deg); }
.disclosure > .form { margin-top: 8px; }

/* ================================================================== Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 28px; margin-top: 32px; font-size: .93rem; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.site-footer__tagline { font-weight: 650; margin: 12px 0 4px; }
.site-footer h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink-soft); text-decoration: none; }
.site-footer ul a:hover { color: var(--brand); }
.site-footer__legal { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .85rem; }

/* ================================================================== Messages */
.messages { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.message {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 12px 16px;
  border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); font-weight: 500;
}
.message::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: currentColor; }
.messages .message { margin: 0; }
.message { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.message.is-leaving { opacity: 0; transform: translateY(-6px); }
.message__close {
  flex: none; margin: -4px -6px -4px auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent;
  color: inherit; font: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer; opacity: .7;
}
.message__close:hover { opacity: 1; background: color-mix(in oklab, currentColor 12%, transparent); }
.message--success { border-color: color-mix(in oklab, var(--ok) 40%, var(--line)); color: var(--ok); background: var(--ok-soft); }
.message--error, .message--warning { border-color: color-mix(in oklab, var(--stop) 40%, var(--line)); color: var(--stop); background: var(--stop-soft); }
.message--info { border-color: color-mix(in oklab, var(--verified) 40%, var(--line)); color: var(--verified); background: var(--verified-soft); }

/* ================================================================== Forms */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field > label, .auth form p > label { font-weight: 600; font-size: .92rem; }
.field__hint, .helptext { color: var(--ink-soft); font-size: .85rem; }
.field__optional { color: var(--ink-faint); font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"],
input[type="number"], input[type="search"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  box-shadow: inset 0 1px 2px rgb(28 25 23 / 4%);
}
select { appearance: none; padding-inline-end: 40px; background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
[dir="rtl"] select { background-position: left 14px center; }
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-faint); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--brand); vertical-align: middle; margin: 0; margin-inline-end: 8px; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--stop); font-size: .88rem; font-weight: 600; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--stop); }
.field--error input:focus-visible, .field--error select:focus-visible, .field--error textarea:focus-visible { box-shadow: 0 0 0 4px color-mix(in oklab, var(--stop) 22%, transparent); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form__section { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.form__section > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0; }
.form__step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .8rem; font-weight: 800; }
.choices { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.choices > legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.choices > label { display: flex; align-items: center; min-height: 46px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); cursor: pointer; }
.choices > label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }

/* Star rating input: real radio buttons, drawn as stars. Listed 5 to 1 in the page and shown reversed. */
.rating-input { border: 0; margin: 0; padding: 0; min-width: 0; }
.rating-input > legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.rating-input__stars { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; padding-bottom: 26px; }
.rating-input__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input__stars label { cursor: pointer; padding: 4px; border-radius: 10px; line-height: 0; }
.rating-input__stars label .icon { width: 38px; height: 38px; stroke: var(--line-strong); fill: var(--line-strong); stroke-width: 1; }
.rating-input__stars input:checked ~ label .icon { stroke: var(--star); fill: var(--star); }
.rating-input__stars input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 1px; }
.rating-input__text { position: absolute; inset-inline-start: 4px; bottom: 0; display: none; font-size: .9rem; font-weight: 600; color: var(--ink-soft); line-height: 1.4; white-space: nowrap; }
.rating-input__stars input:checked + label .rating-input__text { display: block; }

/* ================================================================== Sign-in and account screens */
.auth { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px 56px; max-width: 460px; }
.auth--manage { max-width: 900px; }
.auth__intro { text-align: center; display: grid; justify-items: center; gap: 6px; }
.auth__intro .brand__logo { width: 48px; height: 48px; margin-bottom: 6px; }
.auth__tagline { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; margin: 4px 0 0; text-wrap: balance; }
.auth__intro .muted { margin: 0; max-width: 36ch; }
.auth__points { display: none; }
.auth__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px 22px; box-shadow: var(--shadow-2); min-width: 0; }
.auth__card h1 { font-size: 1.55rem; letter-spacing: -.025em; }
.auth__card h2 { font-size: 1.05rem; margin-top: 18px; }
.auth__card form { display: grid; gap: 14px; margin-top: 16px; }
.auth__card form p { display: grid; gap: 6px; margin: 0; }
.auth__card form p:has(input[type="checkbox"]), .auth__card form p:has(input[type="radio"]) { display: flex; align-items: center; }
.auth--entrance .auth__card form > .button, .auth--entrance .auth__card form > button { width: 100%; min-height: 50px; }
.auth--manage .auth__card form { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.auth--manage .auth__card form > :not(.button):not(button) { flex: 1 1 100%; }
.auth__card ul:not(.errorlist):not(.provider-list) { padding-inline-start: 20px; color: var(--ink-soft); font-size: .88rem; }
.auth__rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.auth__panel { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.provider-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.auth__menu { min-width: 0; }
.auth__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.auth__menu a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.auth__menu a:hover { border-color: var(--ink-faint); }

/* ================================================================== Simple pages, lists, moderation */
.page { padding-block: 24px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.page > * { min-width: 0; }
.page--narrow { max-width: 720px; }
.page__title { font-size: clamp(1.6rem, 5.4vw, 2.1rem); letter-spacing: -.028em; font-weight: 800; margin: 0; }
.page__lead { color: var(--ink-soft); margin: 0; font-size: 1.03rem; }
.page__aside { display: none; }
.steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; font-size: .8rem; color: var(--ink-soft); flex-wrap: wrap; }
.steps li { background: var(--surface-alt); border-radius: 999px; padding: 4px 12px; font-weight: 550; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.timeline li { position: relative; padding-inline-start: 42px; counter-increment: step; }
.timeline li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .82rem; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13px; top: 32px; bottom: -14px; width: 2px; background: var(--line); }
.timeline strong { display: block; }
.timeline span { color: var(--ink-soft); font-size: .9rem; }
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); }
.card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.card__head > h2, .card__head > h1 { margin-bottom: 0; }
.card__title { font-size: 1.05rem; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand); text-decoration: underline; }
.card > * + * { margin-top: 8px; }
.card p { margin-bottom: 0; }
.state { background: var(--surface-alt); color: var(--ink-soft); }
.state--pending { background: var(--verified-soft); color: var(--verified); }
.state--approved, .state--auto_approved, .state--published { background: var(--ok-soft); color: var(--ok); }
.state--rejected { background: var(--stop-soft); color: var(--stop); }
.state--hidden, .state--removed, .state--withdrawn { background: var(--surface-alt); color: var(--ink-soft); }
.risk { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .9rem; }
.risk--high { color: var(--stop); }
.risk--low { color: var(--ok); }
.detail-grid { display: grid; gap: 14px; }

/* ================================================================== Photos and edits */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery li { position: relative; margin: 0; border-radius: var(--radius-s); overflow: hidden; background: var(--surface-alt); }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s var(--ease); }
.gallery__caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-size: .8rem; font-weight: 550; line-height: 1.3;
  background: linear-gradient(to top, rgb(0 0 0 / 72%), transparent); pointer-events: none;
}
.photo-review { display: block; margin: 12px 0; border-radius: var(--radius-s); overflow: hidden; background: var(--surface-alt); border: 1px solid var(--line); }
.photo-review img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.panel__foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 600; }
.panel__foot a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.panel__foot a:hover { text-decoration: underline; }
.panel__foot .icon { width: 16px; height: 16px; }
.diff { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: .93rem; table-layout: fixed; }
.diff th, .diff td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.diff thead th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.diff tbody th { width: 24%; font-weight: 600; color: var(--ink-soft); }
.diff__old { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--stop) 60%, transparent); }
.diff__new { background: var(--ok-soft); color: var(--ink); font-weight: 550; }
input[type="file"] {
  width: 100%; padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-s); background: var(--surface-alt);
  color: var(--ink-soft); font: inherit; font-size: .92rem; cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-inline-end: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink);
  font: inherit; font-weight: 650; cursor: pointer;
}
input[type="file"]:hover { border-color: var(--brand); }
.file-note:empty { display: none; }
.file-note { font-weight: 600; color: var(--ink); }
.file-note.is-error { color: var(--stop); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (hover: hover) { .gallery a:hover img { transform: scale(1.04); } }
.callout { border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); border-inline-start: 4px solid var(--accent); background: color-mix(in oklab, var(--accent) 6%, var(--surface)); border-radius: var(--radius-s); padding: 16px; display: grid; gap: 10px; }
.callout > * { margin: 0; }
.callout h2 { font-size: 1.1rem; }

/* ================================================================== Tab bar (phones) */
.tabbar { display: none; }

/* ================================================================== Phone layout */
@media (max-width: 719px) {
  :root { --header-h: 54px; }
  body { padding-bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }
  .wrap { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .site-nav__wide, .user-menu { display: none !important; }
  .site-footer { display: none; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand__logo { width: 27px; height: 27px; }

  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    background: var(--surface-glass); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line);
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
  }
  .tabbar__item {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 3px;
    min-height: var(--tabbar-h); padding: 7px 2px 6px; color: var(--ink-faint); text-decoration: none;
    font-size: .68rem; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent;
  }
  .tabbar__item .icon { width: 24px; height: 24px; }
  .tabbar__icon { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; }
  .tabbar__item[aria-current="page"] { color: var(--brand); }
  .tabbar__item[aria-current="page"] .tabbar__icon { background: var(--brand-soft); }
  .tabbar__item[aria-current="page"] .icon { stroke-width: 2.2; }
  .tabbar__item:active .tabbar__icon { transform: scale(.9); }
  .tabbar__item--primary { color: var(--brand); }
  .tabbar__item--primary .tabbar__icon {
    width: 50px; height: 50px; margin-top: -22px; border-radius: 50%; color: var(--brand-ink);
    background: linear-gradient(145deg, var(--brand), var(--brand-strong));
    box-shadow: 0 0 0 5px var(--bg), 0 8px 18px -4px var(--brand-glow), 0 3px 8px rgb(28 25 23 / 22%);
  }
  .tabbar__item--primary[aria-current="page"] .tabbar__icon { background: linear-gradient(145deg, var(--brand), var(--brand-strong)); }
  .tabbar__item--primary .icon { width: 26px; height: 26px; stroke-width: 2.4; }

  /* Home */
  .hero { padding-bottom: 30px; }
  .hero__lead { font-size: 1rem; }
  .hero__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .hero__chips::-webkit-scrollbar { display: none; }
  .hero__chips li { flex: none; }
  .section { padding: 26px 0; }
  .section__title { font-size: 1.2rem; }

  /* Categories become an app-style icon grid. */
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; }
  .category-tile { grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; text-align: center; }
  .category-tile__icon { grid-row: auto; width: 58px; height: 58px; border-radius: 18px; }
  .category-tile__icon .icon { width: 27px; height: 27px; }
  .category-tile__name { font-size: .74rem; font-weight: 600; line-height: 1.25; }
  .category-tile__children { display: none; }
  .category-tile:active .category-tile__icon { transform: scale(.93); }

  /* Recently confirmed becomes a swipeable row. */
  .place-list--grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 320px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 4px 16px 14px; scrollbar-width: none;
  }
  .place-list--grid::-webkit-scrollbar { display: none; }
  .place-list--grid > * { scroll-snap-align: start; }
  .place-card:active, .card:active { background: var(--surface-alt); }
  .cta { padding: 22px 20px; }
  .cta .button { width: 100%; }

  /* Results: filters become two swipeable chip rows. */
  .search-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 30; padding: 8px 0; }
  .search-form--compact .search-form__field + .search-form__field { display: none; }
  .search-form--compact { grid-template-columns: 1fr auto; align-items: center; }
  .search-form--compact .search-form__submit { margin: 0; min-height: 40px; padding-inline: 14px; }
  .search-form--compact .search-form__submit span { display: none; }
  .filters { gap: 8px; }
  .filters__title { display: none; }
  .filters__list { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .filters__list::-webkit-scrollbar { display: none; }
  .filters__list li { flex: none; }
  .filters__list a { min-height: 36px; }
  .filters__list a .icon { display: none; }

  /* Place page: big thumb-friendly action tiles. */
  .place__title-row .tile-icon { width: 50px; height: 50px; border-radius: 15px; }
  .place__title-row .tile-icon .icon { width: 26px; height: 26px; }
  .actions .button { flex-direction: column; gap: 4px; min-height: 66px; padding: 8px 6px; font-size: .82rem; border-radius: var(--radius); }
  .actions .button .icon { width: 22px; height: 22px; }
  .panel { padding: 18px 16px; }

  /* Forms: the main action stays within reach of the thumb. */
  .form__actions--sticky {
    position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 20;
    margin-inline: -16px; padding: 10px 16px; background: var(--surface-glass);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .form__actions .button { flex: 1 1 100%; }
  .form__actions--sticky .button { flex: 1 1 0; }
  .form__actions--sticky .button--ghost { flex: 0 0 auto; }
  .auth { padding-block: 18px 32px; }
  .auth__card { padding: 22px 18px; }
  .auth__menu ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .auth__menu ul::-webkit-scrollbar { display: none; }
  .auth__menu a { white-space: nowrap; }
  .messages { margin-top: 10px; }
}

@media (max-width: 380px) {
  .category-grid { gap: 14px 2px; }
  .category-tile__icon { width: 52px; height: 52px; border-radius: 16px; }
}

/* ================================================================== Tablet and up */
@media (min-width: 720px) {
  .wrap { padding-inline: 24px; }
  .search-form { grid-template-columns: 1.35fr 1fr auto; align-items: center; padding: 8px; border-radius: 22px; }
  .search-form__field { padding: 10px 16px; border-radius: 15px; }
  .search-form__field + .search-form__field { border-top: 0; border-radius: 15px; position: relative; }
  .search-form__field + .search-form__field::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: -1px; width: 1px; background: var(--line); }
  .search-form__field:focus-within::before, .search-form__field:focus-within + .search-form__field::before { opacity: 0; }
  .search-form__submit { margin: 0 0 0 8px; min-height: 56px; padding-inline: 26px; border-radius: 16px; }
  .search-form--compact { border-radius: 16px; }
  .search-form--compact .search-form__field { padding: 8px 14px; border-radius: 12px; }
  .search-form--compact .search-form__submit { min-height: 44px; margin: 0 0 0 6px; border-radius: 12px; }
  .search-form--compact .search-form__key { display: inline-block; }
  .search-bar { position: sticky; top: var(--header-h); z-index: 30; }

  .hero { padding-bottom: 72px; padding-top: calc(var(--header-h) + 56px); }
  .hero__lead { font-size: 1.18rem; margin-bottom: 28px; }
  .section { padding: 56px 0; }
  .section__title { font-size: 1.6rem; }
  .cta { grid-template-columns: 1fr auto; padding: 32px 36px; }
  .points--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .cta__title { font-size: 1.6rem; }

  .place__header { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-1);
    background: linear-gradient(180deg, color-mix(in oklab, var(--tone, var(--brand)) 7%, var(--surface)), var(--surface) 75%); }
  .actions { display: flex; flex-wrap: wrap; }
  .actions .button { min-width: 140px; }
  .panel { padding: 24px; }
  .form__section { padding: 24px; }
  .auth__card { padding: 34px 32px; }
  .card { padding: 20px 22px; }
}

/* ================================================================== Desktop */
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 56px; }
  .hero__title { font-size: clamp(2.6rem, 4.3vw, 3.5rem); }
  .hero__showcase { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
  .hero__showcase .place-card { box-shadow: var(--shadow-3); border-color: transparent; }
  .hero__showcase .place-card:nth-child(2) { margin-inline: 34px -22px; opacity: .96; }
  .hero__showcase .place-card:nth-child(3) { margin-inline: 12px 12px; opacity: .92; }

  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .place-list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

  .results { grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 32px; padding-block: 28px 64px; }
  .filters { position: sticky; top: calc(var(--header-h) + 86px); max-height: calc(100vh - var(--header-h) - 110px); overflow-y: auto; gap: 6px; padding-inline-end: 4px; }
  .filters__title { margin: 12px 0 2px 12px; }
  .filters__title:first-child { margin-top: 0; }
  .filters .filters__list { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .filters .filters__list a { width: 100%; border-color: transparent; background: transparent; border-radius: var(--radius-s); min-height: 38px; padding-inline: 12px; color: var(--ink-soft); }
  .filters .filters__list a:hover { background: var(--surface-alt); color: var(--ink); border-color: transparent; }
  .filters .filters__list a[aria-current="true"] { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
  .results__title { font-size: 1.35rem; margin-bottom: 18px; }
  .results .place-card { padding: 20px; gap: 18px; }
  .results .place-card .tile-icon { width: 54px; height: 54px; border-radius: 15px; }
  .results .place-card__name { font-size: 1.15rem; }

  .place__header { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 30px 32px; }
  .place__title-row { gap: 20px; }
  .place__grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; gap: 20px; }
  .place__main, .place__side { gap: 20px; }
  .detail-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: start; gap: 20px; }

  .page--form { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 40px; max-width: 1040px; align-items: start; }
  .page--form > * { grid-column: 1; }
  .page--form > .page__aside { display: block; grid-column: 2; grid-row: 1 / span 20; position: sticky; top: calc(var(--header-h) + 24px); }
  .page--form .steps { display: none; }

  .auth--entrance { max-width: 1000px; grid-template-columns: minmax(0, 1fr) 440px; gap: 0; align-items: stretch; padding-block: 56px 80px; }
  .auth--entrance .auth__intro {
    position: relative; isolation: isolate; overflow: clip; text-align: start; justify-items: start; align-content: center; gap: 10px;
    padding: 48px; color: #fff; border-radius: var(--radius-l) 0 0 var(--radius-l);
    background: radial-gradient(70% 70% at 100% 0%, rgb(125 211 252 / 34%), transparent 60%), linear-gradient(155deg, #082f49, #075985 55%, #0284c7);
  }
  .auth--entrance .auth__intro .brand__logo-bg { fill: #fff; }
  .auth--entrance .auth__intro .brand__logo-pin { fill: #075985; }
  .auth--entrance .auth__tagline { font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; }
  .auth--entrance .auth__intro .muted { color: rgb(255 255 255 / 80%); max-width: 34ch; }
  .auth--entrance .auth__points { display: grid; gap: 12px; list-style: none; margin: 18px 0 0; padding: 0; font-weight: 550; }
  .auth--entrance .auth__points li { display: flex; align-items: center; gap: 10px; }
  .auth--entrance .auth__points .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgb(255 255 255 / 18%); stroke-width: 2.6; }
  .auth--entrance .auth__card { border-radius: 0 var(--radius-l) var(--radius-l) 0; border-inline-start: 0; padding: 44px 40px; box-shadow: var(--shadow-2); align-content: center; }
  .auth--manage { grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 32px; padding-block: 40px 72px; }
  .auth--manage .auth__menu { position: sticky; top: calc(var(--header-h) + 24px); }
  .auth--manage .auth__menu ul { flex-direction: column; gap: 2px; }
  .auth--manage .auth__menu a { width: 100%; border-color: transparent; background: transparent; border-radius: var(--radius-s); color: var(--ink-soft); }
  .auth--manage .auth__menu a:hover { background: var(--surface-alt); color: var(--ink); }
}

@media (min-width: 720px) and (max-width: 959px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

/* ================================================================== Pointer hover (not touch) */
@media (hover: hover) {
  .place-card:hover, .category-tile:hover, .card-list > .card:has(.card__title a):hover {
    border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-2); transform: translateY(-2px);
  }
  .place-card:hover .place-card__name a, .category-tile:hover .category-tile__name { color: var(--brand); }
  .hero__showcase .place-card:hover { transform: translateY(-3px) scale(1.01); }
}

/* ================================================================== Motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .icon-button, .site-nav__link, .filters__list a, .hero__chips a, .auth__menu a, .user-menu__panel a,
  input, select, textarea, .search-form__field, .choices > label, .tabbar__icon, .tile-icon {
    transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
  }
  .place-card, .category-tile, .card { transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease), background-color .16s; }
  .site-header { transition: background-color .2s, border-color .2s, box-shadow .2s; }
  .disclosure > summary .icon { transition: transform .2s var(--ease); }
  .message { animation: rise .32s var(--ease) both; }
  .user-menu[open] .user-menu__panel { animation: pop .16s var(--ease) both; transform-origin: top right; }
  .hero__showcase { animation: float-in .7s var(--ease) both .08s; }
  .hero__title, .hero__lead, .hero .search-form, .hero__chips, .hero__eyebrow { animation: rise .5s var(--ease) both; }
  .hero__lead { animation-delay: .05s; }
  .hero .search-form { animation-delay: .1s; }
  .hero__chips { animation-delay: .15s; }

  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
  .site-header { view-transition-name: site-header; }
  .tabbar { view-transition-name: tabbar; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@keyframes float-in { from { opacity: 0; transform: perspective(1400px) rotateY(-16deg) rotateX(6deg) translateX(40px); } }

/* Installed as an app: no browser chrome. */
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
}

@media print {
  .site-header, .tabbar, .site-footer, .actions, .search-bar, .filters, #confirm { display: none !important; }
  body { background: #fff; padding: 0; }
  .panel, .card, .place-card { box-shadow: none; break-inside: avoid; }
}

/* Notices float over the hero on the home page, where the header is transparent. */
.page-home .messages-wrap { position: absolute; inset-inline: 0; top: calc(var(--header-h) + env(safe-area-inset-top) + 6px); z-index: 35; }
.page-home main:has(.messages) .hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 96px); }

.page__aside .timeline + p, .page__aside .plain-list + p { margin-top: 14px; }
.page__aside .plain-list li { display: flex; align-items: center; gap: 8px; }
.page__aside .plain-list .icon { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ------------------------------------------------------------------ opening-hours editor */
.hours-edit { display: grid; gap: 8px; }
.hours-edit__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.hours-edit__day { font-weight: 600; }
.hours-edit__times { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--ink-faint); }
.hours-edit__row .errorlist { grid-column: 1 / -1; margin: 0; }
.hours-edit__row:not(.is-timed) .hours-edit__times { display: none; }
html:not(.js-hours) .hours-edit__row .hours-edit__times { display: grid; }
.hours-edit__row.is-timed { border-color: color-mix(in oklab, var(--brand) 35%, var(--line)); }
.choices--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
@media (min-width: 720px) {
  .hours-edit__row { grid-template-columns: 120px 190px minmax(0, 1fr); }
  .hours-edit__times { grid-column: auto; }
}
.form__section .choices--grid + .choices--grid { margin-top: 16px; }
.choices--grid > legend { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }

/* ------------------------------------------------------------------ in-site map */
.map {
  position: relative; height: 220px; margin-top: 14px; overflow: hidden; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: var(--surface-alt); isolation: isolate; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.map:not(.is-ready) { display: none; }
.map.is-dragging { cursor: grabbing; }
.map__tiles { position: absolute; inset: 0; }
.map__tile { position: absolute; top: 0; left: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.map__pin { position: absolute; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 2; }
.map__pin .icon {
  position: absolute; left: -18px; top: -36px; width: 36px; height: 36px; color: #fff; fill: var(--stop); stroke-width: 1.4;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 35%));
}
.map__controls { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; display: grid; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-2); }
.map__controls button {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-bottom: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1.25rem; font-weight: 600; line-height: 1; cursor: pointer;
}
.map__controls button:last-child { border-bottom: 0; }
.map__controls button:hover { background: var(--surface-alt); }
.map__controls button:disabled { color: var(--ink-faint); cursor: default; }
.map__controls .icon { width: 18px; height: 18px; }
.map__credit {
  position: absolute; bottom: 0; inset-inline-end: 0; z-index: 3; padding: 2px 8px; border-start-start-radius: 8px;
  background: rgb(255 255 255 / 85%); color: #1c1917; font-size: .68rem; text-decoration: none;
}
.map__credit:hover { text-decoration: underline; }
:root[data-theme="dark"] .map__tile { filter: brightness(.78) contrast(1.08) saturate(.85); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map__tile { filter: brightness(.78) contrast(1.08) saturate(.85); } }
@media (min-width: 720px) { .map { height: 300px; } }
@media print { .map { display: none; } }
