/* Peedie Explorers — styles.
   Colours: every colour is a token below. Four palettes: light (default), dark,
   high contrast light, high contrast dark. They follow the phone's settings
   (prefers-color-scheme / prefers-contrast) unless the Display menu overrides them
   with data-theme / data-contrast on <html>. Check pairs with test/contrast-check.mjs.
   Bright coral #FF6B4A, teal #0F8B8D and sun #FFC24B are for shapes only, never text.
   Sizes are in rem so the phone's text size (and the Display menu) scales everything. */

/* palette: light */
:root {
  color-scheme: light;
  --bg: #fffaf4;
  --card: #ffffff;
  --ink: #2b2a33;
  --muted: #57525e;
  --line: #ece4da;
  --field: #ffffff;
  --field-line: #8a8079;
  --coral: #ff6b4a;
  --teal: #0f8b8d;
  --sun: #ffc24b;
  --coral-text: #c4401f;
  --link: #0a6e70;
  --btn-bg: #c4401f;
  --btn-ink: #ffffff;
  --btn2-bg: #0a6e70;
  --btn2-ink: #ffffff;
  --brand-soft: #ffe7e0;
  --on-brand-soft: #9c3214;
  --teal-soft: #dff3f2;
  --on-teal-soft: #075a5c;
  --sun-soft: #fff3d6;
  --on-sun-soft: #6e4700;
  --on-sun: #2b2a33;
  --star: #b25f00;
  --star-off: #8a8079;
  --bad-bg: #fdecea;
  --bad-ink: #a12a1f;
  --ok-bg: #e5f5ea;
  --ok-ink: #1d6b39;
  --toast-bg: #2b2a33;
  --toast-ink: #ffffff;
  --disabled-bg: #ece4da;
  --disabled-ink: #57525e;
  --focus: #0a4f9e;
  --focus-halo: #ffffff;
  --card-border: transparent;
  --overlay: rgba(30, 20, 10, .5);
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 18px rgba(60, 40, 20, .08);
  --tile-filter: none;
  --radius: 16px;
  --font: "Playpen Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* palette: dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1b1a21;
    --card: #26252d;
    --ink: #f3efe9;
    --muted: #c3bdc8;
    --line: #3b3943;
    --field: #1f1e25;
    --field-line: #8e8899;
    --coral-text: #ff8a6e;
    --link: #3cc3c5;
    --btn-bg: #ff8a6e;
    --btn-ink: #1b1a21;
    --btn2-bg: #3cc3c5;
    --btn2-ink: #1b1a21;
    --brand-soft: #4a2820;
    --on-brand-soft: #ffc2b2;
    --teal-soft: #163c3d;
    --on-teal-soft: #9fe6e7;
    --sun-soft: #3d3220;
    --on-sun-soft: #ffd88a;
    --on-sun: #2b2a33;
    --star: #ffc24b;
    --star-off: #8e8899;
    --bad-bg: #4a1f1c;
    --bad-ink: #ffb8ad;
    --ok-bg: #173a26;
    --ok-ink: #a3e6bb;
    --toast-bg: #f3efe9;
    --toast-ink: #1b1a21;
    --disabled-bg: #3b3943;
    --disabled-ink: #c3bdc8;
    --focus: #8cc8ff;
    --focus-halo: #1b1a21;
    --overlay: rgba(0, 0, 0, .65);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .35);
    --tile-filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1a21;
  --card: #26252d;
  --ink: #f3efe9;
  --muted: #c3bdc8;
  --line: #3b3943;
  --field: #1f1e25;
  --field-line: #8e8899;
  --coral-text: #ff8a6e;
  --link: #3cc3c5;
  --btn-bg: #ff8a6e;
  --btn-ink: #1b1a21;
  --btn2-bg: #3cc3c5;
  --btn2-ink: #1b1a21;
  --brand-soft: #4a2820;
  --on-brand-soft: #ffc2b2;
  --teal-soft: #163c3d;
  --on-teal-soft: #9fe6e7;
  --sun-soft: #3d3220;
  --on-sun-soft: #ffd88a;
  --on-sun: #2b2a33;
  --star: #ffc24b;
  --star-off: #8e8899;
  --bad-bg: #4a1f1c;
  --bad-ink: #ffb8ad;
  --ok-bg: #173a26;
  --ok-ink: #a3e6bb;
  --toast-bg: #f3efe9;
  --toast-ink: #1b1a21;
  --disabled-bg: #3b3943;
  --disabled-ink: #c3bdc8;
  --focus: #8cc8ff;
  --focus-halo: #1b1a21;
  --overlay: rgba(0, 0, 0, .65);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .35);
  --tile-filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7);
}
/* palette: high contrast light (applies whenever high contrast is on; the dark one below overrides it) */
:root[data-contrast="more"] {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #000000;
  --muted: #2b2a33;
  --line: #2b2a33;
  --field: #ffffff;
  --field-line: #000000;
  --coral-text: #962c10;
  --link: #004b4d;
  --btn-bg: #962c10;
  --btn-ink: #ffffff;
  --btn2-bg: #004b4d;
  --btn2-ink: #ffffff;
  --brand-soft: #ffe7e0;
  --on-brand-soft: #6e1f0a;
  --teal-soft: #dff3f2;
  --on-teal-soft: #003b3c;
  --sun-soft: #fff3d6;
  --on-sun-soft: #4a3000;
  --on-sun: #000000;
  --star: #7a4100;
  --star-off: #2b2a33;
  --bad-bg: #fdecea;
  --bad-ink: #7a1a11;
  --ok-bg: #e5f5ea;
  --ok-ink: #0d4a24;
  --toast-bg: #000000;
  --toast-ink: #ffffff;
  --disabled-bg: #ece4da;
  --disabled-ink: #2b2a33;
  --focus: #000000;
  --focus-halo: #ffffff;
  --card-border: #000000;
  --tile-filter: contrast(1.1);
}
@media (prefers-contrast: more) {
  :root:not([data-contrast="normal"]) {
    --bg: #ffffff;
    --card: #ffffff;
    --ink: #000000;
    --muted: #2b2a33;
    --line: #2b2a33;
    --field: #ffffff;
    --field-line: #000000;
    --coral-text: #962c10;
    --link: #004b4d;
    --btn-bg: #962c10;
    --btn-ink: #ffffff;
    --btn2-bg: #004b4d;
    --btn2-ink: #ffffff;
    --brand-soft: #ffe7e0;
    --on-brand-soft: #6e1f0a;
    --teal-soft: #dff3f2;
    --on-teal-soft: #003b3c;
    --sun-soft: #fff3d6;
    --on-sun-soft: #4a3000;
    --on-sun: #000000;
    --star: #7a4100;
    --star-off: #2b2a33;
    --bad-bg: #fdecea;
    --bad-ink: #7a1a11;
    --ok-bg: #e5f5ea;
    --ok-ink: #0d4a24;
    --toast-bg: #000000;
    --toast-ink: #ffffff;
    --disabled-bg: #ece4da;
    --disabled-ink: #2b2a33;
    --focus: #000000;
    --focus-halo: #ffffff;
    --card-border: #000000;
    --tile-filter: contrast(1.1);
  }
}
/* palette: high contrast dark — dark theme and high contrast both on, whichever way each was chosen */
:root[data-theme="dark"][data-contrast="more"] {
  --bg: #000000;
  --card: #0e0e12;
  --ink: #ffffff;
  --muted: #e4e0e8;
  --line: #e4e0e8;
  --field: #000000;
  --field-line: #ffffff;
  --coral-text: #ffb4a0;
  --link: #7fe6e8;
  --btn-bg: #ffb4a0;
  --btn-ink: #000000;
  --btn2-bg: #7fe6e8;
  --btn2-ink: #000000;
  --brand-soft: #3a1a12;
  --on-brand-soft: #ffd6cb;
  --teal-soft: #0b2e2f;
  --on-teal-soft: #c2f4f5;
  --sun-soft: #2e2510;
  --on-sun-soft: #ffe2a8;
  --on-sun: #000000;
  --star: #ffd27a;
  --star-off: #e4e0e8;
  --bad-bg: #3a1210;
  --bad-ink: #ffd0c8;
  --ok-bg: #0e2a19;
  --ok-ink: #c4f2d4;
  --toast-bg: #ffffff;
  --toast-ink: #000000;
  --disabled-bg: #2b2a33;
  --disabled-ink: #e4e0e8;
  --focus: #ffffff;
  --focus-halo: #000000;
  --card-border: #ffffff;
  --tile-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(1.05) saturate(.6);
}
@media (prefers-contrast: more) {
  :root[data-theme="dark"]:not([data-contrast="normal"]) {
    --bg: #000000;
    --card: #0e0e12;
    --ink: #ffffff;
    --muted: #e4e0e8;
    --line: #e4e0e8;
    --field: #000000;
    --field-line: #ffffff;
    --coral-text: #ffb4a0;
    --link: #7fe6e8;
    --btn-bg: #ffb4a0;
    --btn-ink: #000000;
    --btn2-bg: #7fe6e8;
    --btn2-ink: #000000;
    --brand-soft: #3a1a12;
    --on-brand-soft: #ffd6cb;
    --teal-soft: #0b2e2f;
    --on-teal-soft: #c2f4f5;
    --sun-soft: #2e2510;
    --on-sun-soft: #ffe2a8;
    --on-sun: #000000;
    --star: #ffd27a;
    --star-off: #e4e0e8;
    --bad-bg: #3a1210;
    --bad-ink: #ffd0c8;
    --ok-bg: #0e2a19;
    --ok-ink: #c4f2d4;
    --toast-bg: #ffffff;
    --toast-ink: #000000;
    --disabled-bg: #2b2a33;
    --disabled-ink: #e4e0e8;
    --focus: #ffffff;
    --focus-halo: #000000;
    --card-border: #ffffff;
    --tile-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(1.05) saturate(.6);
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-contrast="more"] {
    --bg: #000000;
    --card: #0e0e12;
    --ink: #ffffff;
    --muted: #e4e0e8;
    --line: #e4e0e8;
    --field: #000000;
    --field-line: #ffffff;
    --coral-text: #ffb4a0;
    --link: #7fe6e8;
    --btn-bg: #ffb4a0;
    --btn-ink: #000000;
    --btn2-bg: #7fe6e8;
    --btn2-ink: #000000;
    --brand-soft: #3a1a12;
    --on-brand-soft: #ffd6cb;
    --teal-soft: #0b2e2f;
    --on-teal-soft: #c2f4f5;
    --sun-soft: #2e2510;
    --on-sun-soft: #ffe2a8;
    --on-sun: #000000;
    --star: #ffd27a;
    --star-off: #e4e0e8;
    --bad-bg: #3a1210;
    --bad-ink: #ffd0c8;
    --ok-bg: #0e2a19;
    --ok-ink: #c4f2d4;
    --toast-bg: #ffffff;
    --toast-ink: #000000;
    --disabled-bg: #2b2a33;
    --disabled-ink: #e4e0e8;
    --focus: #ffffff;
    --focus-halo: #000000;
    --card-border: #ffffff;
    --tile-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(1.05) saturate(.6);
  }
}
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root:not([data-theme="light"]):not([data-contrast="normal"]) {
    --bg: #000000;
    --card: #0e0e12;
    --ink: #ffffff;
    --muted: #e4e0e8;
    --line: #e4e0e8;
    --field: #000000;
    --field-line: #ffffff;
    --coral-text: #ffb4a0;
    --link: #7fe6e8;
    --btn-bg: #ffb4a0;
    --btn-ink: #000000;
    --btn2-bg: #7fe6e8;
    --btn2-ink: #000000;
    --brand-soft: #3a1a12;
    --on-brand-soft: #ffd6cb;
    --teal-soft: #0b2e2f;
    --on-teal-soft: #c2f4f5;
    --sun-soft: #2e2510;
    --on-sun-soft: #ffe2a8;
    --on-sun: #000000;
    --star: #ffd27a;
    --star-off: #e4e0e8;
    --bad-bg: #3a1210;
    --bad-ink: #ffd0c8;
    --ok-bg: #0e2a19;
    --ok-ink: #c4f2d4;
    --toast-bg: #ffffff;
    --toast-ink: #000000;
    --disabled-bg: #2b2a33;
    --disabled-ink: #e4e0e8;
    --focus: #ffffff;
    --focus-halo: #000000;
    --card-border: #ffffff;
    --tile-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(1.05) saturate(.6);
  }
}
/* end of palettes */

/* Text size (Display menu). Percentages keep the phone's own setting in play. */
html { font-size: 100%; }
html[data-text="large"] { font-size: 118%; }
html[data-text="xl"] { font-size: 135%; }

/* Reduce motion: the phone's setting, or the Display menu */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="normal"]) *, :root:not([data-motion="normal"]) *::before, :root:not([data-motion="normal"]) *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font); font-size: 1rem; line-height: 1.55; font-weight: 400;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
.hidden { display: none !important; }
a { color: var(--link); text-underline-offset: .15em; }
h1, h2, h3, .brand { font-family: var(--font); font-weight: 700; line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.ic { font-style: normal; }
.boot { display: grid; place-items: center; min-height: 100vh; }
.boot img { width: 6rem; border-radius: 24px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* only for screen readers */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Focus: a clear 3px ring with a thin halo so it shows on any background */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-halo);
}
[tabindex="-1"]:focus-visible, h1:focus-visible, main:focus-visible, [role="main"]:focus-visible { outline: none; box-shadow: none; }
.skip {
  position: absolute; left: 12px; top: -200px; z-index: 5000;
  padding: .7rem 1.1rem; border-radius: 12px; background: var(--card); color: var(--link);
  font-weight: 700; border: 2px solid var(--focus); text-decoration: underline;
}
.skip:focus, .skip:focus-visible { top: 10px; }

/* --- header --- */
.top {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem; padding-top: max(.55rem, env(safe-area-inset-top));
  background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.3rem; color: var(--ink); text-decoration: none; min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: 10px; }
.brand b { color: var(--coral-text); font-weight: 800; }
.search { position: relative; flex: 1; max-width: 32rem; }
.search input[type=search] { width: 100%; min-height: 44px; padding: .6rem .9rem .6rem 2.4rem; border-radius: 999px; border: 2px solid var(--field-line); background: var(--field); color: var(--ink); font: inherit; }
.search input:focus { border-color: var(--link); }
.search-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: var(--muted); pointer-events: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 2px solid var(--field-line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; z-index: 1100; }
.suggest button { display: block; width: 100%; min-height: 44px; text-align: left; padding: .6rem .9rem; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.suggest button:hover, .suggest button:focus-visible { background: var(--brand-soft); color: var(--ink); }
.suggest button:focus-visible { outline-offset: -3px; box-shadow: none; }
.suggest .sub { color: var(--muted); font-size: .88rem; }
.top-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; min-width: 44px;
  padding: .55rem 1rem; border-radius: 999px; border: 2px solid var(--field-line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; line-height: 1.25;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--bg); }
.btn.primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.btn.primary:hover { filter: brightness(.93); }
.btn.teal { background: var(--btn2-bg); border-color: var(--btn2-bg); color: var(--btn2-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { border-color: var(--field-line); }
.btn.danger { color: var(--bad-ink); }
.btn.sm { padding: .4rem .8rem; font-size: .92rem; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--disabled-bg); border-color: var(--disabled-bg); color: var(--disabled-ink); cursor: not-allowed; filter: none; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.avatar { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--teal-soft); color: var(--on-teal-soft); border: 2px solid var(--field-line); font-weight: 700; }

/* --- filters --- */
.filters { position: relative; /* keeps screen-reader-only text inside the scroller, so the page never scrolls sideways */ display: flex; gap: .5rem; padding: .6rem 1rem; overflow-x: auto; background: var(--card); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 44px;
  padding: .4rem .85rem; border-radius: 999px; border: 2px solid var(--field-line); background: var(--card);
  font: inherit; font-size: .92rem; cursor: pointer; white-space: nowrap; color: var(--ink);
}
.chip.on { background: var(--brand-soft); border-color: var(--coral-text); color: var(--on-brand-soft); font-weight: 700; }
.chip.lead { background: var(--sun-soft); }
.chip.lead.on { background: var(--sun-soft); border-color: var(--on-sun-soft); color: var(--on-sun-soft); }
.chip .tick { font-weight: 800; }
.chip .n { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 9px; background: var(--btn-bg); color: var(--btn-ink); font-size: .8rem; text-align: center; }
.sep { flex: none; width: 2px; background: var(--line); margin: .3rem .1rem; }

/* --- browse (list + map) --- */
.shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.shell .top { position: static; }
.browse { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(20rem, 26rem) 1fr; }
.map-wrap, .map { height: 100%; }
.list { overflow-y: auto; padding: .9rem; border-right: 1px solid var(--line); }
.list:focus-visible { outline-offset: -3px; }
.map { min-height: 300px; z-index: 0; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: 2px 2px 10px; }
.toggle-view { display: none; }
.show-mobile-sr { display: none; }
@media (max-width: 899px) {
  .browse { display: block; }
  .browse .list { height: 100%; border: 0; padding: .75rem 1rem 6rem; }
  .browse.view-map .list { display: none; }
  .browse.view-list .map-wrap { display: none; }
  .toggle-view {
    display: inline-flex; position: fixed; z-index: 1001; left: 50%; transform: translateX(-50%);
    bottom: calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 6px 20px rgba(0,0,0,.25);
    background: var(--toast-bg); color: var(--toast-ink); border-color: var(--toast-bg); max-width: calc(100vw - 32px);
  }
  .toggle-view:hover { background: var(--toast-bg); }
  .top { flex-wrap: wrap; position: static; } /* not sticky on phones: with big text it would fill the screen */
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hide-mobile { display: none; }
  .show-mobile-sr { display: inline; }
}

.cards { list-style: none; margin: 0; padding: 0; }
.place-card {
  display: flex; gap: .75rem; padding: .65rem; margin-bottom: .65rem; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: inherit; cursor: pointer;
  border: 2px solid var(--card-border);
}
.place-card:hover, .place-card.hot { border-color: var(--coral); }
.thumb { flex: none; width: 5.75rem; height: 5.75rem; border-radius: 12px; object-fit: cover; background: var(--sun-soft); display: grid; place-items: center; font-size: 2.2rem; }
.place-card .body { min-width: 0; flex: 1; }
.place-card h3 { margin: 0 0 2px; font-size: 1.08rem; color: var(--ink); }
.place-card .meta { color: var(--muted); font-size: .88rem; }
.place-card .sum { font-size: .92rem; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { font-size: .8rem; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--on-teal-soft); border: 1px solid var(--card-border); }
.tag.age { background: var(--sun-soft); color: var(--on-sun-soft); }

.empty { text-align: center; padding: 1.9rem 1rem; }
.empty .big { font-size: 3rem; }

/* map */
.leaflet-container { font-family: var(--font); font-size: .9rem; background: var(--bg); }
.leaflet-tile-pane { filter: var(--tile-filter); }
.pin { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--card); border: 3px solid var(--coral-text); box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.pin span { transform: rotate(45deg); font-size: 20px; line-height: 1; }
.pin.hot { background: var(--coral); border-color: var(--ink); }
.leaflet-marker-icon:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 50%; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--ink); border: 2px solid var(--card-border); }
.leaflet-popup-content { font: inherit; margin: .75rem .9rem; line-height: 1.45; }
.leaflet-popup-content h3 { margin: 0 0 2px; }
.leaflet-container a.leaflet-popup-close-button { width: 44px; height: 44px; font-size: 1.5rem; line-height: 40px; color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--ink); }
.leaflet-popup-content a.btn.primary { color: var(--btn-ink); }
.leaflet-bar a, .leaflet-bar a:hover, .leaflet-touch .leaflet-bar a, .leaflet-touch .leaflet-bar a:hover { width: 44px; height: 44px; line-height: 44px; font-size: 1.4rem; background: var(--card); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-bar { border: 2px solid var(--field-line) !important; }
.leaflet-container .leaflet-control-attribution { background: var(--card); color: var(--ink); font-size: .75rem; padding: 2px 6px; }
.leaflet-control-attribution a { color: var(--link); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(255, 107, 74, .45) !important; }
.marker-cluster div { background: var(--card) !important; color: var(--ink); border: 2px solid var(--coral-text); width: 36px !important; height: 36px !important; margin: 4px !important; border-radius: 50%; }
.marker-cluster { border-radius: 50%; }
.marker-cluster span { font-family: var(--font); font-weight: 700; font-size: 13px; line-height: 32px; }
.map-btn { position: absolute; z-index: 800; right: 12px; top: 12px; }
.map-wrap { position: relative; }
/* the screen-reader note on the map shows itself when its link gets keyboard focus */
.map-note-sr:focus-within { clip: auto !important; width: auto !important; height: auto !important; margin: 0 !important; overflow: visible !important; white-space: normal !important; z-index: 900; left: 64px; top: 64px; max-width: calc(100% - 80px); padding: .6rem .8rem !important; background: var(--card); color: var(--ink); border-radius: 12px; border: 2px solid var(--field-line) !important; }

/* --- pages --- */
.wrap { max-width: 54rem; margin: 0 auto; padding: 1.1rem 1rem 3.75rem; }
.back { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; margin-bottom: .5rem; font-weight: 600; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; margin-bottom: 1rem; border: 2px solid var(--card-border); }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 0 -1rem 1rem; padding: 4px 1rem; scroll-snap-type: x mandatory; }
.gallery figure { flex: none; margin: 0; position: relative; scroll-snap-align: start; display: flex; flex-direction: column; }
.photo-btn { display: block; padding: 0; border: 0; background: none; border-radius: 14px; cursor: zoom-in; }
.gallery img { height: 15rem; max-height: 60vh; max-width: 86vw; border-radius: 14px; object-fit: cover; display: block; }
/* under the photo (not over it), so the name can be a link to the person's profile */
.gallery figcaption { width: 0; min-width: 100%; margin-top: 4px; padding: 0 2px; font-size: .85rem; color: var(--muted); }
.badge { position: absolute; top: 8px; left: 8px; background: var(--sun); color: var(--on-sun); font-size: .8rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; pointer-events: none; }
.hero-empty { display: grid; place-items: center; height: 10rem; border-radius: 16px; background: var(--sun-soft); font-size: 4rem; margin-bottom: 1rem; }
.title-row { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; flex-wrap: wrap; }
.kicker { color: var(--coral-text); font-weight: 700; font-size: .92rem; }
.lede { font-size: 1.12rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; margin: 0; }
.facts .full { grid-column: 1 / -1; }
.facts dt { font-size: .88rem; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; }
.fac-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fac { padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--on-teal-soft); font-size: .92rem; border: 1px solid var(--card-border); }
.guide p { font-size: 1.04rem; line-height: 1.7; }
.mini-map { height: 14rem; border-radius: 14px; margin-top: 10px; z-index: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

.review { border-top: 1px solid var(--line); padding: .9rem 0; }
.review:first-child { border-top: 0; }
.review .who { font-weight: 700; }
.review .by { display: flex; gap: .65rem; align-items: flex-start; }
.review-place { margin: 0 0 2px; font-size: 1.06rem; }

/* --- member pictures (avatars.js crew, or an approved photo) --- */
.pfp { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; background: var(--teal-soft); line-height: 0; vertical-align: middle; }
.pfp > svg, .pfp > img { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; object-fit: cover; }
.pfp-sm { width: 2.25rem; height: 2.25rem; }
.pfp-md { width: 2.75rem; height: 2.75rem; }
.pfp-lg { width: 7rem; height: 7rem; border: 3px solid var(--field-line); }
.pfp-fill { width: 100%; height: 100%; }
.btn.avatar { overflow: hidden; }
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: .4rem 0 1rem; }
.profile-head > div { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.profile-head h1 { margin: 0 0 .2rem; }
.profile-head p { margin: 0; }
.counts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.counts li { padding: .35rem .85rem; border-radius: 999px; background: var(--teal-soft); color: var(--on-teal-soft); border: 1px solid var(--card-border); font-weight: 600; }
.pic-now { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.pic-now p { flex: 1 1 12rem; margin: 0; }
#pic-card h3 { margin-top: 1.4rem; }
/* the crew picker: real radio buttons, each a big card with the picture and its name */
.crew-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.crew-pick label { position: relative; cursor: pointer; }
.crew-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.crew-opt { display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; min-height: 44px; padding: .6rem .4rem; border-radius: 14px; border: 2px solid var(--field-line); background: var(--card); color: var(--ink); font-size: .9rem; line-height: 1.3; text-align: center; }
.crew-opt svg, .crew-opt img { width: 4rem; height: 4rem; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; object-fit: cover; }
.crew-pick input:checked + .crew-opt { background: var(--teal-soft); border-color: var(--link); color: var(--on-teal-soft); font-weight: 700; box-shadow: inset 0 0 0 1px var(--link); }
.crew-pick input:checked + .crew-opt::after { content: "✓"; position: absolute; top: .3rem; right: .55rem; font-weight: 800; }
.crew-pick input:focus-visible + .crew-opt { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-halo); }
.review .body { white-space: pre-wrap; margin-top: 6px; }
.hidden-note { background: var(--bad-bg); color: var(--bad-ink); padding: 2px 8px; border-radius: 8px; font-size: .85rem; }

/* --- forms --- */
label.f { display: block; margin-bottom: .9rem; }
label.f > span, .f-label { display: block; font-weight: 600; margin-bottom: 5px; }
fieldset.f-set { border: 0; padding: 0; margin: 0 0 .9rem; min-width: 0; }
fieldset.f-set > legend { font-weight: 600; margin-bottom: 5px; padding: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=month], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: .65rem .8rem; border: 2px solid var(--field-line); border-radius: 12px; font: inherit; background: var(--field); color: var(--ink);
}
::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--link); }
[aria-invalid="true"] { border-color: var(--bad-ink) !important; }
.pick { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.pick label { cursor: pointer; position: relative; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .4rem .8rem; border-radius: 999px; border: 2px solid var(--field-line); background: var(--card); color: var(--ink); font-size: .95rem; }
.pick span::before { content: ""; display: inline-block; width: .9em; flex: none; }
.pick input[type=checkbox]:checked + span::before, .pick input[type=radio]:checked + span::before { content: "✓"; font-weight: 800; }
.pick input:checked + span { background: var(--teal-soft); border-color: var(--link); color: var(--on-teal-soft); font-weight: 700; }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-halo); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 9.5rem; }
.form-map { height: 300px; border-radius: 14px; margin: 8px 0 6px; z-index: 0; }
.star-pick { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: .9rem; border: 0; padding: 0; }
.star-pick label { position: relative; cursor: pointer; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick .s { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 2rem; line-height: 1; color: var(--star-off); border-radius: 10px; }
.star-pick label.on .s { color: var(--star); }
.star-pick input:focus-visible + .s { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 2px var(--focus-halo); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 6px; }
.error { background: var(--bad-bg); color: var(--bad-ink); padding: .65rem .75rem; border-radius: 12px; margin-bottom: .75rem; border: 2px solid var(--bad-ink); font-weight: 600; }
.error:empty { display: none; }
.ok { background: var(--ok-bg); color: var(--ok-ink); padding: .65rem .75rem; border-radius: 12px; margin-bottom: .75rem; }
.note { background: var(--sun-soft); color: var(--ink); padding: .65rem .75rem; border-radius: 12px; margin-bottom: .75rem; font-size: .95rem; }
.hp { position: absolute; left: -9999px; }

/* --- sheet (dialog) / toast --- */
.sheet { position: fixed; inset: 0; z-index: 2000; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { position: relative; background: var(--card); color: var(--ink); width: 100%; max-width: 33rem; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 1.25rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom)); border: 2px solid var(--card-border); }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-card { border-radius: 20px; } }
.sheet-card.photo { max-width: 1000px; background: #000; padding: 0; }
.sheet-card.photo img { width: 100%; max-height: 88vh; object-fit: contain; display: block; }
.sheet-card.photo .photo-close { position: absolute; top: 8px; right: 8px; background: #ffffff; color: #000000; border-color: #000000; }
.sheet-close { position: absolute; top: .6rem; right: .6rem; }
.sheet-card > h2:first-child, .sheet-card > .sheet-head, .sheet-card > .tabs { margin-right: 3rem; }
.sheet-card > h2.sr-only:first-child { margin: -1px; }
.tabs { display: flex; gap: 6px; margin-bottom: 1rem; background: var(--bg); padding: 4px; border-radius: 999px; border: 2px solid var(--field-line); }
.tabs button { flex: 1; min-height: 44px; padding: .5rem; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button[aria-pressed="true"], .tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); outline: 2px solid var(--coral-text); outline-offset: -2px; }
.tabs button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.toast { position: fixed; z-index: 3000; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--toast-bg); color: var(--toast-ink); padding: .7rem 1.1rem; border-radius: 22px; box-shadow: var(--shadow); width: max-content; max-width: calc(100vw - 32px); text-align: center; }

/* --- Display menu --- */
.display-btn svg { width: 1.3rem; height: 1.3rem; }
.opt-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row input { width: 1.6rem; height: 1.6rem; flex: none; accent-color: var(--btn-bg); margin: 0; }
.switch-row .hint { display: block; }

/* --- admin --- */
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr)); gap: .75rem; }
.queue .item { background: var(--bg); border-radius: 14px; overflow: hidden; border: 2px solid var(--card-border); }
.queue img { width: 100%; height: 170px; object-fit: cover; display: block; }
.queue .photo-btn { width: 100%; border-radius: 0; }
.queue .item > div { padding: .65rem; }
table.people { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.people td, table.people th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.scroll-x { overflow-x: auto; }

footer.foot { text-align: center; color: var(--muted); font-size: .9rem; padding: 1.5rem 1rem 2.5rem; }

/* --- admin: People screen --- */
.link-card { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; }
.link-card .big { font-size: 2rem; }
.link-card h2 { margin: 0; }
.chev { margin-left: auto; font-size: 1.6rem; color: var(--muted); line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; margin: 6px 0 14px; }
.stat { background: var(--card); border: 2px solid var(--field-line); border-radius: 14px; box-shadow: var(--shadow); padding: .75rem; text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-height: 44px; }
.stat b { display: block; font-family: var(--font); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }
.stat.on { border-color: var(--coral-text); background: var(--brand-soft); }
.stat.on span { color: var(--on-brand-soft); }
.people-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 4px; }
.people-tools input { flex: 1 1 12rem; min-width: 0; }
.people-tools select { width: auto; flex: none; }
.people-tabs { background: none; border: 0; padding: .6rem 0; margin-bottom: 4px; flex-wrap: wrap; overflow: visible; }
.people-list { padding: 6px; }
.person { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .75rem; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.person:last-child { border-bottom: 0; }
.person:hover { background: var(--bg); }
.person.off { opacity: .8; }
.person .avatar { flex: none; display: grid; place-items: center; }
.person .who { flex: 1; min-width: 0; }
.person .email { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
@media (max-width: 640px) {
  .person { flex-wrap: wrap; }
  .person .meta { order: 3; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 0 10px; align-items: flex-start; text-align: left; padding-left: 52px; }
}
.tag.super { background: var(--brand-soft); color: var(--on-brand-soft); }
.tag.you { background: var(--sun-soft); color: var(--on-sun-soft); }
.person-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.person-head h2 { margin: 0 0 2px; }
.person-head > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.avatar.big { flex: none; width: 3.5rem; height: 3.5rem; display: grid; place-items: center; font-size: 1.2rem; }
.sheet-card h3 { margin-top: 1.25rem; }
.pw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pw-row input { flex: 1 1 10rem; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.contrib { list-style: none; padding: 0; margin: 0; }
.contrib li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.danger-zone { margin-top: 1.4rem; padding: 4px .9rem .9rem; border: 2px solid var(--bad-ink); border-radius: 14px; }

/* Language switch (header). Each language name is written in its own language. */
.lang-switch { display: flex; align-items: center; padding: 2px; border: 2px solid var(--field-line); border-radius: 999px; background: var(--bg); }
.lang-switch button { min-height: 40px; min-width: 44px; padding: .3rem .7rem; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.lang-switch button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.2); outline: 2px solid var(--coral-text); outline-offset: -2px; }
.lang-switch button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
/* small phones: just offer the other language(s) */
@media (max-width: 480px) { .lang-switch button.on { display: none; } .lang-switch { padding: 0; } .lang-switch button { min-height: 40px; } }

/* --- free first (badges say "Free" in words, not just a colour) --- */
.chip.free-chip { background: var(--ok-bg); border-color: var(--ok-ink); color: var(--ok-ink); font-weight: 700; }
.chip.free-chip.on { background: var(--ok-ink); border-color: var(--ok-ink); color: var(--ok-bg); }
.tag.free { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-ink); font-weight: 700; }
.tag.price { background: var(--bg); color: var(--ink); border: 1px solid var(--field-line); }
.title-tags { margin: 0 0 6px; }
.pin-free {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%); pointer-events: none;
  background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-ink); border-radius: 8px;
  font-size: .72rem; font-weight: 700; line-height: 1.3; padding: 0 5px; white-space: nowrap;
}
.pin.is-free { border-color: var(--ok-ink); }
.result-summary { margin: 0; padding: .45rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); color: var(--ink); font-size: .92rem; }

/* list: sort menu and a share button on each card */
.list-head > div { min-width: 0; }
.sort { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ink); }
.sort select { width: auto; min-height: 44px; padding: .35rem .7rem; border-radius: 999px; font-size: .9rem; }
.card-row { position: relative; }
.card-row .place-card .body { padding-right: 2.9rem; }
.share-mini { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.popup-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 8px 0 0; }

/* share sheet */
.share-preview { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; font-size: .95rem; }
.share-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .5rem; margin: .9rem 0; }
.share-opts .btn { justify-content: flex-start; }
.share-link input { font-size: .9rem; }
.suggest .smart-go { font-weight: 600; }
.suggest .tag { font-size: .75rem; }

/* ---------- 22/10/2026: days out / places to stay, map buttons, quick review ---------- */
.mode-bar { display: flex; justify-content: center; padding: .5rem 1rem 0; background: var(--card); }
.mode-switch { display: inline-flex; padding: 3px; border: 2px solid var(--field-line); border-radius: 999px; background: var(--bg); }
.mode-switch button { min-height: 40px; padding: .3rem 1rem; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.mode-switch button.on { background: var(--card); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.2); outline: 2px solid var(--coral-text); outline-offset: -2px; }
.mode-switch button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.map-btns { position: absolute; z-index: 800; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.fab { position: fixed; z-index: 1002; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 6px 20px rgba(0,0,0,.28); border-radius: 999px; }
@media (max-width: 899px) {
  .toggle-view { left: 16px; transform: none; }
  .fab { right: 16px; }
}
/* each kind of place has its colour; the picture sits on a white disc so it's always clear */
.pin { background: var(--pc, var(--card)); }
.pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ffffff; }
.pick-places { display: flex; flex-direction: column; gap: 6px; }
.pick-place { display: flex; gap: .6rem; align-items: center; width: 100%; min-height: 52px; padding: .5rem .75rem; text-align: left; border-radius: 12px; border: 2px solid var(--field-line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.pick-place:hover { border-color: var(--coral); }
.pick-place .sub { display: block; font-size: .85rem; color: var(--muted); }
.menu-list { display: flex; flex-direction: column; gap: 6px; }
.menu-item { display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .5rem .9rem; border-radius: 12px; border: 2px solid var(--field-line); color: var(--ink); text-decoration: none; }
.menu-item span:not(.ic):not(.chev) { flex: 1; }
.menu-item:hover { border-color: var(--coral); }
.foot { text-align: center; line-height: 2; }

/* flags in the language switch */
.flag { display: inline-flex; width: 28px; height: 19px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.25); vertical-align: middle; }
.flag svg { width: 100%; height: 100%; }

/* show / hide password */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 3.2rem; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 40px; }
.pw-eye[aria-pressed="true"] { color: var(--link); }

/* ---------- review form ---------- */
.rev-form { background: var(--bg); border-radius: var(--radius); padding: 1rem; border: 2px solid var(--line); }
.rev-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: .4rem; }
.rev-progress span { display: block; height: 100%; background: var(--coral-text); transition: width .2s; }
.rev-card h3 { margin: .2rem 0 .4rem; }
.rev-card h3:focus { outline: none; }
.q-row { border: 0; margin: 0 0 .5rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.q-row legend { font-weight: 700; padding: 0; margin-bottom: .3rem; }
.pick.yn { margin-bottom: 0; }
.rev-bar-bottom { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 0 .25rem; background: var(--bg); border-top: 1px solid var(--line); margin-top: .5rem; z-index: 5; }
.hint.block { display: block; font-weight: 400; margin: .2rem 0 .3rem; }
.rev-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: .4rem 0; }
.rev-photo { position: relative; }
.rev-photo img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; display: block; }
.rev-photo button { position: absolute; top: 2px; right: 2px; min-width: 32px; min-height: 32px; padding: 0; }

/* face blur */
.sheet-card.blur { max-width: 44rem; }
.blur-stage { background: #000; border-radius: 12px; overflow: hidden; margin: .5rem 0; }
.blur-stage canvas { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; cursor: crosshair; touch-action: manipulation; }

/* what parents say */
.said-facts { list-style: none; padding: 0; margin: .3rem 0 .6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 4px 12px; }
.said-facts li.no b { text-decoration: line-through; text-decoration-thickness: 2px; }
.tag.phrase { background: var(--card); color: var(--ink); border: 1px solid var(--field-line); }
.tag.phrase.good { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-ink); }
.tag.phrase.bad { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-ink); }
.tag.rel { background: var(--sun-soft); color: var(--on-sun-soft); }
.fact-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fact-chip { font-size: .8rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--field-line); }
.fact-chip.yes { background: var(--ok-bg); color: var(--ok-ink); }
.fact-chip.no { background: var(--bad-bg); color: var(--bad-ink); }
.owner-badge { display: inline-block; margin: 0 0 .6rem; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--on-teal-soft); font-size: .9rem; font-weight: 700; }
.owner-reply { margin-top: 8px; padding: .5rem .75rem; border-left: 4px solid var(--link); background: var(--bg); border-radius: 0 10px 10px 0; }
.stay-note { font-weight: 700; }

/* hidden means hidden, even on buttons and cards with their own display */
[hidden] { display: none !important; }

/* a place's average stars, under its pin */
.pin-stars { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--field-line); border-radius: 8px; font-size: .72rem; font-weight: 700; line-height: 1.3; padding: 0 5px; white-space: nowrap; }

/* header (22/10/2026): name on the left with Menu and Sign in on the right; search on its own row
   with the language flags and Display (accessibility) beside it */
.top { flex-direction: column; align-items: stretch; gap: .5rem; flex-wrap: nowrap; }
.top-row { display: flex; align-items: center; gap: .6rem; }
.top-row .top-actions { margin-left: auto; flex-wrap: nowrap; }
.search-row { display: flex; align-items: center; gap: .5rem; }
.search-row .search { flex: 1 1 auto; flex-basis: auto; max-width: none; min-width: 0; order: 0; }
.search-row .lang-switch, .search-row .display-btn { flex: none; }
.top-actions .btn { white-space: nowrap; }

/* Add a place: the business details, folded away */
.more-details { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.more-details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--link); }
.more-details[open] > summary { margin-bottom: .5rem; }
