/* Liikuntakartta styles. Mobile first; wider layouts from 760px and 1080px. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2'), url('/fonts/archivo.woff') format('woff');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ground: #F1F5F2;
  --white: #FFFFFF;
  --ink: #15241D;
  --muted: #43534B;
  --caption: #4E5E56;
  --line: #E2E9E4;
  --accent: #C8431F;
  --accent-dark: #A9381A;
  --link: #B23A1C;
  --link-hover: #8A2B13;
  --blue: #1F4FB0;
  --free: #1E6B45;
  --mint: #CFEBDD;
  --mint-ink: #1F5C3E;
  --peach: #FFDCC6;
  --peach-ink: #4A3628;
  --lavender: #E1E0F6;
  --lavender-ink: #3D3B78;
  --map: #DCE9F5;
  --lanes: rgba(21, 36, 29, 0.07);
  --radius: 24px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --font: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --head-text: #2F4A3C;
  --card-sub: #3B4A43;
  --facts: rgba(255, 255, 255, .62);
  --dark-hover: var(--dark-hover);
  --shadow: var(--shadow);
  color-scheme: light dark;
}

/* Dark theme. The phone's own setting decides; Chrome no longer darkens the
   page on its own once the page has its own dark colours. */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141C18;
    --white: #1D2722;
    --ink: #E4EDE7;
    --muted: #B7C5BD;
    --caption: #A3B3AA;
    --line: #2C3832;
    --accent: #C8431F;
    --accent-dark: #F08A64;
    --link: #F2936F;
    --link-hover: #FFB89C;
    --blue: #2F63D0;
    --free: #3E9E6C;
    --mint: #1E3A2D;
    --mint-ink: #CFEBDD;
    --peach: #3D2A1E;
    --peach-ink: #FFDCC6;
    --lavender: #2B2A45;
    --lavender-ink: #E1E0F6;
    --map: #1D2A36;
    --lanes: rgba(228, 237, 231, 0.08);
    --card-sub: var(--muted);
    --facts: rgba(0, 0, 0, .28);
    --dark-hover: #C9D6CE;
    --shadow: rgba(0, 0, 0, .35);
  }
}

/* Sport colours: the element sets --tl/--il (light) and --td/--id (dark). */
.sp { --t: var(--tl); --i: var(--il); }
@media (prefers-color-scheme: dark) {
  .sp { --t: var(--td); --i: var(--id); }
  .page-head.sp p { color: var(--i); }
  /* Access tags keep their colour; a thin edge keeps the dark ones visible. */
  .access-tag { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
}
.sp-bg { background: var(--t); }
.sp-fg { color: var(--i); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 38px; line-height: 1.02; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Header and footer ---------- */

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 118%; font-size: 20px;
}
.logo:hover { color: var(--ink); }
.logo-tag {
  position: relative; display: inline-block; width: 28px; height: 22px;
  border-radius: 4px 11px 11px 4px; background: var(--blue);
}
.logo-tag::after {
  content: ''; position: absolute; left: 6px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; border: 2px solid #FFFFFF;
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1);
}
.logo:hover .logo-tag::after { transform: translateX(7px); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 0; }
.nav-plain { display: none; color: var(--ink); }
.nav-plain:hover { color: var(--link); }

.site-footer { margin-top: 32px; color: var(--caption); font-size: 14px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; padding-bottom: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { font-weight: 700; padding: 4px 0; }

/* ---------- Blocks ---------- */

.block { border-radius: var(--radius); padding: 22px 20px; }
.block-white { background: var(--white); }
.section { margin-top: 28px; }
.section-title { font-size: 22px; font-weight: 800; font-stretch: 118%; margin: 0 4px 12px; }
.lead { font-size: 17px; color: var(--muted); margin: 0; }

/* Running-track arcs in the corner of header blocks */
.has-lanes { position: relative; overflow: hidden; isolation: isolate; }
.has-lanes::before {
  content: ''; position: absolute; top: 0; right: 0; z-index: -1;
  width: min(220px, 55%); height: 170px; pointer-events: none;
  background: repeating-radial-gradient(circle at 100% 0%, transparent 0 20px, var(--lanes) 20px 22px);
  transform-origin: 100% 0;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 45%, transparent 72%);
  mask-image: radial-gradient(circle at 100% 0, #000 45%, transparent 72%);
  animation: lanes 1.2s var(--ease-out) backwards;
}

.hero { --lanes: rgba(200, 67, 31, 0.16); display: flex; flex-direction: column; gap: 14px; padding: 28px 20px 24px; margin-top: 4px; }
.hero-icons { display: flex; gap: 8px; }
.icon-dot {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
}
.icon-dot-sm { width: 34px; height: 34px; }
.hero-icons .icon-dot { animation: run-in .45s cubic-bezier(.2, .8, .3, 1.1) backwards; }
.hero-icons .icon-dot:nth-child(2) { animation-delay: .07s; }
.hero-icons .icon-dot:nth-child(3) { animation-delay: .14s; }
.hero-icons .icon-dot:nth-child(4) { animation-delay: .21s; }

/* ---------- Buttons and forms ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: #A9381A; color: #FFFFFF; }
.btn-dark { background: var(--ink); color: var(--white); align-self: flex-start; }
.btn-dark:hover { background: var(--dark-hover); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ground); color: var(--ink); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px !important;
  border-radius: 14px; background: var(--ink); color: var(--white);
}
.nav-cta:hover { background: var(--dark-hover); color: var(--white); }

.search { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.search label, .field label { font-weight: 700; font-size: 15px; }
.search-row { display: flex; gap: 8px; }
.search input, .field input {
  flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 14px; font: inherit; background: var(--white); color: var(--ink);
}
.search .btn { height: 50px; }
.search-message { margin: 0; min-height: 0; font-weight: 600; color: var(--muted); }
.search-message:empty { display: none; }
.locate-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.locate-btn:hover { color: var(--link-hover); }

/* ---------- Home ---------- */

.sport-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sport-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 108px; padding: 12px 14px; border-radius: 18px; text-decoration: none;
  animation: rise .5s var(--ease-out) backwards;
}
.sport-tile span { display: flex; flex-direction: column; font-weight: 800; font-size: 18px; line-height: 1.15; }
.sport-tile small { font-size: 13px; font-weight: 600; margin-top: 2px; }
.duo { display: grid; gap: 16px; }
.city-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 12px 18px; border-radius: 18px; background: var(--ground);
  color: var(--ink); text-decoration: none; font-size: 19px;
}
.city-row:hover { color: var(--ink); }
.coming-title { font-weight: 700; font-size: 15px; margin: 16px 4px 8px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pill-mint { background: var(--mint); color: var(--mint-ink); }
.pill-lavender { background: var(--lavender); color: var(--lavender-ink); font-weight: 600; font-size: 14px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.owner-box { background: var(--peach); display: flex; flex-direction: column; gap: 10px; }
.owner-box p { margin: 0; color: var(--peach-ink); }

/* ---------- City and sport pages ---------- */

.page-head { margin-top: 4px; padding: 18px 20px 20px; }
.page-head-text { display: flex; flex-direction: column; gap: 4px; }
.page-head-text h1 { margin-bottom: 10px; }
.page-head p { margin: 0; color: var(--head-text); font-size: 17px; }
.back-link { align-self: flex-start; font-size: 15px; font-weight: 700; text-decoration: none; padding: 4px 0; }

.chips {
  position: relative; list-style: none; margin: 14px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 6px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.chip:hover { background: var(--ground); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: var(--white); animation: pop .3s ease-out; }

.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Season switch: one pill with four options */
.season-filter {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 14px;
  border: 2px solid var(--ink); background: var(--white);
}
.season-filter button {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.season-filter button:hover { background: var(--ground); }
.season-filter button[aria-pressed="true"] { background: var(--ink); color: var(--white); animation: pop .3s ease-out; }
.season-badge {
  align-self: flex-start; padding: 5px 12px; border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700;
}
.field { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px 0 12px;
  border-radius: 14px; border: 2px solid var(--free); background: var(--white); color: var(--free);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .12s ease;
}
.toggle:active { transform: scale(.97); }
.toggle-box {
  width: 18px; height: 18px; border-radius: 6px; border: 2px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
}
.toggle .tick { display: none; stroke-width: 3.5; }
.toggle[aria-pressed="true"] { background: var(--free); color: #FFFFFF; }
.toggle[aria-pressed="true"] .tick { display: block; }
.toggle[aria-pressed="true"] .tick path { stroke-dasharray: 1; animation: tick .28s ease-out both; }
.filter-status { margin: 8px 4px 0; font-size: 14px; color: var(--caption); }
.filter-status:empty { display: none; }

.city-layout { display: grid; gap: 16px; margin-top: 16px; }
.city-list { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.city-list-spaced { margin-top: 20px; }
.sort-note { margin: 0 4px; font-size: 14px; color: var(--caption); }
.sport-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.sport-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.sport-section-head h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; font-stretch: 118%; }
.sport-section-head h2 a { color: var(--ink); text-decoration: none; }
.more-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; padding: 8px 0; }
.more-link svg { transition: transform .2s ease; }
.more-link:hover svg { transform: translate(2px, -2px); }

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

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.card {
  background: var(--t, var(--white));
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px;
  color: var(--ink); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: rise .5s var(--ease-out) backwards;
}
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 18px var(--shadow); }
.card:active { transform: scale(.98); }
.card-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.details a { overflow-wrap: anywhere; }
.card-place { display: inline-flex; align-items: center; gap: 4px; margin-top: -6px; font-size: 14px; font-weight: 600; color: var(--card-sub); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.access-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 9px;
  border-radius: 4px 14px 14px 4px; color: #FFFFFF; font-size: 14px; font-weight: 700;
}
.access-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; }
.sport-pill { padding: 3px 11px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 700; }
.sport-pill-link { text-decoration: none; }
.featured-mark { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.facts {
  margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding: 10px 12px; border-radius: 14px; background: var(--facts);
}
.facts > span { display: flex; flex-direction: column; min-width: 0; }
.facts small { font-size: 13px; color: var(--caption); }
.facts b { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.facts .unknown { color: var(--caption); font-weight: 600; }
.card.off-season { background: var(--white); }
.card.off-season .sport-pill { background: var(--t); }
.card.off-season .facts { background: var(--ground); }
.card[hidden], [data-section][hidden] { display: none; }
.card-more { display: none; }
.js-filter .card-more:not([hidden]) { display: flex; animation: none; }

.empty {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: var(--white);
}
.empty strong { font-size: 18px; }
.empty span { color: var(--caption); }

.legend { margin-top: 8px; padding: 14px 18px; border-radius: 18px; background: var(--white); }
.legend summary { cursor: pointer; font-weight: 700; }
.legend dl { margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.legend dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; }
.legend dd { margin: 0; color: var(--muted); font-size: 15px; }

.map-box { display: flex; flex-direction: column; gap: 6px; }
.map { height: 280px; border-radius: 22px; background: var(--map); overflow: hidden; }
.map-note { margin: 0 4px; font-size: 14px; color: var(--caption); }

/* ---------- Place page ---------- */

/* On phones the two columns melt into one list ordered by usefulness:
   name, booking buttons, hours, prices, details, nearby, sources. */
.place-layout { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.place-col { display: contents; }
.o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; }
.o5 { order: 5; } .o6 { order: 6; } .o7 { order: 7; }
.place-hero { display: flex; flex-direction: column; gap: 10px; }
.place-hero h1 { font-size: 34px; font-stretch: 122%; }
.place-where { font-size: 15px; font-weight: 600; color: var(--muted); }
.box-title { font-size: 20px; font-weight: 800; font-stretch: 118%; margin-bottom: 8px; }
.box-note { margin: 10px 0 0; font-size: 14px; color: var(--caption); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
  animation: rise .5s var(--ease-out) backwards;
}
.price-list li:last-child { border-bottom: 0; }
.details { margin: 0; display: flex; flex-direction: column; }
.details div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details div:last-child { border-bottom: 0; }
.details dt { font-size: 14px; color: var(--caption); font-weight: 600; }
.details dd { margin: 0; }
.actions-box { display: flex; flex-direction: column; gap: 8px; }
.actions-box .btn-primary { min-height: 52px; font-size: 17px; }
.actions-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.small-link { align-self: flex-start; font-size: 15px; font-weight: 700; padding: 4px 0; }
.week { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.week th, .week td { padding: 6px 0; text-align: left; border-bottom: 1px solid var(--line); }
.week tr:last-child th, .week tr:last-child td { border-bottom: 0; }
.week th { font-weight: 400; }
.week td { font-weight: 700; text-align: right; }
.week tr.today th, .week tr.today td { color: var(--accent-dark); font-weight: 800; }
.meta-box { display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 0; font-size: 14px; color: var(--caption); }
.meta-box ul { margin: 0; padding-left: 18px; }
.meta-box a { overflow-wrap: anywhere; }
.nearby .section-title { margin-bottom: 10px; }
.nearby-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.nearby-row {
  display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 12px 16px;
  border-radius: 16px; color: var(--ink); text-decoration: none;
}
.nearby-row:hover { color: var(--ink); }
.nearby-row span { font-size: 14px; font-weight: 700; }

/* ---------- Prose pages ---------- */

.prose { margin-top: 4px; max-width: 760px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: 22px; font-weight: 800; font-stretch: 118%; margin: 28px 0 8px; }
.prose ul { padding-left: 20px; }
.prose .legend { background: var(--ground); }

/* ---------- Motion ---------- */

.lift { transition: transform .18s ease, box-shadow .18s ease; }
.lift:hover { transform: translateY(-2px); box-shadow: 0 8px 18px var(--shadow); }
.lift:active { transform: scale(.97); }
.rise { animation: rise .55s var(--ease-out) backwards; }
.d1 { animation-delay: .07s; }
.d2 { animation-delay: .14s; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes run-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes lanes { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes tick { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lift:hover, .card:hover, .btn:hover .arrow, .more-link:hover svg, .logo:hover .logo-tag::after { transform: none; }
}

/* ---------- Wider screens ---------- */

@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .nav-plain { display: inline; }
  .site-nav { gap: 24px; }
  h1 { font-size: 56px; }
  .block { padding: 28px 32px; }
  .hero { padding: 44px 44px 40px; gap: 18px; }
  .hero .lead { font-size: 20px; max-width: 620px; }
  .search { max-width: 640px; }
  .has-lanes::before {
    width: min(460px, 50%); height: 340px;
    background: repeating-radial-gradient(circle at 100% 0%, transparent 0 32px, var(--lanes) 32px 35px);
  }
  .icon-dot { width: 52px; height: 52px; }
  .icon-dot-sm { width: 36px; height: 36px; }
  .section-title { font-size: 28px; }
  .sport-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .sport-tile { min-height: 128px; padding: 16px 18px; }
  .sport-tile span { font-size: 21px; }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .page-head { padding: 32px 40px; }
  .page-head p { font-size: 20px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 18px 0 0; padding: 0; }
  .details div { grid-template-columns: 140px 1fr; gap: 16px; }
  .place-hero h1 { font-size: 52px; }
  .map { height: 360px; }
}

@media (min-width: 1080px) {
  :root { --gutter: 40px; }
  h1 { font-size: 72px; line-height: .98; letter-spacing: -0.03em; }
  .site-header .wrap { padding-top: 22px; padding-bottom: 22px; }
  .logo { font-size: 24px; }
  .city-layout.has-map { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .city-layout.has-map .map-box { order: 2; position: sticky; top: 20px; }
  .city-layout.has-map .map { height: 640px; }
  .place-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .place-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .place-hero h1 { font-size: 60px; }
  .sport-section-head h2 { font-size: 26px; }
}
/* The season switch needs the script; without it every place is listed. */
html:not(.js-filter) .season-filter { display: none; }

/* ---------- Season counts, open now ---------- */
.sport-tile .tile-note { font-weight: 500; opacity: .8; margin-top: 0; }
.sport-tile.is-off-season { background: var(--white) !important; box-shadow: inset 0 0 0 3px var(--t); }
.chip.is-off-season:not([aria-current]) { opacity: .62; border-style: dashed; }
.facts small.is-open { color: var(--free); font-weight: 700; }
.facts small.is-open::before, .open-now.is-open::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%;
  background: var(--free); vertical-align: 1px;
}
.box-title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.box-title-row .box-title { margin-bottom: 0; }
.open-now { font-size: 14px; font-weight: 700; color: var(--caption); }
.open-now.is-open { color: var(--free); }
.link-btn {
  font: inherit; font-weight: 700; color: var(--link); background: none; border: 0; padding: 4px 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--ink); }
.search-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.quick-cities { font-size: 15px; color: var(--caption); }
.quick-cities a { font-weight: 700; }
.quick-cities a { display: inline-block; padding: 8px 0; }

/* ---------- Sport chips: all visible, wrapped; phones show two rows + "more" ---------- */
@media (max-width: 759px) {
  .chips { flex-wrap: wrap; overflow: visible; margin: 14px 0 0; padding: 0; gap: 6px; }
  .chip { min-height: 40px; padding: 0 13px; font-size: 14px; }
  .chips.is-collapsed .chip-extra { display: none; }
}
.chips-toggle { border-style: dashed; cursor: pointer; font-family: inherit; }
.chips-toggle[hidden] { display: none; }

/* ---------- Visitor feedback on place pages ---------- */
.feedback { margin: 10px 0 6px; padding: 14px; border-radius: 16px; background: var(--white); color: var(--ink); }
.feedback-q { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.feedback-answers { display: flex; gap: 8px; }
.feedback-btn {
  min-height: 44px; min-width: 80px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--ink);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.feedback-btn:hover, .feedback-btn[aria-expanded="true"] { background: var(--ink); color: var(--white); }
.feedback-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.feedback-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.feedback-form legend { font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.feedback-form fieldset label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; color: var(--ink); }
.feedback-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ink); }
.feedback-comment { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink); }
.feedback-comment textarea {
  font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--white); color: var(--ink); resize: vertical;
}
.feedback-form .btn { align-self: flex-start; }
.feedback-note { margin: 0; font-size: 13px; color: var(--caption); }
.feedback-status { margin: 8px 0 0; font-weight: 600; color: var(--free); }
.feedback-status:empty { display: none; }
.feedback-status.is-error { color: var(--link); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirmed { color: var(--free); font-weight: 600; }
.stale-note { color: var(--link); font-weight: 700; }
