:root {
  --ink: #1f2926;
  --ink-soft: #52605a;
  --paper: #f7f5ef;
  --paper-strong: #fffefb;
  --line: #dfe2da;
  --line-strong: #c9cec4;
  --accent: #d65b38;
  --accent-dark: #a8432a;
  --sage: #dfe9db;
  --shadow: 0 16px 38px rgba(25, 35, 30, .14), 0 2px 8px rgba(25, 35, 30, .08);
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #e8a36d; outline-offset: 2px; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100dvh; height: 100dvh; overflow: hidden; position: relative; background: #e9eee8; }
.map-canvas { position: absolute; inset: 0; z-index: 0; background: #e7ece4; }
.leaflet-container { font-family: var(--sans); background: #e7ece4; }
.leaflet-control-zoom { border: 1px solid var(--line-strong) !important; box-shadow: 0 3px 10px rgba(31, 41, 38, .12) !important; }
.leaflet-control-zoom a { color: var(--ink) !important; background: var(--paper-strong) !important; border-bottom-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(255,254,251,.82) !important; color: #5a625d; font-size: 10px !important; }
.leaflet-control-attribution a { color: #536c61; }

.topbar { position: absolute; z-index: 1000; top: 18px; left: 18px; right: 18px; height: 62px; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 14px; color: #fff; background: var(--ink); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow); }
.brand { min-width: 208px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: #e9ad6f; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: #bfcac2; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.header-search { height: 42px; max-width: 440px; flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #d9e1db; background: #34423b; border: 1px solid #506057; }
.header-search > span { font-size: 24px; line-height: 1; transform: rotate(-20deg); }
.header-search input { width: 100%; min-width: 0; color: #fff; background: transparent; border: 0; outline: 0; font-size: 13px; }
.header-search input::placeholder { color: #bdc9c1; }
.clear-search { display: none; width: 26px; height: 26px; color: #fff; border: 0; background: transparent; font-size: 20px; }
.clear-search.is-visible { display: block; }
.view-toggle { display: flex; gap: 3px; padding: 3px; margin-left: auto; background: #34423b; border: 1px solid #506057; }
.view-button { min-height: 36px; padding: 0 13px; color: #c6d1c9; border: 0; background: transparent; font-size: 12px; }
.view-button.is-active { color: var(--ink); background: #f4f1e9; }
.view-button:hover:not(.is-active) { color: #fff; }
.mobile-filter-button { display: none; min-height: 42px; padding: 0 12px; color: #fff; border: 1px solid #506057; background: #34423b; font-size: 12px; }

.filter-panel { position: absolute; z-index: 800; top: 98px; left: 18px; bottom: 18px; width: 294px; display: flex; flex-direction: column; padding: 24px 20px 17px; background: rgba(247,245,239,.96); border: 1px solid rgba(31,41,38,.13); box-shadow: var(--shadow); overflow: auto; }
.filter-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.eyebrow { margin: 0 0 7px; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
h1, h2, h3, p { margin: 0; }
.filter-heading h1 { font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.filter-intro { max-width: 235px; margin: 12px 0 22px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.icon-button { width: 38px; height: 38px; color: var(--ink-soft); border: 1px solid var(--line-strong); background: transparent; font-size: 24px; line-height: 1; }
.icon-button:hover { color: var(--ink); background: #ebe9e0; }
.panel-close { display: none; }
.filter-section { padding: 18px 0; border-top: 1px solid var(--line); }
.section-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.section-label-row h2 { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.text-button { padding: 0; color: var(--accent-dark); border: 0; background: transparent; font-size: 11px; font-weight: 700; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.setting-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.filter-button { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: var(--ink-soft); border: 1px solid var(--line); background: #fbfaf5; font-size: 12px; text-align: left; }
.filter-button span { color: #88928a; font-size: 10px; }
.filter-button.is-active { color: var(--paper-strong); border-color: var(--ink); background: var(--ink); }
.filter-button.is-active span { color: #c5d0c8; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.category-chip { min-height: 32px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); border: 1px solid var(--line); background: #fbfaf5; font-size: 11px; line-height: 1.2; text-align: left; }
.category-chip .chip-count { color: #89938b; font-size: 10px; }
.category-chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; }
.category-chip.is-active { color: var(--ink); border-color: var(--accent); background: #f9e9de; }
.audience-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.audience-button { min-height: 39px; padding: 0 8px; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); border: 1px solid var(--line); background: #fbfaf5; font-size: 11px; text-align: left; }
.audience-button span { color: var(--accent); font-size: 17px; }
.audience-button.is-active { color: var(--ink); border-color: #dd9c75; background: #f9e9de; }
.filter-footer { margin-top: auto; padding-top: 18px; color: #7d8780; font-size: 10px; border-top: 1px solid var(--line); }
.legend-dot { width: 7px; height: 7px; display: inline-block; margin-right: 5px; background: var(--accent); border-radius: 50%; }

.map-status { position: absolute; z-index: 700; left: 330px; bottom: 20px; min-height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 12px; color: var(--ink); background: rgba(255,254,251,.93); border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(31,41,38,.1); font-size: 11px; }
.result-count strong { font-size: 15px; }
.result-count span { color: var(--ink-soft); }
.clear-all { display: none; }
.clear-all.is-visible { display: block; }

.list-view { position: absolute; z-index: 600; inset: 98px 18px 18px 330px; padding: 32px; background: var(--paper); border: 1px solid rgba(31,41,38,.13); box-shadow: var(--shadow); overflow: auto; }
.list-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.list-toolbar h2 { font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.04em; }
.list-sort { color: var(--ink-soft); font-size: 11px; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.place-card { min-width: 0; padding: 17px; display: flex; flex-direction: column; min-height: 232px; color: var(--ink); background: var(--paper-strong); border: 1px solid var(--line); text-align: left; transition: border-color .16s ease, transform .16s ease; }
.place-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.category-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.category-label i { width: 7px; height: 7px; border-radius: 50%; }
.setting-label { color: #7f8981; font-size: 10px; text-transform: capitalize; }
.place-card h3 { max-width: 240px; margin-bottom: 7px; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.08; letter-spacing: -.03em; }
.place-card p { color: var(--ink-soft); font-size: 12px; line-height: 1.48; }
.card-meta { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 17px; color: var(--ink-soft); font-size: 11px; }
.rating { color: var(--ink); font-weight: 700; }
.rating span { color: #c45e35; }
.card-area { margin-left: auto; overflow: hidden; color: #89928a; text-overflow: ellipsis; white-space: nowrap; }

.mobile-list-peek { display: none; }
.detail-scrim { position: absolute; z-index: 1090; inset: 0; background: rgba(27,36,32,.3); }
.detail-drawer { position: absolute; z-index: 1100; top: 0; right: 0; bottom: 0; width: min(440px, 100%); padding: 34px 29px 30px; color: var(--ink); background: var(--paper); box-shadow: -16px 0 40px rgba(25,35,30,.18); overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
.detail-drawer.is-open { transform: translateX(0); }
.drawer-close { position: absolute; top: 18px; right: 18px; }
.detail-kicker { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.detail-title { margin: 10px 40px 10px 0; font-family: var(--serif); font-size: 38px; line-height: .98; font-weight: 400; letter-spacing: -.05em; }
.detail-location { color: var(--ink-soft); font-size: 12px; }
.detail-rating-row { display: flex; align-items: center; gap: 13px; margin: 22px 0 19px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-rating { font-size: 22px; font-weight: 800; }
.detail-rating small { color: #8a948c; font-size: 11px; font-weight: 400; }
.stars { color: #ca6138; letter-spacing: 1px; font-size: 14px; }
.detail-intro { margin-bottom: 22px; color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.detail-block { margin: 20px 0; }
.detail-block h3 { margin-bottom: 8px; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-block p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 22px 0; }
.fact { padding: 11px; background: #eeece4; }
.fact span { display: block; margin-bottom: 4px; color: #879088; font-size: 10px; text-transform: uppercase; }
.fact strong { font-size: 12px; font-weight: 700; }
.detail-actions { display: flex; gap: 7px; margin-top: 23px; }
.primary-button, .secondary-button { min-height: 43px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 12px; font-weight: 700; }
.primary-button { color: #fff; border: 1px solid var(--accent); background: var(--accent); }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { color: var(--ink); border: 1px solid var(--line-strong); background: transparent; }
.secondary-button:hover { background: #ebe9e0; }
.source-note { margin-top: 22px; color: #8a948d; font-size: 10px; line-height: 1.5; }

.marker-pin { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; border: 3px solid rgba(255,254,251,.95); border-radius: 50%; box-shadow: 0 2px 8px rgba(31,41,38,.3); font-family: var(--serif); font-size: 14px; font-weight: 700; }
.marker-pin.is-focused { width: 39px; height: 39px; border-width: 4px; box-shadow: 0 3px 13px rgba(31,41,38,.38); font-size: 17px; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(31,41,38,.17); }
.marker-cluster div { color: #fff; background: var(--ink); font: 700 12px var(--sans); }
.marker-cluster-small { width: 42px !important; height: 42px !important; }
.marker-cluster-small div { width: 32px; height: 32px; margin: 5px; }
.marker-cluster-medium { width: 50px !important; height: 50px !important; }
.marker-cluster-medium div { width: 38px; height: 38px; margin: 6px; }
.marker-cluster-large { width: 58px !important; height: 58px !important; }
.marker-cluster-large div { width: 44px; height: 44px; margin: 7px; }

.cdn-message { position: absolute; z-index: 900; top: 94px; right: 22px; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; color: var(--ink); background: var(--paper-strong); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 11px; }
.cdn-message[hidden] { display: none; }
.cdn-message span { color: var(--ink-soft); }
.no-results { position: absolute; z-index: 750; top: 50%; left: calc(50% + 150px); transform: translate(-50%, -50%); width: 285px; padding: 28px; text-align: center; color: var(--ink); background: rgba(255,254,251,.96); border: 1px solid var(--line); box-shadow: var(--shadow); }
.no-results-mark { display: block; margin-bottom: 9px; color: var(--accent); font-size: 33px; transform: rotate(-20deg); }
.no-results h2 { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.no-results p { margin: 8px 0 16px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.toast { position: fixed; z-index: 1300; left: 50%; bottom: 25px; padding: 10px 14px; color: #fff; background: var(--ink); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

@media (max-width: 760px) {
  .topbar { top: 10px; left: 10px; right: 10px; height: auto; min-height: 58px; flex-wrap: wrap; gap: 8px; padding: 8px; }
  .brand { min-width: 0; flex: 1; }
  .brand-mark { width: 31px; height: 31px; font-size: 19px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 9px; }
  .view-toggle { margin-left: 0; }
  .view-button { min-height: 34px; padding: 0 10px; }
  .mobile-filter-button { display: inline-flex; align-items: center; gap: 6px; }
  .header-search { order: 4; flex-basis: 100%; max-width: none; }
  .filter-panel { z-index: 1200; top: 0; left: 0; bottom: 0; width: min(350px, 100%); padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateX(-100%); transition: transform .23s ease; }
  .filter-panel.is-open { transform: translateX(0); }
  .panel-close { display: block; }
  .map-status { top: 152px; right: 10px; bottom: auto; left: auto; min-height: 36px; padding: 0 10px; }
  .map-status .clear-all { display: none !important; }
  .list-view { z-index: 1001; inset: 0; padding: 91px 14px calc(20px + env(safe-area-inset-bottom)); border: 0; box-shadow: none; }
  .list-toolbar { display: block; margin-bottom: 15px; padding-bottom: 14px; }
  .list-toolbar h2 { font-size: 27px; }
  .list-sort { margin-top: 8px; }
  .place-grid { grid-template-columns: 1fr; gap: 8px; }
  .place-card { min-height: 188px; padding: 15px; }
  .mobile-list-peek { position: absolute; z-index: 850; display: block; left: 10px; right: 10px; bottom: 10px; padding: 7px 12px calc(11px + env(safe-area-inset-bottom)); background: rgba(247,245,239,.97); border: 1px solid rgba(31,41,38,.14); box-shadow: var(--shadow); }
  .peek-handle { width: 100%; height: 17px; border: 0; background: transparent; }
  .peek-handle span { width: 40px; height: 4px; display: block; margin: 0 auto; background: #b4bcb5; border-radius: 4px; }
  .peek-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
  .peek-summary strong { font-size: 18px; }
  .peek-card { padding: 12px; background: #fffefb; border: 1px solid var(--line); }
  .peek-card .card-topline { margin-bottom: 8px; }
  .peek-card h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 19px; font-weight: 400; }
  .peek-card p { display: none; }
  .peek-card .card-meta { padding-top: 0; margin-top: 9px; }
  .detail-drawer { top: auto; width: 100%; max-height: min(78dvh, 650px); padding: 28px 21px calc(23px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .detail-drawer.is-open { transform: translateY(0); }
  .detail-scrim { z-index: 1090; }
  .detail-title { font-size: 33px; }
  .no-results { left: 50%; top: 47%; }
  .cdn-message { top: 162px; left: 10px; right: 10px; }
}

@media (min-width: 761px) and (max-height: 780px) { .filter-panel { padding-top: 17px; } .filter-section { padding: 12px 0; } .filter-intro { margin-bottom: 12px; } }
