:root {
  --ink: #24312d;
  --muted: #63736d;
  --line: #eadfd6;
  --paper: #fffdf8;
  --panel: rgba(255, 250, 244, 0.96);
  --mist: #eef8f5;
  --mint: #74d7c3;
  --mint-dark: #167f72;
  --coral: #ffad8c;
  --sky: #95c8ff;
  --sun: #f5c85d;
  --rose: #f4a7bb;
  --shadow: 0 18px 42px rgba(31, 58, 49, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #fffaf5;
  background-image:
    radial-gradient(circle at 18px 24px, rgba(255, 173, 140, 0.18) 0 7px, transparent 7.5px),
    radial-gradient(circle at 10px 11px, rgba(116, 215, 195, 0.2) 0 3px, transparent 3.5px),
    radial-gradient(circle at 19px 7px, rgba(149, 200, 255, 0.22) 0 3px, transparent 3.5px),
    radial-gradient(circle at 28px 11px, rgba(244, 167, 187, 0.2) 0 3px, transparent 3.5px);
  background-size: 104px 104px;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--mint-dark);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
}

.sidebar {
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(36, 49, 45, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.96));
  backdrop-filter: blur(18px);
}

.brand-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(36, 49, 45, 0.1);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(116, 215, 195, 0.3), rgba(255, 173, 140, 0.2) 52%, rgba(149, 200, 255, 0.22));
}

.brand-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.22;
}

.brand-block h1 {
  margin: 0 0 4px;
  font-size: 1.62rem;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-toggle,
.icon-button,
.icon-label-button,
.segment {
  min-height: 40px;
  border: 0;
  cursor: pointer;
}

.language-toggle {
  justify-self: end;
  min-width: 42px;
  border-radius: 8px;
  color: var(--mint-dark);
  background: #ffffff;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(31, 58, 49, 0.12);
}

.mascot {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(31, 58, 49, 0.15));
}


.brand-block > * {
  position: relative;
  z-index: 1;
}

.brand-block::after {
  display: none;
}

.restaurant-card::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 20px;
  opacity: 0.16;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 74%, var(--mint-dark) 0 6px, transparent 6.5px),
    radial-gradient(circle at 18% 28%, var(--mint-dark) 0 3px, transparent 3.5px),
    radial-gradient(circle at 40% 14%, var(--mint-dark) 0 3px, transparent 3.5px),
    radial-gradient(circle at 62% 14%, var(--mint-dark) 0 3px, transparent 3.5px),
    radial-gradient(circle at 84% 28%, var(--mint-dark) 0 3px, transparent 3.5px);
}

.restaurant-card.expanded::before {
  display: none;
}

.restaurant-card.expanded {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 250, 244, 0.99));
}

.card-detail {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.detail-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.detail-close {
  border-radius: 8px;
  background: #fff1c5;
  color: #6b4b08;
  font-weight: 900;
}

.card-collapse {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(36, 49, 45, 0.12);
  box-shadow: 0 8px 18px rgba(31, 58, 49, 0.1);
}

.restaurant-card.expanded .card-hit {
  padding-right: 48px;
}

.detail-summary {
  border-left: 3px solid var(--rose);
  padding-left: 9px;
}

.search-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(36, 49, 45, 0.1);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: center;
  min-height: 50px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 58, 49, 0.08);
}

.search-box:focus-within {
  border-color: var(--mint);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
}

.icon-button {
  width: 40px;
  color: var(--muted);
  background: transparent;
  font-size: 1.3rem;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.filter-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segment {
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  font-size: 0.86rem;
}

.segment + .segment {
  border-left: 1px solid var(--line);
}

.segment.active {
  color: #0e5f55;
  background: #dff7f2;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.switch-row.compact {
  justify-content: flex-end;
  min-height: 40px;
}

.icon-label-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 0 12px;
  color: #0e5f55;
  background: #dff7f2;
  font-weight: 900;
}

.icon-label-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.data-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(36, 49, 45, 0.1);
  background: #eef8f5;
}

.data-strip strong {
  display: block;
  font-size: 1.02rem;
}

.data-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

#sourceLine {
  max-width: 145px;
  text-align: right;
}

.support-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(36, 49, 45, 0.1);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
}

.support-links a {
  text-decoration: none;
}

.active-listing {
  margin: 12px 16px 0;
  border: 2px solid rgba(22, 127, 114, 0.34);
  border-radius: 8px;
  background: #f3fffc;
  box-shadow: 0 8px 18px rgba(31, 58, 49, 0.08);
}

.results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px 18px;
}

.restaurant-list {
  display: grid;
  gap: 10px;
}

.restaurant-card {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid rgba(36, 49, 45, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 248, 0.98));
  box-shadow: 0 9px 20px rgba(31, 58, 49, 0.07);
}

.restaurant-card.selected {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 3px rgba(116, 215, 195, 0.22), 0 9px 20px rgba(31, 58, 49, 0.08);
}

.card-hit {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 126px;
  padding: 12px;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.detail-card {
  cursor: default;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-title strong {
  font-size: 1rem;
  line-height: 1.24;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 8px;
  padding: 0 8px;
  color: var(--ink);
  background: #edf3ff;
  font-size: 0.73rem;
  font-weight: 900;
}

.badge.pet {
  color: #0e5f55;
  background: #d9f7ef;
}

.badge.outdoor {
  color: #69351e;
  background: #ffe4d6;
}

.badge.cuisine {
  background: #eef8f5;
}

.badge.review {
  background: #fde8ef;
}

.badge.distance {
  background: #fff1c5;
}

.address {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

.tip {
  margin: 0;
  color: #40534d;
  font-size: 0.82rem;
  line-height: 1.4;
}

.tip.prominent {
  border-left: 3px solid var(--mint);
  padding-left: 9px;
}

.meta-line {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.source-line {
  display: block;
}

.review-summary {
  margin: 0;
  color: #40534d;
  font-size: 0.82rem;
  line-height: 1.42;
}

.review-summary strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.hours-block {
  display: grid;
  gap: 6px;
  border-left: 3px solid var(--sun);
  padding-left: 9px;
  color: #40534d;
  font-size: 0.82rem;
  line-height: 1.42;
}

.hours-block strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.hours-block ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 10px;
  color: #0e5f55;
  background: #dff7f2;
  font-size: 0.83rem;
  font-weight: 900;
  text-decoration: none;
}

.action-button.secondary {
  color: #643820;
  background: #ffe4d6;
}

.map-area {
  position: relative;
  min-width: 0;
  height: 100vh;
  min-height: 0;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #dff5f1;
  touch-action: pan-x pan-y;
}

.map-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.legend {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(36, 49, 45, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--panel);
  box-shadow: var(--shadow);
  font-size: 0.83rem;
  font-weight: 900;
}

.legend span {
  display: inline-flex;
  align-items: center;
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: -1px;
}

.dot.pet {
  background: var(--mint);
}

.dot.outdoor {
  background: var(--coral);
}

.dot.selected {
  background: var(--sun);
}

.pet-pin {
  width: 30px !important;
  height: 30px !important;
}

.pin-core {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 8px 16px rgba(36, 49, 45, 0.24);
  transform: rotate(-45deg);
}

.pin-core::after {
  content: "";
  display: block;
  width: 8px;
  height: 7px;
  border-radius: 50% 50% 45% 45%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    -7px -5px 0 -2px rgba(255, 255, 255, 0.94),
    0 -8px 0 -2px rgba(255, 255, 255, 0.94),
    7px -5px 0 -2px rgba(255, 255, 255, 0.94);
  transform: rotate(45deg);
}

.pet-pin.pet-ready .pin-core {
  background: var(--mint);
}

.pet-pin.outdoor .pin-core {
  background: var(--coral);
}

.pet-pin.selected .pin-core {
  background: var(--sun);
  box-shadow: 0 0 0 6px rgba(245, 200, 93, 0.24), 0 8px 16px rgba(36, 49, 45, 0.24);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(116, 215, 195, 0.34);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  color: #0e5f55;
  background: #e8fbf6;
  font-weight: 900;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  min-width: 230px;
  margin: 12px;
}

.popup-title {
  margin: 0 0 6px;
  font-weight: 900;
}

.popup-copy {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.35;
}

.popup-button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: #0e5f55;
  background: #dff7f2;
  font-weight: 900;
  cursor: pointer;
}

.empty-state {
  padding: 28px 14px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seo-page {
  height: 100%;
  overflow: auto;
}

.seo-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.seo-shell h1 {
  margin: 24px 0 16px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

.seo-shell h2 {
  margin-top: 34px;
}

.seo-shell p,
.seo-list span {
  color: var(--muted);
  line-height: 1.6;
}

.back-link,
.primary-link {
  font-weight: 900;
}

.seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.policy-card {
  border: 1px solid rgba(36, 49, 45, 0.13);
  border-radius: 8px;
  margin: 18px 0;
  padding: 18px;
  background: var(--panel);
}

.policy-card h2 {
  margin-top: 0;
}

.policy-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.seo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.seo-stats.long {
  grid-template-columns: 1fr;
}

.seo-stats div,
.seo-list li {
  border: 1px solid rgba(36, 49, 45, 0.13);
  border-radius: 8px;
  background: var(--panel);
}

.seo-stats div {
  padding: 16px;
}

.seo-stats dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.seo-stats dd {
  margin: 4px 0 0;
  font-size: 1.5rem;
  font-weight: 900;
}

.seo-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.seo-list li {
  display: grid;
  gap: 6px;
  padding: 14px;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 60dvh) minmax(0, 40dvh);
    height: 100dvh;
  }

  .sidebar {
    height: auto;
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(36, 49, 45, 0.14);
  }

  .brand-block {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 100px;
    padding: 14px 16px 10px;
  }

  .brand-block h1 {
    font-size: 1.55rem;
  }

  .mascot {
    width: 54px;
    height: 54px;
  }

  .map-area {
    height: 40dvh;
    min-height: 0;
  }

  #map {
    position: relative;
    height: 100%;
  }

  .map-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 560px) {
  .filter-row {
    grid-template-columns: 1fr;
  }

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

  .segment + .segment {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .switch-row,
  .map-topbar,
  .data-strip,
  .support-links {
    align-items: stretch;
    flex-direction: column;
  }

  .legend {
    width: max-content;
    max-width: 100%;
  }

  #sourceLine {
    max-width: none;
    text-align: left;
  }

  .seo-stats {
    grid-template-columns: 1fr;
  }
}


.search-drawer {
  display: contents;
}

.search-history,
.mobile-search-meta,
.mobile-legal-links {
  display: none;
}

.mobile-chip-groups {
  display: none;
}

.chip-scroller {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chip-scroller::-webkit-scrollbar {
  display: none;
}

.mobile-chip {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.mobile-chip.active {
  color: var(--ink);
  border-color: var(--coral);
  background: #ffe4d6;
}

@media (max-width: 900px) {
  body {
    background: #dff5f1;
    background-image: none;
  }

  .app-shell {
    display: block;
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .map-area {
    position: fixed;
    inset: 0;
    height: 100dvh;
    min-height: 0;
  }

  #map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .sidebar {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: block;
    height: 100dvh;
    padding: calc(env(safe-area-inset-top) + 10px) 14px calc(env(safe-area-inset-bottom) + 12px);
    overflow: visible;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
  }

  .brand-block,
  .search-panel,
  .data-strip,
  .support-links,
  .active-listing,
  .results {
    pointer-events: auto;
  }

  .brand-block {
    position: relative;
    z-index: 40;
    min-height: 0;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(255, 173, 140, 0.34);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: var(--panel);
    backdrop-filter: blur(18px);
  }

  .brand-block::after {
    display: none;
  }

  .brand-block h1 {
    margin: 0 0 2px;
    font-size: clamp(1.08rem, 4.8vw, 1.34rem);
    line-height: 1.05;
  }

  .eyebrow,
  .tagline {
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .brand-actions {
    gap: 8px;
  }

  .mascot {
    width: 54px;
    height: 54px;
  }

  .language-toggle {
    min-width: 42px;
    min-height: 42px;
    border: 1px solid var(--line);
    box-shadow: none;
  }

  .search-panel {
    position: relative;
    z-index: 40;
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
    border: 1px solid rgba(255, 173, 140, 0.34);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .search-box {
    min-height: 46px;
    border-width: 1px;
    box-shadow: none;
  }

  .search-box input {
    padding: 0 12px;
    font-size: 0.94rem;
    font-weight: 700;
  }

  .filter-row {
    display: none;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .segment {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #ffffff;
    font-size: 0.82rem;
  }

  .segment + .segment {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .segment.active {
    border-color: var(--mint);
    background: #dff7f2;
  }

  .mobile-chip-groups {
    display: none;
  }

  .switch-row.compact {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 38px;
  }

  .icon-label-button {
    min-height: 38px;
    border: 1px solid var(--mint);
    background: #dff7f2;
  }

  .data-strip {
    width: min(100%, 360px);
    min-height: 0;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(36, 49, 45, 0.12);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 10px 22px rgba(31, 58, 49, 0.1);
  }

  .data-strip strong {
    font-size: 0.88rem;
  }

  .data-strip span {
    font-size: 0.72rem;
  }

  #sourceLine {
    display: none;
  }

  .support-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    min-height: 0;
    margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(36, 49, 45, 0.12);
    border-radius: 8px;
    background: var(--panel);
    font-size: 0.72rem;
  }

  .map-topbar {
    display: none;
  }

  .active-listing {
    display: none;
  }

  .results {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    left: 0;
    max-height: 44dvh;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .restaurant-list {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-width: max-content;
    padding: 0 14px;
  }

  .restaurant-card {
    flex: 0 0 294px;
    width: 294px;
    min-height: 150px;
    max-height: 44dvh;
    overflow: auto;
    border-color: var(--line);
    background: var(--paper);
    box-shadow: 0 12px 22px rgba(31, 58, 49, 0.12);
  }

  .restaurant-card.expanded {
    flex-basis: min(336px, calc(100vw - 28px));
    width: min(336px, calc(100vw - 28px));
    background: #fffaf4;
  }

  .card-hit {
    min-height: 150px;
    padding: 12px;
    gap: 0;
  }

  .card-title {
    display: grid;
    justify-content: stretch;
    gap: 2px;
  }

  .card-title strong {
    font-size: 1rem;
  }

  .card-title .meta-line {
    font-size: 0.75rem;
  }

  .badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .address {
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.42;
  }

  .tip,
  .review-summary,
  .hours-block {
    font-size: 0.72rem;
    line-height: 1.42;
  }

  .empty-state {
    flex: 0 0 calc(100vw - 28px);
    background: var(--panel);
  }

  .leaflet-bottom.leaflet-right {
    bottom: calc(44dvh + env(safe-area-inset-bottom) + 18px);
  }
}

@media (max-width: 380px) {
  .sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand-block,
  .search-panel {
    padding-right: 10px;
    padding-left: 10px;
  }

  .mascot {
    width: 46px;
    height: 46px;
  }

  .restaurant-card {
    flex-basis: calc(100vw - 28px);
    width: calc(100vw - 28px);
  }
}


@media (max-width: 900px) {
  .results {
    max-height: 40dvh;
  }

  .restaurant-card:not(.expanded) {
    height: 172px;
    min-height: 172px;
    max-height: 172px;
    overflow: hidden;
  }

  .restaurant-card.expanded {
    max-height: 40dvh;
  }

  .restaurant-card:not(.expanded) .card-hit {
    min-height: 172px;
    height: 172px;
    overflow: hidden;
  }

  .restaurant-card:not(.expanded) .review-summary {
    display: none;
  }

  .restaurant-card:not(.expanded) .address,
  .restaurant-card:not(.expanded) .tip {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
  }

  .restaurant-card:not(.expanded) .address {
    -webkit-line-clamp: 2;
  }

  .restaurant-card:not(.expanded) .tip {
    -webkit-line-clamp: 2;
  }
}


@media (max-width: 900px) {
  .search-panel {
    gap: 0;
    padding-bottom: 12px;
  }

  .search-drawer {
    display: none;
  }

  body.search-active .search-drawer {
    display: grid;
    gap: 10px;
    max-height: min(52dvh, 390px);
    overflow-y: auto;
    padding-top: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.search-active .search-drawer::-webkit-scrollbar {
    display: none;
  }

  .search-history {
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(36, 49, 45, 0.1);
    padding-top: 10px;
  }

  .search-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
  }

  .search-history-head button {
    min-height: 28px;
    border: 0;
    border-radius: 8px;
    padding: 0 8px;
    color: var(--mint-dark);
    background: #dff7f2;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .search-history-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .search-history-list::-webkit-scrollbar {
    display: none;
  }

  .history-chip {
    display: grid;
    gap: 2px;
    flex: 0 0 auto;
    min-width: 116px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 9px;
    color: var(--ink);
    background: #ffffff;
    text-align: left;
  }

  .history-chip span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 900;
  }

  .history-chip small,
  .history-empty {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
  }

  .mobile-search-meta {
    display: grid;
    align-items: center;
    min-height: 0;
    border: 1px solid rgba(36, 49, 45, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.72);
  }

  .mobile-search-meta strong,
  .mobile-search-meta span {
    display: block;
    min-width: 0;
    line-height: 1.24;
  }

  .mobile-search-meta strong {
    font-size: 0.82rem;
  }

  .mobile-search-meta span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    overflow-wrap: anywhere;
  }

  .mobile-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.24;
  }

  .mobile-legal-links a {
    text-decoration: none;
  }

  .data-strip,
  .support-links {
    display: none;
  }

  .restaurant-card:not(.expanded) {
    height: 158px;
    min-height: 158px;
    max-height: 158px;
  }

  .restaurant-card:not(.expanded) .card-hit {
    min-height: 158px;
    height: 158px;
  }
}


.rating-filter {
  display: grid;
  gap: 8px;
}

.rating-filter label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rating-filter strong {
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: none;
}

.rating-filter input[type="range"] {
  width: 100%;
  accent-color: var(--mint-dark);
}

.filter-row {
  display: none;
}

.mobile-filter-dropdowns {
  display: grid;
  gap: 8px;
}

.filter-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.filter-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  cursor: pointer;
  list-style: none;
}

.filter-menu summary::-webkit-details-marker {
  display: none;
}

.filter-menu summary::after {
  content: "v";
  color: var(--mint-dark);
  font-weight: 950;
}

.filter-menu[open] summary::after {
  content: "^";
}

.filter-menu summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-menu summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 146px;
  overflow-y: auto;
  padding: 0 10px 10px;
}

.filter-choice {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.filter-choice.active {
  color: var(--ink);
  border-color: var(--coral);
  background: #ffe4d6;
}

@media (max-width: 900px) {
  .rating-filter {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    background: #ffffff;
  }

  .results {
    cursor: grab;
    touch-action: pan-x;
    user-select: none;
  }

  .results.dragging {
    cursor: grabbing;
  }

  .restaurant-card.expanded .card-hit {
    padding-right: 48px;
  }
}

@media (max-width: 560px) {
  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
