:root {
  --ink: #1c3a2c;
  --pine: #1f7ebc;
  --leaf: #2f9e4f;
  --mist: #e5f4fc;
  --paper: #fffdf6;
  --card: #ffffff;
  --line: #d5e7c8;
  --brass: #e0a000;
  --sun: #ffd23a;
  --sky: #3aa0e0;
  --clay: #b42318;
  --muted: #4f6b5c;
  --shadow: 0 12px 32px rgba(47, 158, 79, 0.1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(720px 240px at 88% -40px, rgba(255, 210, 58, 0.55), transparent 62%),
    linear-gradient(180deg, #c5e8fb 0%, #f3faff 240px, var(--paper) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 2vw, 2.1rem); margin: 0 0 0.5em; }
p { margin: 0 0 0.8em; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--sun);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 4vw;
  background: #fff;
  color: var(--ink);
}
.topbar a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.brand img { width: 92px; height: 52px; object-fit: contain; }
.brand strong { display: block; font-size: 1rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand small { display: block; color: var(--leaf); font-size: 0.78rem; font-weight: 640; white-space: nowrap; }
.site-nav { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; align-items: center; }
.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--sun); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--mist); color: var(--pine); }
.nav-toggle, .account-button, .mini-search button, .search-form > button, .btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
  color: var(--ink);
  border: 1px solid #c5e4f6;
  padding: 8px 12px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(31, 126, 188, 0.16);
}
.account-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #ffe98a 0%, #ffd23a 52%, #e6b21a 100%);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 640;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 0 #c99200, 0 5px 12px rgba(224, 160, 0, 0.28);
}
.account-button .account-mail {
  color: #c81e1e;
  font-weight: 700;
}
button.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pine);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}
button.linkish:disabled { opacity: 0.55; cursor: default; }
.account-button:hover {
  background: linear-gradient(180deg, #fff1a8 0%, #ffd84f 52%, #efbf2e 100%);
}
.account-button.has-mail {
  box-shadow: inset 0 0 0 2px var(--clay), inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 0 #c99200, 0 5px 12px rgba(224, 160, 0, 0.28);
}
.mini-search { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.mini-search input { border: 0; padding: 10px 14px; width: 180px; background: transparent; }
.mini-search button {
  background: linear-gradient(180deg, #5dcb78 0%, #2f9e4f 55%, #247a3c 100%);
  color: #fff;
  padding: 0 14px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 48px 4vw 56px;
  background:
    linear-gradient(105deg, rgba(255, 253, 246, 0.42) 0%, rgba(58, 160, 224, 0.06) 46%, rgba(47, 158, 79, 0.05)),
    url("../assets/hero.jpg?v=summer") center 35% / cover no-repeat;
}
.hero-card {
  max-width: 760px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 36px 36px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--sun);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 640;
  color: var(--ink);
  background: var(--sun);
  border-radius: 999px;
  padding: 5px 12px;
}
.lede { font-size: 1.12rem; color: var(--muted); width: 100%; max-width: 100%; }
.search-form { position: relative; display: flex; gap: 8px; margin: 18px 0 12px; }
.search-form input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 16px 20px;
  min-width: 0;
}
.search-form > button, .btn.solid {
  display: inline-block;
  background: linear-gradient(180deg, #5dcb78 0%, #2f9e4f 55%, #247a3c 100%);
  color: #fff;
  padding: 14px 22px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 #1b6630, 0 6px 14px rgba(36, 122, 60, 0.28);
}
.search-form > button:hover, .btn.solid:hover, .mini-search button:hover {
  background: linear-gradient(180deg, #6ed486 0%, #36a857 55%, #1f7a3c 100%);
}
.search-form input:focus, .mini-search input:focus, label input:focus, label select:focus, label textarea:focus {
  outline: 3px solid rgba(43, 143, 212, 0.28);
  border-color: var(--leaf);
}
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button, .tabs button {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 500;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(28, 58, 44, 0.08);
}
.quick button:hover, .tabs button:hover {
  border-color: var(--sky);
  color: var(--pine);
  background: linear-gradient(180deg, #ffffff 0%, #e5f4fc 100%);
}
.quick button[aria-pressed="true"], .tabs button[aria-pressed="true"] {
  background: linear-gradient(180deg, #5dcb78 0%, #2f9e4f 55%, #247a3c 100%);
  border-color: #1f7a3c;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 #1b6630;
}

.suggest {
  position: absolute;
  left: 0;
  right: 90px;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 5;
}
.suggest-group { padding: 8px; }
.suggest-group button.group {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font-weight: 640;
  cursor: pointer;
  color: var(--ink);
}
.suggest-group button.group:hover { color: var(--pine); }
.suggest-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.suggest-examples button {
  border: 1px solid #b7d7c4;
  background: linear-gradient(180deg, #ffffff 0%, #e7f6ec 100%);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(28, 58, 44, 0.08);
}
.suggest-examples button:hover {
  color: var(--ink);
  border-color: var(--pine);
  background: linear-gradient(180deg, #ffffff 0%, #d9eef9 100%);
}

.results-wrap { padding: 28px 4vw 70px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.results-bar h2 { margin: 0; }
.results-bar p { margin: 0; color: var(--muted); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(58, 160, 224, 0.18); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--mist); }
.card-photo { width: 100%; height: 100%; object-fit: cover; }
.score, .photo-count, .theme-tag {
  position: absolute;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 640;
}
.score { top: 12px; right: 12px; background: var(--sun); color: var(--ink); }
.photo-count { left: 12px; bottom: 12px; background: var(--leaf); color: #fff; }
.theme-tag { left: 12px; top: 12px; background: #fff; color: var(--pine); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.45rem; }
.where, .price, .open, .club-note { margin: 0; }
.where { color: var(--pine); font-weight: 500; }
.blurb { color: var(--muted); margin: 0; }
.price { font-weight: 640; color: var(--ink); }
.club-note { color: var(--clay); font-size: 0.95rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.pill {
  background: var(--mist);
  color: var(--pine);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 640;
}
.pill.warm { background: #fff4c8; color: #8a6400; }
#more-sentinel { height: 1px; }
.btn.ghost {
  background: linear-gradient(180deg, #ffffff 0%, #eef8f1 100%);
  color: var(--pine);
  border: 1px solid var(--leaf);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #d7eadc, 0 4px 10px rgba(47, 158, 79, 0.12);
}
.btn.ghost:hover { background: linear-gradient(180deg, #ffffff 0%, #e3f5e9 100%); }
.account-button:active, .search-form > button:active, .mini-search button:active, .btn.solid:active, .btn.ghost:active {
  transform: translateY(1px);
}
.status { text-align: center; color: var(--muted); }

.page {
  width: min(1080px, calc(100% - 8vw));
  margin: 28px auto 70px;
}
.prose { width: min(760px, 100%); }
.prose h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.terms { margin: 0 0 1.2em; padding-left: 1.35em; }
.terms li { margin: 0 0 0.55em; }
.cert-wrap { width: min(760px, calc(100% - 8vw)); margin: 28px auto 70px; }
.cert-top { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.cert-brand img { width: 160px; height: auto; }
.cert-brand strong, .cert-address strong { display: block; }
.cert-brand span { color: var(--leaf); font-weight: 640; }
.cert-address { text-align: right; }
.cert-sheet {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 22px;
}
.cert-sheet h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.cert-sign { margin-top: 28px; }
.cert-sign img { width: 197px; height: auto; margin-top: 8px; }
.cert-actions { display: flex; gap: 10px; margin-top: 18px; }
@media print {
  body { background: #fff; }
  .cert-wrap { width: auto; margin: 0; }
  .cert-actions { display: none; }
  .cert-sheet { border: 0; border-radius: 0; padding: 0; }
  .cert-terms { break-before: page; page-break-before: always; }
}
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 28px; align-items: start; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel img.mark { width: 100%; height: auto; }
.link-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.link-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
}
.link-list a:hover { border-color: var(--leaf); background: var(--mist); }
.link-list a strong { display: block; }
.link-list a span { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid .col-start { grid-column: 1; }
label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 640; }
label input, label select, label textarea {
  font-weight: 380;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px;
}
.sheet-actions, .form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.prefs {
  display: block;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 16px 0 8px;
  padding: 12px 14px 8px;
}
.prefs legend { font-weight: 640; padding: 0 6px; }
.prefs .fine { margin: 0 0 8px; }
.pref-heading { margin: 14px 0 0; font-weight: 640; }
.pref-all { margin: 2px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 640; }
.prefs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.prefs label { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 500; }
.prefs label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  padding: 0;
  border-radius: 4px;
  flex: 0 0 auto;
}
.prefs-one { grid-template-columns: 1fr; }
.pref-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pref-line label { flex: 1 1 auto; min-width: 0; }
.pref-miles {
  width: 5rem;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 380;
}
.pref-miles.is-bad { border-color: var(--clay); }
#pref-msg { min-height: 1.2em; }
#pref-msg.is-bad { color: var(--clay); }
.form-actions[hidden], .tabs[hidden] { display: none; }
.form-note { min-height: 1.2em; color: var(--clay); }
.form-note.ok { color: var(--leaf); }
#voucher-note { color: var(--muted); }
#voucher-note.ok { color: var(--leaf); }
#voucher-note.is-bad { color: var(--clay); }
.voucher-preview {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.voucher-preview img {
  width: 100%;
  height: auto;
  opacity: 0.4;
}
.voucher-preview.is-ready img { opacity: 1; }
.voucher-steps { margin: 0 0 12px; padding-left: 1.2em; }
.voucher-steps li { margin: 0 0 0.45em; }
.voucher-mark { width: min(100%, 240px); height: auto; margin: 4px 0 12px; }
.fine { color: var(--muted); font-size: 0.88rem; }
.hp { position: absolute; left: -9999px; }

.site-page { width: min(1180px, calc(100% - 8vw)); margin: 22px auto 70px; }
.crumb { margin: 0 0 10px; }
.site-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 16px; }
.site-facts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fact {
  background: var(--mist);
  border: 1px solid #c5e4f6;
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 120px;
}
.fact span { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.fact strong { font-family: var(--serif); font-size: 1.2rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 22px; }
.gallery-main {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
  border-radius: 24px;
  background: var(--mist);
}
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: none; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--leaf); }
.thumbs img { width: 100%; height: 96px; object-fit: cover; }
.site-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: 22px; }
.site-grid section { margin-bottom: 26px; }
#description { max-width: 68ch; }
.unit, .review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.unit { display: flex; justify-content: space-between; gap: 12px; }
.stars { color: var(--brass); letter-spacing: 0.08em; }
.review header { display: flex; justify-content: space-between; gap: 8px; }
.review p, .review-reply p { white-space: pre-line; }
.review-reply {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.review-reply strong { display: block; font-size: 0.92rem; }
.review-reply span { color: var(--muted); font-size: 0.85rem; }
.review-reply p { margin: 4px 0 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin: 0 0 0.5em;
}
.section-head h2 { margin: 0; }
#add-review { max-width: 100%; white-space: normal; }
#add-review:disabled { cursor: not-allowed; opacity: 0.65; filter: grayscale(0.35); }
#review-dialog .form-actions { justify-content: flex-end; }
#review-dialog .form-note { flex: 1 1 auto; margin: 0; }
#review-dialog textarea { width: 100%; min-height: 140px; resize: vertical; }
#site-message-dialog .form-actions { justify-content: flex-end; }
#site-message-dialog .form-note { flex: 1 1 auto; margin: 0; }
#site-message-dialog textarea { width: 100%; min-height: 140px; resize: vertical; }
#booking-note { margin: 10px 0 0; }
#booking-note:empty { display: none; }
#map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  height: 280px;
  border-radius: 18px;
  background: var(--mist);
  margin-bottom: 12px;
}
address { font-style: normal; white-space: pre-line; }
.book-links { display: grid; gap: 8px; margin-top: 12px; min-width: 0; }
.book-links a, .book-links .btn {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
  text-align: center;
  white-space: normal;
}
#book, #booking { min-width: 0; overflow-wrap: anywhere; }
.platform-head {
  font-family: Outfit, sans-serif;
  font-size: 0.95rem;
  font-weight: 640;
  margin: 16px 0 0;
}
.offer-copy {
  margin: 4px 0 0;
}
.platform-links {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
}
.platform-links a.btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.platform-links img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  max-width: 22px;
  object-fit: contain;
}

.site-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 40px;
  padding: 32px 4vw 40px;
  background: #1f7a3a;
  color: #f4fff6;
  border-top: 6px solid var(--sun);
}
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: #d7efff; }
.site-foot .fine { color: rgba(255, 255, 255, 0.92); }
.site-foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-content: start; }
.site-foot .fine { grid-column: 1 / -1; }

dialog.sheet {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 0;
  border-radius: 24px;
  padding: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}
dialog.sheet::backdrop { background: rgba(19, 38, 28, 0.55); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { margin: 0; font-size: 1.8rem; }
.icon-x { background: transparent; border: 0; cursor: pointer; color: var(--muted); }
.details { display: grid; grid-template-columns: 140px 1fr; gap: 6px 10px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
#details-form { margin-top: 4px; }
#account-dialog:not([open]) { display: none; }
#account-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 0 0;
  max-height: min(920px, calc(100vh - 24px));
  max-height: min(920px, calc(100dvh - 24px));
}
#account-dialog .sheet-head { padding: 0 22px; flex: 0 0 auto; }
#account-dialog .sheet-scroll {
  overflow: auto;
  min-height: 0;
  min-width: 0;
  padding: 8px 22px 22px;
  overscroll-behavior: contain;
}
#account-dialog #pref-groups {
  max-height: 420px;
  overflow: auto;
  min-width: 0;
  padding-right: 4px;
}
#account-dialog .form-actions { justify-content: flex-end; margin-top: 0; }
#account-dialog .sheet-actions { justify-content: flex-end; }
#account-dialog .sheet-rule { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; }
#account-dialog .prefs { margin-top: 0; }
.member-id-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  margin: 4px 0 2px;
}
.member-id-block p { margin: 0; }
#account-dialog .sheet-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 12px 0 0;
  background: #fff;
  min-width: 0;
}
#account-dialog .sheet-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 640;
  padding: 12px 14px;
  list-style: none;
}
#account-dialog .sheet-section > summary::-webkit-details-marker { display: none; }
#account-dialog .sheet-section > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.2rem;
  flex: 0 0 auto;
}
#account-dialog .sheet-section[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}
#account-dialog .sheet-section > .prefs,
#account-dialog .sheet-section > form,
#account-dialog .sheet-section > .own-reviews,
#account-dialog .sheet-section > .own-bookings,
#account-dialog .sheet-section > .own-messages,
#account-dialog .sheet-section > .fine {
  margin: 0 14px 14px;
}
#account-dialog .sheet-section .prefs {
  border: 0;
  padding: 0 0 4px;
  border-radius: 0;
}
.own-reviews { margin: 12px 0 4px; }
.own-bookings { margin: 12px 0 4px; }
#booking-list { display: grid; gap: 10px; max-height: 340px; overflow: auto; }
.booking-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}
.booking-card header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.booking-card header strong { font-weight: 640; min-width: 0; overflow-wrap: anywhere; }
.booking-card header span { color: var(--muted); font-size: 0.85rem; }
.booking-card p { margin: 6px 0 0; }
.booking-card .btn { width: auto; margin-top: 8px; }
.own-reviews h3 { margin: 0 0 6px; font-size: 1.2rem; }
#own-reviews { display: grid; gap: 10px; max-height: 340px; overflow: auto; }
#message-list { display: grid; gap: 10px; max-height: 340px; overflow: auto; }
.message-thread {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  background: var(--mist);
}
.message-thread > header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.message-thread > header strong { font-weight: 640; min-width: 0; overflow-wrap: anywhere; }
.thread-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; color: var(--muted); font-size: 0.85rem; }
.thread-unread { color: var(--clay); }
.thread-messages { display: grid; gap: 8px; }
.own-message { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; }
.own-message header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.own-message header strong { font-weight: 640; min-width: 0; overflow-wrap: anywhere; }
.own-message header span { color: var(--muted); font-size: 0.85rem; }
.own-message .message-body { margin: 8px 0 0; white-space: pre-wrap; }
.own-message .status-line { margin: 6px 0 0; color: var(--muted); }
.own-message .unread-flag { margin: 6px 0 0; color: var(--clay); }
.own-message.received { background: #fff; border-color: #b9dff3; }
.own-message.sent {
  margin-left: 28px;
  padding: 8px 10px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #6b5010;
  background-color: #fff1c2;
  background-image: linear-gradient(180deg, #fff8dc 0%, #fff1c2 100%);
  border-color: #e0a000;
}
.own-message.sent header strong { color: #8a6400; }
.own-message.sent header span,
.own-message.sent .status-line { color: #6a5314; font-size: 0.78rem; }
.own-message.sent .unread-flag { color: var(--clay); }
.own-message.sent .btn.ghost {
  padding: 7px 12px;
  font-size: 0.92em;
  color: #7a5b00;
  border-color: #e0a000;
  background: linear-gradient(180deg, #fffdf6 0%, #ffe9a3 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #f3e2a8, 0 3px 8px rgba(224, 160, 0, 0.16);
}
.own-message.sent .btn.ghost:hover { background: linear-gradient(180deg, #fffdf6 0%, #ffdf7a 100%); }
#account-dialog .own-message .form-actions { margin-top: 10px; }
.own-message .form-note { flex: 1 1 auto; margin: 0; }
.reply-box { margin-top: 8px; }
.reply-box[hidden] { display: none; }
.reply-box textarea { width: 100%; min-height: 76px; resize: vertical; }
.own-review { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; }
.own-review header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.own-review header a { font-weight: 640; text-decoration: none; }
.own-review header span { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.own-review textarea { width: 100%; min-height: 76px; resize: vertical; }
.own-review .form-note { flex: 1 1 auto; margin: 0; }
#account-dialog .own-review .form-actions { margin-top: 16px; }
#account-dialog label input,
#account-dialog label select { padding: 8px 10px; }
#account-dialog #details-form label.mail-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
}
#account-dialog #details-form label.mail-opt input {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
}
#account-dialog #details-form label.mail-opt span {
  min-width: 0;
  flex: 1 1 auto;
}
#account-dialog .prefs label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  padding: 0;
}
#details-msg { flex: 1 1 auto; margin: 0; min-height: 1.2em; color: var(--muted); }
#details-msg.ok { color: var(--leaf); }
#details-msg.is-bad { color: var(--clay); }
#details-save:disabled { opacity: 0.55; cursor: default; }
.empty {
  padding: 28px;
  background: var(--card);
  border-radius: 18px;
  border: 1px dashed var(--line);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 16px 30px rgba(27, 49, 68, 0.12);
    padding: 10px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .mini-search { display: none; }
  .split, .site-grid, .gallery, .form-grid, .site-foot, .site-head { grid-template-columns: 1fr; display: grid; }
  .topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand span { min-width: 0; overflow: hidden; }
  .brand strong, .brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-toggle, .account-button { flex: 0 0 auto; }
  .site-grid { display: flex; flex-direction: column; min-width: 0; }
  .site-grid > div, .site-grid > aside { display: contents; }
  #about-site { order: 1; }
  #types { order: 2; }
  #facilities { order: 3; }
  #nearby { order: 4; }
  #pitch-stay { order: 5; }
  #book { order: 6; }
  #reviews { order: 7; }
  #map-card { order: 8; }
  .site-page, .panel, .site-head, .gallery { min-width: 0; max-width: 100%; }
  .site-facts { justify-content: flex-start; }
  .suggest { right: 0; }
  .hero { min-height: 0; padding-top: 24px; }
  .hero-card { padding: 22px 18px; }
  .search-form { flex-direction: column; }
  .prefs-grid { grid-template-columns: 1fr; }
  #account-dialog #pref-groups { max-height: 280px; }
  .search-form > button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .voucher-preview img { transition: none; }
  .account-button:active, .search-form > button:active, .mini-search button:active, .btn.solid:active, .btn.ghost:active { transform: none; }
}
