/* Store directory styles, in Vendr's design system (DESIGN.md at the repo root):
   cream ground, white surfaces, ink text, one teal; Geist Sans for words, Geist
   Mono for numbers, Newsreader for the page title only. Flat: depth is a 1px
   hairline, never a shadow. Radius: 14px cards, 10px controls, 6px tags.
   Colours come from site.config.json (CSS variables set on every page). */
@font-face { font-family: "Geist Sans"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

*,
*::before,
*::after { box-sizing: border-box; }
body { margin: 0; font-family: "Geist Sans", ui-sans-serif, system-ui, sans-serif; font-size: 15px; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: #00683b; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.015em; line-height: 1.1; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
b, strong { font-weight: 600; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.figure { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.site-name { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-name img { height: 22px; width: auto; display: block; }
.site-header nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 10px 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a.btn { color: var(--ink); padding: 7px 14px; }
@media (max-width: 720px) {
  .site-header nav { width: 100%; gap: 0 16px; overflow-x: auto; flex-wrap: nowrap; }
  .site-header nav a { white-space: nowrap; }
  .site-header nav a.btn { display: none; }
}
.site-footer { margin-top: 64px; padding: 28px 0 36px; background: var(--surface); border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.site-footer p { max-width: 70ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 12px; }
.footer-links a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.footer-links a:hover { color: var(--brand); }

/* Page top */
.crumbs { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.hero { padding: 28px 0 18px; }
.kicker { margin: 0 0 .6em; color: var(--muted); font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--brand); color: var(--brand-text); font-weight: 500; font-size: .95rem; text-decoration: none; border: 1px solid var(--brand); transition: transform .1s; }
.btn:hover { background: #00683b; color: var(--brand-text); }
.btn:active { transform: scale(.98); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: #d6d5cf; }
.btn-outline:hover { background: var(--accent); color: var(--ink); }
.btn-sm { min-height: 36px; }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 16px; margin: 8px 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .85rem; }
.filters .search { grid-column: 1 / -1; }
.filters input[type="search"], .filters select { font: inherit; font-size: .95rem; min-height: 44px; padding: 8px 12px; border: 1px solid #d6d5cf; border-radius: 10px; background: var(--surface); color: var(--ink); }
.filters input[type="search"]:focus, .filters select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.filters .toggle { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; font-size: .9rem; }
.filters .toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.filters .count { grid-column: 1 / -1; margin: 0; font-size: .875rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.filters .count b { color: var(--ink); }
.filters .count button { font: inherit; min-height: 36px; background: none; border: 0; color: var(--brand); font-weight: 500; cursor: pointer; }

.legend { margin-bottom: 24px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.legend summary { cursor: pointer; font-weight: 500; font-size: .9rem; min-height: 28px; }
.legend dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 12px 0 4px; }
.legend dd { margin: 0; color: var(--muted); font-size: .9rem; }

/* Store cards */
.area-group { margin-top: 32px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }
.group-head h2 { margin: 0; }
.group-head p { margin: 0; color: var(--muted); font-size: .875rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.store-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s; }
.store-card:hover { border-color: rgba(22, 32, 27, .25); }
.store-card h2, .store-card h3 { font-size: 1rem; margin: 0; }
.store-card h2 a, .store-card h3 a { color: var(--ink); text-decoration: none; }
.store-card h2 a::after, .store-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.store-card .addr { margin: 0; color: var(--muted); font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-card .chip { margin-top: auto; align-self: flex-start; }
.card-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* Tags are neutral; GYM, Play Hub and event hosts get teal text because "runs official events" is the thing players look for. */
.badge, .chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; line-height: 1.6; background: var(--surface); color: var(--muted); border: 1px solid var(--line); margin: 0; }
.badge-gym, .badge-play-hub, .badge-event-host { color: var(--brand); border-color: rgba(0, 122, 69, .35); background: rgba(0, 122, 69, .06); }
.chip-accent { color: var(--ink); background: var(--accent); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.empty { padding: 32px; text-align: center; background: rgba(255, 255, 255, .6); border: 1px dashed #d6d5cf; border-radius: 14px; color: var(--muted); }

/* Chains, cities, FAQ */
.chains, .cities, .nearby { margin-top: 48px; }
.chain { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.chain summary { cursor: pointer; min-height: 28px; }
.chain h4 { margin: 12px 0 4px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.chain ul { margin: 0; padding-left: 18px; font-size: .875rem; }
.city-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.city-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.city-list a:hover { color: var(--brand); }
.city-list .muted { font-size: .8rem; }

.faq { margin-top: 48px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { margin: 10px 0 0; color: var(--muted); max-width: 70ch; }
.verified { font-size: .85rem; color: var(--muted); }

/* Store page */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.store-layout { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 8px; }
/* On phones the address and hours come first: that is what a visitor came for. */
@media (max-width: 899px) { .store-side { order: -1; } }
@media (min-width: 900px) { .store-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } .store-side { position: sticky; top: 16px; } }
.store-main { display: grid; gap: 28px; }
.store-main .panel p { max-width: 70ch; }
.label { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 6px; }
.store-side .label:first-child { margin-top: 0; }
.store-side p { margin: 0 0 6px; }
.hours { width: 100%; border-collapse: collapse; font-size: .875rem; }
.hours th, .hours td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: .8rem; }
.hours td[colspan] { text-align: left; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { margin-bottom: 4px; }
