:root {
  --font-display: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-accent: "Libre Baskerville", serif;

  --ink: #102347;
  --ink-soft: color-mix(in oklch, #102347, transparent 18%);
  --paper: oklch(98% 0.012 93);
  --surface: oklch(100% 0.006 96);
  --line: oklch(88% 0.018 92);
  --blue: #102347;
  --blue-dark: #102347;
  --gold: #c9ae24;
  --gold-deep: #9a8219;
  --green: oklch(64% 0.12 152);
  --rose: oklch(66% 0.14 18);
  --mint: oklch(76% 0.11 170);
  --coral: oklch(72% 0.16 45);
  --violet: oklch(58% 0.13 305);

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --radius: 8px;
  --shadow-soft: 0 18px 50px color-mix(in oklch, var(--blue-dark), transparent 88%);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, oklch(97% 0.018 96), var(--paper) 360px),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  display: none;
}

.hero-topbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-inline: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  color: var(--surface);
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--surface);
}

.brand-copy span,
.eyebrow,
label,
.category-count,
.results-meta {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  color: color-mix(in oklch, var(--surface), transparent 8%);
  letter-spacing: 0.04em;
  text-transform: none;
}

.weather-widget {
  min-width: min(280px, 42vw);
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--surface);
  border: 1px solid color-mix(in oklch, var(--surface), transparent 76%);
  border-radius: 999px;
  padding: 7px 13px;
  background: color-mix(in oklch, var(--blue-dark), transparent 22%);
}

.weather-title {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.weather-now {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  color: color-mix(in oklch, var(--surface), transparent 8%);
}

.weather-icon {
  font-size: 0.86rem;
  line-height: 1;
}

.weather-temp {
  color: var(--surface);
}

.weather-sep {
  width: 1px;
  height: 10px;
  background: color-mix(in oklch, var(--surface), transparent 74%);
}

.weather-widget:not(.loaded) .weather-now {
  opacity: 0.78;
}

.weather-widget:not(.loaded) .weather-sep {
  display: none;
}

main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero {
  min-height: clamp(245px, 31vh, 320px);
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  overflow: hidden;
  padding: 6px 0 clamp(18px, 3vw, 28px);
  color: var(--surface);
  background-color: var(--blue-dark);
  background-image: url("header.png");
  background-position: center 48%;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in oklch, black, transparent 72%);
}

.hero-topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(6px, 1.4vw, 14px) var(--space-md) 0;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--surface);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.9vw, 3.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 > span {
  display: block;
}

.hero h1 em {
  display: block;
  margin-top: 0;
  color: var(--gold);
  font-family: var(--font-accent);
  font-size: 0.68em;
  font-style: italic;
  font-weight: 400;
}

.hero-deck {
  max-width: 58ch;
  margin: var(--space-xs) 0 var(--space-sm);
  color: color-mix(in oklch, var(--surface), transparent 18%);
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: break-word;
}

.search-panel {
  width: min(800px, 100%);
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  align-items: stretch;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in oklch, var(--surface), transparent 72%);
  border-radius: 999px;
  box-shadow: 0 24px 70px color-mix(in oklch, black, transparent 68%);
}

.field {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 7px 16px 7px 22px;
  text-align: left;
}

.select-field {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.field label {
  color: var(--gold-deep);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
}

.field input::placeholder {
  color: color-mix(in oklch, var(--ink-soft), transparent 26%);
}

.field input:focus,
.field select:focus,
.results-topbar select:focus {
  box-shadow: none;
}

.search-panel button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  color: var(--blue-dark);
  background: var(--gold);
  padding: 0 var(--space-md);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.search-panel button span {
  font-size: 1.35rem;
  line-height: 1;
}

.results-topbar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid color-mix(in oklch, var(--blue), transparent 72%);
  border-radius: var(--radius);
  background: oklch(99% 0.01 96);
  color: var(--ink);
  outline: none;
}

.text-button {
  min-height: 44px;
  border: 1px solid var(--blue-dark);
  border-radius: var(--radius);
  background: var(--blue-dark);
  color: oklch(98% 0.012 93);
  padding: 0 var(--space-md);
  font-weight: 800;
}

.text-button {
  min-height: 38px;
}

.text-button.active {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: color-mix(in oklch, var(--gold), var(--blue-dark) 18%);
}

.category-section,
.results-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.section-heading,
.results-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

h2 {
  margin: 0;
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.category-card {
  min-height: 172px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--tone), var(--ink) 30%);
  border-radius: var(--radius);
  padding: 0;
  color: var(--paper);
  background-color: var(--blue-dark);
  background-image: var(--category-image);
  background-position: center;
  background-size: cover;
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in oklch, black, transparent 96%) 0%,
    color-mix(in oklch, black, transparent 76%) 58%,
    color-mix(in oklch, black, transparent 34%) 100%
  );
}

.category-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-md);
}

.category-card:hover,
.category-card[aria-pressed="true"] {
  transform: translateY(-2px);
  border-color: var(--blue-dark);
  box-shadow: 0 16px 28px color-mix(in oklch, var(--tone), transparent 62%);
}

.category-label {
  display: block;
  max-width: 16ch;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 14px color-mix(in oklch, black, transparent 40%);
}

.tone-gold { --tone: var(--gold); }
.tone-cream { --tone: oklch(90% 0.08 92); }
.tone-green { --tone: var(--green); }
.tone-blue { --tone: oklch(78% 0.08 245); }
.tone-rose { --tone: var(--rose); }
.tone-lime { --tone: oklch(84% 0.11 132); }
.tone-violet { --tone: oklch(80% 0.09 305); }
.tone-clay { --tone: oklch(78% 0.08 62); }
.tone-steel { --tone: oklch(82% 0.035 230); }
.tone-navy { --tone: oklch(78% 0.07 260); }
.tone-mint { --tone: var(--mint); }
.tone-sky { --tone: oklch(84% 0.08 220); }
.tone-yellow { --tone: oklch(88% 0.13 95); }
.tone-coral { --tone: var(--coral); }
.tone-plum { --tone: color-mix(in oklch, var(--violet), var(--surface) 38%); }
.tone-ink { --tone: oklch(79% 0.03 260); }

.results-topbar {
  position: sticky;
  top: 76px;
  z-index: 10;
  align-items: center;
  padding: var(--space-md) 0;
  background: color-mix(in oklch, var(--paper), transparent 4%);
  backdrop-filter: blur(14px);
}

.results-topbar select {
  max-width: 190px;
  padding: 0 var(--space-sm);
  font-weight: 700;
}

.subnav {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}

.subnav::-webkit-scrollbar {
  display: none;
}

.subpill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 800;
}

.subpill.active {
  background: var(--gold);
  border-color: color-mix(in oklch, var(--gold), var(--blue-dark) 18%);
  color: var(--blue-dark);
}

.results-meta {
  margin: var(--space-sm) 0 var(--space-md);
}

.cards-list {
  display: grid;
  gap: var(--space-sm);
}

.business-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.36fr);
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: color-mix(in oklch, var(--surface), var(--paper) 18%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-main,
.card-heading {
  display: grid;
  gap: var(--space-sm);
}

.card-category {
  width: fit-content;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.business-card p {
  margin: 0;
  max-width: 72ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.promo-callout {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid color-mix(in oklch, var(--gold), var(--blue-dark) 26%);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--blue-dark);
  background: color-mix(in oklch, var(--gold), var(--surface) 76%);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.card-tags,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.card-tags span {
  border: 1px solid color-mix(in oklch, var(--blue), transparent 76%);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--blue-dark);
  background: color-mix(in oklch, var(--blue), transparent 94%);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-side {
  display: grid;
  align-content: space-between;
  gap: var(--space-md);
}

.address {
  font-weight: 700;
}

.address.muted {
  color: color-mix(in oklch, var(--ink-soft), transparent 20%);
}

.card-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-dark);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--blue-dark);
  background: var(--surface);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
}

.empty-state {
  display: grid;
  gap: var(--space-xs);
  border: 1px dashed color-mix(in oklch, var(--blue), transparent 62%);
  border-radius: var(--radius);
  padding: var(--space-xl);
  color: var(--ink-soft);
  background: color-mix(in oklch, var(--surface), transparent 14%);
}

.empty-state strong {
  color: var(--blue-dark);
}

.map-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.map-count {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: var(--space-md);
}

.map-layout.map-only {
  grid-template-columns: 1fr;
}

.map-wrap {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

#map {
  width: 100%;
  height: 430px;
  background: color-mix(in oklch, var(--blue), transparent 88%);
}

.leaflet-container {
  font-family: var(--font-body);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
}

.leaflet-popup-content {
  display: grid;
  gap: 3px;
  margin: 10px 12px;
  color: var(--ink);
  font-size: 0.85rem;
}

.leaflet-popup-content strong {
  color: var(--blue-dark);
  font-size: 0.96rem;
}

.leaflet-popup-content small,
.leaflet-popup-content span {
  color: var(--ink-soft);
}

.map-pin {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid color-mix(in oklch, var(--paper), transparent 4%);
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue-dark);
  box-shadow: 0 10px 22px color-mix(in oklch, var(--blue-dark), transparent 58%);
  font-size: 0.72rem;
  font-weight: 700;
}

.map-pin.selected {
  background: var(--gold);
  color: var(--blue-dark);
  transform: scale(1.08);
}

.map-list {
  max-height: 430px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  padding-right: 2px;
}

.map-list-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: var(--space-xs);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  color: var(--ink);
  background: color-mix(in oklch, var(--surface), var(--paper) 18%);
  text-align: left;
}

.map-list-item span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 700;
}

.map-list-item strong,
.map-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-list-item strong {
  color: var(--blue-dark);
  font-size: 0.88rem;
}

.map-list-item small {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.map-list-item.active,
.map-list-item:hover {
  border-color: var(--blue);
  background: color-mix(in oklch, var(--gold), var(--surface) 78%);
}

.map-empty {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer {
  width: min(1180px, 100%);
  margin: var(--space-xl) auto 0;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.footer-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

@media (max-width: 820px) {
  .hero-topbar,
  .site-footer {
    width: 100%;
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .hero,
  .hero-content,
  .hero-deck,
  .search-panel,
  .category-section,
  .results-section,
  .category-grid,
  .category-card,
  .business-card,
  .cards-list,
  .results-topbar,
  .subnav {
    max-width: 100%;
    min-width: 0;
  }

  .hero-deck,
  .search-panel,
  .category-grid,
  .category-card,
  .business-card,
  .cards-list,
  .results-topbar,
  .subnav {
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  .hero {
    min-height: 365px;
    padding-top: 6px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .search-panel {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .field,
  .select-field {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 9px var(--space-md);
  }

  .section-heading,
  .results-topbar {
    align-items: start;
    flex-direction: column;
  }

  .results-topbar {
    top: 75px;
  }

  .results-topbar select {
    max-width: none;
  }

  .business-card {
    grid-template-columns: 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-wrap,
  #map {
    min-height: 360px;
    height: 360px;
  }

  .map-list {
    max-height: 280px;
  }
}

@media (max-width: 520px) {
  .hero-topbar,
  .site-footer {
    width: 100%;
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
  }

  .brand {
    gap: 6px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-copy strong {
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
  }

  .brand-copy span {
    font-size: 0.58rem;
    line-height: 1;
  }

  .weather-widget {
    display: none;
  }

  .hero h1 {
    max-width: none;
    white-space: normal;
    font-size: clamp(1.65rem, 8.1vw, 2rem);
    line-height: 1.02;
  }

  .hero h1 > span {
    white-space: nowrap;
  }

  .hero h1 em {
    font-size: 0.62em;
    white-space: normal;
  }

  .hero-deck {
    max-width: 30ch;
    font-size: 0.84rem;
  }

  .field input,
  .field select {
    font-size: 1rem;
  }

  .business-card {
    padding: var(--space-md);
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 154px;
  }
}
