/* ============================================================
   Horizon Villas — A Field Guide
   Shared stylesheet · editorial Aegean direction
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500&family=Archivo:wght@500;600&display=swap');

:root {
  --paper: #faf8f2;
  --paper-card: #fafaf6;
  --paper-edge: #e5e2d8;
  --ink: #0f2742;
  --ink-soft: #2a2a2a;
  --navy: #1b3a5c;
  --muted: #6b6b6b;
  --rule: #c9bfa8;
  --sand: #e8dfc9;
  --sand-line: #b8a983;
  --tint: rgba(27, 58, 92, 0.04);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, sans-serif;

  --wrap: 720px;
  --turn-ease-in: cubic-bezier(.7, 0, .84, .5);
  --turn-ease-out: cubic-bezier(.36, .16, .28, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ---------- Toolbar (sticky, every page) ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 0.5px solid var(--rule);
}
.toolbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.toolbar .brand {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand-logo { height: 30px; width: auto; display: block; }
.toolbar .navlinks { display: flex; gap: 20px; flex-wrap: wrap; }
.toolbar .navlinks a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.toolbar .navlinks a:hover,
.toolbar .navlinks a[aria-current="page"] { color: var(--navy); }

/* ---------- Wordmark strip ---------- */
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2.5rem 0;
}
.wordmark span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--navy);
  font-weight: 500;
}
.wordmark .line { flex: 1; height: 0.5px; background: var(--navy); opacity: 0.3; }

/* ---------- Hero banner ---------- */
.banner {
  background: var(--sand);
  border: 0.5px solid var(--rule);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
  aspect-ratio: 16 / 7;
}
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner .horizon {
  position: absolute; left: 0; right: 0; bottom: 38%;
  height: 0.5px; background: var(--sand-line);
}
.banner .ph {
  position: absolute; right: 16px; bottom: 12px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 2px; color: #8c7b5f;
}

/* ---------- Section opener ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
h1.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 0 2.5rem;
}

/* ---------- Section rule with label ---------- */
.barlabel {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1rem;
}
.barlabel .lab {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}
.barlabel .count {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.barlabel .fill { flex: 1; height: 0.5px; background: var(--rule); }

/* ---------- Toggle ---------- */
.toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  margin-bottom: 2.5rem;
}
.toggle button {
  background: none;
  border: none;
  padding: 18px 8px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}
.toggle button:hover { color: var(--navy); }
.toggle button.active { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Table of contents ---------- */
.toc { margin-bottom: 3rem; }
.toc-row {
  background: none;
  border: none;
  padding: 9px 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
}
.toc-row:hover .toc-name { color: var(--navy); }
.toc-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--navy);
  min-width: 34px;
}
.toc-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  transition: color 0.15s;
}
.toc-dots { flex: 1; border-bottom: 1px dotted rgba(201, 191, 168, 0.7); margin-bottom: 6px; }
.toc-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Entries ---------- */
.panel { animation: fadeIn 0.25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.entry { margin-bottom: 2.5rem; scroll-margin-top: 1.5rem; }
.entry .head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0.35rem;
}
.entry .head .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--navy);
  font-weight: 500;
}
.entry .head .name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}
.entry .metaline {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.entry .body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.note {
  background: var(--tint);
  border-left: 2px solid var(--navy);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0;
}
.note .lab {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.note .txt { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }

/* Copyable, code-like block (e.g. driver directions to paste into a delivery app).
   user-select:all makes a single tap/click select the whole block for easy copy. */
.copyblock {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-user-select: all;
  user-select: all;
}

.actions { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.actions a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* simple rule lists — pool rules, house rules */
.rulelist { list-style: none; margin: 0.25rem 0 1rem; padding: 0; }
.rulelist li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.rulelist li:last-child { margin-bottom: 0; }
.rulelist li::before {
  content: "·";
  position: absolute;
  left: 0.2rem;
  color: var(--navy);
  font-weight: 700;
}

.divider { height: 0.5px; background: var(--paper-edge); margin-bottom: 2rem; }

/* section breaks + headers (continuous-scroll pages: Utilities, Agios Ioannis) */
.section-break { height: 1px; background: var(--rule); margin: 56px 0 36px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--navy); }
.section-title { font-family: var(--serif); font-size: 32px; font-weight: 500; margin: 8px 0 6px; letter-spacing: -.01em; }
.section-intro { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.5; }

/* fact rows — what to do / best time / beach bar / hours / eat &amp; drink */
.facts { margin: 0.25rem 0 1rem; }
.facts .row { display: flex; gap: 14px; padding: 7px 0; border-top: 0.5px solid var(--paper-edge); }
.facts .row:first-child { border-top: none; }
.facts .k {
  font-family: var(--sans); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--navy); font-weight: 500;
  min-width: 124px; flex-shrink: 0; padding-top: 3px;
}
.facts .v { font-family: var(--serif); font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.facts .v a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* tag chips (brunch, drinks, beach bar) and price marker */
.tag {
  display: inline-block; font-family: var(--sans); font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy);
  border: 0.5px solid var(--rule); padding: 2px 8px; margin-left: 8px;
}
.price { font-family: var(--sans); font-size: 13px; letter-spacing: 2px; color: var(--navy); font-weight: 600; }
.price .pf { color: var(--navy); }
.price .pe { color: var(--rule); opacity: 0.55; }
.todo { color: #a3672d; font-style: italic; }

/* clickable business / place name → Google listing */
.entry .head .name a { color: inherit; text-decoration: none; }
.entry .head .name a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- KTEL schedule thumbnail → full-screen lightbox ----------
   Mirrors the .map-overlay convention: .open toggles display, aria-hidden
   tracks state, Esc / backdrop / ✕ all close (wired in script.js). */
.ktel-schedule { margin: 0.5rem 0 1rem; }
.ktel-thumb {
  display: inline-block; max-width: 360px; width: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  position: relative; font-family: inherit;
}
.ktel-thumb img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); border-radius: 4px;
}
.ktel-thumb__hint {
  display: block; margin-top: 0.35rem;
  font-family: var(--sans); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--navy); font-weight: 500;
}
.ktel-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(15, 39, 66, 0.9);
}
.ktel-lightbox.open { display: flex; }
.ktel-lightbox img {
  max-width: 100%; max-height: 90vh; height: auto;
  border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.ktel-lightbox__close {
  position: absolute; top: 1rem; right: 1.25rem;
  font-size: 2rem; line-height: 1; color: #fff;
  background: none; border: 0; cursor: pointer;
}

/* ---------- Integrated island map ---------- */
.mapbox { margin: 0 0 2.75rem; }
.mapstage {
  position: relative; width: 100%; line-height: 0;
  border: 0.5px solid var(--rule); background: var(--sand); overflow: hidden;
}
.mapstage img { display: block; width: 100%; height: auto; }
.mapstage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mapstage-edge { overflow: visible; }  /* edge markers / off-map arrows may extend past the frame */
.mpt { opacity: 0; pointer-events: none; transition: opacity 0.3s; cursor: pointer; }
.mpt.show { opacity: 1; pointer-events: auto; }
.mpt .dot { r: 30; fill: var(--ink); stroke: var(--paper); stroke-width: 6; transition: fill 0.15s, r 0.15s; }
.mpt:hover .dot { fill: var(--navy); r: 40; }
.mpt .lbl {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 60px; fill: var(--paper);
  paint-order: stroke; stroke: var(--ink); stroke-width: 11; stroke-linejoin: round;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.mpt:hover .lbl, .mpt.hl .lbl, .mpt.flash .lbl { opacity: 1; }
.mpt.hl .dot { fill: #d85a30; r: 40; }
@keyframes mflash { 0%, 100% { r: 30; fill: var(--ink); } 35% { r: 56; fill: #d85a30; } }
.mpt.flash .dot { animation: mflash 1s ease; }

/* Horizon Villas — special coral star marker (the "you are here" landmark) */
.mpt-home .hstar { fill: #d85a30; stroke: var(--paper); stroke-width: 6; transition: fill 0.15s, transform 0.15s; }
.mpt-home:hover .hstar { fill: #1b3a5c; }
.mpt-home .lbl { opacity: 1; fill: var(--paper); }

/* Off-map directional pointer (e.g. Pachia Ammos — a drive away) */
.mpt-arrow .arr { fill: var(--ink); stroke: var(--paper); stroke-width: 5; transition: fill 0.15s; }
.mpt-arrow:hover .arr { fill: var(--navy); }
.mpt-arrow .lbl { opacity: 1; }

/* Category icon markers (grocery / beach / beach bar / restaurant / café / bus) */
.mi .badge { fill: var(--ink); stroke: var(--paper); stroke-width: 5; transition: fill 0.15s; }
.mi:hover .badge { fill: var(--navy); }
.mi .ico { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.mi.flash .badge { animation: miflash 1s ease; }
@keyframes miflash { 0%, 100% { fill: var(--ink); } 35% { fill: #d85a30; } }
/* Horizon Villas — its own coral badge + horizon logo, label always on */
.mi-home .badge { fill: var(--paper); stroke: #d85a30; stroke-width: 6; }
.mi-home:hover .badge { fill: #fffdf8; }
.mi-home .lbl { opacity: 1; }
/* Edge / off-map beach pointers: Pachia Ammos (solid drive arrow), Agios Sostis (dotted) */
.mi .marr { fill: var(--ink); stroke: var(--paper); stroke-width: 4; }
.mi:hover .marr { fill: var(--navy); }
.mi .darr-line { fill: none; stroke: var(--ink); stroke-width: 6; stroke-dasharray: 1 11; stroke-linecap: round; }
.mi .darr-head { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }

/* ---------- Site-wide search (magnifier in toolbar → centered overlay) ---------- */
.search-open {
  background: none; border: none; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; padding: 2px; line-height: 0;
  transition: color 0.15s;
}
.search-open:hover { color: var(--navy); }
.search-open svg { width: 18px; height: 18px; display: block; }

.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 39, 66, 0.32);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 13vh 16px 16px;
  animation: srFade 0.15s ease;
}
.search-overlay[hidden] { display: none; }
@keyframes srFade { from { opacity: 0; } to { opacity: 1; } }
body.search-open-lock { overflow: hidden; }

.search-modal {
  width: 100%; max-width: 540px; background: var(--paper);
  border: 0.5px solid var(--rule); box-shadow: 0 24px 60px rgba(15, 39, 66, 0.30);
  max-height: 74vh; display: flex; flex-direction: column; overflow: hidden;
  animation: srRise 0.18s var(--turn-ease-out) both;
}
@keyframes srRise { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.search-modal input {
  border: none; border-bottom: 0.5px solid var(--rule); background: transparent; outline: none;
  font-family: var(--serif); font-size: 21px; color: var(--ink);
  padding: 16px 20px; width: 100%; box-sizing: border-box;
}
.search-modal input::placeholder { color: var(--muted); font-style: italic; }

.search-results { overflow-y: auto; display: none; }
.search-results.open { display: block; }
.sr-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: 11px 20px; text-decoration: none;
  border-bottom: 0.5px solid var(--paper-edge);
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.sel { background: var(--tint); }
.sr-title { font-family: var(--serif); font-size: 16px; color: var(--ink); line-height: 1.25; }
.sr-sub {
  font-family: var(--sans); font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.sr-empty {
  padding: 14px 20px; font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--muted);
}

.entry.flash { animation: eflash 1.5s ease; border-radius: 3px; }
@keyframes eflash {
  0%, 18% { background: rgba(216, 90, 48, 0.16); box-shadow: 0 0 0 6px rgba(216, 90, 48, 0.16); }
  100% { background: transparent; box-shadow: 0 0 0 6px transparent; }
}
.unsure { background: rgba(216, 90, 48, 0.18); box-shadow: 0 0 0 1px rgba(216,90,48,0.25); border-radius: 2px; padding: 0 2px; }

/* ---------- Welcome page: hero two-column ---------- */
.welcome-hero {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.contents-box { border-left: 0.5px solid var(--rule); padding-left: 1.5rem; }
.contents-box .where-lab {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  margin: 0.85rem 0 0.35rem;
}
.contents-box .where {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}

/* ---------- Welcome page: section previews (side by side) ---------- */
.preview {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.25rem;
  margin-bottom: 3.25rem;
  align-items: start;
}
.preview .pimg {
  display: block;
  background: var(--sand);
  border: 0.5px solid var(--rule);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.preview .pimg .horizon {
  position: absolute; left: 0; right: 0; bottom: 38%;
  height: 0.5px; background: var(--sand-line);
}
.preview .pimg .ph {
  position: absolute; right: 14px; bottom: 12px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 2px; color: #8c7b5f;
}
.preview .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview h2 { margin: 0 0 0.4rem; }
.preview h2 a {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  text-decoration: none;
}
.preview h2 a:hover { color: var(--navy); }
.preview .desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.preview .pdir { border-top: 0.5px solid var(--rule); padding-top: 0.75rem; }

/* contents / preview directory links shared with toc-row look */
.dir-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
}
.dir-link:hover .toc-name { color: var(--navy); }
.dir-link .toc-name { font-size: 14px; }

/* ---------- Footer ---------- */
.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-top: 0.5px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot a { color: var(--navy); text-decoration: none; }

/* ---------- Sound toggle (floating, bottom-right of viewport flow) ---------- */
.soundbar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: right;
}
.soundbtn {
  background: none;
  border: 0.5px solid var(--rule);
  border-radius: 2px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.soundbtn:hover { color: var(--navy); border-color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .welcome-hero { grid-template-columns: 1fr; gap: 1.75rem; }
  .contents-box { border-left: none; padding-left: 0; border-top: 0.5px solid var(--rule); padding-top: 1.25rem; }
  .preview { grid-template-columns: 1fr; gap: 1.25rem; }
  .preview .pimg { aspect-ratio: 16 / 9; }
  .toggle button { font-size: 11px; letter-spacing: 1px; padding: 16px 4px; }
  .toolbar-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .toolbar .navlinks { gap: 14px; }
}

/* ============================================================
   Mobile map (≤768px): collapsed preview → full-screen overlay.
   Inert on desktop (≥769px) — the inline labelled maps are untouched.
   ============================================================ */
.map-mini { display: none; }
.map-overlay { display: none; }

@media (max-width: 768px) {
  .mapbox .mapstage { display: none; }            /* hide the desktop inline map */
  .map-mini {
    display: block; position: relative; width: 100%; height: 120px;
    margin-bottom: 0.75rem; padding: 0; overflow: hidden; cursor: pointer;
    border: 0.5px solid var(--rule); border-radius: 8px; background: var(--sand);
    -webkit-tap-highlight-color: transparent;
  }
  .map-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .map-mini .mini-label {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(15, 39, 66, 0.30); color: #fff;
    font-family: var(--sans); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
  }
}

.map-overlay.open { display: flex; flex-direction: column; }
.map-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--paper); }
.map-ov-header {
  flex: 0 0 auto; height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px 0 16px; border-bottom: 0.5px solid var(--rule); background: var(--paper);
}
.map-ov-title { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.map-ov-close {
  width: 44px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.map-ov-chips {
  flex: 0 0 auto; display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto;
  background: var(--paper); border-bottom: 0.5px solid var(--rule); -webkit-overflow-scrolling: touch;
}
.map-chip {
  flex: 0 0 auto; font-family: var(--sans); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 13px; border: 0.5px solid var(--rule); border-radius: 999px;
  background: var(--paper); color: var(--ink-soft); cursor: pointer; white-space: nowrap;
}
.map-chip.active { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.map-ov-scroll {
  flex: 1 1 auto; position: relative; overflow: auto; -webkit-overflow-scrolling: touch; background: var(--sand);
  display: flex;   /* centre the map in the viewport (it's wider than tall, so it sits short vertically) */
}
/* margin:auto centres the map when it's smaller than the viewport, and collapses
   to 0 once zoomed past it — so panning still reaches every edge. */
.map-ov-scaler { position: relative; width: 100%; transform-origin: 0 0; margin: auto; flex: 0 0 auto; }
.map-ov-scaler img { display: block; width: 100%; height: auto; }
.map-ov-dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: #fff;
  border: 2px solid var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer; z-index: 2;
}
.map-ov-dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }  /* ~48px tap target */
.map-ov-dot.sel { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px rgba(15, 39, 66, 0.40); z-index: 3; }
.map-ov-dot.hide { display: none; }
.cat-beach   { background: #1b3a5c; }
.cat-rest    { background: #d85a30; }
.cat-cafe    { background: #8a6d3b; }
.cat-shop    { background: #5a7d5a; }
.cat-village { background: #6b5b95; }
.map-zoom { position: absolute; right: 12px; bottom: 16px; z-index: 6; display: flex; flex-direction: column; gap: 8px; }
.map-zoom button {
  width: 44px; height: 44px; border-radius: 50%; border: 0.5px solid var(--rule);
  background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 39, 66, 0.20); display: flex; align-items: center; justify-content: center;
}
.map-card {
  position: absolute; left: 12px; right: 12px; bottom: 120px; z-index: 7;
  background: var(--paper); border: 0.5px solid var(--rule); border-radius: 10px;
  padding: 14px 16px 16px; box-shadow: 0 8px 24px rgba(15, 39, 66, 0.22);
  transform: translateY(calc(100% + 132px)); transition: transform 0.22s ease;
}
.map-card.show { transform: translateY(0); }
.map-card .mc-name { font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 2px; }
.map-card .mc-sub  { font-family: var(--sans); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.map-card .mc-jump { font-family: var(--sans); font-size: 12px; letter-spacing: 0.5px; color: var(--navy); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 769px) {
  .map-overlay, .map-overlay.open { display: none !important; }   /* never on desktop */
  .map-mini { display: none !important; }
}

/* ============================================================
   One-thumb action buttons (Call / Map) — all screen sizes.
   Built by JS from each entry's existing tel: + Google Maps links;
   they sit at the end of the entry where the maps link used to be.
   ============================================================ */
.act-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.35rem; }
.act-btn {
  display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.5px; line-height: 1;
  color: var(--navy); text-decoration: none; cursor: pointer;
  padding: 8px 14px; min-height: 36px;
  border: 0.5px solid var(--rule); border-radius: 999px; background: var(--paper);
  -webkit-tap-highlight-color: transparent;
}
.act-btn:hover { border-color: var(--navy); background: var(--tint); }
.act-btn svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ============================================================
   Sticky section nav (≤768px) — long pages only. Inert on desktop.
   ============================================================ */
.sticky-nav, .sn-sheet { display: none; }

@media (max-width: 768px) {
  html { scroll-padding-top: 52px; }   /* clear the bar when jumping to anchors */
  .sticky-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
    background: var(--paper); border-bottom: 0.5px solid var(--rule);
    transform: translateY(-100%); transition: transform 0.2s ease;
  }
  .sticky-nav.show { transform: translateY(0); }
  .sn-name { font-family: var(--serif); font-size: 15px; color: var(--ink); flex: 0 0 auto; }
  .sn-spacer { flex: 1 1 auto; }
  .sn-btn {
    font-family: var(--sans); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--navy); background: none; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 6px;
  }
  .sn-sheet {
    display: block; position: fixed; top: 44px; left: 0; right: 0; z-index: 899;
    background: var(--paper); border-bottom: 0.5px solid var(--rule);
    max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 20px rgba(15, 39, 66, 0.14);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .sn-sheet.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .sn-link {
    display: block; width: 100%; text-align: left; background: none; border: none;
    border-bottom: 0.5px solid var(--paper-edge); cursor: pointer;
    font-family: var(--serif); font-size: 15px; color: var(--ink-soft); padding: 13px 16px;
  }
  .sn-link:last-child { border-bottom: none; }
}

@media (min-width: 769px) {
  .sticky-nav, .sn-sheet { display: none !important; }
}

/* ============================================================
   Collapsible sections & entries (≤768px) — Tinos + Utilities.
   Built by JS only when the page loads ≤768px; desktop stays identical.
   ============================================================ */
@media (max-width: 768px) {
  /* Tinos only (class set by JS): hide the tabs, show all panels — the
     accordion headers control visibility instead of the toggle. */
  .acc-on-tinos .toggle { display: none; }
  .acc-on-tinos .panel { display: block !important; }

  /* a collapsible region: a section body, a panel, or an entry body */
  .acc-region { overflow: hidden; max-height: 0; transition: max-height 0.32s ease; }
  .acc-region.acc-open { max-height: 100000px; }
  .acc-entry-body.acc-open { max-height: 20000px; }

  /* injected Tinos section header */
  .acc-sec-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; text-align: left; cursor: pointer; margin: 0;
    background: var(--paper); color: var(--ink);
    border: none; border-top: 0.5px solid var(--rule); border-bottom: 0.5px solid var(--rule);
    padding: 15px 4px; font-family: var(--serif); font-size: 21px;
  }
  /* Utilities section-head reused as the control */
  .section-head.acc-ctrl { cursor: pointer; }

  .acc-chev { font-family: var(--sans); font-size: 13px; color: var(--navy); flex: 0 0 auto; margin-left: 8px; transition: transform 0.2s ease; display: inline-block; }
  .acc-chev-e { font-family: var(--sans); font-size: 11px; color: var(--navy); margin-left: 8px; transition: transform 0.2s ease; display: inline-block; }
  [aria-expanded="true"] .acc-chev,
  [aria-expanded="true"] .acc-chev-e { transform: rotate(90deg); }

  .entry.acc > .head { cursor: pointer; }
}

@media (min-width: 769px) {
  .acc-sec-head, .acc-chev, .acc-chev-e { display: none !important; }
}

/* ============================================================
   Page-turn transition (cross-document View Transitions)
   Fires only on real navigations between .html pages.
   Browsers without support navigate instantly (graceful).
   ============================================================ */
@view-transition { navigation: auto; }

@keyframes turn-old {
  from { transform: perspective(2200px) rotateY(0deg); opacity: 1; }
  to   { transform: perspective(2200px) rotateY(-92deg); opacity: 0; }
}
@keyframes turn-new {
  from { transform: perspective(2200px) rotateY(90deg); opacity: 0; }
  to   { transform: perspective(2200px) rotateY(0deg); opacity: 1; }
}
::view-transition-old(root) {
  transform-origin: left center;
  animation: turn-old 0.42s var(--turn-ease-in) both;
}
::view-transition-new(root) {
  transform-origin: left center;
  animation: turn-new 0.5s var(--turn-ease-out) both;
  animation-delay: 0.34s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ── Idle weather vignette ───────────────────────────────── */
.wind-fx{
  position:fixed; inset:0; width:100vw; height:100vh;
  pointer-events:none; z-index:60; overflow:visible;
  --cloud:#57b6e6; --wf-navy:#1b3a5c; --wf-sun:#d99a4e; --wf-sun2:#c47e34;
}
.wind-fx .cloud-body{fill:var(--cloud);stroke:var(--wf-navy);stroke-width:2.4;stroke-linejoin:round;}
.wind-fx .cloud-curl{fill:none;stroke:var(--wf-navy);stroke-width:1.8;stroke-linecap:round;}
.wind-fx .ray{stroke:var(--wf-sun2);stroke-width:2.4;stroke-linecap:round;}
.wind-fx .ring,.wind-fx .ring2{fill:none;stroke:var(--wf-navy);stroke-width:2;opacity:0;transform-box:fill-box;transform-origin:center;}
.wind-fx .cloudgroup{opacity:0;}
.wind-fx .sun-grp{offset-path:path("M 120 500 Q 300 110 500 96");offset-rotate:0deg;offset-distance:0%;opacity:0;}

.wind-fx.play .cloudgroup{animation:wf-drift 2.6s linear forwards;}
.wind-fx.play .cg1{animation-delay:0s}
.wind-fx.play .cg2{animation-delay:.85s}
.wind-fx.play .cg3{animation-delay:1.7s}
.wind-fx.play .cg4{animation-delay:2.6s}
.wind-fx.play .cg5{animation-delay:3.4s}
@keyframes wf-drift{
  0%{transform:translateX(-400px);opacity:0}
  14%{opacity:.97}
  80%{opacity:.97}
  100%{transform:translateX(1360px);opacity:0}
}
.wind-fx.play .sun-grp{animation:wf-sunrise 5.4s cubic-bezier(.10,.66,.24,1) 5s forwards;}
@keyframes wf-sunrise{0%{offset-distance:0%;opacity:0}10%{opacity:1}100%{offset-distance:100%;opacity:1}}
.wind-fx.play .sun-core{animation:wf-poof .7s ease-out 10.4s forwards;transform-box:fill-box;transform-origin:center;}
@keyframes wf-poof{0%{transform:scale(1);opacity:1}45%{transform:scale(1.5);opacity:.85}100%{transform:scale(2.5);opacity:0}}
.wind-fx.play .ring{animation:wf-ring 1s ease-out 10.5s forwards;}
.wind-fx.play .ring2{animation:wf-ring 1.25s ease-out 10.65s forwards;}
@keyframes wf-ring{0%{transform:scale(.08);opacity:.5}100%{transform:scale(3.8);opacity:0}}
@media (prefers-reduced-motion: reduce){ .wind-fx{display:none;} }
