/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* New design system */
  --ink: #131211;
  --paper: #f3eee4;
  --paper-2: #ebe4d4;
  --paper-3: #e3dac5;
  --line: rgba(19,18,17,0.10);
  --line-2: rgba(19,18,17,0.20);
  --accent: #b8532b;
  --accent-ink: #5a2810;
  --mute: #6e655a;
  --display-font: 'Fraunces', Georgia, serif;
  --body-font: 'Inter', system-ui, sans-serif;
  --label-font: 'Inter', sans-serif;

  /* Legacy aliases — kept for backward compat */
  --red: var(--accent);
  --red-dark: var(--accent-ink);
  --red-light: #e8c4b0;
  --red-bg: #fdf0e8;
  --navy: #1a1a40;
  --blue: #003399;
  --text: var(--ink);
  --text-light: var(--mute);
  --cream: var(--paper);
  --border: var(--line-2);
  --green-light: #C7DFA5;
  --sidebar-bg: var(--paper-2);
}

body {
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Map canvas inside .hero-card */
#background-map {
  position: absolute;
  inset: 0;
  background: #f0f0ec;
}

/* --- Page container --- */
#page {
  max-width: 1360px;
  margin: 0 auto;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Top nav — sticky, full viewport width
   ========================================================================== */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topnav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 40px;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Hero — constrained to page width, with same horizontal padding as #content
   ========================================================================== */

.hero {
  padding: 28px 40px 0;
  position: relative;
}

/* Card — the actual visible image/map area */
.hero-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  height: min(675px, 75vh);
  background: var(--paper-3);
  box-shadow: 0 1px 0 var(--line);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Attribution link — bottom-left of hero card */
.hero-attribution {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
  z-index: 10;
}
.hero-attribution:hover { opacity: 1; color: #fff; text-decoration: none; }

/* Title block — sits at the bottom-left inside .hero-card */
.hero-title-block {
  position: absolute;
  bottom: 28px;
  left: 32px;
  right: 32px;
  z-index: 10;
  pointer-events: none;
}

/* Destination name — white over photo, dark over map */
.hero-title {
  font-family: var(--display-font);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.hero-title-block--dark .hero-title {
  color: var(--ink);
  text-shadow: none;
}

.hero-snippet {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(22px, 3.5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  margin-top: 10px;
}

/* ==========================================================================
   Content-area map / photo preview box
   ========================================================================== */

.content-preview {
  position: relative;
  margin: 0 0 20px 0;
  height: 200px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f0f0ec;
}

.content-preview.content-preview-expanded {
  height: 50vh;
}

/* Layers inside content preview (map, photo) — fill the box */
.content-preview-layer {
  position: absolute;
  inset: 0;
}

.content-photo-layer {
  background-size: cover;
  background-position: center;
}

/* Map / Photo toggle bar — bottom-right of content preview */
.content-toggle-bar {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 0;
  z-index: 1000;
}

.content-toggle-btn {
  background: rgba(255,255,255,0.88);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.18);
  padding: 3px 10px;
  font-size: 12px;
  font-family: var(--body-font);
  cursor: pointer;
  transition: background 0.15s;
}

.content-toggle-btn:first-child { border-radius: 4px 0 0 4px; }
.content-toggle-btn:last-child  { border-radius: 0 4px 4px 0; border-left: none; }

.content-toggle-btn:hover { background: #fff; color: var(--red); }

.content-toggle-btn.content-toggle-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red-dark);
}

/* Expand button — top-right of content preview */
.content-expand-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}
.content-expand-btn:hover { background: #fff; color: var(--red); }

.header-top {
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Search box in header */
.site-search-wrap {
  position: relative;
  flex: 0 1 280px;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  list-style: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 400px;
  overflow-y: auto;
}

.site-search-dropdown li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  gap: 8px;
}

.site-search-dropdown li a:hover,
.site-search-dropdown li.active a {
  background: var(--cream);
  color: var(--accent-ink);
  text-decoration: none;
}

.site-search-dropdown .search-result-type {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.site-search-dropdown .search-result-location {
  font-size: 11px;
}

.site-search-more a {
  color: var(--text-light) !important;
  font-style: italic;
  font-size: 12px !important;
  border-top: 1px solid #f0f0f0;
}

.site-search input[type="search"] {
  flex: 1;
  height: 28px;
  padding: 5px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  background: var(--paper-2);
  font-family: inherit;
  min-width: 0;
}

.site-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent-ink);
  background: #fff;
}

.site-search button {
  height: 28px;
  padding: 5px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 0 3px 3px 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.site-search button:hover {
  background: var(--red-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.nav-icon-button {
  width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1;
  text-decoration: none;
}

.nav-icon-button:hover {
  color: #fff;
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  text-decoration: none;
}

.nav-icon-button svg {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
}

.nav-issue-button {
  width: auto;
  padding: 0 10px;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.nav-issue-button svg {
  fill: none;
}

/* Search results page */
.search-page-form {
  margin-bottom: 12px;
  max-width: 640px;
}

.search-page-form input[type="search"] {
  width: 100%;
  padding: 14px 20px;
  font-size: 18px;
  border: 2px solid var(--paper-2);
  border-radius: 8px;
  font-family: var(--body-font);
  background: var(--paper);
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.search-page-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}

.search-count {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 24px;
}

.search-results {
  list-style: none;
  padding: 0;
  max-width: 640px;
}

.search-results li {
  border-bottom: 1px solid var(--paper-2);
}

.search-results li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.12s;
}

.search-results li a:hover { color: var(--accent); }

.search-result-title {
  font-size: 16px;
  font-weight: 500;
}

.search-result-location {
  font-size: 13px;
  color: var(--mute);
  flex: 1;
}

.search-result-type {
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--paper-2);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

.search-no-results {
  color: var(--mute);
  font-size: 15px;
  margin-top: 24px;
}

/* Logo */
.logo {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.logo:hover { text-decoration: none; color: var(--ink); }

.logo-name {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin: 0 1px;
  transform: translateY(-3px);
}

.logo small {
  font-family: var(--label-font);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--mute);
  font-weight: 500;
  margin-top: 3px;
}

/* Breadcrumbs — live inside topnav as a flex item */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  font-family: var(--label-font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
}

.breadcrumbs a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--accent-ink);
}

.breadcrumbs .sep {
  color: var(--mute);
  padding: 0 5px;
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Content layout — story left, sticky sidebar right
   ========================================================================== */

#content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-areas: "main sidebar";
  gap: 56px;
  align-items: start;
  padding: 48px 40px 24px;
  min-height: 500px;
}

#sidebar {
  grid-area: sidebar;
  width: auto;
  position: sticky;
  top: 80px;
  align-self: start;
  background: transparent;
  border-right: none;
  padding: 0;
}

#main {
  grid-area: main;
  min-width: 0;
  padding: 0;
}

/* ==========================================================================
   Sidebar — section nav (redesigned vertical nav for section pages)
   ========================================================================== */

.section-sidenav {
  margin-bottom: 24px;
}

.section-sidenav-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--label-font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  text-decoration: none;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  transition: color 0.1s;
}

.section-sidenav-parent:hover {
  color: var(--accent);
}

.section-sidenav-back {
  font-size: 14px;
  line-height: 1;
}

.section-sidenav-current {
  font-family: var(--display-font);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -0.02em;
  color: var(--accent);
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--line);
}

.section-sidenav-list {
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.section-sidenav-list.is-open {
  max-height: 800px;
}

.section-sidenav-list li {
  border-bottom: 1px solid var(--line);
}

.section-sidenav-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--label-font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  cursor: pointer;
  transition: color 0.1s;
}

.section-sidenav-toggle:hover {
  color: var(--accent);
}

.section-sidenav-toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 12px;
}

.section-sidenav-link {
  display: block;
  padding: 12px 0;
  font-family: var(--display-font);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.1s, padding-left 0.15s;
}

.section-sidenav-link:hover {
  color: var(--accent);
  padding-left: 6px;
}

.section-sidenav-link.is-active {
  color: var(--accent);
  font-weight: 500;
  padding-left: 6px;
  border-left: 3px solid var(--accent);
  margin-left: -3px;
}

/* ==========================================================================
   Sidebar — legacy section nav boxes
   ========================================================================== */

.sidebar-box {
  margin-bottom: 15px;
}

.sidebar-box-title {
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  padding: 8px 14px;
  background: var(--paper-2);
  position: relative;
  border-bottom: 1px solid var(--line);
}

.box-accent {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li a {
  display: block;
  padding: 5px 14px;
  font-family: var(--body-font);
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.1s;
}

.sidebar-nav li a:hover {
  background: var(--paper-2);
  text-decoration: none;
  color: var(--accent);
}

.sidebar-nav li.active a {
  background: var(--paper-3);
  color: var(--accent);
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}

.sidebar-nav li a strong {
  color: inherit;
}

.sidebar-nav li.more a {
  font-style: italic;
  color: var(--text-light);
  font-size: 11px;
}

/* Sidebar map card */
.sidebar-map-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.sidebar-map-head {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.sidebar-map-title {
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
  flex: 1;
}

.sidebar-map-expand {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--mute);
  padding: 0 0 0 8px;
  line-height: 1;
  transition: color 0.1s;
}

.sidebar-map-expand:hover {
  color: var(--accent);
}

.sidebar-map-canvas {
  height: 420px;
  background: var(--paper-3);
}

.mobile-map-slot {
  display: none;
}

.mobile-facts-slot,
.mobile-hero-map-slot,
.mobile-hero-facts-slot,
.hero-media-switch {
  display: none;
}

/* Expanded map: fixed overlay below the navbar */
.sidebar-map-card.sidebar-map-expanded {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* top is set dynamically via JS to sit below the navbar */
  z-index: 1000;
  margin: 0;
  border-radius: 0;
  border: none;
}

.sidebar-map-card.sidebar-map-expanded .sidebar-map-canvas {
  height: calc(100% - 41px);
}

/* ---- Map Explore page ---- */

.explore-page {
  background: #e8e0d8;
}

#explore-map {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Top bar */
#explore-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  height: 48px;
  box-sizing: border-box;
}

#explore-topbar-title {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.12s, border-color 0.12s;
}

.explore-btn:hover {
  background: var(--paper-2);
  border-color: var(--accent);
  color: var(--accent);
}

/* POI side drawer — slides in from the right */
#explore-drawer {
  position: fixed;
  top: 48px;        /* below topbar */
  right: 0;
  bottom: 0;
  width: 400px;
  z-index: 400;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -6px 0 32px rgba(0,0,0,0.14);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#explore-drawer.is-open {
  transform: translateX(0);
}

/* Close button sits at top-right of drawer */
#explore-drawer-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--mute);
  padding: 0;
  transition: color 0.12s, background 0.12s;
}

#explore-drawer-close:hover {
  color: var(--ink);
  background: var(--paper);
}

/* Hero image at the top, fixed aspect ratio */
#explore-drawer-img-wrap {
  flex: 0 0 220px;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}

#explore-drawer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#explore-drawer-img-wrap.no-image {
  display: none;
}

/* Scrollable content below image */
#explore-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 28px;
  -webkit-overflow-scrolling: touch;
}

#explore-drawer-title {
  margin: 0 32px 8px 0;  /* right margin avoids close button overlap */
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

/* Rendered markdown body */
#explore-drawer-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

#explore-drawer-content p { margin: 0 0 0.9em; }
#explore-drawer-content p:last-child { margin-bottom: 0; }
#explore-drawer-content a { color: var(--accent); }
#explore-drawer-content strong { font-weight: 600; }
#explore-drawer-content h2, #explore-drawer-content h3 {
  font-size: 14px; font-weight: 600; margin: 1em 0 0.3em;
}

/* Loading shimmer */
#explore-drawer-content.is-loading::after {
  content: '';
  display: block;
  height: 120px;
  background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%);
  background-size: 200% 100%;
  animation: drawer-shimmer 1.2s infinite;
  border-radius: 4px;
}

@keyframes drawer-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.explore-drawer-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* "Explore →" — prominent button below title */
.explore-drawer-drill-btn {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  margin: 8px 0 16px;
  transition: background 0.12s;
}

.explore-drawer-drill-btn:hover {
  background: var(--accent-dark, #8a3d20);
}

/* "Full page →" — quieter footer link */
.explore-drawer-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.12s;
}

.explore-drawer-read-more:hover {
  color: var(--accent-dark, #8a3d20);
}

/* Mobile: drawer comes from bottom, full width */
@media (max-width: 640px) {
  #explore-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 75vh;
    border-left: none;
    border-top: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -6px 32px rgba(0,0,0,0.14);
  }

  #explore-drawer.is-open {
    transform: translateY(0);
  }

  #explore-drawer-img-wrap {
    flex: 0 0 180px;
  }
}

/* Keep Leaflet zoom controls below the topbar */
.explore-page .leaflet-top.leaflet-left {
  top: 56px;
}

/* Shrink map pane when drawer is open so the map isn't hidden */
.explore-page.drawer-open #explore-map {
  right: 400px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
  .explore-page.drawer-open #explore-map {
    right: 0;
  }
}

/* Quick facts grid in sidebar */
.sidebar-quick-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.quick-fact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 12px 12px;
  text-align: center;
}

.quick-fact-value {
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}

.quick-fact-label {
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.score-profile-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.score-profile-eyebrow {
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.score-profile-verdict {
  font-family: var(--display-font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 7px;
}

.score-profile-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.score-profile-toggle:hover {
  color: var(--accent);
}

.score-profile-toggle-glyph {
  font-size: 12px;
}

.score-profile-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 320ms cubic-bezier(0.4,0,0.2,1);
}

.score-profile-rows {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.score-profile-row {
  padding: 9px 0 10px;
  border-bottom: 1px solid var(--line);
  outline: none;
}

.score-profile-row:focus-visible {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.score-profile-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.score-profile-row-name {
  font-family: var(--label-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 120ms ease;
}

.score-profile-row.is-active .score-profile-row-name {
  color: var(--accent);
}

.score-profile-row-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score-profile-row-rank {
  font-family: var(--label-font);
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--mute);
}

.score-profile-row-score {
  font-family: var(--display-font);
  font-size: 16px;
  color: var(--ink);
}

.score-profile-bar-track {
  height: 5px;
  background: var(--line-2);
  margin-top: 7px;
}

.score-profile-bar-fill {
  height: 5px;
  background: var(--ink);
  transition: background 120ms ease;
}

.score-profile-row.is-active .score-profile-bar-fill {
  background: var(--accent);
}

.score-profile-row-alts {
  margin-top: 8px;
}

.score-profile-row-alts-label {
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
}

.score-profile-row-alts .score-profile-chips {
  margin-top: 0;
}

.score-profile-similar {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}

.score-profile-similar-label {
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.score-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.score-profile-chip {
  font-family: var(--label-font);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 4px 8px;
  white-space: nowrap;
}

.score-profile-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.score-profile-chip--static {
  cursor: default;
}

.score-profile-chip--static:hover {
  border-color: var(--line-2);
  color: var(--ink);
}

.score-profile-chip-match {
  color: var(--mute);
}

.score-profile-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  font-family: var(--label-font);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.score-profile-footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}

.score-profile-footer a:hover {
  color: var(--accent);
}

.score-profile-body .score-profile-bar-fill {
  display: block;
  height: 100%;
}

/* Sidebar toggle — hidden on desktop */
.sidebar-toggle {
  display: none;
}

/* Mobile-only nav in sidebar — hidden on desktop */
.sidebar-mobile-nav {
  display: none;
}

/* ==========================================================================
   Main content area
   ========================================================================== */

#main h1 {
  font-family: var(--display-font);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

#main h1.page-title-hidden {
  display: none;
}

.title-sub {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}

#main h2 {
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 28px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

#main h3 {
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  margin: 20px 0 8px;
}

/* Hero image */
.hero-image {
  margin: 0 -25px 20px;
  line-height: 0;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article body */
.body-text {
  margin-top: 16px;
}
.body-text a {
  color: var(--accent);
  font-weight: 500;
}
.body-text a:hover { text-decoration: underline; }

.body-text p {
  margin-bottom: 14px;
}

.body-text strong {
  color: #222;
}

.body-text ul, .body-text ol {
  margin: 10px 0 14px 24px;
}

.body-text li {
  margin-bottom: 4px;
}

/* Page tagline — italic sentence above the body text */
.page-tagline {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
}

/* Snippet — short one-liner shown prominently on POI pages */
.page-snippet {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--mute);
  margin: 2px 0 28px;
}

/* Drop cap on first paragraph when a tagline is present */
.body-text--dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display-font);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  font-size: 4.2em;
  line-height: 0.82;
  color: var(--accent);
  margin: 0.06em 0.08em 0 0;
  letter-spacing: -0.02em;
}

/* Pull quote */
.pull-quote {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
}

/* Local tip callout */
.tip-box {
  background: var(--paper-2);
  border-radius: 4px;
  padding: 18px 20px;
  margin: 28px 0;
}

.tip-box-label {
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 8px;
}

.tip-box-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

/* Story box — historical anecdote on POI pages */
.story-box {
  background: #fdf8f0;
  border-left: 3px solid #c8a55a;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.story-box-label {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a7030;
  margin-bottom: 6px;
}

/* Info box — structured properties */
.info-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  margin: 16px 0;
  padding: 10px 14px;
  font-family: var(--body-font);
  font-size: 12px;
}

.info-box table {
  width: 100%;
  border-collapse: collapse;
}

.info-box th {
  text-align: left;
  padding: 3px 12px 3px 0;
  color: var(--text-light);
  font-weight: normal;
  text-transform: capitalize;
  white-space: nowrap;
  vertical-align: top;
  width: 120px;
}

.info-box td {
  padding: 3px 0;
  vertical-align: top;
}

.info-box a {
  color: var(--accent-ink);
}

/* ==========================================================================
   Maps
   ========================================================================== */

/* Legacy world-map selector (home page now uses .home-map) */
.world-map {
  height: 100%;
  background: #f0f0ec;
}

/* Map pin markers */
.w66-pin {
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.w66-pin.accent {
  background: var(--accent);
}

/* --- Map text labels --- */
.continent-label,
.map-label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
  white-space: nowrap;
}

/* All non-home map labels: black, just below the dot.
   Scoped under .leaflet-container to beat Leaflet's own a { color } rule. */
.leaflet-container .map-label a,
.leaflet-container .map-label span {
  display: inline-block;
  transform: translate(-50%, 1px);
  font-family: var(--display-font);
  font-variation-settings: "opsz" 144;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(9px, 0.9vw, 13px);
  color: #000;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 6px rgba(243,238,228,0.95), 0 0 16px rgba(243,238,228,0.8);
  opacity: 0.75;
  cursor: pointer;
}
.leaflet-container .map-label--highlight a { font-weight: 700; opacity: 0.90; }

/* Home continent map only — red, italic, centred (no dot) */
.leaflet-container .continent-label a {
  display: inline-block;
  transform: translate(-50%, -50%);
  font-family: var(--display-font);
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 44px);
  letter-spacing: -0.03em;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 6px rgba(243,238,228,0.95), 0 0 16px rgba(243,238,228,0.8);
  white-space: normal;
  opacity: 0.85;
  cursor: pointer;
}

/* Dot marking the exact coordinate — black with thin white ring */
.map-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  border: 1.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.map-dot--highlight {
  background: var(--accent);
  width: 10px;
  height: 10px;
}
.map-dot--grey {
  background: #aaa;
  width: 5px;
  height: 5px;
  border: none;
  box-shadow: none;
}
.map-dot--curbside {
  background: #bbb;
  width: 4px;
  height: 4px;
  border: none;
  box-shadow: none;
  opacity: 0.7;
}
.map-label--highlight .map-dot { background: var(--accent); width: 10px; height: 10px; }
/* Region centroids on a country map — a distinct blue so they read as areas,
   not destinations, and don't compete visually with the red city markers. */
.map-dot--region {
  background: #3a6ea5;
  width: 9px;
  height: 9px;
}
.leaflet-container .map-label--region a,
.leaflet-container .map-label--region span {
  color: #2c5580;
  font-style: italic;
  font-weight: 600;
  opacity: 0.9;
}

/* Transparent hit-area wrapper for dot-only markers.
   top/left offset centers the 16px box on the [0,0] icon anchor point. */
.map-dot-hit {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
/* Re-anchor the dot to the centre of the hit box */
.map-dot-hit .map-dot {
  top: 50%;
  left: 50%;
}

/* Invisible container for standalone dot markers */
.map-dot-wrap {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* Hover tooltip for marker names */
.map-name-tip {
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 500;
  background: rgba(243,238,228,0.96) !important;
  border: none !important;
  border-radius: 3px !important;
  color: #111 !important;
  padding: 2px 7px !important;
  box-shadow: 0 1px 5px rgba(0,0,0,0.18) !important;
  white-space: nowrap;
}
.map-name-tip::before { display: none !important; }

.map-name-tip--rich {
  white-space: normal !important;
  max-width: 280px !important;
  padding: 7px 11px !important;
}

.map-tip-name {
  display: block;
  font-weight: 600;
  color: #111;
}

.map-tip-link {
  color: inherit;
  text-decoration: none;
}
.map-tip-link:hover { text-decoration: underline; }

.map-tip-snippet {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 400;
  color: #555;
  margin-top: 4px;
  line-height: 1.45;
}

.country-tooltip {
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: bold;
}


/* Content image — float right like original */
.content-image {
  float: right;
  margin: 4px 0 16px 20px;
  max-width: 240px;
  border: 1px solid var(--border);
  padding: 3px;
  background: #fff;
}

.content-image img {
  display: block;
}

/* Destination list — multi-column like original */
.destinations-section {
  clear: both;
  margin-top: 24px;
}

.destination-columns {
  column-count: 3;
  column-gap: 16px;
}

.destination-columns a {
  display: block;
  padding: 3px 0;
  font-size: 14px;
  color: var(--accent-ink);
  break-inside: avoid;
}

.destination-columns a:hover {
  color: var(--red);
}

/* Wide blocks — full #page width with same horizontal padding as #content */
.wide-block {
  padding-left: 40px;
  padding-right: 40px;
}

/* Sections wrap — "Explore" heading + card grid */
.sections-row-wrap {
  padding-top: 48px;
  padding-bottom: 0;
}

/* Section cards — 3-column typographic grid for location pages */
.sections-row {
  display: grid;
  /* Lives in the main column now, not full width, so it reflows by available
     space rather than assuming three columns fit. */
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 0;
  margin-top: 0;
}

.section-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--paper);
  text-decoration: none;
  transition: background 0.15s;
  border-right: 1px solid var(--line);
}

.section-card:last-child {
  border-right: none;
}

.section-card:hover {
  background: var(--paper-2);
  text-decoration: none;
}

.section-card:hover .section-card-name {
  color: var(--accent);
}

.section-card-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-card-name {
  flex: 1;
  font-family: var(--display-font);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.15s;
}

.section-card-arrow {
  font-size: 18px;
  color: var(--mute);
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}

.section-card:hover .section-card-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* Shared section block heading — used by Destinations, Explore, Neighbourhoods */
/* Eyebrow label above section headings */
.section-kicker {
  display: block;
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.2px;
  line-height: 15.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  -webkit-font-smoothing: antialiased;
}

.section-block-heading {
  font-family: var(--display-font);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(184, 83, 43, 0.25);
}

.poi-section-title {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 83, 43, 0.25);
}

/* Neighbourhoods scroll strip */
.neighbourhoods-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.nbhd-strip-wrap {
  position: relative;
}

.nbhd-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.nbhd-strip::-webkit-scrollbar { display: none; }

.nbhd-strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: opacity 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.nbhd-strip-arrow--prev { left: -17px; }
.nbhd-strip-arrow--next { right: -17px; }

.nbhd-card {
  position: relative;
  flex: 0 0 200px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-3);
  text-decoration: none;
  display: block;
  scroll-snap-align: start;
}

.nbhd-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nbhd-card:hover img {
  transform: scale(1.04);
}

.nbhd-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.75) 100%);
}

.nbhd-txt {
  position: absolute;
  bottom: 14px;
  left: 13px;
  right: 13px;
  color: #fff;
}

.nbhd-name {
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Destination cards — top 9 scored locations as image cards */
.destinations-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.dest-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
  text-decoration: none;
  display: block;
}

.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.dest-card:hover img {
  transform: scale(1.04);
}

/* No-image card: warm parchment with ghost typographic name */
.dest-card--no-image {
  background: var(--paper-2);
}

.dest-card--no-image .dest-txt {
  color: var(--ink);
}

.dest-card--no-image .dest-veil {
  background: linear-gradient(180deg, transparent 30%, rgba(255,255,255,0.25) 100%);
}

.dest-card-cloud {
  position: absolute;
  inset: 0;
  padding: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
}

.dest-card-cloud-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 10px;
  overflow: hidden;
}
.dest-card-cloud-words:first-child { align-content: flex-end; }
.dest-card-cloud-words:last-child  { align-content: flex-start; }

.dest-card-cloud-words span {
  font-family: var(--display-font);
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(11px, 2.4cqi, 18px);
  color: var(--accent);
  opacity: 0.20;
  white-space: nowrap;
  transition: opacity 0.2s;
}

/* Size and opacity variation */
.dest-card-cloud-words span:nth-child(2n)  { font-size: clamp(15px, 3.5cqi, 26px); opacity: 0.28; font-weight: 600; }
.dest-card-cloud-words span:nth-child(3n)  { font-size: clamp(8px,  1.6cqi, 12px); opacity: 0.12; font-weight: 300; }
.dest-card-cloud-words span:nth-child(5n)  { font-size: clamp(18px, 4.5cqi, 34px); opacity: 0.14; font-weight: 700; }
.dest-card-cloud-words span:nth-child(7n)  { font-size: clamp(13px, 3cqi,   22px); opacity: 0.24; font-weight: 500; }
.dest-card-cloud-words span:nth-child(11n) { font-size: clamp(20px, 5cqi,   40px); opacity: 0.10; font-weight: 700; }

.dest-card-cloud-name {
  text-align: center;
  font-family: var(--display-font);
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-weight: 700;
  font-size: 64px;
  color: var(--accent);
  opacity: 0.18;
  pointer-events: none;
  white-space: normal;
  word-break: break-word;
  line-height: 1;
}

.dest-card--no-image:hover .dest-card-cloud-words span { opacity: 0.40; }
.dest-card--no-image:hover .dest-card-cloud-name { opacity: 0.28; }

.dest-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
}

.dest-txt {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #fff;
}

.dest-idx {
  font-family: var(--label-font);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 4px;
}

.dest-name {
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.dest-snippet {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dest-card-children {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 0;
}
.dest-card-children li {
  width: 50%;
  font-size: 11px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}
.dest-card-children-more {
  opacity: 0.45 !important;
  font-style: italic;
}

.dest-more {
  /* A single flat destination list (a country with no regions) flows into
     newspaper columns rather than one long wrapping row. */
  columns: 5 170px;
  column-gap: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dest-more-link {
  display: block;
  break-inside: avoid;
  margin-bottom: 6px;
  line-height: 1.4;
  font-family: var(--label-font);
  font-size: 15px;
  color: var(--accent-ink);
  text-decoration: none;
}

.dest-more-link:hover {
  color: var(--red);
}

/* Issue #2221: destinations grouped by region (country pages) */
.region-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.region-group-title {
  /* Reserve two lines and clamp, so a long region name wraps cleanly and every
     group's city list starts at the same height (keeps the grid tidy). */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  min-height: 2.1em;
  font-family: var(--label-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

a.region-group-title:hover {
  color: var(--red);
}

.region-group-title--plain {
  color: var(--muted-ink, var(--accent-ink));
}

.region-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.region-group-list li {
  margin: 0 0 5px;
  line-height: 1.35;
}

.region-group-list a {
  font-size: 15px;
  color: var(--accent-ink);
  text-decoration: none;
}

.region-group-list a:hover {
  color: var(--red);
}

.region-group-more a {
  font-family: var(--label-font);
  font-size: 13px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .region-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 20px;
  }
  .dest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* ==========================================================================
   Home page
   ========================================================================== */

/* Full-bleed hero with destination photo */
.home-hero-outer {
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.home-hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.50) 30%,
    rgba(0,0,0,0.16) 60%,
    rgba(0,0,0,0.00) 100%
  );
}

.home-hero-body {
  position: relative;
  padding: 0 64px;
  max-width: 620px;
}

.home-hero-title {
  font-family: var(--display-font);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 18px;
}

.home-hero-sub {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.70);
  margin: 0 0 36px;
  max-width: 420px;
}

.home-hero-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.20);
}

.home-hero-navlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-family: var(--display-font);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.01em;
  transition: color 0.15s, padding-left 0.2s;
}

.home-hero-navlink::after {
  content: '→';
  font-family: var(--body-font);
  font-size: 14px;
  opacity: 0.35;
  transition: opacity 0.15s, transform 0.2s;
}

.home-hero-navlink:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 6px;
}

.home-hero-navlink:hover::after {
  opacity: 0.8;
  transform: translateX(4px);
}

/* Section headings above continent grid and story grid */
.home-section-label {
  font-family: var(--display-font);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 8px;
  border-bottom: none;
}

.home-section-sub {
  font-size: 14px;
  color: var(--mute);
  margin: 0 0 28px;
}
.home-section-sub a { color: var(--accent); text-decoration: none; }
.home-section-sub a:hover { text-decoration: underline; }

.map-mode-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  background: var(--paper);
  border: none;
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--label-font);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}

.map-mode-btn:hover {
  background: var(--paper-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.map-fullscreen-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 950;
  background: var(--paper);
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--label-font);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}

.map-fullscreen-btn:hover {
  background: var(--paper-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.map-fullscreen-logo {
  display: none;
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 960;
  font-family: var(--display-font);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(255,255,255,0.78);
}

.map-fullscreen-logo:hover {
  color: var(--ink);
  text-decoration: none;
}

.map-fullscreen-logo span {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin: 0 0.05em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.08em;
}

/* Continent cards section */
.home-continents-section {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 64px;
  padding-bottom: 0;
}

.home-continent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-continent-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.home-continent-stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-continent-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.home-continent-card:hover .home-continent-img { transform: scale(1.04); }

.home-continent-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.10) 30%,
    rgba(0,0,0,0.65) 70%,
    rgba(0,0,0,0.82) 100%);
}

.home-continent-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 20px 22px;
}

.home-continent-name {
  font-family: var(--display-font);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  margin-bottom: 10px;
}

.home-continent-countries {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.home-continent-countries li {
  width: 50%;
  font-size: 12px;
  padding: 2px 8px 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-continent-countries li a {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  position: relative;
  z-index: 3;
  transition: color 0.15s;
}

.home-continent-countries li a:hover {
  color: #fff;
  text-decoration: underline;
}

.home-continent-more {
  color: rgba(255,255,255,0.42) !important;
  font-style: italic;
}

/* Story POI cards */
.home-stories-section {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 56px;
  padding-bottom: 80px;
}

.home-story-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.home-story-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border-radius: 4px;
  padding: 22px 18px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
  min-height: 320px;
}

.home-story-card:hover {
  background: #ddd5c0;
  text-decoration: none;
  color: var(--ink);
}

.home-story-title {
  font-family: var(--display-font);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}

.home-story-text {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(19,18,17,0.60);
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  margin-bottom: 14px;
}

.home-story-location {
  font-family: var(--label-font);
  font-size: 10px;
  color: var(--mute);
  margin-top: auto;
}

/* Destinations map */
.home-cities-section {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 56px;
  padding-bottom: 80px;
}

.home-widget-head {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.home-view-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-view-pill {
  border: 1px solid rgba(19,18,17,0.16);
  border-radius: 999px;
  background: rgba(255,250,241,0.78);
  color: var(--ink);
  padding: 8px 14px;
  font: 600 13px var(--label-font);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(19,18,17,0.04);
}

.home-view-pill:hover {
  background: #fffaf1;
}

.home-view-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.home-widget-panel {
  display: none;
}

.home-widget-panel.active {
  display: block;
}

.home-city-map-wrap {
  position: relative;
  height: 560px;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.home-city-map-wrap:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: none;
}

.home-city-map-wrap:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: none;
}

.home-city-map-wrap:fullscreen .map-fullscreen-logo,
.home-city-map-wrap:-webkit-full-screen .map-fullscreen-logo {
  display: block;
}

.home-city-map-wrap:fullscreen #city-map,
.home-city-map-wrap:-webkit-full-screen #city-map {
  border-radius: 0;
}

#city-map {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

#city-map canvas {
  display: block;
}

#city-map.is-exploring-globe canvas {
  cursor: grab;
  touch-action: none;
}

#city-map.is-exploring-globe canvas:active {
  cursor: grabbing;
}

.home-travel-line {
  filter: drop-shadow(0 1px 2px rgba(90,40,16,0.28));
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-city-card-panel {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 256px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 900;
}

.home-city-card-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-city-card-panel .city-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-city-card-panel .city-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.city-card-photo {
  position: relative;
  height: 172px;
  overflow: hidden;
}

.city-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-city-card-panel:hover .city-card-photo img {
  transform: scale(1.035);
}

.city-card-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.38) 48%,
    rgba(0,0,0,0.08) 100%
  );
}

.city-card-title-block {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}

.city-card-body {
  padding: 14px 16px 15px;
}

.city-card-name {
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 4px;
}

.city-card-country {
  font-family: var(--label-font);
  font-size: 11px;
  color: rgba(255,255,255,0.84);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.city-card-snippet {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

/* Widget gallery */
.widgets-page {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 64px;
  padding-bottom: 96px;
}

.widgets-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.widgets-title {
  font-family: var(--display-font);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 16px;
  border: none;
}

.widgets-intro {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(19,18,17,0.68);
  margin: 0;
}

.widget-builder {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}

.widget-builder-copy h2 {
  font-family: var(--display-font);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 34px;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 10px;
  border: none;
}

.widget-builder-copy p {
  color: rgba(19,18,17,0.66);
  line-height: 1.5;
  margin: 0 0 22px;
}

.widget-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.widget-controls label,
.widget-embed-label {
  display: grid;
  gap: 6px;
  font-family: var(--label-font);
  font-size: 12px;
  font-weight: 600;
  color: rgba(19,18,17,0.62);
}

.widget-controls input,
.widget-controls select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(19,18,17,0.18);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--ink);
  padding: 9px 10px;
  font: 14px var(--body-font);
}

.widget-controls label:first-child {
  grid-column: 1 / -1;
}

.widget-embed-code {
  width: 100%;
  min-height: 118px;
  box-sizing: border-box;
  margin-top: 6px;
  border: 1px solid rgba(19,18,17,0.18);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--ink);
  padding: 12px;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.widget-platform-help {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.widget-platform-help a {
  color: var(--accent);
  font-family: var(--label-font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.widget-platform-help a:hover {
  text-decoration: underline;
}

.widget-preview {
  min-width: 0;
}

.widget-preview iframe {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

@media (max-width: 900px) {
  .home-hero-outer { padding: 0 16px; }
  .home-hero-body { padding: 0 24px; max-width: 100%; }
  .home-continent-grid { grid-template-columns: repeat(2, 1fr); }
  .home-story-grid { grid-template-columns: repeat(2, 1fr); }
  .home-widget-head { display: grid; gap: 16px; }
  .home-city-map-wrap { height: 400px; }
  .widget-builder { grid-template-columns: 1fr; }
  .wide-block { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-page { }

/* Override #main h1/h2/h3 colour for dark about sections */
#main .about-hero-heading      { color: var(--paper); border-bottom: none; margin: 0 0 24px; font-size: clamp(28px, 3vw, 40px); }
#main .about-section-heading   { color: var(--ink); border-bottom: none; margin: 0 0 28px; font-size: clamp(28px, 3.5vw, 44px); }
#main .about-contribute-title  { color: var(--paper); border-bottom: none; margin: 0 0 16px; font-size: clamp(32px, 4vw, 52px); }
#main .about-step-title        { color: var(--paper); border-bottom: none; margin: 0 0 12px; font-size: 20px; }

/* Hero: text left, destination photo right */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--ink);
}

.about-hero-text {
  padding: 80px 56px 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-kicker {
  font-family: var(--label-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-hero-text p {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(243,238,228,0.65);
  margin-bottom: 18px;
  max-width: 520px;
}

.about-hero-belief {
  font-family: var(--display-font);
  font-style: italic;
  font-size: 20px !important;
  font-variation-settings: "opsz" 144;
  color: var(--paper) !important;
  line-height: 1.4 !important;
  margin-top: 8px !important;
}

.about-hero-photo {
  position: relative;
  overflow: hidden;
}

.about-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Why section: text left, photo right */
.about-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-bottom: 1px solid var(--line);
}

.about-why-text {
  padding: 72px 56px 72px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-why-text p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 560px;
}

.about-lp-quote {
  margin: 8px 0 0;
  padding: 20px 0 20px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--display-font);
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--ink);
}

.about-lp-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  color: var(--mute);
}

.about-why-photo {
  position: relative;
  overflow: hidden;
}

.about-why-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Story section: photo left, text right */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.about-story-photo {
  position: relative;
  overflow: hidden;
}

.about-story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story-text {
  padding: 72px 40px 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-story-text p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 520px;
}

.about-principles {
  list-style: none;
  margin: 8px 0 0;
}

.about-principles li {
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-principles li:first-child { border-top: 1px solid var(--line); }
.about-principles li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Team / founders */
.about-team-section {
  padding: 72px 40px;
  border-bottom: 1px solid var(--line);
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
}

.about-team-member { display: flex; flex-direction: column; }

.about-team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-3);
  margin-bottom: 16px;
  filter: grayscale(20%);
}


.about-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-team-name {
  font-family: var(--display-font);
  font-size: 20px;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.about-team-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
}

/* Contribute section — dark */
.about-contribute {
  background: var(--ink);
  padding: 80px 40px;
}

.about-contribute-inner {
  max-width: 860px;
}

.about-contribute-lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(243,238,228,0.55);
  max-width: 520px;
  margin-bottom: 52px;
}

.about-steps { display: flex; flex-direction: column; }

.about-step {
  display: flex;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(243,238,228,0.10);
}
.about-step:first-child { border-top: 1px solid rgba(243,238,228,0.10); }

.about-step-num {
  font-family: var(--display-font);
  font-size: 30px;
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  color: var(--accent);
  width: 36px;
  flex-shrink: 0;
  line-height: 1.15;
}

.about-step-body { flex: 1; min-width: 0; }

.about-step-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(243,238,228,0.55);
  margin-bottom: 12px;
}

.about-step-text code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.10);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--paper);
}

.about-step-text a { color: var(--accent); }

.about-code {
  background: rgba(0,0,0,0.40);
  color: #e8e0d4;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.7;
  padding: 16px 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0;
  border: 1px solid rgba(243,238,228,0.10);
}
.about-code code { background: none; padding: 0; font-size: inherit; color: inherit; }

.about-cta { margin-top: 52px; }

.about-cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}
.about-cta-btn:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }
.about-cta-btn--discord { background: #5865F2; margin-left: 12px; }
.about-cta-btn--discord:hover { background: #4752c4; }

@media (max-width: 900px) {
  .about-hero,
  .about-why,
  .about-story { grid-template-columns: 1fr; }
  .about-hero-photo,
  .about-why-photo,
  .about-story-photo { height: 280px; position: relative; }
  .about-story { grid-template-areas: "photo" "text"; }
  .about-story-photo { grid-area: photo; }
  .about-story-text { grid-area: text; padding: 40px 20px; }
  .about-hero-text { padding: 48px 20px; }
  .about-why-text { padding: 48px 20px; }
  .about-team-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .about-contribute { padding: 56px 20px; }
  .about-step { gap: 20px; }
}

@media (max-width: 600px) {
  .about-team-grid { grid-template-columns: 1fr; max-width: 280px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
  border-top: 3px solid var(--red);
  padding: 16px 20px;
  background: var(--cream);
  font-family: var(--body-font);
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-cc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.cc-badge {
  display: inline-block;
  background: var(--text-light);
  color: #fff;
  font-weight: bold;
  font-size: 10px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 3px;
  flex-shrink: 0;
  text-decoration: none;
}

.cc-badge:hover { background: var(--red); text-decoration: none; color: #fff; }

.footer-cc a { color: var(--red); }

.footer-meta { color: #aaa; }
.footer-meta a { color: #999; }
.footer-meta a:hover { color: var(--red); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  /* --- Top nav --- */
  .topnav-inner {
    gap: 8px 12px;
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  .site-search-wrap {
    flex: 1 1 0;
    min-width: 0;
  }

  .logo small {
    display: none;
  }

  .breadcrumbs {
    order: 10;
    flex-basis: 100%;
    padding: 0 0 4px;
    margin-top: -4px;
    white-space: normal;
    flex-wrap: wrap;
    overflow: visible;
  }

  /* --- Hero --- */
  .hero {
    padding: 12px 16px 0;
  }

  .hero-card {
    height: 60vw;
  }

  .mobile-hero-map-slot {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-hero-facts-slot {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    box-sizing: border-box;
    padding: 44px 12px 12px;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    background: var(--paper-2);
  }

  .mobile-hero-facts-slot .sidebar-quick-facts {
    margin: 0;
  }

  .mobile-hero-map-slot .sidebar-map-card {
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .mobile-hero-map-slot .sidebar-map-head {
    display: none;
  }

  .mobile-hero-map-slot .sidebar-map-canvas {
    height: 100%;
  }

  .hero-card--map .mobile-hero-map-slot {
    visibility: visible;
    pointer-events: auto;
  }

  .hero-card--facts .mobile-hero-facts-slot {
    visibility: visible;
    pointer-events: auto;
  }

  .hero-card--map > img,
  .hero-card--facts > img,
  .hero-card--map .hero-attribution,
  .hero-card--facts .hero-attribution,
  .hero-card--map .hero-title-block,
  .hero-card--facts .hero-title-block {
    visibility: hidden;
  }

  .hero-media-switch {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
  }

  .hero-media-switch button {
    border: 0;
    border-radius: 3px;
    padding: 5px 9px;
    background: transparent;
    color: var(--ink);
    font: 600 10px/1 var(--label-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .hero-media-switch button[aria-pressed="true"] {
    background: var(--red);
    color: #fff;
  }

  .hero-title-block {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  /* --- Content grid --- */
  #content {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "sidebar";
    gap: 32px;
    padding: 24px 16px 48px;
  }

  #sidebar {
    display: none;
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
  }

  #sidebar.sidebar-open {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--paper);
    overflow-y: auto;
    width: 280px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    border-left: 1px solid var(--line);
    padding: 60px 0 16px;
  }

  /* Hide map and quick facts in mobile menu — focus on navigation */
  #sidebar .sidebar-map-card {
    display: none;
  }

  .mobile-map-slot {
    display: block;
    margin-bottom: 24px;
  }

  .mobile-facts-slot {
    display: block;
    margin-bottom: 24px;
  }

  .mobile-facts-slot .sidebar-quick-facts {
    margin: 0;
  }

  .mobile-map-slot .sidebar-map-canvas {
    height: 260px;
  }

  #sidebar .sidebar-quick-facts {
    display: none;
  }

  /* Mobile nav links in sidebar */
  .sidebar-mobile-nav {
    display: block;
    padding: 16px 20px;
  }

  /* Section sidenav — expand by default on mobile, add padding */
  .section-sidenav {
    padding: 16px 20px;
  }

  .section-sidenav-list {
    max-height: none;
    overflow: visible;
  }

  .section-sidenav-toggle {
    display: none;
  }

  .sidebar-mobile-heading {
    font-family: var(--label-font);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute);
    margin-bottom: 8px;
    margin-top: 16px;
  }

  .sidebar-mobile-heading:first-child {
    margin-top: 0;
  }

  .sidebar-mobile-list {
    list-style: none;
  }

  .sidebar-mobile-list li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
  }

  .sidebar-mobile-list li a:hover {
    color: var(--accent);
  }

  .sidebar-toggle {
    display: inline-block;
    background: none;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 2px 8px;
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    margin-right: 8px;
    vertical-align: middle;
  }

  .sidebar-toggle:hover {
    background: var(--cream);
    color: var(--red);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9997;
  }

  .sidebar-overlay.active {
    display: block;
  }

  #main {
    padding: 0;
  }

  .content-image {
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
  }

  /* --- Sections grid --- */
  .sections-row {
    grid-template-columns: 1fr;
  }

  .section-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }

  .section-card:last-child {
    border-bottom: none;
  }

  .sections-row-wrap {
    padding-top: 32px;
  }

  /* --- POI list --- */
  .poi-list-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
  }

  .poi-num {
    display: none;
  }

  .poi-tag {
    text-align: left;
    font-size: 11px;
  }

  .poi-name {
    font-size: 18px;
  }

  .poi-blurb {
    max-width: none;
  }

  .poi-section {
    padding-bottom: 32px;
  }

  /* --- Filter bar --- */
  .poi-filter-bar {
    flex-wrap: wrap;
    gap: 4px;
  }

  .poi-section-head {
    gap: 12px;
  }

  /* --- Destination columns --- */
  .destination-columns {
    column-count: 2;
  }

  .continent-grid {
    grid-template-columns: 1fr;
  }

  /* --- Breadcrumbs (moved to own row via flex-wrap above) --- */

  /* --- Content preview (map/photo box) --- */
  .content-preview {
    height: 180px;
  }

  /* --- POI strip --- */
  .poi-strip-item {
    width: 120px;
    height: 120px;
  }
}

/* ---- POI image inspiration strip ---- */

.poi-strip-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 8px;
}

.poi-strip-wrap {
  position: relative;
  margin-bottom: 32px;
}

.poi-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.poi-strip::-webkit-scrollbar { display: none; }

.poi-strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 36px;
  line-height: 1;
  padding: 0 4px;
  transition: opacity 0.2s;
  opacity: 0;
}
.poi-strip-arrow--prev { left: -24px; }
.poi-strip-arrow--next { right: -24px; }
.poi-strip-arrow:hover { opacity: 1 !important; }

.poi-strip-item {
  flex-shrink: 0;
  display: block;
  width: 160px;
  height: 160px;
  overflow: hidden;
  border-radius: 2px;
}

.poi-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s;
  opacity: 0.88;
}

.poi-strip-item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

/* ---- POI editorial list ---- */

.poi-section {
  padding-top: 0;
  padding-bottom: 64px;
}

.poi-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.poi-section-title {
  font-family: var(--display-font);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}

/* Category filter */
.poi-filter-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--paper-2);
  border-radius: 999px;
}

.poi-filter-btn {
  padding: 6px 16px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.poi-filter-btn:hover { color: var(--ink); }

.poi-filter-btn.poi-filter-active {
  background: var(--ink);
  color: var(--paper);
}

/* List */
.poi-list {
  list-style: none;
  margin-top: 8px;
}

.poi-list li { display: contents; }

.poi-list-link {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.poi-list li:last-child .poi-list-link {
  border-bottom: 1px solid var(--line);
}

.poi-list-link:hover {
  background: var(--paper-2);
  text-decoration: none;
}

.poi-list-link:hover .poi-num { color: var(--accent); }

.poi-num {
  font-family: var(--label-font);
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.poi-name {
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  color: var(--ink);
}

.poi-blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.8;
  max-width: 58ch;
}

.poi-tag {
  font-family: var(--label-font);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-align: right;
  white-space: nowrap;
  padding-top: 4px;
}

/* "Other places in …" — subtle strip at the bottom of POI pages */
.poi-elsewhere {
  padding-top: 0;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.poi-elsewhere-label {
  font-family: var(--label-font);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-bottom: 10px;
  padding-top: 20px;
}

.poi-elsewhere-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.poi-elsewhere-list li::after {
  content: '·';
  margin: 0 8px;
  color: var(--line-2);
}

.poi-elsewhere-list li:last-child::after { content: ''; margin: 0; }

.poi-elsewhere-list a {
  font-size: 14px;
  color: var(--mute);
  text-decoration: none;
}

.poi-elsewhere-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Tags */
.tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
}

.tag:hover, .tag-active {
  background: var(--paper-2);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.tag-results {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.tag-results li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tag-results li a:first-child {
  font-weight: bold;
}

.tag-result-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .logo-ribbon { display: none; }

  .topnav-inner {
    gap: 8px;
    padding: 8px 12px;
    flex-wrap: wrap;
  }

  .nav-right {
    margin-left: 0;
    width: 100%;
  }

  .site-search-wrap {
    flex: 1 1 auto;
  }

  .nav-issue-button span {
    display: none;
  }

  .nav-issue-button {
    width: 34px;
    padding: 0;
  }

  .destination-columns {
    column-count: 1;
  }

  #main h1 {
    font-size: 20px;
  }

  .hero {
    padding: 8px 12px 0;
  }

  #content {
    padding: 16px 12px 32px;
  }

  .home-continent-grid {
    grid-template-columns: 1fr;
  }

  .poi-name {
    font-size: 18px;
  }
}

/* --- Mobile overrides for styles defined after the main responsive block --- */
@media (max-width: 768px) {
  .wide-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .poi-list-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
  }

  .poi-num {
    display: none;
  }

  .poi-tag {
    text-align: left;
    font-size: 11px;
  }

  .poi-blurb {
    max-width: none;
  }
}

/* --- Bookable activity providers (commercial: true POIs) --- */

.book-box {
  margin: 22px 0 26px;
  padding: 18px 20px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}

.book-box-label {
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.book-box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-btn {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid rgba(184, 83, 43, 0.35);
  border-radius: 3px;
  background: var(--paper);
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.book-btn:hover {
  background: var(--paper-3);
  border-color: var(--accent);
  text-decoration: none;
}

/* WhatsApp is the channel we lead with where the provider actually offers it. */
.book-btn--whatsapp {
  background: #25d366;
  border-color: #1da851;
  color: #08331a;
  font-weight: 600;
}

.book-btn--whatsapp:hover {
  background: #1da851;
  border-color: #14803d;
  color: #fff;
}

.book-box-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.7;
}

/* --- Provider panel: bookable activities, under the sidebar map --- */

/* One colour per activity, desaturated so they sit under the terracotta
   accent rather than competing with it. */
.svc[data-activity="surf"]         { --act: #2f6f8f; }
.svc[data-activity="surf_hire"]    { --act: #3d8878; }
.svc[data-activity="kitesurf"]     { --act: #8a6d3b; }
.svc[data-activity="boating"]      { --act: #24566e; }
.svc[data-activity="birdwatching"] { --act: #6d8040; }
.svc[data-activity="seal_watching"]{ --act: #7a6a9a; }
.svc[data-activity="jungle_tours"]  { --act: #4a7c4e; }
.svc[data-activity="wildlife_watching"] { --act: #a5673f; }
.svc[data-activity="guided_tours"] { --act: #5f6b8a; }
.svc[data-activity="fishing"]      { --act: #2f7d7d; }
.svc[data-activity="taxi"]         { --act: #9c7a1e; }
.svc[data-activity="trekking"]     { --act: #7a5c34; }
.svc[data-activity="machu_picchu"] { --act: #6b6f3e; }
.svc[data-activity="sandboarding"] { --act: #b07a35; }
.svc[data-activity="scenic_flights"]{ --act: #4d6d94; }
.svc[data-activity="rafting"]      { --act: #2b7f95; }
.svc[data-activity="restaurant"]   { --act: #a6533f; }
.svc                               { --act: #7a736b; }
.svc[data-activity="canyoning"]   { --act: #2f7f6a; }
.svc[data-activity="diving"]      { --act: #1f6b8c; }
.svc[data-activity="cruise"]      { --act: #45617f; }
.svc[data-activity="paragliding"] { --act: #8a5a7a; }
.svc[data-activity="salt_flat_tours"] { --act: #6f7f92; }
.svc[data-activity="mountaineering"] { --act: #5b6f7d; }
.svc[data-activity="cycling"]      { --act: #9a5f3c; }
.svc[data-activity="kayaking"]     { --act: #27718a; }
.svc[data-activity="canopy_tour"]  { --act: #3f7d4e; }
.svc[data-activity="stargazing"]   { --act: #4f4a7a; }
.svc[data-activity="horse_riding"] { --act: #8b5a2b; }
.svc[data-activity="adventure_park"] { --act: #c0612b; }
.svc[data-activity="winery"]       { --act: #7d3f52; }

.svc-panel {
  margin-top: 18px;
}

.sidebar-block-head {
  margin: 22px 0 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(184, 83, 43, 0.25);
}

.svc-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2px;
}

.svc-panel-title {
  font-family: var(--display-font);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.svc-panel-sub {
  margin: 3px 0 12px;
  padding-bottom: 11px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0.75;
  border-bottom: 1px solid rgba(184, 83, 43, 0.25);
}

.svc-panel-head .section-kicker {
  margin-bottom: 0;
}

.svc-count {
  font-size: 11.5px;
  opacity: 0.6;
}

.svc {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
  padding: 11px 13px;
  background: color-mix(in srgb, var(--act) 17%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--act) 38%, transparent);
  border-left: 4px solid var(--act);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.svc:hover { text-decoration: none; }

/* display:flex above beats the UA's [hidden] { display: none }, so filtering
   would leave every row on screen without this. */
.svc[hidden] { display: none; }

/* The whole row is the link, so the button must react with it. */
.svc:hover .svc-cta { background: #1da851; color: #fff; }
.svc:hover .svc-cta--plain { background: var(--act); border-color: var(--act); color: var(--paper); }

.svc:hover {
  background: color-mix(in srgb, var(--act) 27%, var(--paper));
  transform: translateX(2px);
}

.svc-disc {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--act);
  background: color-mix(in srgb, var(--act) 88%, transparent);
  color: var(--paper);
}

.svc-disc svg { width: 17px; height: 17px; }

.svc-mid {
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
}

.svc:hover .svc-name { color: var(--act); }

.svc-kicker {
  display: block;
  font-family: var(--label-font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--act) 78%, var(--ink));
}

.svc-name {
  display: block;
  font-family: var(--display-font);
  font-size: 17.5px;
  line-height: 1.12;
  color: var(--ink);
}

/* One tagline each — clamped so a long snippet can't stretch the row. */
.svc-tag {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.75;
}

/* One obvious action per row: WhatsApp where it is confirmed, phone otherwise. */
.svc-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #1da851;
  border-radius: 4px;
  background: #25d366;
  color: #06301a;
  font-family: var(--label-font);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.svc-cta:hover { background: #1da851; color: #fff; text-decoration: none; }
.svc-cta svg { width: 15px; height: 15px; fill: currentColor; }

.svc-cta--plain {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--act) 70%, transparent);
  color: color-mix(in srgb, var(--act) 85%, var(--ink));
  font-weight: 600;
}

.svc-cta--plain:hover {
  background: var(--act);
  border-color: var(--act);
  color: var(--paper);
}

.svc-all {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px 0;
  border: 1px dashed rgba(184, 83, 43, 0.45);
  border-radius: 4px;
  background: transparent;
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.svc-all:hover {
  background: var(--paper-2);
  border-style: solid;
}

/* Every provider, in a dialog — the activities section no longer lists them,
   so this is the only place the full set can be seen. */
.svc-modal {
  /* The global reset (* { margin: 0 }) kills the UA's margin:auto on <dialog>,
     which is what centres a modal — without this it pins to the top left. */
  margin: auto;
  width: min(660px, 92vw);
  max-height: 86vh;
  padding: 24px 26px 26px;
  border: 1px solid rgba(184, 83, 43, 0.3);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
}

.svc-modal::backdrop {
  background: rgba(19, 18, 17, 0.55);
}

.svc-modal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.svc-modal-close {
  flex: 0 0 auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
}

.svc-modal-close:hover { opacity: 1; color: var(--accent); }

.svc-modal .svc-panel-sub { margin-bottom: 14px; }

/* Category filters, following the POI filter bar but tinted per activity so a
   chip matches the rows it reveals. */
.svc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.svc-filter-btn {
  --act: #7a736b;
  padding: 6px 13px;
  border: 1px solid color-mix(in srgb, var(--act) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--act) 10%, var(--paper));
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--act) 80%, var(--ink));
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.svc-filter-btn[data-activity="surf"]         { --act: #2f6f8f; }
.svc-filter-btn[data-activity="surf_hire"]    { --act: #3d8878; }
.svc-filter-btn[data-activity="kitesurf"]     { --act: #8a6d3b; }
.svc-filter-btn[data-activity="boating"]      { --act: #24566e; }
.svc-filter-btn[data-activity="birdwatching"] { --act: #6d8040; }
.svc-filter-btn[data-activity="seal_watching"]{ --act: #7a6a9a; }
.svc-filter-btn[data-activity="jungle_tours"]  { --act: #4a7c4e; }
.svc-filter-btn[data-activity="wildlife_watching"] { --act: #a5673f; }
.svc-filter-btn[data-activity="guided_tours"] { --act: #5f6b8a; }
.svc-filter-btn[data-activity="fishing"]      { --act: #2f7d7d; }
.svc-filter-btn[data-activity="taxi"]         { --act: #9c7a1e; }
.svc-filter-btn[data-activity="trekking"]     { --act: #7a5c34; }
.svc-filter-btn[data-activity="machu_picchu"] { --act: #6b6f3e; }
.svc-filter-btn[data-activity="sandboarding"] { --act: #b07a35; }
.svc-filter-btn[data-activity="scenic_flights"]{ --act: #4d6d94; }
.svc-filter-btn[data-activity="rafting"]      { --act: #2b7f95; }
.svc-filter-btn[data-activity="restaurant"]   { --act: #a6533f; }

.svc-filter-btn[data-activity="canyoning"]   { --act: #2f7f6a; }
.svc-filter-btn[data-activity="diving"]      { --act: #1f6b8c; }
.svc-filter-btn[data-activity="cruise"]      { --act: #45617f; }
.svc-filter-btn[data-activity="paragliding"] { --act: #8a5a7a; }
.svc-filter-btn[data-activity="salt_flat_tours"] { --act: #6f7f92; }
.svc-filter-btn[data-activity="mountaineering"] { --act: #5b6f7d; }
.svc-filter-btn[data-activity="cycling"]      { --act: #9a5f3c; }
.svc-filter-btn[data-activity="kayaking"]     { --act: #27718a; }
.svc-filter-btn[data-activity="canopy_tour"]  { --act: #3f7d4e; }
.svc-filter-btn[data-activity="stargazing"]   { --act: #4f4a7a; }
.svc-filter-btn[data-activity="horse_riding"] { --act: #8b5a2b; }
.svc-filter-btn[data-activity="adventure_park"] { --act: #c0612b; }
.svc-filter-btn[data-activity="winery"]       { --act: #7d3f52; }
.svc-filter-btn:hover {
  background: color-mix(in srgb, var(--act) 20%, var(--paper));
}

.svc-filter-btn.is-active {
  background: var(--act);
  border-color: var(--act);
  color: var(--paper);
}

.svc-modal-list .svc { margin-bottom: 8px; }

/* On a phone the sidebar stacks under the body text, which would bury this at
   the bottom of a long page — exactly where a WhatsApp tap is most likely. */
@media (max-width: 900px) {
  #sidebar { display: flex; flex-direction: column; }
  .svc-panel { order: -1; margin-top: 0; margin-bottom: 22px; }
}

/* Inline sections now sit in the main column with the rest of the guide text,
   so they need the spacing the full-width band used to provide. */
.poi-section--inline {
  padding-bottom: 34px;
}

/* #main h2 caps headings at 22px, which stripped this of the weight it had in
   the full-width band. Scaled for the narrower column rather than restored to
   the full 40px. */
#main .poi-section--inline .poi-section-title {
  font-variation-settings: "opsz" 144;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 6px 0 18px;
  padding-bottom: 14px;
}

.poi-section--inline .body-text {
  margin-bottom: 18px;
}

/* A provider arriving via their own QR/referral link (?p=CODE). Their direct
   competitors are hidden; other categories still show. */
.svc--featured {
  box-shadow: 0 0 0 2px var(--act);
}

.svc-featured {
  display: inline-block;
  margin-bottom: 3px;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--act);
  color: var(--paper);
  font-family: var(--label-font);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.svc-panel-sub--featured a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* /qr/<CODE> — the page a provider lands on from their outreach mail. */
.qr-page { max-width: 640px; }
.qr-page h1 { margin: 4px 0 14px; }
.qr-lede { font-size: 17px; line-height: 1.6; }
.qr-link { margin: 18px 0 26px; padding: 12px 14px; background: rgba(0,0,0,.035);
           border: 1px solid var(--line); border-radius: 6px; word-break: break-all;
           font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.qr-art { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap;
          padding: 22px 0; border-top: 1px solid var(--line);
          border-bottom: 1px solid var(--line); }
.qr-art img { background: #fff; padding: 10px; border-radius: 6px; flex: none; }
.qr-downloads { flex: 1 1 240px; }
.qr-downloads p { margin: 0 0 12px; }
.qr-sep { color: var(--muted); margin: 0 6px; }
.qr-note { font-size: 14px; color: var(--muted); }
.qr-foot { margin-top: 22px; font-size: 15px; color: var(--muted); }

/* --- Bloglists: outside blogs worth reading about a place (type: bloglist) --- */

.bloglist-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.bloglist-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(184, 83, 43, 0.18);
}

/* Rules drawn on the cards rather than as tinted grid gaps — an odd number of
   blogs would otherwise leave the empty half-row shaded in. */
.bloglist-card {
  border-bottom: 1px solid rgba(184, 83, 43, 0.18);
}

.bloglist-card:nth-child(odd) {
  border-right: 1px solid rgba(184, 83, 43, 0.18);
}

.bloglist-card-link {
  display: flex;
  gap: 16px;
  align-items: baseline;
  height: 100%;
  padding: 20px 18px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.bloglist-card-link:hover {
  background: var(--paper-2);
  text-decoration: none;
}

.bloglist-rank {
  flex: 0 0 auto;
  font-family: var(--display-font);
  font-style: italic;
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.75;
}

.bloglist-txt {
  display: block;
}

.bloglist-name {
  display: block;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.bloglist-card-link:hover .bloglist-name {
  color: var(--accent);
}

.bloglist-domain {
  display: block;
  margin-top: 4px;
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-ink);
  opacity: 0.72;
}

.bloglist-note {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.85;
}

.bloglist-footnote {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.7;
}

/* The way in from a location page */
.bloglist-callout-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.bloglist-callout-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.bloglist-callout {
  display: block;
  padding: 20px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.bloglist-callout:hover {
  background: var(--paper-3);
  text-decoration: none;
}

.bloglist-callout-name {
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.bloglist-callout-snippet {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0.85;
}

.bloglist-callout-more {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 768px) {
  .bloglist-grid {
    grid-template-columns: 1fr;
  }

  .bloglist-card:nth-child(odd) {
    border-right: none;
  }
}

/* A bloglist renders no sidebar — nothing on a page of outbound links belongs
   on a map — so the main column takes the full width instead of leaving a
   two-fifths gutter next to two paragraphs. */
#content:not(:has(#sidebar)) {
  grid-template-columns: 1fr;
  grid-template-areas: "main";
}

/* A tag that names a bloglist is a link to it — the way a POI credits the
   list it came off. Coloured so it reads as a destination, not a filter. */
.tag-link {
  border-color: var(--accent);
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0.01em;
}

.tag-link:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

/* Arrived from a POI's "Listed by …" tag. The cards carry only a bottom
   rule, so the marker is an inset bar rather than a border colour. */
.bloglist-card {
  scroll-margin-top: 90px;
}

.bloglist-card--featured {
  background: var(--paper-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.bloglist-card--featured .bloglist-rank {
  color: var(--accent);
  opacity: 1;
}
