:root {
  color-scheme: light;
  --ink: #1d2926;
  --muted: #65736f;
  --line: #e2e8e4;
  --paper: #fff;
  --canvas: #f5f7f4;
  --forest: #164b3d;
  --forest-dark: #103a30;
  --mint: #e6f3eb;
  --mint-strong: #c8e5d3;
  --gold: #d89627;
  font: 15px/1.5 "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #6fba91;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 19px; font-weight: 700; }
.brand strong { color: var(--forest); }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px 12px 12px 4px; background: var(--forest); color: white; font: 800 19px "Segoe UI", sans-serif; }
.site-header nav { display: flex; gap: 26px; color: #475651; font-size: 13px; }
.site-header nav a:hover, .header-link:hover { color: var(--forest); }
.header-link { border: 0; border-radius: 999px; background: var(--forest); padding: 10px 15px; color: white; cursor: pointer; font-size: 12px; font-weight: 700; }
.header-link:hover { background: var(--forest-dark); color: white; }
.header-link.secondary { border: 1px solid #dce5df; background: white; color: var(--forest); }
.header-link.secondary:hover { background: var(--mint); }
.account-controls { display: flex; align-items: center; gap: 9px; }
.account-label { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-label[hidden], .header-link[hidden], .auth-field[hidden], .auth-links button[hidden], .auth-message[hidden] { display: none; }
.page-shell { max-width: 1320px; margin: 0 auto; padding: 30px 24px 44px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--forest); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 5px; font: 600 clamp(28px, 4vw, 38px)/1.15 Georgia, serif; letter-spacing: -.04em; }
.subtitle { margin: 0; color: var(--muted); font-size: 14px; }
.location-pill { display: flex; align-items: center; gap: 8px; border: 1px solid #d5e0d9; border-radius: 999px; background: white; padding: 8px 12px; color: #34443e; font-size: 12px; }
.location-pill > span:first-child { color: var(--forest); font-size: 17px; }

.ad-banner { position: relative; display: flex; min-height: 95px; align-items: center; gap: 18px; margin-bottom: 22px; border: 1px dashed #c9d8cd; border-radius: 14px; background: linear-gradient(100deg, #eff7f0, #f8faf7); padding: 17px 22px; }
.ad-label { align-self: start; border-radius: 4px; background: #e0ebe2; padding: 3px 6px; color: #53665b; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.ad-banner > div { display: grid; gap: 3px; }
.ad-banner strong { color: #29483a; font-family: Georgia, serif; font-size: 17px; }
.ad-banner > div span { color: var(--muted); font-size: 11px; }
.ad-size { margin-left: auto; color: #89978e; font-size: 9px; letter-spacing: .08em; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 315px; align-items: start; gap: 22px; }
.directory { min-width: 0; }
.search-panel { display: grid; grid-template-columns: minmax(150px, 1fr) 205px auto; gap: 9px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 10px; box-shadow: 0 5px 16px rgb(28 56 43 / 4%); }
.search-box, .town-box { display: flex; min-width: 0; align-items: center; gap: 9px; border: 1px solid #e4e9e5; border-radius: 9px; background: #fbfcfb; padding: 0 11px; color: #6b7973; }
.search-icon { font-size: 18px; }
.search-box input, .town-box select { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #89948f; }
.search-button { border: 0; border-radius: 9px; background: var(--forest); padding: 0 18px; color: white; cursor: pointer; font-weight: 700; }
.search-button:hover { background: var(--forest-dark); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 1px 17px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { border: 1px solid #dce5df; border-radius: 999px; background: white; padding: 6px 11px; color: #53625b; cursor: pointer; font-size: 11px; }
.filter-chip.active, .filter-chip:hover { border-color: #a4c8b0; background: var(--mint); color: var(--forest); }
.category-control { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.category-control select { max-width: 190px; border: 1px solid #dce5df; border-radius: 8px; background: white; padding: 6px 8px; color: #33423b; font-size: 11px; }
.sort-control { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.sort-control select { border: 0; background: transparent; color: #33423b; font-size: 11px; font-weight: 700; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 1px 11px; }
.results-heading .eyebrow { margin-bottom: 2px; }
.results-heading h2 { margin: 0; font: 600 21px Georgia, serif; letter-spacing: -.03em; }
.result-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-message, .error-message, .empty-state { margin: 12px 0; border-radius: 10px; background: white; padding: 16px; color: var(--muted); font-size: 13px; }
.error-message { border: 1px solid #edc9c4; background: #fff6f4; color: #8b3328; }
.error-message strong { display: block; margin-bottom: 5px; }
.error-message code { overflow-wrap: anywhere; }
.empty-state { padding: 30px 18px; border: 1px dashed #cdd9d1; text-align: center; }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); }
.listing-list { display: grid; gap: 10px; }
.listing-card { display: grid; grid-template-columns: minmax(0, 1fr) 75px; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 15px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.listing-card:hover { transform: translateY(-1px); border-color: #bdd8c7; box-shadow: 0 8px 20px rgb(22 75 61 / 8%); }
.listing-card:focus-visible { outline: 3px solid #6fba91; outline-offset: 2px; }
.listing-open { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 12px; border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.listing-open.has-thumbnail { grid-template-columns: 82px minmax(0, 1fr); align-items: start; }
.listing-open:focus-visible { outline-offset: 5px; }
.listing-thumbnail { width: 82px; height: 82px; border-radius: 9px; background: #eaf1e9; object-fit: cover; }
.listing-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.listing-title-row { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.rating-line { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 11px; }
.stars { color: var(--gold); letter-spacing: .05em; }
.muted { color: var(--muted); }
.listing-meta { margin: 0 0 4px; color: #586760; font-size: 11px; }
.listing-meta:last-child { margin-bottom: 0; }
.sponsored-badge { border-radius: 999px; background: #f8f0df; padding: 3px 7px; color: #86601d; font-size: 9px; font-weight: 700; white-space: nowrap; }
.listing-actions { display: flex; align-items: center; justify-content: end; gap: 2px; }
.listing-action { display: flex; min-width: 55px; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; color: #315b4a; cursor: pointer; font-size: 9px; }
.round-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--forest); font-size: 15px; }
.listing-action:hover .round-icon { background: var(--mint-strong); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 18px 0 5px; color: var(--muted); font-size: 11px; }
.pagination button { border: 1px solid #dce5df; border-radius: 8px; background: white; padding: 7px 10px; cursor: pointer; font-size: 11px; }
.pagination button:disabled { cursor: default; opacity: .48; }

.right-column { position: sticky; top: 88px; display: grid; gap: 13px; }
.side-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.map-placeholder { position: relative; height: 135px; overflow: hidden; background: radial-gradient(ellipse at 75% 22%, #d7e9d8 0 13%, transparent 13.5%), radial-gradient(ellipse at 23% 74%, #d5e8d8 0 16%, transparent 16.5%), #eaf1e9; }
.map-road { position: absolute; height: 8px; border-radius: 12px; background: rgb(255 255 255 / 88%); }
.road-one { top: 42px; left: -12px; width: 340px; transform: rotate(17deg); }
.road-two { top: 108px; left: 60px; width: 285px; transform: rotate(-25deg); }
.map-dot { position: absolute; top: 56px; left: 52%; display: grid; width: 32px; height: 32px; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 4px; background: var(--forest); box-shadow: 0 3px 9px #163c2f44; color: white; transform: rotate(-45deg); }
.map-caption { position: absolute; right: 9px; bottom: 8px; border: 1px solid #e2e8e2; border-radius: 6px; background: rgb(255 255 255 / 92%); padding: 4px 6px; color: #596961; font-size: 8px; }
.side-card-content { padding: 16px; }
.side-card-content h2 { margin: 0 0 7px; font: 600 22px Georgia, serif; letter-spacing: -.03em; }
.side-card-content > p:not(.eyebrow) { margin: 0 0 12px; color: #59675f; font-size: 11px; line-height: 1.6; }
.town-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 12px 0; }
.town-stats div { border-radius: 8px; background: #f5f8f5; padding: 8px; }
.town-stats strong { display: block; overflow: hidden; color: var(--forest); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.town-stats span { color: var(--muted); font-size: 9px; }
.data-note { display: block; margin: 8px 0 0; color: #87938d; font-size: 9px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; }
.section-title-row h2 { font-size: 20px; }
.event-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: var(--mint); color: var(--forest); }
.event-empty { display: flex; gap: 9px; border-radius: 9px; background: #f7f9f7; padding: 11px; color: var(--forest); }
.event-empty > span { font-size: 16px; }
.event-empty strong, .event-empty span { display: block; }
.event-empty strong { color: #33443b; font-size: 10px; }
.event-empty div span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.community-card { border-color: #d9e8dc; background: #f4f9f4; }
.site-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 15px; color: #78857e; font-size: 10px; }
.site-footer span:first-child { color: var(--forest); font-family: Georgia, serif; font-size: 12px; font-weight: 700; }

.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: flex; align-items: center; justify-content: center; overflow: auto; background: rgb(18 30 25 / 48%); padding: 18px; }
.modal-backdrop[hidden] { display: none; }
.detail-modal { position: relative; display: grid; width: min(860px, 100%); max-height: 94vh; grid-template-columns: minmax(240px, .85fr) minmax(300px, 1fr); overflow: auto; border-radius: 18px; background: white; box-shadow: 0 20px 60px #10271d2e; }
.auth-modal { position: relative; width: min(430px, 100%); border-radius: 18px; background: white; padding: 30px; box-shadow: 0 20px 60px #10271d2e; }
.auth-modal h2 { margin: 0 38px 7px 0; font: 600 27px/1.2 Georgia, serif; letter-spacing: -.035em; }
.auth-description { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.auth-field { display: grid; gap: 6px; margin: 13px 0; color: #47574f; font-size: 11px; font-weight: 700; }
.auth-field input { width: 100%; min-height: 42px; border: 1px solid #dce5df; border-radius: 8px; background: #fbfcfb; padding: 8px 10px; color: var(--ink); }
.auth-submit { width: 100%; min-height: 42px; margin-top: 5px; }
.auth-submit:disabled { cursor: wait; opacity: .65; }
.auth-message { margin: 12px 0 0; border-radius: 8px; background: var(--mint); padding: 10px; color: var(--forest); font-size: 11px; }
.auth-message.error { background: #fff3f1; color: #8b3328; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.auth-links button { border: 0; background: transparent; padding: 3px 0; color: #176f9a; cursor: pointer; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.detail-gallery { display: grid; min-width: 0; grid-template-rows: minmax(0, 1fr) auto; background: #f3f6f2; }
.detail-image { position: relative; display: flex; min-height: 420px; align-items: end; overflow: hidden; background: linear-gradient(180deg, transparent 53%, #17271bb3), linear-gradient(160deg, transparent 0 52%, #adbaaa 52.3% 56%, #66776c 56.4% 58%, transparent 58.2%), linear-gradient(180deg, #dcebf0 0 45%, #e8e6d9 45.3%); }
.detail-main-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-image span { position: relative; z-index: 1; margin: 18px; color: white; font-size: 11px; font-weight: 700; text-shadow: 0 2px 6px #0008; }
.detail-gallery-controls { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; color: #53625b; font-size: 11px; }
.detail-gallery-controls[hidden] { display: none; }
.detail-gallery-controls button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #dce5df; border-radius: 50%; background: white; color: var(--forest); cursor: pointer; font-size: 15px; }
.detail-gallery-controls button:hover { border-color: #a4c8b0; background: var(--mint); }
.detail-body { padding: 25px; }
.detail-body h2 { margin: 0 38px 6px 0; font: 600 27px/1.2 Georgia, serif; letter-spacing: -.035em; }
.detail-rating { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.detail-category { margin: 5px 0 14px; color: var(--muted); font-size: 12px; }
.modal-close { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 19px; }
.detail-tabs { display: flex; gap: 18px; margin: 16px 0 13px; border-bottom: 1px solid var(--line); }
.detail-tab { position: relative; border: 0; background: none; padding: 0 0 9px; color: #6b7771; cursor: pointer; font-size: 11px; font-weight: 700; }
.detail-tab.active { color: var(--forest); }
.detail-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--forest); content: ""; }
.detail-panel { display: none; }
.detail-panel.active { display: block; }
.detail-facts { display: grid; gap: 12px; }
.detail-facts p { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; margin: 0; color: #45524b; font-size: 12px; overflow-wrap: anywhere; }
.detail-facts p > span:first-child { color: #29816a; text-align: center; }
.detail-facts a { color: #176f9a; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 15; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); border-radius: 10px; background: #173a32; padding: 12px 16px; color: white; box-shadow: 0 8px 30px #0003; font-size: 12px; }
.toast[hidden] { display: none; }

@media (max-width: 960px) {
  .columns { grid-template-columns: minmax(0, 1fr) 275px; gap: 15px; }
  .search-panel { grid-template-columns: minmax(140px, 1fr) 175px auto; }
}
@media (max-width: 740px) {
  .site-header { min-height: 62px; padding: 0 15px; }
  .site-header nav { display: none; }
  .brand { font-size: 17px; }
  .header-link { padding: 8px 11px; font-size: 10px; }
  .account-label { display: none; }
  .page-shell { padding: 22px 14px 34px; }
  .intro { align-items: start; flex-direction: column; margin-bottom: 16px; }
  .location-pill { font-size: 11px; }
  .columns { grid-template-columns: 1fr; }
  .right-column { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .town-card { grid-row: span 2; }
  .map-placeholder { height: 120px; }
}
@media (max-width: 500px) {
  .ad-banner { min-height: 84px; gap: 9px; padding: 13px; }
  .ad-banner strong { font-size: 14px; }
  .ad-banner > div span { font-size: 9px; }
  .ad-size { display: none; }
  .search-panel { grid-template-columns: 1fr; padding: 9px; }
  .search-button { min-height: 40px; }
  .filter-row { align-items: start; flex-direction: column; }
  .category-control { width: 100%; justify-content: space-between; }
  .category-control select { max-width: 70%; }
  .sort-control { align-self: end; }
  .listing-card { grid-template-columns: minmax(0, 1fr) 54px; gap: 3px; padding: 13px 11px; }
  .listing-actions { flex-direction: column; justify-content: center; }
  .listing-action { min-width: 48px; }
  .listing-title { font-size: 14px; }
  .right-column { grid-template-columns: 1fr; }
  .town-card { grid-row: auto; }
  .map-placeholder { height: 150px; }
  .detail-modal { grid-template-columns: 1fr; max-width: 480px; }
  .detail-image { min-height: 190px; }
  .detail-body { padding: 20px; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
