:root {
  --local-ink: #17251d;
  --local-paper: #f8f1e6;
  --local-card: #fffaf2;
  --local-mist: #ebe0cf;
  --local-leaf: #224c39;
  --local-gold: #c79045;
  --local-clay: #af644f;
  --local-blue: #497b84;
}

.local-page {
  background:
    linear-gradient(180deg, #fbf6ed 0%, #f3eadc 52%, #ebe0cf 100%);
  color: var(--local-ink);
}

.local-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgb(23 37 29 / 12%);
  background: rgb(255 250 242 / 92%);
  padding: 16px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(18px);
}

.local-header__nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.local-header__nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #425045;
  font-weight: 800;
}

.local-header__nav a:hover,
.local-header__nav a:focus-visible {
  background: rgb(199 144 69 / 16%);
  color: var(--local-ink);
}

.local-hero,
.local-toolbar,
.local-shell,
.local-offers,
.local-spine {
  width: min(1320px, calc(100% - clamp(32px, 8vw, 112px)));
  margin: 0 auto;
}

.local-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(64px, 8vw, 118px) 0 36px;
}

.local-hero h1 {
  max-width: 780px;
  margin: 12px 0 18px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3.3rem, 7vw, 7.4rem);
  line-height: 0.92;
}

.local-hero p {
  max-width: 720px;
  color: #596359;
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
}

.local-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.local-hero__actions .button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.local-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 330px);
  min-height: 48px;
  border: 1px solid rgb(23 37 29 / 14%);
  border-radius: 6px;
  background: rgb(255 250 242 / 88%);
  padding: 0 12px;
}

.local-search svg {
  width: 18px;
  color: var(--local-leaf);
}

.local-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--local-ink);
}

.local-privacy {
  margin-top: 14px;
  color: #6b7168;
  font-size: 0.92rem;
}

.local-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgb(23 37 29 / 14%);
  border-radius: 8px;
  background: rgb(255 250 242 / 82%);
  box-shadow: 0 20px 50px rgb(23 37 29 / 10%);
}

.local-hero__proof div {
  display: grid;
  gap: 2px;
  min-height: 120px;
  align-content: center;
  padding: 16px;
}

.local-hero__proof div + div {
  border-left: 1px solid rgb(23 37 29 / 12%);
}

.local-hero__proof strong {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.86;
}

.local-hero__proof span {
  color: #596359;
  font-size: 0.78rem;
  font-weight: 800;
}

.local-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.local-chip-group,
.local-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.local-chip-group button,
.local-toggle-group button {
  min-height: 38px;
  border: 1px solid rgb(23 37 29 / 12%);
  border-radius: 999px;
  background: rgb(255 250 242 / 88%);
  color: #475247;
  padding: 0 13px;
  font-size: 0.82rem;
  font-weight: 900;
}

.local-chip-group button.is-active,
.local-toggle-group button.is-active {
  border-color: var(--local-leaf);
  background: var(--local-leaf);
  color: #fffaf2;
}

.local-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.44fr);
  gap: 18px;
  align-items: start;
}

.local-map-card,
.local-results,
.local-spine,
.reserve-dialog {
  border: 1px solid rgb(23 37 29 / 12%);
  border-radius: 8px;
  background: rgb(255 250 242 / 88%);
  box-shadow: 0 20px 52px rgb(23 37 29 / 9%);
}

.local-map-card {
  overflow: hidden;
}

.local-map-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.local-map-card h2,
.local-results h2,
.local-offers h2,
.local-spine h2 {
  margin: 6px 0 0;
  font-family: Fraunces, Georgia, serif;
  line-height: 0.95;
}

.map-status {
  align-self: start;
  border-radius: 999px;
  background: rgb(73 123 132 / 12%);
  color: var(--local-blue);
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.local-map-card__summary {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgb(23 37 29 / 12%);
  border-radius: 8px;
  background: rgb(23 37 29 / 10%);
}

.local-map-card__summary span {
  display: grid;
  gap: 2px;
  min-width: 74px;
  align-content: center;
  background: rgb(255 250 242 / 90%);
  padding: 8px 10px;
  color: #5d665e;
  font-size: 0.7rem;
  font-weight: 850;
}

.local-map-card__summary strong {
  color: var(--local-ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.local-map {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-top: 1px solid rgb(23 37 29 / 10%);
  background:
    linear-gradient(135deg, rgb(34 76 57 / 18%) 0 25%, transparent 25% 50%, rgb(199 144 69 / 12%) 50% 75%, transparent 75%),
    #e8dece;
  background-size: 72px 72px;
}

.local-map__canvas {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgb(255 250 242 / 62%) 0 18%, transparent 19%),
    radial-gradient(circle at 30% 28%, rgb(34 76 57 / 18%), transparent 30%),
    radial-gradient(circle at 76% 72%, rgb(199 144 69 / 18%), transparent 28%);
}

.local-map__canvas::before {
  position: absolute;
  inset: 48px;
  border: 1px solid rgb(23 37 29 / 10%);
  border-radius: 999px;
  content: "";
}

.local-map__canvas::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(23 37 29 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 37 29 / 8%) 1px, transparent 1px);
  background-size: 76px 76px;
  content: "";
  mask-image: radial-gradient(circle at 50% 50%, #000 0 62%, transparent 83%);
}

.local-map__road,
.local-map__ring,
.local-map__area {
  position: absolute;
  z-index: 1;
}

.local-map__road {
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgb(255 250 242 / 80), transparent),
    rgb(73 123 132 / 22%);
  box-shadow: 0 1px 0 rgb(23 37 29 / 8%);
  transform-origin: center;
}

.local-map__road--one {
  left: -6%;
  top: 39%;
  width: 112%;
  transform: rotate(-12deg);
}

.local-map__road--two {
  left: 20%;
  top: 1%;
  width: 72%;
  transform: rotate(58deg);
}

.local-map__road--three {
  left: 4%;
  bottom: 20%;
  width: 86%;
  transform: rotate(18deg);
}

.local-map__ring {
  left: 50%;
  top: 52%;
  width: min(58%, 430px);
  aspect-ratio: 1;
  border: 1px dashed rgb(34 76 57 / 42%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.local-map__area {
  border: 1px solid rgb(23 37 29 / 12%);
  border-radius: 999px;
  background: rgb(255 250 242 / 74%);
  color: #5c655c;
  padding: 6px 9px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-map__area--one {
  left: 10%;
  top: 18%;
}

.local-map__area--two {
  right: 10%;
  top: 30%;
}

.local-map__area--three {
  left: 14%;
  bottom: 23%;
}

.local-pin {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #fffaf2;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgb(23 37 29 / 24%);
  color: #fffaf2;
  transform: translate(-50%, -50%);
}

.local-pin svg {
  width: 16px;
  height: 16px;
}

.local-pin--market {
  background: var(--local-clay);
}

.local-pin--place {
  background: var(--local-leaf);
}

.local-pin:focus-visible {
  outline: 3px solid rgb(255 250 242 / 92%);
  outline-offset: 3px;
}

.local-map__hud {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  gap: 4px;
  max-width: min(360px, calc(100% - 32px));
  border: 1px solid rgb(23 37 29 / 12%);
  border-radius: 8px;
  background: rgb(255 250 242 / 92%);
  box-shadow: 0 16px 32px rgb(23 37 29 / 13%);
  padding: 13px 14px;
  pointer-events: none;
}

.local-map__hud strong {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 0.98;
}

.local-map__hud small {
  color: #5d665e;
  font-weight: 760;
  line-height: 1.35;
}

.local-map__legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-radius: 999px;
  background: rgb(255 250 242 / 90%);
  padding: 8px 12px;
  color: #475247;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 12px 24px rgb(23 37 29 / 12%);
}

.pin-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.pin-dot--market {
  background: var(--local-clay);
}

.pin-dot--place {
  background: var(--local-leaf);
}

.pin-dot--source {
  border: 2px solid var(--local-blue);
  background: transparent;
}

.local-results {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 18px;
}

.local-results__head {
  margin-bottom: 14px;
}

.local-card,
.local-offer-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgb(23 37 29 / 10%);
  border-radius: 8px;
  background: #fffdf7;
  padding: 14px;
}

.local-card + .local-card {
  margin-top: 10px;
}

.local-card.is-focused {
  border-color: var(--local-gold);
  box-shadow: 0 0 0 3px rgb(199 144 69 / 22%);
}

.local-card__top,
.local-offer-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.local-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--local-gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.local-card h3,
.local-offer-card h3 {
  margin: 4px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.local-distance {
  color: #596359;
  font-weight: 850;
  white-space: nowrap;
}

.local-meta,
.verification-list,
.category-list,
.local-source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.local-meta span,
.verification-list span,
.category-list span,
.sensitive-caution {
  border-radius: 999px;
  background: #f1e6d6;
  color: #4e584f;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 850;
}

.verification-list span {
  background: rgb(34 76 57 / 10%);
  color: var(--local-leaf);
}

.sensitive-caution {
  border-radius: 6px;
  background: rgb(175 100 79 / 12%);
  color: #7b493d;
  line-height: 1.35;
}

.local-source-line {
  align-items: center;
  border-top: 1px solid rgb(23 37 29 / 8%);
  padding-top: 10px;
}

.local-source-line span,
.local-source-line a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #536058;
  font-size: 0.72rem;
  font-weight: 850;
}

.local-source-line a {
  color: var(--local-blue);
  text-decoration: underline;
  text-decoration-color: rgb(73 123 132 / 35%);
  text-underline-offset: 3px;
}

.local-source-line svg {
  width: 14px;
  height: 14px;
}

.local-offers {
  padding: 82px 0;
}

.local-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.local-offer-card {
  background: rgb(255 250 242 / 94%);
  box-shadow: 0 14px 32px rgb(23 37 29 / 7%);
}

.local-offer-card .button,
.local-offer-card .text-cta {
  justify-self: start;
}

.local-spine {
  margin-bottom: 80px;
  padding: 26px;
}

.local-spine__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.local-spine article {
  border: 1px solid rgb(23 37 29 / 10%);
  border-radius: 8px;
  background: #fffdf7;
  padding: 18px;
}

.local-spine svg {
  color: var(--local-leaf);
}

.reserve-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
}

.reserve-dialog::backdrop {
  background: rgb(16 27 22 / 62%);
}

.reserve-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.reserve-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.reserve-panel h2 {
  max-width: 460px;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
}

.reserve-form {
  display: grid;
  gap: 10px;
}

.reserve-form label {
  display: grid;
  gap: 5px;
  color: #4e584f;
  font-size: 0.82rem;
  font-weight: 850;
}

.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  width: 100%;
  border: 1px solid rgb(23 37 29 / 13%);
  border-radius: 6px;
  background: #fffdf7;
  padding: 10px;
}

.reserve-success {
  border-radius: 8px;
  background: rgb(34 76 57 / 10%);
  color: var(--local-leaf);
  padding: 12px;
  font-weight: 850;
}

@media (max-width: 1080px) {
  .local-map-card__top {
    grid-template-columns: 1fr;
  }

  .map-status {
    width: max-content;
  }

  .local-hero,
  .local-shell,
  .local-offer-grid,
  .local-spine__grid {
    grid-template-columns: 1fr;
  }

  .local-results {
    position: static;
    max-height: none;
  }

  .local-map {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  .local-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .local-header__nav {
    width: 100%;
    overflow: auto;
  }

  .local-hero,
  .local-toolbar,
  .local-shell,
  .local-offers,
  .local-spine {
    width: calc(100% - 32px);
  }

  .local-hero {
    padding-top: 44px;
  }

  .local-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .local-hero__proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .local-hero__proof div + div {
    border-top: 0;
    border-left: 1px solid rgb(23 37 29 / 12%);
  }

  .local-hero__proof div {
    min-height: 82px;
    padding: 12px 9px;
  }

  .local-hero__proof strong {
    font-size: clamp(1.6rem, 9vw, 2.3rem);
  }

  .local-hero__proof span {
    font-size: 0.66rem;
  }

  .local-map {
    min-height: 430px;
  }

  .local-map-card__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .local-map-card__summary span {
    min-width: 0;
  }

  .local-map__hud {
    position: relative;
    top: auto;
    left: auto;
    z-index: 6;
    max-width: none;
    margin: 12px;
  }

  .local-map__legend {
    border-radius: 8px;
  }
}
