:root {
  --ink: #19352b;
  --muted: #6d7b73;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --green: #276c52;
  --green-dark: #174936;
  --green-soft: #dce9d8;
  --terracotta: #d97955;
  --line: #dedfd6;
  --shadow: 0 18px 45px rgba(35, 67, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 76px; padding: 0 clamp(20px, 5vw, 80px); display: flex; align-items: center;
  justify-content: space-between; background: var(--cream); border-bottom: 1px solid rgba(25,53,43,.08);
}
.mobile-home, .bottom-nav, .view-switch { display: none; }
.bottom-nav[hidden] { display: none !important; }
[hidden] { display: none !important; }
.brand { min-width: 0; display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand strong { color: var(--green); }
.brand-mark {
  width: 35px; height: 35px; border-radius: 50% 50% 50% 8px; display: grid; place-items: center;
  color: white; background: var(--green); font-family: "Playfair Display", serif; transform: rotate(-6deg);
}
nav { display: flex; gap: 12px; align-items: center; }
.nav-link { background: none; border: 0; color: var(--ink); }
.nav-link-anchor { text-decoration: none; }
.button { border: 0; border-radius: 999px; padding: 12px 19px; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--green); box-shadow: 0 8px 18px rgba(39,108,82,.22); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green); background: var(--green-soft); }
.button-secondary.button { text-align: center; text-decoration: none; }
.button-ghost { color: var(--green); border: 1px solid rgba(39,108,82,.3); background: transparent; }
a.button-ghost { display: inline-block; text-align: center; text-decoration: none; }
.full-width { width: 100%; }
.google-button { display: flex; justify-content: center; gap: 10px; align-items: center; border: 1px solid var(--line); color: var(--ink); background: white; }
.google-button span { color: #4285f4; font-size: 17px; }
.auth-divider { margin: 16px 0 4px; display: flex; align-items: center; color: var(--muted); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-divider span { padding: 0 10px; }

.hero { background: var(--cream); overflow: hidden; }
.hero-copy {
  width: 100%; padding: 54px clamp(20px, 6vw, 92px) 56px; display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(360px, .78fr); gap: clamp(24px, 4vw, 58px); align-items: center;
}
.hero-main { min-width: 0; }
.eyebrow { color: var(--terracotta); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; }
h1, h2 { margin: 12px 0; font-family: "Playfair Display", serif; line-height: 1.04; }
h1 { max-width: 650px; font-size: clamp(48px, 5.8vw, 78px); letter-spacing: -.04em; }
h1 em { color: var(--green); font-style: italic; }
h2 { font-size: clamp(34px, 4vw, 52px); }
.hero-main > p { max-width: 580px; margin: 18px 0 22px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.search-card {
  width: min(100%, 760px); min-width: 0; padding: 8px; display: flex; align-items: center; gap: 10px;
  background: white; border-radius: 999px; box-shadow: var(--shadow);
}
.search-terrace-image {
  width: 100%; min-height: 245px; max-height: 360px; display: block; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow); transform: translateY(-6px);
}
.search-field { flex: 1; min-width: 0; padding-left: 12px; display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: 11px; font-weight: 700; }
.search-field > span { flex: 0 0 auto; white-space: nowrap; }
.search-field div { min-width: 0; flex: 1; display: flex; gap: 8px; align-items: center; }
.search-icon { font-size: 20px; color: var(--green); }
.search-field input { width: 100%; padding: 4px 8px; border: 0; outline: 0; color: var(--ink); font-size: 14px; }
.search-card .button { flex: 0 0 auto; padding: 13px 22px; }
.current-location-button {
  flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(39,108,82,.25); border-radius: 999px;
  color: var(--green-dark); background: var(--green-soft); font-size: 11px; font-weight: 800; white-space: nowrap;
}
.current-location-button:hover { background: #cfe0ca; }
.hero-how-button { display: none; }
.hero-proof { margin-top: 22px; display: flex; gap: 13px; align-items: center; color: var(--muted); font-size: 12px; }
.hero-proof strong { color: var(--ink); }
.proof-faces { display: flex; padding-left: 8px; }
.proof-faces i {
  width: 31px; height: 31px; margin-left: -8px; display: grid; place-items: center; border: 2px solid var(--cream);
  border-radius: 50%; color: white; background: var(--terracotta); font-size: 10px; font-style: normal;
}
.proof-faces i:nth-child(2) { background: #55856d; }
.proof-faces i:nth-child(3) { background: #d7ad6d; }

.hero-art { display: none; }
.sun { position: absolute; width: 160px; height: 160px; right: 16%; top: 13%; border-radius: 50%; background: #f1c989; opacity: .75; }
.arch { position: absolute; bottom: -60px; border: 34px solid rgba(255,255,255,.42); border-bottom: 0; border-radius: 200px 200px 0 0; }
.arch-one { width: 440px; height: 510px; left: 11%; }
.arch-two { width: 275px; height: 360px; right: -50px; opacity: .7; }
.table-scene { position: absolute; z-index: 2; bottom: 70px; left: 50%; width: 450px; height: 260px; transform: translateX(-50%); }
.table { position: absolute; top: 65px; left: 115px; width: 220px; height: 18px; border-radius: 50%; background: var(--terracotta); }
.table:after { content: ""; position: absolute; left: 105px; top: 12px; width: 12px; height: 140px; background: var(--green-dark); }
.table span { position: absolute; width: 40px; height: 55px; left: 90px; bottom: 10px; border-radius: 4px 4px 18px 18px; background: #f5dbb0; }
.chair { position: absolute; top: 95px; width: 88px; height: 120px; border: 12px solid var(--green); border-radius: 30px 30px 4px 4px; }
.chair:after { content: ""; position: absolute; left: 32px; top: 100px; width: 10px; height: 80px; background: var(--green); }
.chair-left { left: 40px; transform: rotate(-4deg); }
.chair-right { right: 40px; transform: rotate(4deg); }
.plant { position: absolute; z-index: 3; color: var(--green); font-family: serif; font-size: 180px; line-height: 1; transform: rotate(20deg); }
.plant-one { left: 5%; bottom: 70px; }
.plant-two { right: 7%; bottom: 40px; transform: scaleX(-1) rotate(20deg); }
.fresh-note {
  width: fit-content; margin-bottom: 12px; padding: 6px 10px; display: block;
  color: var(--green-dark); border: 1px solid rgba(39,108,82,.18); border-radius: 999px; background: rgba(255,255,255,.68); font-size: 13px; font-weight: 700;
}

.explore { padding: 56px clamp(20px, 5vw, 80px) 62px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.catalog-tools { margin-bottom: 10px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, auto); gap: 10px; }
.catalog-search { padding: 10px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.catalog-search span { flex: 0 0 auto; color: var(--green); font-size: 11px; font-weight: 700; }
.catalog-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.catalog-tools select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; outline: none; font-weight: 600;
}
.active-search-filter { margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.active-search-filter[hidden] { display: none; }
.active-search-filter span { padding: 7px 10px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; }
.active-search-filter button { padding: 6px 10px; border: 0; border-radius: 999px; color: var(--green); background: transparent; font-size: 11px; font-weight: 700; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-weight: 600;
}
.filter.active { color: white; border-color: var(--green); background: var(--green); }
.filter-reviews.active { border-color: var(--green); background: var(--green); }
.filter-research.active { border-color: #3978b8; background: #3978b8; }
.explore-grid {
  height: clamp(430px, calc(100vh - 285px), 620px); min-height: 0; display: grid;
  grid-template-columns: minmax(410px, .9fr) 1.1fr; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
}
.venue-panel { min-height: 0; padding: 18px; display: flex; flex-direction: column; background: #faf9f4; }
.result-summary { padding: 5px 4px 16px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.result-summary strong { color: var(--ink); font-size: 14px; }
.trust-legend {
  margin: 0 0 12px; padding: 10px 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  border: 1px solid rgba(25,53,43,.1); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.72);
  font-size: 11px; line-height: 1.35;
}
.trust-legend span { min-width: 0; display: flex; gap: 6px; align-items: center; }
.trust-legend strong { color: var(--ink); white-space: nowrap; }
.legend-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.legend-dot-research { background: #1689ff; }
.legend-dot-reviewed { background: #7dbb3a; }
.venue-list { flex: 1 1 auto; min-height: 0; display: grid; gap: 11px; align-content: start; overflow-y: auto; padding-right: 4px; }
.load-more { width: 100%; margin-top: 12px; padding: 11px; border: 1px solid rgba(39,108,82,.3); border-radius: 10px; color: var(--green); background: white; font-weight: 700; }
.load-more:hover { background: var(--green-soft); }
.pagination { margin-top: 15px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.pagination[hidden] { display: none; }
.pagination button { padding: 10px 14px; border: 1px solid rgba(39,108,82,.28); border-radius: 999px; color: var(--green); background: white; font-weight: 700; }
.pagination button:last-child { justify-self: end; }
.pagination button:disabled { cursor: default; opacity: .35; }
.pagination span { color: var(--muted); font-size: 11px; font-weight: 700; }
.venue-card {
  padding: 16px; display: grid; grid-template-columns: 64px 1fr; gap: 13px; border: 1px solid transparent;
  border-radius: 15px; background: white; transition: .2s ease;
}
.venue-card:hover, .venue-card.selected { border-color: rgba(39,108,82,.38); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(35,67,51,.08); }
.venue-image {
  position: relative; width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden;
  border-radius: 16px; background: linear-gradient(145deg, #f2d8b5, #f7eee0);
}
.venue-image::before, .venue-image::after, .venue-image span {
  content: ""; position: absolute; left: 15px; height: 8px; border-top: 3px solid var(--terracotta); border-radius: 50%;
}
.venue-image::before { top: 20px; width: 35px; }
.venue-image span { top: 30px; width: 27px; border-color: var(--green); }
.venue-image::after { top: 40px; width: 38px; }
.venue-card:nth-child(even) .venue-image { background: linear-gradient(145deg, #d9e8dc, #f0f5eb); }
.venue-top { display: flex; justify-content: space-between; gap: 10px; }
.venue-card h3 { margin: 0 0 3px; font-size: 16px; }
.venue-meta { color: var(--muted); font-size: 11px; }
.trust-row { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.trust-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 700; }
.research-badge { color: #164f83; border-color: #a9cbe8; background: #e4f1fb; }
.badge-info-button {
  position: relative; width: 16px; height: 16px; padding: 0; display: inline-grid; place-items: center; flex: 0 0 auto;
  border: 1px solid currentColor; border-radius: 50%; color: inherit; background: rgba(255,255,255,.58);
  font-size: 10px; line-height: 1; font-weight: 800;
}
.badge-info-button:hover { background: white; }
.badge-info-tooltip {
  position: absolute; z-index: 8; left: 50%; bottom: calc(100% + 8px); width: 235px; max-width: min(235px, calc(100vw - 32px)); display: none;
  padding: 8px 10px; border: 1px solid #a9cbe8; border-radius: 8px; color: #164f83; background: white;
  box-shadow: 0 8px 22px rgba(35,67,51,.16); font-size: 11px; line-height: 1.35; font-weight: 700; text-align: left;
  transform: translate(-50%, 4px); opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease;
}
.badge-info-tooltip::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px;
  border-right: 1px solid #a9cbe8; border-bottom: 1px solid #a9cbe8; background: white; transform: translate(-50%, -4px) rotate(45deg);
}
.badge-info-button:hover .badge-info-tooltip,
.badge-info-button:focus-visible .badge-info-tooltip {
  display: block; transform: translate(-50%, 0); opacity: 1;
}
.source-review-badge { color: #775529; border-color: #dfc28f; background: #fff2d9; }
.partial-badge { color: #7a4b08; border-color: #e3b760; background: #fff0c2; }
.indoor-only-badge { color: #7b3e20; border-color: #e2a487; background: #fff0e8; }
.review-badge { color: var(--green-dark); border-color: #a8cdb9; background: var(--green-soft); }
.visitor-badge { color: #345066; border-color: #b7cbda; background: #eaf2f7; }
.venue-change-note {
  width: fit-content; max-width: 100%; margin-top: 8px; padding: 6px 8px; border: 1px solid #a8cdb9; border-radius: 8px;
  color: var(--green-dark); background: #f1f8ee; font-size: 10px; font-weight: 800;
}
.venue-footer { margin-top: 11px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.venue-actions { display: flex; gap: 11px; }
.report-button, .details-button { padding: 0; border: 0; color: var(--green); background: none; font-weight: 700; }
.empty-state { padding: 70px 20px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.empty-state h3, .empty-state p { margin-left: auto; margin-right: auto; }
.empty-actions { width: min(100%, 315px); display: grid; gap: 9px; }
.empty-state .button { width: 100%; }
.field-static {
  min-height: 42px; padding: 12px 13px; display: block; border: 1px solid var(--line); border-radius: 12px;
  color: var(--green-dark); background: var(--green-soft); font-size: 13px; font-weight: 800;
}
.map { height: 100%; min-height: 0; background: #e7ede2; }
.leaflet-container { color: var(--ink); font-family: "DM Sans", sans-serif; }
.leaflet-control-zoom a { color: var(--green-dark); }
.venue-map-tooltip {
  min-width: 150px; width: max-content; max-width: min(280px, calc(100vw - 48px));
  padding: 7px 9px; border: 0; border-radius: 9px; color: var(--ink); box-shadow: 0 7px 18px rgba(25,53,43,.16);
  font-size: 11px; line-height: 1.35; white-space: normal; overflow-wrap: normal; word-break: normal;
}
.venue-map-tooltip strong { display: block; }
.country-policy-tooltip {
  width: min(300px, calc(100vw - 48px)); max-width: min(300px, calc(100vw - 48px));
  line-height: 1.35; overflow-wrap: normal; word-break: normal;
}
.country-policy-marker {
  background: transparent;
}
.country-policy-marker::before {
  content: ""; position: absolute; inset: 0;
  background: #7dbb3a; clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 69%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
  filter: drop-shadow(0 2px 1px white) drop-shadow(0 5px 10px rgba(25,53,43,.28));
}
.map-key { padding: 9px 11px; border: 1px solid rgba(25,53,43,.12); border-radius: 9px; background: rgba(255,255,255,.94); color: var(--muted); box-shadow: 0 4px 15px rgba(25,53,43,.1); font-size: 10px; line-height: 1.7; }
.map-key small { display: block; max-width: 210px; margin-top: 4px; color: #77847c; line-height: 1.35; }
.map-key span { width: 8px; height: 8px; display: inline-block; margin: 0 4px 0 8px; border-radius: 50%; }
.map-key span:first-child { margin-left: 0; }
.map-key .key-research { background: #1689ff; }
.map-key .key-reviewed { background: #7dbb3a; }
.map-key .key-country-policy {
  width: 12px; height: 12px; border-radius: 0; background: #7dbb3a;
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 69%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
  box-shadow: none;
}

.how-it-works { padding: 90px clamp(20px, 8vw, 130px); text-align: center; background: var(--green-dark); color: white; }
.how-it-works h2 { margin-bottom: 46px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.steps article { padding: 30px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; text-align: left; background: rgba(255,255,255,.04); }
.steps span { color: #e9bc85; font-family: "Playfair Display", serif; font-size: 32px; }
.steps h3 { margin: 22px 0 8px; }
.steps p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.6; font-size: 13px; }

.site-footer {
  padding: 26px clamp(20px, 5vw, 80px); display: flex; justify-content: space-between; gap: 18px; align-items: center;
  border-top: 1px solid rgba(25,53,43,.08); color: var(--muted); background: var(--paper); font-size: 12px;
}
.site-footer strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.site-footer nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; }
.popular-searches { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px 16px; max-width: 520px; }
.popular-searches a { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.site-footer button {
  padding: 0; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 700;
}
.site-footer a { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }

.blog-page { background: var(--paper); }
.blog-shell { --blog-content-width: 960px; padding: 0 clamp(20px, 5vw, 80px) 70px; }
.blog-index { padding: 48px 0 0; }
.blog-index-heading {
  max-width: var(--blog-content-width); margin: 0 auto 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 20px; align-items: end;
}
.blog-index-heading h1 { margin-bottom: 0; font-size: clamp(34px, 4vw, 52px); }
.blog-search {
  padding: 10px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: 13px; background: white;
}
.blog-search span { flex: 0 0 auto; color: var(--green); font-size: 11px; font-weight: 800; }
.blog-search input { min-width: 0; width: 100%; padding: 2px 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.blog-post-list { max-width: var(--blog-content-width); margin: 0 auto; display: grid; gap: 16px; }
.blog-post-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; transition: .2s ease; }
.blog-post-card.expanded { border-color: rgba(39,108,82,.4); box-shadow: 0 12px 28px rgba(35,67,51,.09); }
.blog-post-card:hover { border-color: rgba(39,108,82,.4); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(35,67,51,.09); }
.blog-post-link { width: 100%; padding: 0; display: grid; grid-template-columns: 1fr; border: 0; color: inherit; background: transparent; text-align: left; text-decoration: none; }
.blog-post-link img { width: 100%; aspect-ratio: 16 / 7; max-height: 310px; object-fit: cover; background: var(--cream); }
.blog-post-copy { padding: clamp(20px, 4vw, 34px); display: grid; gap: 9px; align-content: center; }
.blog-post-copy h3 { max-width: 820px; margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-family: "Playfair Display", serif; }
.blog-post-copy p { margin: 0; max-width: 680px; color: var(--muted); line-height: 1.55; }
.blog-post-card.expanded .blog-post-copy p { display: none; }
.blog-card-meta { color: var(--terracotta); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.blog-read-time { color: var(--green); font-size: 12px; font-weight: 800; }
.blog-empty-state { margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.blog-card-article {
  padding: clamp(22px, 4vw, 44px); border-top: 1px solid var(--line); background: white;
}
.blog-article-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.blog-article-meta span {
  padding: 6px 9px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; font-weight: 800;
}
.blog-card-article h2 { margin-top: 34px; font-size: clamp(25px, 2.6vw, 36px); }
.blog-card-article p { max-width: 860px; color: #43534b; font-size: 16px; line-height: 1.72; }
.blog-card-article .blog-dek { color: var(--muted); font-size: 18px; }
.blog-sources { padding-left: 21px; }
.blog-sources li { margin: 8px 0; color: var(--muted); line-height: 1.5; }
.blog-sources a { color: var(--green); font-weight: 700; }

dialog { max-width: 540px; width: calc(100% - 30px); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); box-shadow: var(--shadow); }
#detailDialog { overflow: hidden; }
dialog::backdrop { background: rgba(18,40,31,.55); backdrop-filter: blur(3px); }
.dialog-card { position: relative; max-height: calc(100vh - 30px); overflow-y: auto; padding: 32px; }
.dialog-card h2 { font-size: 35px; }
.dialog-card > p { color: var(--muted); line-height: 1.5; font-size: 13px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 20px; }
.dialog-card label, .dialog-card legend { display: block; margin: 15px 0 6px; font-size: 12px; font-weight: 700; }
.dialog-card input:not([type=checkbox]):not([type=radio]), .dialog-card select, .dialog-card textarea {
  width: 100%; margin-top: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; outline-color: var(--green); background: white;
}
.dialog-card textarea { min-height: 70px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-card fieldset { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.dialog-card fieldset legend { margin: 0; padding: 0 5px; }
.dialog-card .check, .dialog-card .choice { display: inline-flex; gap: 6px; align-items: center; margin: 5px 12px 5px 0; font-weight: 500; }
.dialog-card fieldset.field-invalid { border-color: #c2412d; background: #fff7f4; }
.dialog-card fieldset.field-invalid legend, .dialog-card fieldset.field-invalid .check { color: #9b2c1f; }
.field-error { display: block; margin-top: 8px; color: #9b2c1f; line-height: 1.45; font-weight: 700; }
.field-help { display: block; margin-top: 8px; color: var(--muted); line-height: 1.45; }
.photo-upload-field { margin: 15px 0; }
.photo-upload-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.photo-upload-options { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-upload-button {
  position: relative; min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.dialog-card .photo-upload-button { margin: 0; font-size: 12px; }
.dialog-card .photo-upload-button input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  opacity: 0; cursor: pointer;
}
.photo-upload-button:focus-within { outline: 2px solid rgba(39,108,82,.45); outline-offset: 2px; }
.account-card > p, .message-card > p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.account-card > p strong { color: var(--ink); }
.account-activity { margin: 18px 0; }
.account-tabs { padding: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 11px; background: var(--cream); }
.account-tab { padding: 9px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.account-tab.active { color: var(--green-dark); background: white; box-shadow: 0 2px 8px rgba(35,67,51,.08); }
.account-panel { margin-top: 12px; }
.account-panel[hidden] { display: none; }
.account-list { display: grid; gap: 8px; }
.account-admin-link { margin-bottom: 10px; }
.account-admin-link[hidden] { display: none; }
.account-item { padding: 11px 12px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; text-align: left; }
.account-item-main { padding: 0; display: grid; gap: 3px; border: 0; color: inherit; background: transparent; text-align: left; }
.account-item strong { font-size: 13px; }
.account-item span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.account-item-action { width: fit-content; padding: 6px 9px; border: 1px solid #a8cdb9; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; font-weight: 800; }
.account-empty { margin: 0; padding: 12px; border-radius: 10px; color: var(--muted); background: var(--cream); font-size: 12px; line-height: 1.45; }
.message-card { padding-top: 40px; text-align: center; }
.message-icon { width: 58px; height: 58px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 27px; font-weight: 700; }
.message-card h2 { font-size: 34px; }
.install-card h2 { padding-right: 20px; font-size: 34px; }
.install-card > p { color: var(--muted); line-height: 1.55; font-size: 13px; }
.location-card .privacy-note { padding: 10px 12px; border-radius: 9px; background: var(--cream); font-size: 11px; }
.location-skip { width: 100%; margin-top: 10px; padding: 8px; border: 0; color: var(--muted); background: transparent; font-weight: 700; }
.how-to-list { margin: 20px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.how-to-list li { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.how-to-list strong { display: block; margin-bottom: 4px; color: var(--ink); }
.how-to-list span { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.legal-card h2 { padding-right: 18px; font-size: 32px; }
.legal-card .button { margin-top: 14px; display: inline-block; text-align: center; text-decoration: none; }
.legal-card a { color: var(--green); font-weight: 700; }
.inline-info-button { padding: 0; border: 0; color: var(--green); background: transparent; font-weight: 700; text-decoration: underline; }
.contact-form { display: block; }
.email-copy-row {
  margin: 14px 0 4px; padding: 10px 11px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 700;
}
.email-copy-row span { min-width: 0; overflow-wrap: anywhere; }
.email-copy-row button {
  padding: 7px 10px; border: 1px solid rgba(39,108,82,.24); border-radius: 999px; color: var(--green); background: white;
  font-size: 11px; font-weight: 800;
}
.contact-honeypot { position: absolute; left: -10000px; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.about-founder-note {
  float: right; width: 98px; margin: 0 0 12px 16px;
}
.about-signature { margin: 4px 0 0; color: var(--ink) !important; font-weight: 700; }
.about-founder-photo {
  width: 100%; height: auto; display: block;
  border-radius: 8px; box-shadow: 0 8px 18px rgba(35, 67, 51, .12);
}
.about-facts-list { clear: both; }
.about-data-section { clear: both; padding-top: 8px; border-top: 1px solid var(--line); }
.about-data-section h2 { margin-top: 12px; }
.about-data-section p { color: var(--muted); line-height: 1.5; font-size: 13px; }
.info-list { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.info-list li { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.info-list strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 12px; }
.info-list span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 25px; padding: 12px 18px; transform: translate(-50%, 90px); border-radius: 999px; color: white; background: var(--green-dark); opacity: 0; transition: .3s ease; box-shadow: var(--shadow); font-size: 13px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.visit-prompt {
  position: fixed; z-index: 12; right: 22px; bottom: 22px; width: min(350px, calc(100% - 30px)); padding: 22px;
  border: 1px solid #d8b65b; border-radius: 18px; background: white; box-shadow: var(--shadow);
}
.visit-prompt h3 { margin: 8px 0; font-family: "Playfair Display", serif; font-size: 25px; }
.visit-prompt p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.visit-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--cream); }
.quick-checks { margin: 16px 0; display: grid; gap: 8px; }
.quick-check {
  padding: 12px; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); background: white; text-align: left; font-weight: 700;
}
.quick-check span { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: transparent; }
.quick-check.selected { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.quick-check.selected span { border-color: var(--green); color: white; background: var(--green); }
.quick-actions { display: grid; gap: 8px; }
.quick-report-link { padding: 5px; border: 0; color: var(--green); background: transparent; font-size: 11px; font-weight: 700; }

.detail-card { position: relative; max-height: calc(100vh - 30px); overflow-y: auto; }
.detail-cover {
  min-height: 180px; padding: 18px; display: flex; align-items: end; justify-content: space-between;
  color: white; background: linear-gradient(145deg, rgba(23,73,54,.15), rgba(23,73,54,.8)), linear-gradient(120deg, #d6b074, #6f987b);
}
.detail-cover.has-detail-image {
  background-image: linear-gradient(145deg, rgba(12,37,28,.22), rgba(12,37,28,.82)), var(--detail-cover-image);
  background-position: center;
  background-size: cover;
}
.detail-cover.has-detail-logo {
  background-image: linear-gradient(145deg, rgba(12,37,28,.18), rgba(12,37,28,.78)), var(--detail-cover-image), linear-gradient(120deg, #d6b074, #6f987b);
  background-position: center, center 42%, center;
  background-repeat: no-repeat;
  background-size: auto, 112px 112px, cover;
}
.detail-cover-label { padding: 6px 9px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-size: 10px; font-weight: 700; }
.detail-score { min-width: 155px; min-height: 56px; padding: 10px 14px; display: flex; flex-direction: column; place-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.8); border-radius: 14px; background: rgba(23,73,54,.45); text-align: center; font-weight: 700; }
.detail-score strong { font-size: 19px; line-height: 1.05; }
.detail-score small { margin-top: 4px; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.detail-score.research-score { border-color: #d4e8f7; background: rgba(37,100,158,.65); }
.detail-score.research-score strong { white-space: nowrap; font-size: 12px; }
.detail-score.review-score { border-color: #dce9d8; background: rgba(23,73,54,.68); }
.detail-score.community-score { border-color: #dce9d8; background: rgba(39,108,82,.68); }
.detail-content { padding: 26px; }
.detail-content h2 { margin-bottom: 3px; font-size: 38px; }
.detail-type, .detail-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-status { margin: 20px 0; display: grid; gap: 8px; }
.detail-status .trust-badge { justify-content: center; padding: 11px; font-size: 12px; }
.partial-notice { margin: 0 0 16px; padding: 13px 14px; border: 1px solid #e3b760; border-radius: 11px; color: #6b450f; background: #fff6da; font-size: 11px; line-height: 1.55; }
.evidence-card { padding: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-radius: 12px; background: var(--cream); text-align: center; }
.evidence-card div { display: grid; gap: 3px; }
.evidence-card div + div { border-left: 1px solid var(--line); }
.evidence-card span { color: var(--muted); font-size: 10px; }
.review-details { margin-top: 18px; padding-top: 2px; }
.review-details h3 { margin: 0 0 10px; font-size: 16px; }
#detailReviewList { display: grid; gap: 10px; }
.review-entry { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.member-review-entry { border-color: #8fbc86; background: #f1f8ee; }
.member-review-label { width: fit-content; margin-bottom: 8px; padding: 4px 7px; display: block; border-radius: 999px; color: var(--green-dark); background: white; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.review-entry header { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }
.review-entry p { margin: 9px 0 0; color: var(--ink); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.review-photo-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.review-photo-grid a { display: block; }
.review-photo-grid img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.detail-photos { margin-top: 18px; padding-top: 2px; }
.detail-photos h3 { margin: 0 0 10px; font-size: 16px; }
.detail-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.detail-photo-grid a { display: block; }
.detail-photo-grid img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: white; }
.detail-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.first-review-callout {
  margin-top: 14px; padding: 14px; display: grid; gap: 8px; border: 1px solid rgba(39,108,82,.24); border-radius: 12px;
  background: var(--green-soft);
}
.first-review-callout[hidden] { display: none; }
.first-review-callout strong { color: var(--green-dark); font-size: 13px; }
.first-review-callout span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.first-review-callout .button { width: fit-content; padding: 10px 14px; font-size: 12px; }

@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; }
  .search-terrace-image { min-height: 180px; max-height: 260px; transform: none; }
  .blog-index-heading { grid-template-columns: 1fr; }
  .blog-post-link { grid-template-columns: 1fr; }
  .blog-post-link img { aspect-ratio: 16 / 9; min-height: 0; }
  .explore-grid { grid-template-columns: 1fr; height: auto; }
  .map { min-height: 390px; }
  .venue-list { max-height: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { width: 100%; height: auto; min-height: 64px; gap: 8px; padding: 8px 12px; }
  .brand { flex: 0 1 168px; max-width: 42%; font-size: 16px; white-space: nowrap; overflow: hidden; }
  .brand span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { flex: 0 0 auto; }
  .topbar nav { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 6px; }
  .topbar .nav-link {
    min-height: 40px; padding: 9px 4px; display: inline-flex; align-items: center; color: var(--green); font-size: 12px; line-height: 1; font-weight: 800;
  }
  .topbar [data-scroll] { display: none; }
  .topbar .nav-link-anchor[href="/#how-it-works"] { display: none; }
  .topbar .button-secondary, .topbar .button-ghost { min-height: 40px; padding: 9px 10px; display: inline-flex; align-items: center; white-space: nowrap; font-size: 12px; line-height: 1; }
  .badge-info-tooltip {
    left: auto; right: 0; width: min(220px, calc(100vw - 40px)); max-width: min(220px, calc(100vw - 40px));
    transform: translateY(4px);
  }
  .badge-info-tooltip::after { left: auto; right: 5px; transform: translateY(-4px) rotate(45deg); }
  .badge-info-button:hover .badge-info-tooltip,
  .badge-info-button:focus-visible .badge-info-tooltip {
    transform: translateY(0);
  }
  .hero-copy { padding: 34px 20px 28px; display: block; }
  h1 { font-size: 38px; letter-spacing: 0; overflow-wrap: anywhere; }
  .search-card {
    display: grid; gap: 10px; padding: 14px; border-radius: 18px;
  }
  .search-field { padding-left: 0; display: grid; gap: 8px; }
  .search-field > span { display: block; margin-bottom: 4px; white-space: normal; }
  .search-field div { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .search-field input { min-width: 0; }
  .search-field .current-location-button { padding: 8px 9px; }
  .search-card .button { width: 100%; margin-top: 0; border-radius: 14px; }
  .hero-how-button {
    width: 100%; margin-top: 8px; padding: 8px 11px; display: block; border: 1px solid rgba(39,108,82,.22); border-radius: 12px;
    color: var(--green-dark); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 800;
  }
  body.signed-in { background: #faf9f4; }
  .signed-in .topbar, .signed-in .hero, .signed-in .how-it-works { display: none; }
  .mobile-home { display: none; }
  .signed-in .mobile-home { padding: 18px 16px 14px; display: block; background: var(--cream); border-radius: 0 0 24px 24px; }
  .mobile-greeting { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .mobile-intro { min-width: 0; }
  .mobile-intro .fresh-note { margin-bottom: 14px; display: inline-block; font-size: 10px; }
  .mobile-intro .eyebrow { display: block; width: max-content; max-width: 100%; letter-spacing: .13em; font-size: 10px; }
  .mobile-greeting h2 { max-width: 310px; margin: 7px 0 0; font-size: 32px; letter-spacing: 0; overflow-wrap: anywhere; }
  .mobile-greeting h2 em { color: var(--green); font-style: italic; }
  .mobile-greeting p { max-width: 320px; margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .mobile-account-actions { flex: 0 0 auto; display: grid; gap: 8px; justify-items: center; }
  .profile-button { width: 40px; height: 40px; border: 0; border-radius: 50%; color: white; background: var(--terracotta); font-weight: 700; }
  .mobile-add-button { min-width: 48px; height: 34px; padding: 0 11px; border: 1px solid rgba(39,108,82,.25); border-radius: 11px; color: var(--green-dark); background: white; font-size: 13px; line-height: 1; font-weight: 800; box-shadow: 0 5px 14px rgba(35,67,51,.08); }
  .mobile-search {
    margin-top: 14px; padding: 6px 8px 6px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px;
    align-items: center; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 8px 20px rgba(35,67,51,.08);
  }
  .mobile-search span { color: var(--green); font-size: 22px; }
  .mobile-search input { min-width: 0; padding: 9px 2px; border: 0; outline: 0; background: transparent; }
  .mobile-search .current-location-button { padding: 7px 9px; }
  .mobile-how-button {
    width: 100%; margin-top: 10px; padding: 9px 11px; border: 1px solid rgba(39,108,82,.22); border-radius: 12px;
    color: var(--green-dark); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 800;
  }
  .nearby-card {
    width: 100%; margin-top: 10px; padding: 11px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
    border: 0; border-radius: 13px; color: var(--ink); background: var(--green-soft); text-align: left;
  }
  .nearby-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
  .nearby-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); }
  .search-active .hero-copy {
    padding-top: 14px; padding-bottom: 12px;
  }
  .search-active .hero-main .eyebrow,
  .search-active .hero-main > p,
  .search-active .hero-proof,
  .search-active .hero-how-button,
  .search-active .search-terrace-image {
    display: none;
  }
  .search-active .hero-copy h1 {
    margin: 0 0 10px; font-size: 24px; line-height: 1.08;
  }
  .signed-in.search-active .mobile-home {
    padding-top: 10px; padding-bottom: 10px; border-radius: 0 0 16px 16px;
  }
  .signed-in.search-active .mobile-greeting,
  .signed-in.search-active .nearby-card,
  .signed-in.search-active .mobile-how-button {
    display: none;
  }
  .signed-in.search-active .mobile-search {
    margin-top: 0;
  }
  .explore { position: relative; z-index: 1; padding: 22px 12px 28px; background: #faf9f4; }
  .section-heading { display: block; margin: 0 4px 16px; }
  .section-heading h2 { margin-top: 6px; font-size: 31px; }
  .section-heading .button { display: none; }
  .view-switch { width: calc(100% - 8px); margin: 0 4px 14px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; background: #e8e9e2; }
  .view-switch button { padding: 8px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 700; }
  .view-switch button.active { color: var(--green-dark); background: white; box-shadow: 0 2px 8px rgba(35,67,51,.08); }
  .catalog-tools { margin: 0 4px 10px; grid-template-columns: 1fr; }
  .catalog-search { padding: 10px 12px; }
  .catalog-search span { white-space: nowrap; }
  .catalog-tools select { width: 100%; }
  .filters { flex-wrap: wrap; padding: 0 4px 5px; overflow: visible; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 8px 10px; font-size: 11px; text-align: center; }
  .explore-grid { height: auto; min-height: 0; display: block; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
  .venue-panel { padding: 0; background: transparent; }
  .result-summary { padding: 4px 5px 13px; }
  .venue-list { gap: 9px; max-height: none; overflow: visible; }
  .venue-card { padding: 12px; grid-template-columns: 58px 1fr; border-color: var(--line); box-shadow: 0 5px 15px rgba(35,67,51,.05); }
  .venue-image { width: 58px; height: 58px; }
  .venue-top { display: block; }
  .venue-footer { align-items: end; }
  .venue-footer > span { max-width: 110px; }
  .map { min-height: 430px; border-radius: 15px; }
  .explore.map-view .venue-panel { display: none; }
  .explore:not(.map-view) .map { display: none; }
  .signed-in .bottom-nav { display: none; }
  .bottom-nav button { display: grid; place-items: center; gap: 1px; border: 0; color: var(--muted); background: transparent; font-size: 9px; font-weight: 700; }
  .bottom-nav span { font-size: 20px; line-height: 1; }
  .bottom-nav button.active { color: var(--green); }
  .visit-prompt { right: 15px; bottom: 18px; }
  dialog { max-height: calc(100svh - 24px); margin: auto; border-radius: 22px; }
  .dialog-card { max-height: calc(100svh - 24px); padding: 24px; }
  #venueDialog .dialog-card, #accountDialog .dialog-card { padding-top: 28px; }
  #authDialog { margin: auto; border-radius: 22px; }
  #authDialog .dialog-card { padding: 24px; }
  #authDialog .dialog-card h2 { margin-top: 8px; font-size: 30px; }
  #authDialog .dialog-card > p { margin: 10px 0 14px; }
  #detailDialog { width: 100%; max-height: 92vh; }
  .detail-card { max-height: 92vh; overflow-y: auto; }
  .detail-actions { grid-template-columns: 1fr; }
  .first-review-callout .button { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer { display: block; padding: 24px 16px 28px; }
  .popular-searches { grid-template-columns: repeat(2, minmax(120px, 1fr)); max-width: none; }
  .site-footer nav { margin-top: 15px; display: grid; grid-template-columns: 1fr; justify-items: start; }
  .blog-shell { padding: 0 16px 40px; }
  .blog-index { padding-top: 30px; }
  .blog-search { display: grid; gap: 7px; }
  .blog-card-article { padding: 18px; }
  .blog-card-article p { font-size: 15px; }
}

@media (max-width: 600px) {
  .hero-copy { padding: 24px 20px 22px; }
  .hero-copy .fresh-note { display: none; }
  .hero-copy h1 { margin: 7px 0; font-size: 38px; }
  .hero-main > p { margin: 10px 0 14px; font-size: 15px; line-height: 1.5; }
  .search-terrace-image { min-height: 120px; max-height: 150px; margin-top: 16px; }
  .hero-proof { margin-top: 12px; }
  .popular-searches { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand { flex-basis: auto; max-width: none; }
  .brand span:last-child { display: none; }
  .hero-copy { padding-left: 16px; padding-right: 16px; }
  .hero-copy h1 { font-size: 34px; }
  .search-card { padding: 13px; border-radius: 16px; }
  .search-field div { grid-template-columns: auto minmax(0, 1fr); row-gap: 7px; }
  .search-field .current-location-button { grid-column: 2; justify-self: start; }
  .mobile-search { grid-template-columns: auto minmax(0, 1fr); row-gap: 7px; }
  .mobile-search .current-location-button { grid-column: 2; justify-self: start; }
  .mobile-greeting h2 { font-size: 29px; }
}

.admin-page { min-height: 100vh; background: #faf9f4; }
.admin-topbar { position: sticky; z-index: 4; top: 0; }
.admin-home-link { display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; }
.admin-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 56px; }
.admin-gate {
  width: min(560px, 100%); margin: 52px auto 0; padding: 30px;
  border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow);
}
.admin-gate h1, .admin-heading h1 { margin: 10px 0 8px; font-size: 42px; letter-spacing: 0; }
.admin-gate p, .admin-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.admin-auth-form { margin-top: 20px; display: grid; gap: 12px; }
.admin-auth-form label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.admin-auth-form input {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 9px; outline-color: var(--green); background: white;
}
.admin-gate .google-button { width: 100%; margin-top: 10px; }
.admin-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.admin-actions { flex: 0 0 auto; display: flex; gap: 10px; }
.admin-stats { margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; }
.admin-stats article {
  padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: white;
}
.admin-stats strong { display: block; font-size: 25px; line-height: 1; }
.admin-stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.admin-toolbar {
  margin-bottom: 12px; display: grid; grid-template-columns: minmax(520px, auto) minmax(240px, 1fr); gap: 12px; align-items: center;
}
.admin-tabs { padding: 3px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; border-radius: 10px; background: #e8e9e2; }
.admin-tabs button {
  padding: 10px 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 800;
}
.admin-tabs button.active { color: var(--green-dark); background: white; box-shadow: 0 2px 8px rgba(35,67,51,.08); }
.admin-search {
  padding: 10px 12px; display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: white;
}
.admin-search span { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.admin-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.admin-panel[hidden], .admin-dashboard[hidden], .admin-gate[hidden] { display: none; }
.admin-table-wrap {
  border: 1px solid var(--line); border-radius: 10px; overflow: auto; background: white; box-shadow: 0 10px 24px rgba(35,67,51,.07);
}
.admin-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  position: sticky; top: 0; z-index: 1; padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: var(--muted); background: #f6f1e7; text-align: left; font-size: 11px; text-transform: uppercase;
}
.admin-table td { padding: 13px 14px; border-bottom: 1px solid #ecebe5; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table strong { display: block; max-width: 390px; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.admin-table span { display: block; max-width: 390px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-status-pill {
  width: fit-content; padding: 5px 8px; border-radius: 999px; color: var(--green-dark) !important; background: var(--green-soft); font-weight: 800;
}
.admin-row-actions { display: flex; gap: 8px; align-items: center; }
.admin-approve {
  padding: 8px 10px; border: 1px solid rgba(39,108,82,.24); border-radius: 8px; color: var(--green-dark); background: var(--green-soft); font-size: 12px; font-weight: 800;
}
.admin-delete {
  padding: 8px 10px; border: 1px solid #e1b0a0; border-radius: 8px; color: #9c3f28; background: #fff3ef; font-size: 12px; font-weight: 800;
}
.admin-delete:disabled { cursor: default; opacity: .45; }
.admin-empty { padding: 28px !important; color: var(--muted); text-align: center; }
.admin-chart-card {
  padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 10px 24px rgba(35,67,51,.07);
}
.admin-chart-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.admin-chart-heading h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: 0; }
.admin-chart-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.admin-chart-heading span {
  flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 12px; font-weight: 800;
}
.admin-chart-summary { margin: 18px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-chart-summary article { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #faf9f4; }
.admin-chart-summary strong { display: block; font-size: 22px; line-height: 1; }
.admin-chart-summary span { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.admin-visitor-chart svg { width: 100%; height: 340px; display: block; }
.admin-visitor-chart text { fill: var(--muted); font-size: 12px; font-weight: 700; }
.admin-visitor-chart .axis { stroke: #d9d8d1; stroke-width: 1; }
.admin-visitor-chart .daily-bar { fill: rgba(39,108,82,.34); }
.admin-visitor-chart .cumulative-line { fill: none; stroke: #276c52; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.admin-visitor-chart .cumulative-point { fill: #276c52; stroke: white; stroke-width: 2; }
.admin-chart-legend { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-chart-legend span { display: inline-flex; gap: 7px; align-items: center; }
.admin-chart-legend i { width: 16px; height: 8px; display: inline-block; border-radius: 999px; }
.admin-chart-legend i.daily { background: rgba(39,108,82,.34); }
.admin-chart-legend i.cumulative { height: 3px; background: #276c52; }
.admin-analytics-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.admin-breakdown-list { margin-top: 14px; display: grid; gap: 9px; }
.admin-breakdown-row { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #faf9f4; }
.admin-breakdown-main { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.admin-breakdown-main strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.admin-breakdown-main span { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 800; }
.admin-breakdown-meter { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #e8e9e2; }
.admin-breakdown-meter i { height: 100%; display: block; border-radius: inherit; background: #276c52; }

@media (max-width: 760px) {
  .admin-shell { width: min(100% - 24px, 1180px); padding-top: 22px; }
  .admin-heading { display: block; }
  .admin-heading h1, .admin-gate h1 { font-size: 35px; }
  .admin-actions { margin-top: 14px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tabs button { padding-inline: 8px; }
  .admin-table-wrap { border-radius: 8px; }
  .admin-chart-heading { display: block; }
  .admin-chart-heading span { margin-top: 10px; width: fit-content; display: block; }
  .admin-chart-summary { grid-template-columns: 1fr; }
  .admin-visitor-chart svg { height: 280px; }
  .admin-analytics-grid { grid-template-columns: 1fr; }
  .admin-breakdown-main { display: block; }
  .admin-breakdown-main span { margin-top: 4px; display: block; }
}
