:root {
  color-scheme: light;
  --ink: #18352d;
  --muted: #6f7c74;
  --green: #285c49;
  --green-dark: #1b4335;
  --green-light: #eaf1e9;
  --lime: #d6e4a1;
  --paper: #f7f8f4;
  --white: #fff;
  --line: #e7eae3;
  --orange: #d47853;
  --shadow: 0 14px 40px rgba(30, 56, 44, .08);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.topbar { height: 72px; padding: 0 max(34px, calc((100% - 1192px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(35, 71, 55, .08); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: Manrope, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -1.3px; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px 10px 10px 3px; background: var(--green); color: #fff; font-size: 18px; letter-spacing: -1px; }
.brand-period { color: var(--orange); }
.topbar-note { display: flex; align-items: center; gap: 9px; color: #68776d; font-size: 12px; font-weight: 600; letter-spacing: .025em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #81a76b; box-shadow: 0 0 0 4px #e6eee2; }
.about-link { font-size: 13px; font-weight: 600; text-decoration: none; }
.about-link span, .footer > a:last-child span { color: var(--orange); }
main { width: min(1192px, calc(100% - 64px)); margin: 0 auto; }
.intro { position: relative; display: flex; min-height: 202px; align-items: center; justify-content: space-between; overflow: hidden; }
.intro-copy { position: relative; z-index: 1; padding: 26px 0 22px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 18px; height: 1px; margin: 0 7px 3px 0; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-family: Manrope, sans-serif; font-size: clamp(32px, 4vw, 45px); font-weight: 700; line-height: 1.1; letter-spacing: -2px; }
h1 span { color: var(--green); }
.intro-text { max-width: 450px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.intro-decoration { position: absolute; right: 75px; top: -58px; width: 262px; height: 262px; opacity: .83; }
.decoration-sun { position: absolute; top: 35px; right: 18px; width: 106px; height: 106px; border-radius: 50%; background: #ecdbb3; }
.decoration-leaf { position: absolute; display: block; width: 94px; height: 142px; border-radius: 75% 10% 72% 10%; background: var(--green); transform-origin: bottom center; }
.leaf-one { right: 101px; bottom: 8px; transform: rotate(-34deg); }
.leaf-two { right: 45px; bottom: 9px; height: 123px; background: #789675; transform: rotate(18deg); }
.leaf-three { right: 129px; bottom: -6px; height: 99px; width: 68px; background: #9db590; transform: rotate(-65deg); }
.search-card { min-height: 66px; display: flex; align-items: center; gap: 14px; padding: 8px 9px 8px 20px; border: 1px solid #e8ebe4; border-radius: 13px; background: var(--white); box-shadow: var(--shadow); }
.search-icon { display: grid; width: 23px; height: 23px; place-items: center; }
.search-icon svg, .gps-button svg, .filter-label svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
#location-input { flex: 1; min-width: 0; height: 46px; border: 0; outline: none; color: var(--ink); font-size: 14px; }
#location-input::placeholder { color: #929b94; opacity: 1; }
.gps-button, .search-button { display: inline-flex; height: 46px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 700; }
.gps-button { padding: 0 14px; background: #f3f6f1; color: var(--green); }
.gps-button:hover { background: var(--green-light); }
.gps-button svg { width: 17px; }
.search-button { min-width: 127px; padding: 0 18px; background: var(--green); color: #fff; }
.search-button:hover { background: var(--green-dark); }
.search-button span { font-size: 17px; font-weight: 400; }
.privacy-note { margin: 9px 4px 27px; color: #8b938c; font-size: 10px; }
.filter-section { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.filter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.filter-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; }
.filter-label svg { width: 17px; height: 17px; color: var(--green); }
.clear-button, .text-button { padding: 0; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 600; }
.clear-button:hover, .text-button:hover { text-decoration: underline; }
.filter-controls { display: flex; align-items: center; gap: 9px; }
.filter-dropdown { position: relative; z-index: 4; }
.filter-dropdown[open] { z-index: 10; }
.filter-dropdown summary { display: flex; min-height: 36px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #e5e9e1; border-radius: 7px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 600; list-style: none; user-select: none; }
.filter-dropdown summary::-webkit-details-marker { display: none; }
.filter-dropdown summary:hover, .filter-dropdown[open] summary { border-color: #a9c2aa; }
.filter-icon { color: var(--green); font-size: 15px; }
.chevron { margin-left: 1px; color: #819087; font-size: 13px; }
.filter-count { min-width: 16px; height: 16px; padding: 1px 4px; border-radius: 6px; background: var(--green-light); color: var(--green); font-size: 10px; text-align: center; }
.filter-menu { position: absolute; top: calc(100% + 7px); left: 0; width: 250px; max-height: 290px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.check-option { display: flex; min-height: 34px; align-items: center; gap: 9px; padding: 4px 7px; border-radius: 6px; color: #40544a; cursor: pointer; font-size: 11px; line-height: 1.4; }
.check-option:hover { background: #f4f7f2; }
.check-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--green); }
.region-menu { width: 270px; }
.radius-control { display: flex; flex: 1; min-width: 200px; align-items: center; gap: 12px; margin-left: auto; }
.radius-control label { white-space: nowrap; color: var(--muted); font-size: 10px; }
.radius-control strong { color: var(--ink); font-size: 11px; }
.radius-control input { width: min(136px, 14vw); accent-color: var(--green); cursor: pointer; }
.active-filter-list { display: flex; min-height: 0; flex-wrap: wrap; gap: 6px; }
.active-filter-list:not(:empty) { padding-top: 9px; }
.active-chip { padding: 4px 9px; border-radius: 20px; background: #eaf1e9; color: var(--green); font-size: 10px; }
.results-section { padding-top: 24px; }
.results-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.results-eyebrow { margin-bottom: 5px; font-size: 9px; }
h2 { margin-bottom: 0; font-family: Manrope, sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -.65px; }
h2 span:first-child { color: var(--green); }
#result-area { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.sort-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.sort-control select { padding: 8px 26px 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 10px; font-weight: 600; }
.results-layout { display: grid; min-height: 510px; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); overflow: hidden; border: 1px solid #e7eae3; border-radius: 12px; background: white; box-shadow: 0 7px 24px rgba(30, 56, 44, .035); }
.list-panel { display: flex; min-width: 0; flex-direction: column; border-right: 1px solid var(--line); }
.list-panel-heading { display: flex; height: 42px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); color: #4d6156; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.subtle-count { color: #9aa49c; font-size: 10px; font-weight: 500; }
.resource-list { max-height: 471px; overflow-y: auto; scrollbar-color: #d7e0d5 transparent; scrollbar-width: thin; }
.resource-card { position: relative; display: block; width: 100%; padding: 14px 18px 13px; border: 0; border-bottom: 1px solid #edf0eb; background: #fff; cursor: pointer; text-align: left; transition: background .15s ease; }
.resource-card:hover, .resource-card.selected { background: #f4f7f1; }
.resource-card.selected::before { position: absolute; top: 12px; bottom: 12px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); content: ""; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.card-type { color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.card-distance { flex: 0 0 auto; color: #718378; font-size: 9px; font-weight: 600; }
.resource-card h3 { margin: 0 0 5px; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.4; }
.card-address { display: flex; align-items: start; gap: 5px; margin-bottom: 8px; color: #77827a; font-size: 10px; line-height: 1.45; }
.card-address .pin { color: var(--orange); font-size: 12px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { padding: 4px 7px; border-radius: 4px; background: #f3f5f1; color: #66776c; font-size: 9px; line-height: 1; }
.tag.green-tag { background: #edf3e9; color: #477252; }
.phone-tag { text-decoration: none; }
.phone-tag:hover { text-decoration: underline; }
.card-description, .card-clientele { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; color: #68776d; font-size: 10px; line-height: 1.45; }
.card-description { margin: 0 0 8px; -webkit-line-clamp: 2; }
.card-clientele { margin: 7px 0 0; -webkit-line-clamp: 2; }
.card-clientele strong { color: #52675b; font-weight: 600; }
.card-hours { display: flex; align-items: start; gap: 5px; margin: 8px 0 0; color: #78847a; font-size: 9px; line-height: 1.4; }
.card-hours strong { color: #52675b; font-weight: 600; }
.empty-state { padding: 65px 20px; text-align: center; }
.empty-illustration { display: inline-grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; background: #eef3ea; color: var(--green); font-size: 25px; }
.empty-state h3 { margin: 14px 0 6px; font-family: Manrope, sans-serif; font-size: 14px; }
.empty-state p { margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.load-more { min-height: 43px; margin-top: auto; border: 0; background: #fbfcfa; color: var(--green); cursor: pointer; font-size: 10px; font-weight: 700; }
.load-more:hover { background: #f1f5ee; }
.map-panel { position: relative; min-width: 0; min-height: 510px; background: #e8ede5; }
#map { position: absolute; inset: 0; z-index: 1; }
.leaflet-container { font-family: "DM Sans", sans-serif; }
.map-legend { position: absolute; z-index: 500; right: 13px; bottom: 12px; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(226, 231, 223, .9); border-radius: 7px; background: rgba(255, 255, 255, .94); color: #627168; font-size: 9px; box-shadow: 0 2px 9px #1a362c14; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #dfeadd; }
.map-hint { position: absolute; z-index: 500; top: 12px; left: 50%; max-width: calc(100% - 28px); padding: 9px 13px; transform: translateX(-50%); border: 1px solid #e6eae2; border-radius: 7px; background: rgba(255,255,255,.95); color: #4c6255; font-size: 10px; box-shadow: 0 2px 9px #1a362c14; }
.map-hint span { margin-right: 5px; color: var(--orange); }
.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 25px 0 34px; }
.footer-brand { font-size: 18px; }
.footer-brand .brand-mark { width: 25px; height: 25px; border-radius: 8px 8px 8px 3px; font-size: 15px; }
.footer p { margin: 0; color: var(--muted); font-size: 10px; }
.footer > a:last-child { font-size: 10px; text-decoration: none; }
.toast { position: fixed; z-index: 1500; right: 22px; bottom: 20px; max-width: min(420px, calc(100% - 44px)); padding: 12px 17px; transform: translateY(15px); border-radius: 9px; background: var(--green-dark); color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

.resource-pin { display: grid; width: 31px; height: 31px; place-items: center; border: 2px solid #fff; border-radius: 50% 50% 50% 6px; background: var(--green); color: white; font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; box-shadow: 0 2px 6px #20392c55; transform: rotate(-45deg); }
.resource-pin span { transform: rotate(45deg); }
.resource-pin.active-pin { background: var(--orange); transform: rotate(-45deg) scale(1.13); }
.leaflet-popup-content-wrapper { border-radius: 9px; }
.leaflet-popup-content { min-width: 160px; margin: 11px 14px; font-family: "DM Sans", sans-serif; font-size: 11px; }
.popup-title { margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.popup-place { color: var(--muted); font-size: 10px; }

@media (max-width: 760px) {
  .topbar { height: 62px; padding: 0 20px; }
  .topbar-note { display: none; }
  main { width: calc(100% - 36px); }
  .intro { min-height: 205px; }
  .intro-copy { max-width: 79%; }
  .intro-decoration { right: -90px; top: -25px; transform: scale(.75); transform-origin: top right; opacity: .53; }
  h1 { font-size: clamp(31px, 9vw, 41px); }
  .intro-text { font-size: 12px; }
  .search-card { gap: 8px; padding-left: 12px; }
  .search-icon { display: none; }
  #location-input { font-size: 12px; }
  .gps-button { width: 42px; padding: 0; }
  .gps-button span { display: none; }
  .search-button { min-width: 91px; padding: 0 10px; font-size: 11px; }
  .privacy-note { line-height: 1.5; }
  .filter-controls { flex-wrap: wrap; }
  .radius-control { min-width: 100%; justify-content: flex-start; margin: 5px 0 0; }
  .radius-control input { width: 42vw; }
  .results-header { align-items: center; }
  h2 { font-size: 18px; }
  #result-area { display: block; margin-top: 2px; font-size: 10px; }
  .sort-control { flex-direction: column; align-items: flex-start; gap: 3px; }
  .sort-control select { padding: 6px 18px 6px 7px; }
  .results-layout { grid-template-columns: 1fr; }
  .map-panel { min-height: 310px; grid-row: 1; }
  .list-panel { border-right: 0; }
  .resource-list { max-height: 430px; }
  .footer { grid-template-columns: auto 1fr; gap: 9px 13px; padding: 23px 0 30px; }
  .footer > a:last-child { grid-column: 2; }
  .footer p { max-width: 230px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
