:root {
  color-scheme: light;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142a24;
  background: #f6f8f4;
  --paper: #fff;
  --ink: #142a24;
  --muted: #465f54;
  --line: #dce6dd;
  --green: #176347;
  --pale: #eaf5ec;
  --accent: #ddf8a7;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #287d55; outline-offset: 3px; }
a { color: var(--green); }
.masthead {
  min-height: 72px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--paper);
}
.brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 850; font-size: 1.7rem; letter-spacing: -.075em; color: var(--ink); text-decoration: none; }
.brand > span:last-child { color: var(--green); margin-left: -6px; }
.brand-pin { width: 19px; height: 19px; display: inline-block; border: 5px solid var(--green); border-radius: 55% 55% 55% 1px; transform: rotate(-45deg); margin-right: 5px; }
.location { margin: 0; font-size: .95rem; font-weight: 750; }
.location span { display: inline-block; margin-left: 10px; color: var(--muted); font-weight: 500; }
.explorer { display: grid; grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); grid-template-rows: 1fr; flex: 1; min-height: 520px; height: calc(100svh - 117px); }
.panel { background: var(--paper); border-right: 1px solid var(--line); z-index: 1; overflow: auto; }
.panel-header { padding: 28px 26px 14px; position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--line); }
h1, h2 { margin: 0; font-weight: 810; letter-spacing: -.045em; line-height: 1.12; }
h1 { font-size: clamp(1.7rem, 2.5vw, 2.4rem); margin-bottom: 20px; }
.search { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 0 12px 0 15px; border: 1px solid #bacfc0; border-radius: 12px; background: #f6faf6; }
.search:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.search-icon { width: 14px; height: 14px; border: 2px solid var(--green); border-radius: 100%; position: relative; flex: 0 0 14px; margin-right: 3px; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; background: var(--green); transform: rotate(45deg); right: -5px; bottom: -2px; }
.search input { width: 100%; min-width: 0; background: transparent; border: 0; padding: 13px 0; outline: 0; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search button, .close { color: var(--green); background: transparent; border: 0; min-width: 42px; min-height: 42px; font-size: 1.5rem; }
.result-status { min-height: 1.2em; margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.results { margin: 0; padding: 0 16px; list-style: none; }
.result { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; border: 0; border-bottom: 1px solid var(--line); padding: 13px 10px; min-height: 74px; background: var(--paper); color: var(--ink); }
.result:hover, .result[aria-current="true"] { background: var(--pale); }
.result-name { font-size: 1rem; font-weight: 750; display: block; }
.result-secondary { display: block; color: var(--muted); margin-top: 4px; font-size: .875rem; line-height: 1.4; }
.result-marker { display: grid; place-items: center; border-radius: 10px; background: var(--pale); width: 36px; height: 36px; flex: 0 0 36px; }
.result-marker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.more { margin: 16px 26px; border: 1px solid #a6c7af; border-radius: 10px; color: var(--green); background: var(--paper); padding: 11px 16px; font-weight: 700; }
.map-area { position: relative; min-width: 0; min-height: 320px; background: #e5eee1; }
#map { position: absolute; inset: 0; }
.map-message { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; padding: 24px; text-align: center; color: var(--ink); }
.map-reset { position: absolute; right: 14px; bottom: 35px; min-height: 44px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--green); box-shadow: 0 1px 8px #193f2620; font-weight: 750; }
footer { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: space-between; align-items: center; margin-top: auto; padding: 12px clamp(18px, 4vw, 56px); color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
dialog { width: min(480px, calc(100vw - 28px)); max-height: calc(100svh - 28px); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); box-shadow: 0 18px 80px #142a2440; }
dialog::backdrop { background: #142a2466; }
.detail-card { position: relative; padding: 28px; }
.detail-card h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); padding-right: 24px; }
.close { position: absolute; top: 10px; right: 12px; border-radius: 50%; background: var(--pale); }
.detail-cuisine { font-size: .9rem; font-weight: 750; color: var(--green); margin: 0 44px 9px 0; }
.detail-cuisine:empty, #place-address:empty { display: none; }
.place-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.place-actions a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; font-weight: 750; text-decoration: none; border: 1px solid #c3dcc9; border-radius: 9px; }
.place-actions a:first-child { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.inspection { margin-top: 20px; padding: 16px 18px; background: var(--pale); border-radius: 10px; }
.inspection h3 { margin: 0 0 6px; font-size: 1rem; }
.inspection p { margin: 0; }
.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; }
.data-page { width: min(720px, calc(100% - 2rem)); margin: 3rem auto; line-height: 1.65; }
.data-page h2 { font-size: 1.35rem; margin-top: 2rem; }
@media (max-width: 750px) {
  .masthead { min-height: 59px; padding: 0 16px; }
  .explorer { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 0; }
  .panel { display: contents; }
  .panel-header { padding: 20px 16px 10px; position: static; grid-row: 1; }
  h1 { margin-bottom: 13px; }
  .map-area { grid-row: 2; min-height: 240px; height: min(43svh, 420px); border-bottom: 1px solid var(--line); }
  .results { grid-row: 3; padding: 0 10px; background: var(--paper); }
  .more { justify-self: start; }
}

.map-area .leaflet-container { font: inherit; background: #e5eee1; }
.map-message, .map-reset { z-index: 500; }
.place-pin, .place-cluster {
  display: grid; place-items: center; background: transparent;
  color: var(--paper); font: 750 .875rem/1 system-ui, sans-serif;
}
.place-pin::before, .place-cluster > span {
  border: 2px solid white; border-radius: 50%; background: var(--green);
  filter: drop-shadow(0 1px 2px #142a2460);
}
.place-pin::before { content: ""; width: 17px; height: 17px; }
.place-cluster > span { width: 40px; height: 40px; display: grid; place-items: center; }
