/* Art de Vivre — Explorer map page + Leaflet chrome.
   Loaded only on /map.html. Palette mirrors main.css tokens. */

.adv-explorer {
  --pin-listing:    #c69a4d;
  --pin-listing-hi: #f4c93a;
  --pin-rent:       #2f9e6b;
  --pin-experience: #7c5cbf;
  --pin-beach:      #1f8fc9;
  --pin-restaurant: #b1571d;
  --pin-todo:       #2f8f9d;
  --pin-culture:    #b8436c;
  --pin-building:   #4a7e9a;
  background: var(--c-ink, #0b0c0e);
  color: var(--c-bone, #faf6ee);
  padding: calc(var(--header-h, 108px) + 3.2rem) 0 5rem;
}

.adv-explorer .wrap { width: var(--container, min(1320px, 92vw)); margin: 0 auto; }

/* Home-page embed: normal section spacing (no fixed-header offset) + a
   shorter map and a centred CTA below it. */
.adv-explorer--home { padding: clamp(4rem, 8vw, 7rem) 0; }
.adv-explorer--home #adv-explorer-map { height: clamp(420px, 56vh, 600px); }
.adv-explorer-head .adv-explorer-h2 {
  font-family: var(--f-display, serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 0.7rem;
}
.adv-explorer-head .adv-explorer-h2 .it { font-family: var(--f-italic, serif); font-style: italic; color: var(--c-gold-soft, #d9bb82); }
.adv-explorer-cta { margin-top: 1.7rem; text-align: center; }

.adv-explorer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin: 0 0 1.8rem;
}
.adv-explorer-head > .adv-explorer-kicker,
.adv-explorer-head > h1,
.adv-explorer-head > p { grid-column: 1; max-width: 62ch; }
.adv-explorer-head .author-byline {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  justify-self: end;
  margin: 0;
  max-width: 320px;
}
.adv-explorer-head .author-byline__meta { margin-left: 0; width: 100%; opacity: 0.7; }
.adv-explorer-kicker {
  font-family: var(--f-sans);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  color: var(--c-gold, #c69a4d);
  margin: 0 0 0.9rem;
}
.adv-explorer-head h1 {
  font-family: var(--f-display, serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.04;
  margin: 0 0 0.7rem;
}
.adv-explorer-head h1 .it { font-family: var(--f-italic, serif); font-style: italic; color: var(--c-gold-soft, #d9bb82); }
.adv-explorer-head p {
  font-family: var(--f-serif, serif);
  font-size: var(--s-lead, 1.2rem);
  line-height: 1.5;
  color: rgba(250, 246, 238, 0.78);
  margin: 0;
}
@media (max-width: 860px) {
  .adv-explorer-head { display: block; max-width: 60ch; }
  .adv-explorer-head .author-byline { max-width: none; margin-top: 1.2rem; justify-self: start; }
  .adv-explorer-head .author-byline__meta { margin-left: auto; width: auto; }
}

/* ---- map frame ---- */
.adv-explorer-stage {
  position: relative;
  width: 100%;
  border: 2px solid rgba(244, 201, 58, 0.85);
  border-radius: 14px;
  overflow: hidden;
  outline: 1px solid rgba(255, 138, 170, 0.45);
  outline-offset: 3px;
  box-shadow:
    0 0 0 1px rgba(214, 187, 130, 0.35) inset,
    0 30px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 38px -8px rgba(255, 138, 170, 0.35);
}
/* Sunset pink wash — 5% tint over the satellite tiles, sits above the map
   pane but below Leaflet controls (z-index 800+), so legend/zoom still work. */
.adv-explorer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255, 140, 175, 0.07), rgba(255, 175, 130, 0.05));
  pointer-events: none;
  z-index: 400;
  mix-blend-mode: screen;
}
#adv-explorer-map {
  height: clamp(520px, 80vh, 900px);
  width: 100%;
  background: #0c141f;
  z-index: 1;
}

/* Three yellow hand cursors, 40x40 SVGs, fall back to system equivalents:
     1. OPEN HAND — over the empty map drag-surface (default state)
     2. POINTING INDEX FINGER — over anything clickable (pins, popup links,
        legend rows). The finger visibly extends so users know "this is hot".
     3. CLOSED GRABBING FIST — while the map is being dragged. */
#adv-explorer-map,
#adv-explorer-map .leaflet-container,
#adv-explorer-map .leaflet-grab,
#adv-explorer-map.leaflet-grab {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='%23f4c93a' stroke='%232a1c05' stroke-width='1' stroke-linejoin='round' stroke-linecap='round'><path d='M8 14V6a1.5 1.5 0 0 1 3 0v6'/><path d='M11 10V4.5a1.5 1.5 0 0 1 3 0V10'/><path d='M14 10V6a1.5 1.5 0 0 1 3 0v6'/><path d='M17 8a1.5 1.5 0 0 1 3 0v8a6 6 0 0 1-6 6h-2a6 6 0 0 1-5.7-4.1l-2.2-6.4a1.5 1.5 0 0 1 2.8-1L9 14'/></svg>") 10 2, grab !important;
}
/* Pointing finger — only on actually-clickable map elements. Index fingertip
   is at (~9, 2) in viewBox, which is the cursor hotspot (~15, 3 in 40px). */
#adv-explorer-map .leaflet-interactive,
#adv-explorer-map .leaflet-marker-icon,
#adv-explorer-map .adv-pin-wrap,
#adv-explorer-map .adv-pin-wrap *,
#adv-explorer-map .leaflet-popup a,
#adv-explorer-map .leaflet-popup button,
#adv-explorer-map .leaflet-popup-close-button,
#adv-explorer-map .advp-cta,
#adv-explorer-map .adv-legend-row,
#adv-explorer-map .adv-legend-row * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='%23f4c93a' stroke='%232a1c05' stroke-width='1' stroke-linejoin='round' stroke-linecap='round'><path d='M8 14V2a1.5 1.5 0 0 1 3 0v10'/><path d='M11 11V9a1.5 1.5 0 0 1 3 0v3'/><path d='M14 11V10a1.5 1.5 0 0 1 3 0v3'/><path d='M17 10a1.5 1.5 0 0 1 3 0v6a6 6 0 0 1-6 6h-2a6 6 0 0 1-5.7-4.1l-2.2-6.4a1.5 1.5 0 0 1 2.8-1L9 14'/></svg>") 15 3, pointer !important;
}
#adv-explorer-map .leaflet-dragging,
#adv-explorer-map.leaflet-dragging .leaflet-grab,
#adv-explorer-map .leaflet-dragging .leaflet-grab {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='%23f4c93a' stroke='%232a1c05' stroke-width='1' stroke-linejoin='round' stroke-linecap='round'><path d='M7 12V8.5a1.5 1.5 0 0 1 3 0V11'/><path d='M10 11V7.5a1.5 1.5 0 0 1 3 0V11'/><path d='M13 11V8.5a1.5 1.5 0 0 1 3 0V12'/><path d='M16 10.5a1.5 1.5 0 0 1 3 0V16a6 6 0 0 1-6 6h-2a6 6 0 0 1-5.7-4.1l-2.2-6.4a1.5 1.5 0 0 1 2.8-1L8 14'/></svg>") 12 8, grabbing !important;
}
.adv-explorer-attrib {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 500;
  font-family: var(--f-sans);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(11, 16, 24, 0.55);
  padding: 0.25rem 0.6rem;
  border-top-right-radius: 8px;
  pointer-events: none;
}

/* ---- markers ---- */
.adv-pin-wrap { background: none; border: 0; }
.adv-pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.92);
  transition: transform 0.12s var(--ease, ease);
}
.adv-pin svg {
  width: 15px; height: 15px;
  transform: rotate(45deg);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adv-pin--listing    { background: linear-gradient(150deg, #f4c93a, #c69a4d); }
.adv-pin--listing svg { stroke: #2a1c05; }
.adv-pin--rent       { background: linear-gradient(150deg, #4cbf83, #2f9e6b); }
.adv-pin--experience { background: linear-gradient(150deg, #9a78d8, #7c5cbf); }
.adv-pin--beach      { background: linear-gradient(150deg, #45b3e6, #1f8fc9); }
.adv-pin--restaurant { background: linear-gradient(150deg, #d2752f, #b1571d); }
.adv-pin--todo       { background: linear-gradient(150deg, #3aa9bc, #2f8f9d); }
.adv-pin--culture    { background: linear-gradient(150deg, #d56a92, #b8436c); }
.adv-pin--building   { background: linear-gradient(150deg, #6aa1bd, #4a7e9a); }
.adv-pin-wrap:hover .adv-pin { transform: rotate(-45deg) scale(1.14); }

/* ---- legend control (bottom-right, slightly enlarged) ---- */
.adv-legend {
  background: rgba(12, 18, 28, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(214, 187, 130, 0.32);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  color: var(--c-bone, #faf6ee);
  font-family: var(--f-sans);
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.75);
  min-width: 208px;
}
.adv-legend-title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--c-gold-soft, #d9bb82);
  margin-bottom: 0.7rem;
}
.adv-legend-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0;
  cursor: pointer;
  font-size: 0.98rem;
}
.adv-legend-row input { accent-color: var(--c-gold, #c69a4d); cursor: pointer; margin: 0; width: 15px; height: 15px; }
.adv-legend-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.85); flex: none; }
.adv-legend-dot--listing    { background: #e8b73d; }
.adv-legend-dot--rent       { background: #37ab74; }
.adv-legend-dot--experience { background: #8a68cf; }
.adv-legend-dot--beach      { background: #2fa3da; }
.adv-legend-dot--restaurant { background: #c2641f; }
.adv-legend-dot--todo       { background: #2f8f9d; }
.adv-legend-dot--culture    { background: #cf6692; }
.adv-legend-dot--building   { background: #6aa1bd; }
.adv-legend-label { flex: 1; }
.adv-legend-count { color: rgba(250,246,238,0.55); font-variant-numeric: tabular-nums; font-size: 0.88rem; }

/* ---- legend collapse toggle (mobile only) ---- */
.adv-legend-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.adv-legend-title--toggle { margin: 0; }
.adv-legend-toggle-icon {
  flex: none;
  width: 14px; height: 14px;
  position: relative;
}
.adv-legend-toggle-icon::before,
.adv-legend-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 1.5px;
  background: var(--c-gold-soft, #d9bb82);
  transition: transform 0.2s ease;
}
.adv-legend-toggle-icon::before { transform: translate(-50%, -50%); }
.adv-legend-toggle-icon::after  { transform: translate(-50%, -50%) rotate(90deg); }
/* when expanded: collapse the + into a − */
.adv-legend:not(.adv-legend--collapsed) .adv-legend-toggle-icon::after {
  transform: translate(-50%, -50%);
}

/* ---- popups ---- */
.adv-popup .leaflet-popup-content-wrapper {
  background: var(--c-bone, #faf6ee);
  color: var(--c-ink, #0b0c0e);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.7);
}
.adv-popup .leaflet-popup-content { margin: 0; width: 264px !important; box-sizing: border-box; }
.adv-popup .leaflet-popup-tip { background: var(--c-bone, #faf6ee); }
.adv-popup a.leaflet-popup-close-button {
  color: rgba(11,12,14,0.55); top: 6px; right: 8px; font-size: 20px;
}
.adv-popup .advp-img {
  height: 116px;
  background-size: cover;
  background-position: center;
  background-color: #ddd2bd;
}
.adv-popup .advp-body { padding: 0.85rem 0.95rem 0.95rem; }
.adv-popup .advp-body--plain { padding-top: 0.95rem; }
.advp-kicker {
  font-family: var(--f-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6rem;
  color: var(--c-rust, #b1571d);
  margin-bottom: 0.28rem;
}
.advp-title {
  font-family: var(--f-display, serif);
  font-weight: 400;
  font-size: 1.22rem;
  line-height: 1.12;
  margin: 0 0 0.18rem;
  color: var(--c-ink, #0b0c0e);
}
.advp-meta { font-family: var(--f-sans); font-size: 0.78rem; color: rgba(11,12,14,0.6); }
.advp-price { font-family: var(--f-sans); font-weight: 600; font-size: 0.95rem; margin-top: 0.45rem; color: var(--c-ink); }
.advp-usd { font-weight: 400; color: rgba(11,12,14,0.55); }
.advp-specs { font-family: var(--f-sans); font-size: 0.76rem; color: rgba(11,12,14,0.62); margin-top: 0.25rem; }
.advp-says {
  font-family: var(--f-serif, serif);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0.55rem 0 0;
  color: rgba(11,12,14,0.82);
}
.advp-says span {
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-rust, #b1571d);
  display: inline-block;
  margin-right: 0.35rem;
}
.advp-blurb {
  font-family: var(--f-serif, serif);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.45rem 0 0;
  color: rgba(11,12,14,0.8);
}
.advp-actions { display: flex; gap: 0.45rem; margin-top: 0.7rem; flex-wrap: wrap; }
.advp-cta {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--c-ink, #0b0c0e);
  color: var(--c-sand, #f3ead9);
  margin-top: 0.7rem;
  transition: background 0.15s var(--ease, ease);
}
.advp-actions .advp-cta { margin-top: 0; }
.advp-cta:hover { background: var(--c-rust, #b1571d); }
.advp-cta--ghost { background: transparent; color: var(--c-ink, #0b0c0e); border: 1px solid rgba(11,12,14,0.25); }
.advp-cta--ghost:hover { background: rgba(11,12,14,0.06); color: var(--c-ink); }
.advp-cta--book { background: linear-gradient(150deg, #f4c93a, #c69a4d); color: #2a1c05; font-weight: 600; }
.advp-cta--book:hover { background: linear-gradient(150deg, #f7d35f, #d6a850); color: #2a1c05; }

/* Leaflet controls tuned to the dark frame */
.adv-explorer .leaflet-bar a {
  background: rgba(12,18,28,0.9);
  color: var(--c-bone, #faf6ee);
  border-bottom-color: rgba(214,187,130,0.25);
}
.adv-explorer .leaflet-bar a:hover { background: rgba(28,38,54,0.95); }
.adv-explorer .leaflet-control-attribution {
  background: rgba(11,12,14,0.55);
  color: rgba(255,255,255,0.6);
}
.adv-explorer .leaflet-control-attribution a { color: rgba(214,187,130,0.85); }

@media (max-width: 640px) {
  #adv-explorer-map { height: 68vh; }
  .adv-legend { min-width: 176px; padding: 0.7rem 0.8rem; }
  .adv-legend-row { font-size: 0.9rem; padding: 0.26rem 0; }
  .adv-legend-toggle { display: flex; }
  .adv-legend-body { margin-top: 0.5rem; }
  .adv-legend--collapsed .adv-legend-body { display: none; }
}

/* =====================================================================
   Expandable POI box (drawer) + crawlable guidebook
   The same `.poi-guide-body` markup renders inline in the dark guidebook
   AND cloned into the light drawer; colours come from per-context tokens
   (--poi-fg / --poi-muted / --poi-label / --poi-rule).
   ===================================================================== */

/* ---- the box / drawer ---- */
.adv-drawer[hidden] { display: none; }
.adv-drawer {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.adv-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 10, 16, 0.72);
  backdrop-filter: blur(3px);
}
.adv-drawer-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: min(88vh, 760px);
  display: flex; flex-direction: column;
  background: var(--c-bone, #faf6ee);
  color: var(--c-ink, #0b0c0e);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 110px -30px rgba(0, 0, 0, 0.85);
  animation: advDrawerIn 0.22s var(--ease, ease);
  --poi-fg: var(--c-ink, #0b0c0e);
  --poi-muted: rgba(11, 16, 24, 0.66);
  --poi-label: var(--c-rust, #b1571d);
  --poi-rule: rgba(11, 16, 24, 0.12);
}
@keyframes advDrawerIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.adv-drawer-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* When a place has no image, the inner content is first — drop it below the
   floating close button so the title doesn't sit under it. */
.adv-drawer-body .poi-guide-inner:first-child { padding-top: 2.8rem; }
.adv-drawer-close {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(12, 18, 28, 0.55); color: #fff;
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease, ease);
}
.adv-drawer-close:hover { background: rgba(12, 18, 28, 0.85); }
body.adv-drawer-open { overflow: hidden; }

/* ---- shared guide body (drawer + inline) ---- */
.poi-guide-body .poi-figure {
  height: clamp(170px, 30vh, 230px);
  background-size: cover; background-position: center;
  background-color: #ddd2bd;
}
.poi-guide-inner { padding: 1.15rem 1.3rem 1.5rem; }
.poi-kicker {
  font-family: var(--f-sans);
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.64rem; color: var(--poi-label, #b1571d);
  margin: 0 0 0.3rem;
}
.poi-name {
  font-family: var(--f-display, serif); font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.1;
  margin: 0 0 0.7rem; color: var(--poi-fg);
}
.poi-overview {
  font-family: var(--f-serif, serif);
  font-size: 1rem; line-height: 1.55;
  margin: 0 0 0.8rem; color: var(--poi-fg); opacity: 0.94;
}
.poi-block {
  border-top: 1px solid var(--poi-rule, rgba(11, 16, 24, 0.12));
  padding-top: 0.85rem; margin-top: 0.85rem;
}
.poi-block-label {
  font-family: var(--f-sans);
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.62rem; color: var(--poi-label); margin: 0 0 0.45rem;
}
.poi-block-text {
  font-family: var(--f-sans); font-size: 0.9rem; line-height: 1.5;
  margin: 0; color: var(--poi-muted);
}
.poi-tips { list-style: none; margin: 0; padding: 0; }
.poi-tips li {
  position: relative; padding-left: 1.1rem; margin-bottom: 0.42rem;
  font-family: var(--f-sans); font-size: 0.9rem; line-height: 1.45;
  color: var(--poi-muted);
}
.poi-tips li:last-child { margin-bottom: 0; }
.poi-tips li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--poi-label);
}
.poi-book .poi-cta {
  display: inline-block; margin-top: 0.75rem;
  font-family: var(--f-sans); font-size: 0.78rem; letter-spacing: 0.03em;
  text-decoration: none; padding: 0.6rem 1rem; border-radius: 999px;
  background: linear-gradient(150deg, #f4c93a, #c69a4d); color: #2a1c05;
  font-weight: 600; transition: filter 0.15s var(--ease, ease);
}
.poi-book .poi-cta:hover { filter: brightness(1.06); }

/* ---- the crawlable guidebook (dark) ---- */
.adv-guidebook {
  background: var(--c-ink, #0b0c0e);
  color: var(--c-bone, #faf6ee);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(214, 187, 130, 0.16);
  --poi-fg: var(--c-bone, #faf6ee);
  --poi-muted: rgba(250, 246, 238, 0.72);
  --poi-label: var(--c-gold-soft, #d9bb82);
  --poi-rule: rgba(214, 187, 130, 0.18);
}
.adv-guidebook .wrap { width: var(--container, min(1320px, 92vw)); margin: 0 auto; }
.adv-guidebook-head { max-width: 62ch; margin: 0 0 1.2rem; }
.adv-guidebook-head h2 {
  font-family: var(--f-display, serif); font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 2.9rem); line-height: 1.05;
  margin: 0 0 0.7rem;
}
.adv-guidebook-head h2 .it {
  font-family: var(--f-italic, serif); font-style: italic;
  color: var(--c-gold-soft, #d9bb82);
}
.adv-guidebook-head p {
  font-family: var(--f-serif, serif); font-size: var(--s-lead, 1.15rem);
  line-height: 1.5; color: rgba(250, 246, 238, 0.78); margin: 0;
}
.adv-guidebook-group { margin-top: 2.4rem; }
.adv-guidebook-grouptitle {
  font-family: var(--f-sans); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.74rem; color: var(--c-gold, #c69a4d);
  margin: 0 0 1rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(214, 187, 130, 0.2);
}
.adv-guidebook-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 0.8rem; align-items: start;
}

/* ---- accordion entry ---- */
.poi-guide {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(214, 187, 130, 0.16);
  border-radius: 12px; overflow: hidden;
}
.poi-guide[open] {
  border-color: rgba(214, 187, 130, 0.34);
  background: rgba(255, 255, 255, 0.045);
}
.poi-guide-head {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 0.85rem; cursor: pointer; list-style: none;
}
.poi-guide-head::-webkit-details-marker { display: none; }
.poi-guide-thumb {
  width: 52px; height: 52px; border-radius: 8px; flex: none;
  background-size: cover; background-position: center; background-color: #2a3340;
}
.poi-guide-heads { flex: 1; min-width: 0; }
.poi-guide-kicker {
  display: block; font-family: var(--f-sans);
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.6rem;
  color: var(--c-gold-soft, #d9bb82); margin-bottom: 0.15rem;
}
.poi-guide-name {
  display: block; font-family: var(--f-display, serif);
  font-size: 1.08rem; line-height: 1.15; color: var(--c-bone, #faf6ee);
}
.poi-guide-plus { flex: none; width: 22px; height: 22px; position: relative; }
.poi-guide-plus::before, .poi-guide-plus::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 11px; height: 1.5px; background: var(--c-gold, #c69a4d);
  transform: translate(-50%, -50%); transition: transform 0.2s var(--ease, ease);
}
.poi-guide-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.poi-guide[open] .poi-guide-plus::after { transform: translate(-50%, -50%) rotate(0); }

/* Inline, the summary already shows a thumb + name, so hide the body's
   duplicate figure/kicker/name (kept in the DOM for the drawer + crawlers). */
.adv-guidebook .poi-guide-body > .poi-figure { display: none; }
.adv-guidebook .poi-guide-inner { padding: 0 0.95rem 1.1rem; }
.adv-guidebook .poi-guide-inner > .poi-kicker,
.adv-guidebook .poi-guide-inner > .poi-name { display: none; }
.adv-guidebook .poi-guide-inner > .poi-overview:first-of-type { margin-top: 0.2rem; }

@media (max-width: 560px) {
  .adv-drawer { padding: 0; align-items: flex-end; }
  .adv-drawer-panel { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
}

/* ============================================================
   First-visit map tour
   ============================================================ */

.adv-explorer-tourlink { margin: 0.4rem 0 0; }

.adv-tour-trigger {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: transparent;
  border: 1px solid rgba(198,154,77,0.55);
  color: var(--c-gold-soft, #d9bb82);
  font-family: var(--f-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.adv-tour-trigger:hover, .adv-tour-trigger:focus-visible {
  background: var(--c-gold, #c69a4d);
  color: var(--c-ink, #0b0c0e);
  border-color: var(--c-gold, #c69a4d);
  outline: none;
}
.adv-tour-trigger-play {
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
  display: inline-block;
}

.adv-tour {
  position: fixed; inset: 0;
  z-index: 9000;
  pointer-events: auto;
}
.adv-tour[hidden] { display: none; }
.adv-tour-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,12,20,0.62);
  backdrop-filter: blur(2px);
}
.adv-tour-spotlight {
  position: absolute;
  top: 0; left: 0; width: 0; height: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(8,12,20,0.62),
              0 0 0 2px rgba(217,187,130,0.9),
              0 12px 40px rgba(0,0,0,0.45);
  transition: top 0.32s ease, left 0.32s ease, width 0.32s ease, height 0.32s ease, opacity 0.2s ease;
  pointer-events: none;
  opacity: 0;
}
.adv-tour.is-spotlit .adv-tour-backdrop { background: transparent; backdrop-filter: none; }
.adv-tour.is-spotlit .adv-tour-spotlight { opacity: 1; }

.adv-tour-card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, calc(100vw - 2.4rem));
  background: var(--c-ink-2, #14161a);
  color: var(--c-bone, #faf6ee);
  border: 1px solid rgba(217,187,130,0.22);
  border-radius: 14px;
  padding: 1.5rem 1.6rem 1.35rem;
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
  transition: left 0.32s ease, top 0.32s ease, transform 0.32s ease;
}
.adv-tour-card[data-pos="top"]    { top: 6.2rem; transform: translate(-50%, 0); }
.adv-tour-card[data-pos="bottom"] { top: auto; bottom: 6.2rem; transform: translate(-50%, 0); }

.adv-tour-step {
  font-family: var(--f-sans);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.66rem;
  color: var(--c-gold, #c69a4d);
  margin: 0 0 0.7rem;
}
.adv-tour-title {
  font-family: var(--f-display, serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.55rem;
  color: var(--c-bone, #faf6ee);
}
.adv-tour-body {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(250,246,238,0.86);
}
.adv-tour-body strong { color: var(--c-bone, #faf6ee); font-weight: 600; }
.adv-tour-body kbd {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  background: rgba(250,246,238,0.12);
  border: 1px solid rgba(250,246,238,0.18);
  border-radius: 4px;
  padding: 0.06rem 0.36rem;
  color: var(--c-bone, #faf6ee);
}
.adv-tour-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.95rem;
  margin: 0.1rem 0 0.85rem;
}
.adv-tour-sw {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-sans);
  font-size: 0.82rem;
  color: rgba(250,246,238,0.92);
}
.adv-tour-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  flex: none;
  display: inline-block;
}
.adv-tour-hint {
  display: block;
  font-style: italic;
  font-family: var(--f-serif, serif);
  font-size: 0.9rem;
  color: rgba(250,246,238,0.7);
}
.adv-tour-chip {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  color: #faf6ee;
}
.adv-tour-chip--restaurant { background: #c2641f; }
.adv-tour-chip--experience { background: #8a68cf; }
.adv-tour-chip--culture    { background: #cf6692; }
.adv-tour-chip--todo       { background: #2f8f9d; }
.adv-tour-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.adv-tour-nav { display: flex; gap: 0.55rem; }
.adv-tour-skip {
  background: transparent;
  border: 0;
  padding: 0.45rem 0.2rem;
  color: rgba(250,246,238,0.55);
  font-family: var(--f-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.adv-tour-skip:hover, .adv-tour-skip:focus-visible { color: var(--c-bone, #faf6ee); outline: none; }
.adv-tour-back, .adv-tour-next {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.adv-tour-back {
  background: transparent;
  color: var(--c-bone, #faf6ee);
  border-color: rgba(250,246,238,0.28);
}
.adv-tour-back:hover, .adv-tour-back:focus-visible { border-color: rgba(250,246,238,0.6); outline: none; }
.adv-tour-next {
  background: var(--c-gold, #c69a4d);
  color: var(--c-ink, #0b0c0e);
  border-color: var(--c-gold, #c69a4d);
}
.adv-tour-next:hover, .adv-tour-next:focus-visible {
  background: var(--c-gold-soft, #d9bb82);
  border-color: var(--c-gold-soft, #d9bb82);
  outline: none;
}

@media (max-width: 560px) {
  .adv-tour-card { padding: 1.25rem 1.2rem 1.1rem; }
  .adv-tour-card[data-pos="top"]    { top: 5rem; }
  .adv-tour-card[data-pos="bottom"] { bottom: 5rem; }
  .adv-tour-title { font-size: 1.18rem; }
  .adv-tour-body { font-size: 0.9rem; }
}
