/* =====================================================================
   Pumpkin Patches Near Me — design system
   Palette: brand orange + white, with a warm cream tint for surfaces.
   ===================================================================== */

:root {
  --orange: #f26a21;
  --orange-600: #ea5f16;
  --orange-700: #c74a0f;
  --orange-900: #8f3406;
  --orange-100: #ffe6d5;
  --orange-50: #fff4eb;
  --cream: #fff8f2;
  --white: #ffffff;
  --ink: #1f1a17;
  --ink-2: #4a413b;
  --muted: #6f635b;
  --line: #efe1d5;
  --green: #3f7a2e;
  --gold: #f5a623;

  --shadow-sm: 0 1px 2px rgba(31, 26, 23, 0.06), 0 2px 6px rgba(31, 26, 23, 0.05);
  --shadow-md: 0 4px 12px rgba(31, 26, 23, 0.08), 0 12px 28px rgba(31, 26, 23, 0.07);
  --shadow-lg: 0 12px 40px rgba(199, 74, 15, 0.16);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --header-h: 68px;
  --wrap: 1200px;

  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
a { color: var(--orange-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange-900); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--orange); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 0.72rem 1.4rem; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-outline { background: #fff; color: var(--orange-700); border-color: var(--orange-100); }
.btn-outline:hover { background: var(--orange-50); color: var(--orange-900); border-color: var(--orange); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--orange-50); color: var(--orange-900); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b {
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-text span {
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: var(--orange-600);
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: 0.4rem 0.6rem; cursor: pointer; color: var(--ink); font-weight: 600;
  font-family: var(--font-display);
}

.main-nav ul {
  display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  display: block; padding: 0.5rem 0.9rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  color: var(--ink-2); text-decoration: none;
}
.main-nav a:hover { background: var(--orange-50); color: var(--orange-900); }
.main-nav a[aria-current="page"] { background: var(--orange); color: #fff; }
.main-nav .nav-cta a { background: var(--orange); color: #fff; padding-inline: 1.15rem; }
.main-nav .nav-cta a:hover { background: var(--orange-600); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav[data-open="true"] { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.6rem 1.25rem 1rem; gap: 0.15rem; }
  .main-nav a { padding: 0.8rem 1rem; border-radius: var(--r-sm); }
}

/* ------------------------------------------------------- map hero (home) */

.hero-app {
  height: calc(100dvh - var(--header-h));
  min-height: 560px;
  display: flex; flex-direction: column;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.hero-bar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.7rem clamp(0.9rem, 2vw, 1.5rem);
  background: #fff; border-bottom: 1px solid var(--line);
}
.hero-title { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.6rem); white-space: nowrap; }
.hero-title .accent { color: var(--orange-600); }

.search-form {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  flex: 1 1 320px; min-width: 0;
}
.search-field {
  display: flex; align-items: center; gap: 0.5rem; flex: 1;
  background: var(--orange-50); border: 2px solid var(--line);
  border-radius: var(--r-pill); padding: 0.25rem 0.35rem 0.25rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 106, 33, 0.15); }
.search-field input {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: 0.98rem;
  padding: 0.45rem 0; color: var(--ink); min-width: 0;
}
.search-field input:focus { outline: none; }
.search-field .btn { padding: 0.5rem 1.05rem; font-size: 0.94rem; }

.control-group { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.control {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; border: 2px solid var(--line); border-radius: var(--r-pill);
  padding: 0.34rem 0.85rem; font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  cursor: pointer;
}
.control:hover { border-color: var(--orange-100); background: var(--orange-50); }
.control select {
  border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink);
  cursor: pointer; padding-right: 0.1rem;
}
.control select:focus { outline: none; }
.control-label { color: var(--muted); font-weight: 500; }

.toggle-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; border: 2px solid var(--line); border-radius: var(--r-pill);
  padding: 0.42rem 0.95rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; font-family: var(--font-body);
}
.toggle-btn:hover { border-color: var(--orange-100); background: var(--orange-50); }
.toggle-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }

.hero-split {
  flex: 1; display: grid; grid-template-columns: minmax(340px, 36%) 1fr;
  min-height: 0;
}

.results-panel {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--cream); border-right: 1px solid var(--line);
}
.results-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  padding: 0.75rem 1.1rem 0.55rem; border-bottom: 1px solid var(--line); background: #fff;
}
.results-count { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.results-count b { color: var(--orange-700); }
.results-scope { font-size: 0.85rem; color: var(--muted); }
.results-list {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 0.85rem; display: flex; flex-direction: column; gap: 0.85rem;
}
/* Cards keep their natural height instead of shrinking to fit the panel. */
.results-list > * { flex: 0 0 auto; }

.map-panel { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: #dfe7e2; }
.map-tools {
  position: absolute; top: 12px; right: 12px; z-index: 500;
  display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end;
}
.map-tools .toggle-btn { box-shadow: var(--shadow-sm); }
.map-note {
  position: absolute; left: 12px; bottom: 26px; z-index: 500;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 0.3rem 0.8rem; font-size: 0.8rem; color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.view-switch { display: none; }

@media (max-width: 900px) {
  .hero-app { height: auto; min-height: 0; }
  .hero-split { grid-template-columns: 1fr; }
  .results-panel { border-right: 0; }
  .map-panel { height: 62vh; }
  #map { position: absolute; inset: 0; }
  .results-list { max-height: none; overflow: visible; }
  .view-switch { display: inline-flex; }
  .hero-app[data-view="map"] .results-panel { display: none; }
  .hero-app[data-view="list"] .map-panel { display: none; }
  .hero-title { width: 100%; }
}

/* ------------------------------------------------------- listing cards */

.listing-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.listing-card:hover,
.listing-card.is-active {
  box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--orange-100);
}
.listing-card.is-active { border-color: var(--orange); }
.listing-card-body { padding: 1rem 1.1rem 1.1rem; }
.listing-card h3 { margin: 0 0 0.25rem; font-size: 1.13rem; }
.listing-card h3 a { color: var(--ink); text-decoration: none; }
.listing-card h3 a:hover { color: var(--orange-700); }

.listing-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.7rem;
  font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem;
}
.rating { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 0.95rem; }
.dot-sep::before { content: "\00b7"; margin-right: 0.55rem; color: var(--line); }

.listing-address { font-size: 0.94rem; color: var(--ink-2); margin: 0 0 0.7rem; }
.listing-distance {
  display: inline-block; background: var(--orange-50); color: var(--orange-900);
  border-radius: var(--r-pill); padding: 0.1rem 0.6rem; font-size: 0.8rem; font-weight: 600;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem; }
.tag {
  background: var(--orange-50); color: var(--orange-900); border: 1px solid var(--orange-100);
  border-radius: var(--r-pill); padding: 0.16rem 0.65rem; font-size: 0.78rem; font-weight: 600;
}
.tag-open { background: #e9f6e5; color: #2f6524; border-color: #cfe8c7; }
.tag-closed { background: #f6eceb; color: #8a3a30; border-color: #ecd6d3; }

.card-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.card-actions .btn { font-size: 0.88rem; padding: 0.45rem 1rem; }

.empty-state {
  text-align: center; padding: 2.5rem 1.25rem; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-md);
}
.empty-state h3 { color: var(--ink); }

/* --------------------------------------------------------- map popups */

.leaflet-popup-content-wrapper { border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.leaflet-popup-content { margin: 0.85rem 1rem; font-family: var(--font-body); line-height: 1.5; }
.map-popup h4 { margin: 0 0 0.2rem; font-size: 1.02rem; }
.map-popup p { margin: 0 0 0.5rem; font-size: 0.88rem; color: var(--muted); }
.map-popup a.btn { font-size: 0.83rem; padding: 0.35rem 0.85rem; }

.patch-marker {
  background: var(--orange); border: 2.5px solid #fff; border-radius: 50% 50% 50% 4px;
  width: 26px; height: 26px; transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(31, 26, 23, 0.35);
}
.patch-marker.is-active { background: var(--orange-900); transform: rotate(-45deg) scale(1.2); }
.marker-cluster-pumpkin {
  background: rgba(242, 106, 33, 0.28); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.marker-cluster-pumpkin div {
  background: var(--orange); color: #fff; border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------ sections */

.section { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.section-alt { background: var(--cream); border-block: 1px solid var(--line); }
.section-orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 55%, var(--orange-700) 100%);
  color: #fff;
}
.section-orange h2, .section-orange h3 { color: #fff; }
.section-orange a { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section-orange .section-head p { color: rgba(255, 255, 255, 0.92); }

.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--orange-700); background: var(--orange-50);
  border-radius: var(--r-pill); padding: 0.25rem 0.85rem; margin-bottom: 0.9rem;
}
.section-orange .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.18); }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 0.85rem;
  background: var(--orange); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem;
}

.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.6rem; }
.state-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.65rem 0.9rem; text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 0.96rem;
}
.state-link:hover { border-color: var(--orange); background: var(--orange-50); color: var(--orange-900); }
.state-link span { color: var(--muted); font-size: 0.84rem; }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.35rem; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--orange); font-weight: 400;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { background: var(--orange-50); }
.faq-answer { padding: 0 1.35rem 1.2rem; color: var(--ink-2); }
.faq-answer p:last-child { margin-bottom: 0; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
}
.cta-band .btn-outline { background: #fff; border-color: #fff; color: var(--orange-700); }

.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--orange-50); font-family: var(--font-display); font-weight: 600; }
.prose blockquote {
  margin: 1.5rem 0; padding: 0.85rem 1.25rem; border-left: 4px solid var(--orange);
  background: var(--orange-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2);
}
.prose code {
  background: var(--orange-50); border: 1px solid var(--line); border-radius: 4px;
  padding: 0.1rem 0.35rem; font-size: 0.9em;
}

.page-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 2.75rem 0 2.25rem; }
.page-head p.lede { font-size: 1.12rem; color: var(--muted); margin-bottom: 0; max-width: 720px; }
.breadcrumbs { font-size: 0.87rem; color: var(--muted); margin-bottom: 0.65rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-700); text-decoration: underline; }

.notice {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: var(--orange-50); border: 1px solid var(--orange-100);
  border-left: 4px solid var(--orange); border-radius: var(--r-sm);
  padding: 1rem 1.2rem; margin-bottom: 1.75rem; font-size: 0.95rem; color: var(--ink-2);
}
.notice strong { color: var(--ink); }
.notice p:last-child { margin-bottom: 0; }

.data-banner {
  background: var(--ink); color: #fff; text-align: center;
  padding: 0.55rem 1.25rem; font-size: 0.88rem;
}
.data-banner a { color: var(--orange-100); }

.post-list { display: flex; flex-direction: column; gap: 1.1rem; }
.post-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.4rem 1.55rem; box-shadow: var(--shadow-sm);
}
.post-item h3 { margin-bottom: 0.35rem; }
.post-item h3 a { color: var(--ink); text-decoration: none; }
.post-item h3 a:hover { color: var(--orange-700); }
.post-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.55rem; }
.post-item p { margin-bottom: 0.85rem; color: var(--ink-2); }

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-map { height: 320px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li { display: flex; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.fact-list li:last-child { border-bottom: 0; }
.fact-list b { min-width: 92px; color: var(--muted); font-weight: 500; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours-table td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.hours-table td:first-child { color: var(--muted); width: 45%; }
.hours-table tr:last-child td { border-bottom: 0; }

.ad-slot {
  margin: 2rem auto; text-align: center; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #d8cdc5; padding: 2.75rem 0 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange-100); text-decoration: underline; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand b { font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
.footer-tagline { font-size: 0.9rem; color: #a99c93; max-width: 420px; }
.footer-nav ul {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.6rem;
}
.footer-nav a { font-size: 0.95rem; font-weight: 500; }
.footer-legal {
  margin-top: 1.5rem; font-size: 0.84rem; color: #8d8179; display: flex;
  flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between;
}
.footer-legal p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer-nav ul { gap: 0.35rem 1.1rem; }
  .hero-bar { gap: 0.55rem; }
  .search-field { flex: 1 1 100%; }
  .search-form > .toggle-btn { flex: 1 1 auto; justify-content: center; }
  .control-group { width: 100%; }
  .control { flex: 1 1 auto; justify-content: space-between; }
  .control-group > .toggle-btn { flex: 1 1 auto; justify-content: center; }
  .results-head { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .hero-app, .ad-slot { display: none !important; }
}
