:root {
  --ink: #17352b;
  --ink-soft: #52675f;
  --paper: #f6f2e8;
  --paper-deep: #ece5d7;
  --cream: #fffdf7;
  --moss: #1f5a42;
  --moss-dark: #123d2c;
  --lime: #dbe96f;
  --sage: #b9cbb9;
  --line: rgba(23, 53, 43, .16);
  --shadow: 0 24px 70px rgba(23, 53, 43, .14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 9999; padding: 10px 14px; background: var(--cream); }
.skip-link:focus { left: 8px; }

.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font: 800 20px/1 Manrope, sans-serif; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: var(--paper); background: linear-gradient(145deg, #287354, var(--moss-dark)); box-shadow: 0 8px 18px rgba(18, 61, 44, .18); }
.brand-mark img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
nav { display: flex; gap: 34px; }
nav a { text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); align-items: center; padding: 70px clamp(24px, 6vw, 88px) 60px; overflow: hidden; }
.hero-copy { max-width: 660px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--moss); }
h1, h2 { margin: 0; font-family: Manrope, sans-serif; letter-spacing: -.055em; }
h1 { font-size: clamp(58px, 7vw, 104px); line-height: .94; font-weight: 800; }
h1 em { color: var(--moss); font-style: normal; }
.lead { max-width: 520px; margin: 28px 0 34px; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ink-soft); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.primary-button { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 22px; color: #fff; background: var(--moss); font-weight: 700; box-shadow: 0 8px 20px rgba(31, 90, 66, .19); }
.primary-button:hover { background: var(--moss-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .58; transform: none; box-shadow: none; }
.primary-button[aria-busy="true"] { cursor: progress; }
.primary-button svg { width: 18px; fill: currentColor; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.locate-status { min-height: 24px; margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.locate-status[data-state="error"] { color: #8b3a2f; font-weight: 600; }
.hero-art { align-self: stretch; display: grid; place-items: center; min-width: 0; }
.hero-photo { width: min(100%, 760px); height: 500px; display: block; object-fit: cover; object-position: 58% center; border-radius: 34% 34% 24px 24px; box-shadow: 0 28px 70px rgba(23, 53, 43, .16); }

.map-section { background: var(--moss-dark); color: var(--cream); padding: 76px clamp(18px, 5vw, 72px) 84px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: 1440px; margin: 0 auto 30px; }
.map-section .eyebrow { color: var(--lime); }
h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.result-count { color: rgba(255,255,255,.68); margin: 0 0 5px; white-space: nowrap; }
.map-shell { max-width: 1440px; height: min(720px, 75vh); min-height: 560px; margin: auto; display: grid; grid-template-columns: 380px 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream); color: var(--ink); }
.map-panel { display: flex; flex-direction: column; padding: 18px; min-height: 0; border-right: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 0 14px; }
.search-box:focus-within { outline: 3px solid rgba(219, 233, 111, .65); border-color: var(--moss); }
.search-box svg { width: 20px; fill: none; stroke: var(--moss); stroke-width: 2; }
.search-box input { width: 100%; border: 0; outline: 0; padding: 14px 0; color: var(--ink); background: transparent; }
.filter-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 10px 0 4px; }
.filter-row select, .filter-row button { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); padding: 9px 10px; font-size: 12px; font-weight: 600; }
.filter-row button:hover, .filter-row select:hover { background: var(--paper); }
.status-message { min-height: 28px; padding: 6px 2px; font-size: 12px; color: var(--ink-soft); }
.place-list { list-style: none; padding: 0; margin: 0 -8px 0 0; overflow: auto; }
.place-card { margin: 0; border-top: 1px solid var(--line); }
.place-card-main { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; padding: 16px 10px 8px; }
.place-card-main:hover, .place-card-main[aria-current="true"] { background: var(--paper); }
.place-card h3 { margin: 0 0 5px; font: 700 15px/1.25 Manrope, sans-serif; }
.place-meta { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: 12px; }
.place-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); }
.place-card-feedback { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 10px 12px; }
.rating-summary { color: var(--ink-soft); font-size: 11px; line-height: 1.3; }
.rating-summary strong { color: var(--ink); font-size: 12px; }
.rating-stars { color: #a97800; letter-spacing: .03em; }
.rate-button, .popup-rate { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--moss); padding: 6px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rate-button:hover, .popup-rate:hover { border-color: var(--moss); background: var(--paper); }
#map { width: 100%; height: 100%; background: #dce5dd; }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 16px; font-family: "DM Sans", sans-serif; }
.popup-title { margin: 0 0 5px; font: 700 16px/1.25 Manrope, sans-serif; color: var(--ink); }
.popup-copy { margin: 0 0 10px; color: var(--ink-soft); }
.popup-link { color: var(--moss); font-weight: 700; }
.popup-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.dog-marker { display: grid; place-items: center; width: 34px; height: 34px; color: var(--cream); background: var(--moss); border: 3px solid var(--cream); border-radius: 50% 50% 50% 10%; transform: rotate(-45deg); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.dog-marker span { transform: rotate(45deg); font-size: 15px; }

.review-dialog { width: min(980px, calc(100% - 28px)); max-height: min(860px, calc(100vh - 28px)); margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 100px rgba(8, 28, 20, .35); }
.review-dialog::backdrop { background: rgba(10, 34, 25, .72); backdrop-filter: blur(5px); }
.review-dialog-shell { position: relative; padding: clamp(24px, 4vw, 42px); }
.dialog-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 25px; line-height: 1; }
.dialog-close:hover { background: var(--paper-deep); }
.review-dialog-heading { padding-right: 48px; }
.review-dialog-heading h2 { font-size: clamp(34px, 5vw, 52px); }
.review-place-name { margin: 8px 0 28px; color: var(--ink-soft); font-size: 17px; }
.review-dialog-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 34px; }
.review-form fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.review-form legend { margin-bottom: 10px; font: 700 14px/1.35 Manrope, sans-serif; }
.choice-grid { display: grid; gap: 7px; }
.rating-options { grid-template-columns: repeat(5, 1fr); }
.three-options { grid-template-columns: repeat(3, 1fr); }
.choice-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-grid label { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 9px 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink-soft); font-size: 12px; text-align: center; cursor: pointer; }
.rating-options label span { color: #a97800; }
.choice-grid input:checked + label { border-color: var(--moss); background: #e9f0df; color: var(--moss-dark); box-shadow: inset 0 0 0 1px var(--moss); }
.choice-grid input:focus-visible + label { outline: 3px solid rgba(219, 233, 111, .8); outline-offset: 2px; }
.review-privacy { margin: 0 0 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.review-form-status { min-height: 22px; margin: 0 0 8px; color: var(--moss); font-size: 13px; font-weight: 600; }
.review-form-status[data-state="error"] { color: #8b3a2f; }
.review-submit { width: 100%; justify-content: center; }
.community-feedback { padding: 22px; border-radius: 18px; background: var(--paper); }
.community-feedback .eyebrow { margin-bottom: 8px; }
.community-feedback h3 { margin: 0 0 18px; font: 700 22px/1.2 Manrope, sans-serif; }
.community-summary { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.community-score { display: flex; align-items: baseline; gap: 8px; }
.community-score strong { font: 800 38px/1 Manrope, sans-serif; }
.community-score span { color: #a97800; }
.community-facts { display: grid; gap: 6px; margin-top: 12px; color: var(--ink-soft); font-size: 12px; }
.recent-reviews { display: grid; gap: 9px; max-height: 280px; margin: 16px 0 0; padding: 0; overflow: auto; list-style: none; }
.recent-review { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.recent-review-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.recent-review dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; margin: 0; color: var(--ink-soft); font-size: 11px; }
.recent-review dt { font-weight: 700; }
.recent-review dd { margin: 0; }
.empty-feedback { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }

.rules-section { padding: 100px clamp(24px, 7vw, 110px); display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(48px, 8vw, 130px); }
.rules-intro p:not(.eyebrow) { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.rule-cards { border-top: 1px solid var(--line); }
.rule-cards article { display: grid; grid-template-columns: 48px 180px 1fr; gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rule-cards span { color: var(--moss); font-weight: 700; }
.rule-cards h3 { margin: 0; font: 700 18px Manrope, sans-serif; }
.rule-cards p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.source-link { grid-column: 2; justify-self: start; margin-top: -70px; color: var(--moss); font-weight: 700; text-underline-offset: 4px; }
.data-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 70px clamp(24px, 7vw, 110px); background: var(--paper-deep); border-top: 1px solid var(--line); }
.data-section h2 { font-size: clamp(34px, 4vw, 54px); }
.data-section p { max-width: 620px; margin: 0 0 18px; color: var(--ink-soft); line-height: 1.7; }
.data-section .updated { color: var(--moss); font-weight: 700; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px clamp(24px, 6vw, 88px); background: var(--moss-dark); color: rgba(255,255,255,.68); font-size: 12px; }
.footer-brand { color: #fff; }.footer-brand .brand-mark { box-shadow: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 60px; }
  .hero-art { margin-top: -25px; max-height: 470px; }
  .hero-photo { height: 470px; }
  .map-shell { grid-template-columns: 320px 1fr; }
  .rules-section { grid-template-columns: 1fr; }
  .source-link { grid-column: 1; margin-top: -20px; }
}
@media (max-width: 720px) {
  .site-header { height: 70px; } nav { display: none; }
  .hero { padding-top: 48px; }.hero-art { margin-top: 8px; }
  .hero-photo { height: min(68vw, 300px); border-radius: 30% 30% 18px 18px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .map-shell { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .map-panel { max-height: 430px; border-right: 0; border-bottom: 1px solid var(--line); }
  #map { height: 520px; }
  .rules-section, .data-section { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 70px; }
  .rule-cards article { grid-template-columns: 34px 1fr; }.rule-cards p { grid-column: 2; }
  .review-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); border-radius: 18px; }
  .review-dialog-shell { padding: 24px 18px; }
  .review-dialog-grid { grid-template-columns: 1fr; gap: 24px; }
  .community-feedback { padding: 17px; }
  .three-options { grid-template-columns: 1fr 1fr 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  h1 { font-size: 52px; }.hero { padding-left: 18px; padding-right: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .filter-row { grid-template-columns: 1fr; }
  #map { height: 430px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
