/* v3 page design (/thailand3/, /v3/<path>/).
   Loaded after project.min.css: Bootstrap and the existing block styles stay,
   this file adds the v3 chrome and restyles the shared block patterns (cards,
   info boxes, timelines) inside .v3-main. Plain CSS, no build step. */

body.v3 {
  --nav: #0f1d2e;
  --ink: #0f3e4a;
  --ink-2: #1d5563;
  --muted: #4a6e7a;
  --faint: #7d98a1;
  --line: #d6e6ea;
  --mist: #eef6f8;
  --paper: #ffffff;
  --page: #ffffff;

  --green: #13b884;
  --green-ink: #0b8f68;
  --blue: #2f78ad;
  --plum: #7c3aed;
  --sun: #a87a06;
  --coral: #e0476b;
  --sky: #1d7f8c;

  --green-soft: #e8f9f4;
  --blue-soft: #e7f2fb;
  --plum-soft: #f1ecfd;
  --map-water: #aeddea;
  --map-land: #e6eedb;
  --map-land-line: #c6d3b8;
  --sun-soft: #fdf5e0;
  --coral-soft: #fdecef;
  --sky-soft: #e3f4f6;

  --bar-best: #13c892;
  --bar-mid: #e8c96a;
  --bar-low: #7db8e0;

  --r: 18px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(15, 62, 74, 0.05), 0 8px 24px rgba(15, 62, 74, 0.08);
  --shadow-lg: 0 2px 4px rgba(15, 62, 74, 0.08), 0 18px 40px rgba(15, 62, 74, 0.18);
  --display: "Poppins", system-ui, sans-serif;
  --text: "Rubik", system-ui, sans-serif;

  background: var(--page);
  color: var(--ink);
  font: 400 16px / 1.6 var(--text);
  letter-spacing: 0.1px;
}

[data-bs-theme="dark"] body.v3 {
  --ink: #e4f1f4;
  --ink-2: #c4dde3;
  --muted: #9db7bf;
  --line: #23414a;
  --mist: #15313a;
  --paper: #102a32;
  --page: #0b2229;
  --green-soft: #0f3b33;
  --blue-soft: #142f45;
  --plum-soft: #2a2145;
  --sun-soft: #3a3118;
  --coral-soft: #3d1e28;
  --sky-soft: #133a40;
  --green-ink: #4fe0b2;
  --blue: #8ec6ee;
  --plum: #b9a0f5;
  --sun: #f0d17b;
  --coral: #f28aa2;
  --sky: #6fd0dc;
}

.v3-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* links: plain green text, underline on hover (no highlighter underline) */
body.v3 a {
  color: var(--green-ink);
  text-decoration: none;
}

body.v3 .v3-main a:hover {
  text-decoration: underline;
}

body.v3 .v3-main a.wikilink {
  padding: 0;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--green-ink);
  font-weight: 500;
  text-decoration: none;
}

body.v3 .v3-main a.wikilink:hover {
  text-decoration: underline;
}

/* ---------- top bar (dark: the logo is drawn on black) ---------- */
.v3-top {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--nav);
}

.v3-top .v3-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.v3-logo img {
  display: block;
  width: auto;
  height: 56px;
  mix-blend-mode: lighten; /* the logo's black box melts into the bar */
}

.v3-search {
  flex: 0 1 340px;
}

.v3-topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

body.v3 .v3-topnav a {
  color: rgba(255, 255, 255, 0.85);
  font: 600 14px var(--display);
}

body.v3 .v3-topnav a:hover {
  color: #fff;
}

.v3-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 860px) {
  .v3-topnav a {
    display: none;
  }

  .v3-logo img {
    height: 46px;
  }

  .v3-top .v3-wrap {
    gap: 12px;
    height: 62px;
  }
}

/* ---------- banner: full-bleed photo with a curved bottom ---------- */
body.v3 {
  --banner-h: clamp(620px, 80vh, 740px);
}

.v3-banner {
  position: relative;
  display: flex;
  height: var(--banner-h);
  overflow: hidden;
  border-radius: 0 !important;
  background: #1fa57c;
  color: #fff;
}

/* the swoosh: page-coloured curve over the photo's bottom edge, deeper on
   the left and sweeping up to the right */
.v3-swoosh {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 130px;
  fill: var(--page);
}

.v3-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* shade only where the text sits (bottom, and the breadcrumb at the top) */
.v3-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 75% at 12% 82%, rgba(6, 30, 38, 0.66) 0%, rgba(6, 30, 38, 0.3) 45%, rgba(6, 30, 38, 0) 75%),
    linear-gradient(180deg, rgba(6, 30, 38, 0.35) 0%, rgba(6, 30, 38, 0) 20%);
}

.v3-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding-top: 26px;
  padding-bottom: 120px;
}

.v3-banner-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.v3-crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font: 600 12.5px var(--display);
}

.v3-crumbs a,
.v3-crumbs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.v3 .v3-crumbs a {
  color: rgba(255, 255, 255, 0.9);
}

body.v3 .v3-crumbs a:hover {
  color: #fff;
}

.v3-crumbs .bi-chevron-right {
  font-size: 9px;
  opacity: 0.7;
}

.v3-crumbs > :first-child {
  margin-left: 8px;
}

.v3-crumbs > :first-child:has(.v3-flag) {
  margin-left: 0;
}

.v3-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.v3-banner-title {
  max-width: 560px;
}

.v3-banner h1 {
  margin: 0;
  font: 800 clamp(56px, 10vw, 120px) / 0.95 var(--display);
  letter-spacing: -2.5px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.v3-kind {
  display: table;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 700 11.5px var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- intro: lede + guide tiles | map + essentials ---------- */
.v3-intro {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
  gap: 48px;
  padding-top: 12px;
}

.v3-banner .v3-lede {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.v3-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

body.v3 .v3-guide-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: 600 14px / 1.25 var(--display);
  box-shadow: 0 1px 2px rgba(15, 62, 74, 0.04);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

body.v3 .v3-guide-tile:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.v3-guide-tile .v3-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 17px;
}

.v3-intro-side {
  position: relative;
  margin-top: -110px; /* the essentials card overlaps the banner photo */
}

/* the map card sits in the banner's right-hand side */
.v3-banner-map {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding-top: 64px;
  pointer-events: none;
}

.v3-banner-map .v3-map-card {
  width: 400px;
  pointer-events: auto;
}

.v3-map-card {
  position: relative;
  height: 440px;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 28px;
  background: var(--map-water);
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}

.v3-map-card svg {
  display: block;
  width: 100%;
  height: 100%;
}

.v3-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 4px;
  border-radius: 999px;
  background: #fff;
  color: #0f3e4a;
  font: 700 10.5px var(--display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.v3-tag .v3-flag {
  width: 18px;
  height: 18px;
  box-shadow: none;
}

.v3-essentials {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: #0f3e4a;
  box-shadow: var(--shadow-lg);
}

.v3-essentials-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid #e2d8fb;
  background: #f1ecfd;
  font: 700 17px var(--display);
  color: #0f3e4a;
}

.v3-essentials-head .bi {
  color: #7c3aed;
}

.v3-essentials-body {
  padding: 12px 22px 18px;
}

.v3-nut-row a {
  color: #0b8f68;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.v3-map-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3eef1;
}

body.v3 .v3-map-links a {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: 600 13px var(--display);
}

body.v3 .v3-map-links a:hover {
  border-color: var(--green);
  color: var(--green-ink);
}

.v3-nut-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: #4a6e7a;
}

.v3-nut-row b {
  color: #0f3e4a;
  font-weight: 600;
}

/* map dots + hover tooltip */
.v3-pin circle {
  stroke: #fff;
  transition: r 0.12s;
  cursor: pointer;
}

.v3-pin-city circle {
  fill: #13c892;
}

.v3-pin-sight circle {
  fill: #5fd9ae;
}

.v3-pin:hover circle {
  fill: #0b8f68;
}

.v3-pin-tip {
  position: absolute;
  z-index: 2000;
  padding: 4px 10px;
  border-radius: 8px;
  background: #0f1d2e;
  color: #fff;
  font: 600 12.5px var(--display);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.1s;
}

.v3-pin-tip.is-on {
  opacity: 1;
}

.v3-viewall {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 26px;
}

body.v3 .v3-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 600 14px var(--display);
}

body.v3 .v3-btn:hover {
  filter: brightness(0.95);
  text-decoration: none;
}

body.v3 .v3-btn-ghost {
  background: var(--paper);
  color: var(--green-ink);
}

@media (max-width: 991px) {
  .v3-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .v3-banner-title {
    max-width: none;
  }

  /* map flows under the text, still over the photo */
  .v3-banner {
    flex-direction: column;
    height: auto;
  }

  .v3-banner-inner {
    height: auto;
    min-height: calc(var(--banner-h) - 120px);
    padding-bottom: 24px;
  }

  .v3-banner-map {
    position: relative;
    justify-content: stretch;
    padding: 0 16px 90px;
  }

  .v3-banner-map .v3-map-card {
    width: 100%;
  }

  .v3-map-card {
    height: 380px;
    transform: none;
  }

  .v3-intro-side {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  body.v3 {
    --banner-h: clamp(520px, 85vh, 640px);
  }

  .v3-swoosh {
    height: 60px;
  }

  /* phones: the text covers most of the photo, so shade the lower half */
  .v3-banner::after {
    background:
      linear-gradient(0deg, rgba(6, 30, 38, 0.78) 0%, rgba(6, 30, 38, 0.55) 40%, rgba(6, 30, 38, 0) 75%),
      linear-gradient(180deg, rgba(6, 30, 38, 0.35) 0%, rgba(6, 30, 38, 0) 20%);
  }

  .v3-banner-inner {
    padding-bottom: 64px;
  }

  .v3-banner .v3-lede {
    font-size: 15px;
  }

  .v3-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v3-guide-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* pastel icon squares and tints, shared everywhere */
.v3-ico {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 15px;
}

.t-green { background: var(--green-soft); color: var(--green-ink); }
.t-blue { background: var(--blue-soft); color: var(--blue); }
.t-plum { background: var(--plum-soft); color: var(--plum); }
.t-sun { background: var(--sun-soft); color: var(--sun); }
.t-coral { background: var(--coral-soft); color: var(--coral); }
.t-sky { background: var(--sky-soft); color: var(--sky); }

.v3-essentials .t-green { background: #e8f9f4; color: #0b8f68; }
.v3-essentials .t-blue { background: #e7f2fb; color: #2f78ad; }
.v3-essentials .t-plum { background: #f1ecfd; color: #7c3aed; }
.v3-essentials .t-sun { background: #fdf5e0; color: #a87a06; }
.v3-essentials .t-coral { background: #fdecef; color: #e0476b; }

.v3-kicker {
  display: block;
  margin-bottom: 6px;
  font: 600 12px var(--display);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--green-ink);
}

.k-blue { color: var(--blue); }
.k-plum { color: var(--plum); }
.k-sun { color: var(--sun); }
.k-coral { color: var(--coral); }
.k-sky { color: var(--sky); }

/* ---------- where to go ---------- */
.v3-band {
  padding: 60px 0 40px;
}

.v3-band-title {
  margin: 0;
  font: 700 clamp(26px, 3.2vw, 32px) / 1.15 var(--display);
  color: var(--ink);
}

.v3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.v3-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 13px var(--text);
}

.v3-chip .n {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 11px;
}

.v3-chip.is-on {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.v3-chip.is-on .n {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.v3-dest-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.v3-dest {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  background: var(--mist);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s, box-shadow 0.2s;
}

.v3-dest:nth-child(3n + 1) { --tilt: -1.2deg; }
.v3-dest:nth-child(3n + 2) { --tilt: 0.8deg; }
.v3-dest:nth-child(4n + 3) { --tilt: -0.4deg; }

.v3-dest:hover {
  box-shadow: var(--shadow-lg);
  transform: rotate(0) translateY(-4px);
}

.v3-dest[hidden] {
  display: none;
}

.v3-dest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3-dest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72));
}

.v3-dest-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font: 600 11px var(--display);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tag-city { background: #dff7ee; color: #0b6e51; }
.tag-island { background: #e1effb; color: #245f8c; }
.tag-history { background: #fdf0d2; color: #8a6200; }
.tag-nature { background: #e6f5df; color: #3d7a22; }

.v3-dest-txt {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  color: #fff;
}

.v3-dest-txt b {
  display: block;
  font: 600 16px / 1.2 var(--display);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.v3-dest-txt small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.35;
  opacity: 0.9;
}

@media (max-width: 960px) {
  .v3-dest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .v3-dest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- body: article + sticky sidebar ---------- */
.v3-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 48px;
  padding-top: 8px;
  padding-bottom: 80px;
}

.v3-aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  margin-top: 40px;
}

@media (max-width: 991px) {
  .v3-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .v3-aside {
    display: none;
  }
}

.v3-side-map {
  overflow: hidden;
  aspect-ratio: 0.86;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--map-water);
}

.v3-side-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.v3-toc {
  padding: 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

.v3-toc .v3-kicker {
  padding: 0 16px 4px;
  font-size: 10.5px;
}

body.v3 .v3-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-left: 3px solid transparent;
  color: var(--ink);
  font-size: 13.5px;
}

.v3-toc a:hover {
  background: var(--mist);
}

.toc-green i { color: var(--green-ink); }
.toc-blue i { color: var(--blue); }
.toc-plum i { color: var(--plum); }
.toc-sun i { color: var(--sun); }
.toc-coral i { color: var(--coral); }
.toc-sky i { color: var(--sky); }

body.v3 .v3-toc a.is-active {
  font-weight: 600;
}

.toc-green.is-active { border-left-color: var(--green-ink) !important; background: var(--green-soft); }
.toc-blue.is-active { border-left-color: var(--blue) !important; background: var(--blue-soft); }
.toc-plum.is-active { border-left-color: var(--plum) !important; background: var(--plum-soft); }
.toc-sun.is-active { border-left-color: var(--sun) !important; background: var(--sun-soft); }
.toc-coral.is-active { border-left-color: var(--coral) !important; background: var(--coral-soft); }
.toc-sky.is-active { border-left-color: var(--sky) !important; background: var(--sky-soft); }

/* ---------- section scaffolding ---------- */
.v3-group {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.v3-main > .v3-group:first-of-type {
  border-top: 0;
}

.v3-section-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 17px;
}

/* icon + title on one line, the subtitle under it */
.v3-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.v3-group-title {
  margin: 0;
  font: 700 clamp(26px, 3.2vw, 32px) / 1.15 var(--display);
  color: var(--ink);
}

.v3-unit {
  padding-top: 22px;
  scroll-margin-top: 90px;
}

.v3-main h2 {
  margin: 0 0 14px;
  font: 700 25px / 1.25 var(--display);
  color: var(--ink);
}

.v3-main h3,
.v3-main h3.section-desc {
  margin: 24px 0 10px !important;
  font: 600 19.5px / 1.3 var(--display) !important;
  color: var(--ink);
}

.v3-main h4,
.v3-main h5 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}

.v3-main p,
.v3-main li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.v3-main .section-desc,
.v3-main .lead {
  max-width: none;
}

.v3-main strong,
.v3-main b {
  color: var(--ink);
  font-weight: 600;
}

.v3-glance ul,
.v3-card-text ul,
.v3-panel ul {
  padding-left: 0;
  list-style: none;
}

.v3-glance ul > li,
.v3-card-text ul > li,
.v3-panel ul > li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 18px;
}

.v3-glance ul > li::before,
.v3-card-text ul > li::before,
.v3-panel ul > li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.v3-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font: 600 13.5px var(--display);
}

/* ---------- restyle the shared Bootstrap block patterns ---------- */
.v3-main .card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: none;
}

.v3-main .card-body {
  padding: 18px 20px;
}

.v3-main .card-title {
  font: 600 15px var(--display);
  color: var(--ink);
}

.v3-main .card-text,
.v3-main .card-body p,
.v3-main .card-body li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.v3-main [class*="col-"] {
  min-width: 0;
}

.v3-main .card,
.v3-main .card * {
  overflow-wrap: anywhere;
}

.v3-main .risk-summary .card * {
  white-space: normal !important;
}

/* card-title icons become pastel squares, colour rotating across the row */
.v3-main .card-title > .bi:first-child {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 10px !important;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 14px;
  vertical-align: -2px;
}

.v3-main .row > :nth-child(6n + 2) .card-title > .bi:first-child { background: var(--blue-soft); color: var(--blue); }
.v3-main .row > :nth-child(6n + 3) .card-title > .bi:first-child { background: var(--sun-soft); color: var(--sun); }
.v3-main .row > :nth-child(6n + 4) .card-title > .bi:first-child { background: var(--plum-soft); color: var(--plum); }
.v3-main .row > :nth-child(6n + 5) .card-title > .bi:first-child { background: var(--coral-soft); color: var(--coral); }
.v3-main .row > :nth-child(6n + 6) .card-title > .bi:first-child { background: var(--sky-soft); color: var(--sky); }

/* stat boxes (info-box label / value / sub): pastel fills, big numbers */
.v3-main .card:has(.info-box-value) {
  border: 0;
  background: var(--green-soft);
}

.v3-main .row > :nth-child(6n + 2) .card:has(.info-box-value) { background: var(--blue-soft); }
.v3-main .row > :nth-child(6n + 3) .card:has(.info-box-value) { background: var(--sun-soft); }
.v3-main .row > :nth-child(6n + 4) .card:has(.info-box-value) { background: var(--plum-soft); }
.v3-main .row > :nth-child(6n + 5) .card:has(.info-box-value) { background: var(--coral-soft); }
.v3-main .row > :nth-child(6n + 6) .card:has(.info-box-value) { background: var(--sky-soft); }

.v3-main .info-box-label {
  font: 500 11px var(--text);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.v3-main .info-box-value {
  margin: 4px 0;
  font: 700 22px / 1.15 var(--display);
  color: var(--ink);
}

.v3-main .info-box-sub {
  font-size: 12.5px;
  color: var(--muted);
}

/* timelines (itineraries, history) */
.v3-main .timeline-item {
  position: relative;
  margin-left: 6px;
  padding: 0 0 12px 22px;
  border-left: 2px solid var(--line);
}

.v3-main .timeline-item::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--plum);
  border-radius: 50%;
  background: var(--paper);
}

.v3-main .timeline-date {
  font: 700 13px var(--display);
  color: var(--plum);
}

.v3-main .detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-ink);
  font: 600 12.5px var(--display);
}

.v3-main .word-cloud.cool {
  border: 0;
  background: var(--green-soft);
}

.v3-main .word-cloud.not-cool {
  border: 0;
  background: var(--coral-soft);
}

.v3-main .resource-tag,
.v3-main .view-all-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.v3-main table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  font-size: 15px;
}

.v3-main th {
  background: var(--mist);
  font: 600 12px var(--display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.v3-main th,
.v3-main td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.v3-main tr:last-child td {
  border-bottom: 0;
}

/* glance notes + monthly outlook */
.v3-glance {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.v3-glance p:last-child {
  margin-bottom: 0;
}

.v3-outlook > * {
  padding: 22px 24px !important;
  border: 0 !important;
  border-radius: var(--r-lg) !important;
  background: var(--sun-soft) !important;
}

/* nested "list of lists" (regions and cities, neighbourhoods) -> pastel cards */
.v3-main .section-desc > ul:has(> li > ul) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-left: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.v3-main .section-desc > ul:has(> li > ul) > li {
  margin: 0;
  padding: 18px 20px !important;
  border-radius: var(--r);
  background: var(--mist);
}

.v3-main .section-desc > ul:has(> li > ul) > li:nth-child(6n + 2) { background: var(--green-soft); }
.v3-main .section-desc > ul:has(> li > ul) > li:nth-child(6n + 3) { background: var(--blue-soft); }
.v3-main .section-desc > ul:has(> li > ul) > li:nth-child(6n + 4) { background: var(--sun-soft); }
.v3-main .section-desc > ul:has(> li > ul) > li:nth-child(6n + 5) { background: var(--plum-soft); }
.v3-main .section-desc > ul:has(> li > ul) > li:nth-child(6n + 6) { background: var(--coral-soft); }

.v3-main .section-desc > ul:has(> li > ul) li::before {
  display: none !important;
}

.v3-main .section-desc > ul:has(> li > ul) > li > strong:first-child {
  display: block;
  font: 600 16px var(--display);
}

.v3-lead {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.v3-lead br {
  display: block;
  margin-top: 6px;
  content: "";
}

.v3-lead .nbhd-pill {
  margin-top: 6px;
}

.v3-main .section-desc > ul:has(> li > ul) > li > ul {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}

.v3-main .section-desc > ul:has(> li > ul) > li > ul > li {
  margin: 0 !important;
  padding: 8px 0 0 !important;
  border-top: 1px solid rgba(15, 62, 74, 0.08);
  font-size: 13.5px;
  line-height: 1.5;
}

.v3-main .section-desc > ul:has(> li > ul) > li > ul > li + li {
  margin-top: 8px !important;
}

@media (max-width: 640px) {
  .v3-main .section-desc > ul:has(> li > ul) {
    grid-template-columns: 1fr;
  }
}

/* ---------- v3 block templates ---------- */
.v3-sights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.v3 .v3-sight {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

body.v3 .v3-sight:hover {
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-3px);
}

.v3-sight img,
.v3-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--mist);
  color: var(--faint);
  object-fit: cover;
}

.v3-sight-txt {
  display: block;
  padding: 10px 12px 12px;
}

.v3-label {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 10.5px;
  font-weight: 600;
}

.v3-main .v3-sight-txt b {
  display: block;
  font: 600 13.5px / 1.3 var(--display);
}

.v3-sight-txt small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 760px) {
  .v3-sights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* activity chips (Find your interest) */
.v3-interests {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

body.v3 .v3-interest {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: 500 14px var(--display);
  transition: border-color 0.15s, transform 0.15s;
}

body.v3 .v3-interest:hover {
  border-color: var(--green);
  text-decoration: none;
  transform: translateY(-2px);
}

/* month charts: rounded pill bars */
.v3-chart {
  margin-bottom: 14px;
  padding: 22px 24px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.v3-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.v3-chart-head b {
  font: 600 14px var(--display);
}

.v3-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
}

.v3-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
}

.lg-best { background: var(--bar-best); }
.lg-mid { background: var(--bar-mid); }
.lg-low { background: var(--bar-low); }

.v3-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 150px;
}

.v3-bars-short {
  height: 120px;
}

body.v3 .v3-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  color: var(--muted);
}

body.v3 .v3-bar:hover {
  text-decoration: none;
}

.v3-bar .v {
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 600;
}

.v3-bar .b {
  width: 100%;
  max-width: 48px;
  height: var(--h);
  min-height: 10px;
  border-radius: 999px;
  background: var(--c);
  transform-origin: bottom;
  transition: transform 0.15s;
}

.v3-bar:hover .b {
  transform: scaleY(1.04);
}

.v3-bar .m {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
}

.v3-bar.is-now .m {
  color: var(--ink);
  font-weight: 700;
}

.v3-bar.is-now .b {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink);
}

.bar-best { --c: var(--bar-best); }
.bar-mid { --c: var(--bar-mid); }
.bar-low { --c: var(--bar-low); }
.bar-rain { --c: linear-gradient(180deg, #8ec6ee, #4f97d0); }

.v3-main .v3-chart-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--faint);
}

@media (max-width: 560px) {
  .v3-bars {
    gap: 3px;
  }

  .v3-bar .v {
    font-size: 9px;
  }

  .v3-bar .m {
    font-size: 9.5px;
  }

  .v3-chart {
    padding: 16px 10px 12px;
  }
}

/* festivals */
.v3-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

.v3-fest {
  display: grid;
  grid-template-columns: 170px 1fr 84px;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.v3-fest:first-child {
  border-top: 0;
}

.v3-fest:nth-child(even) {
  background: var(--mist);
}

.v3-date {
  align-self: start;
  padding: 5px 10px;
  border-radius: 14px;
  background: var(--plum-soft);
  color: var(--plum);
  font: 600 12px / 1.35 var(--text);
  text-align: center;
}

.v3-fest h4 {
  margin: 0 0 2px;
  font-size: 15px;
}

.v3-where {
  font-size: 12px;
  color: var(--faint);
}

.v3-main .v3-fest p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.v3-fest img {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .v3-fest {
    grid-template-columns: 1fr 72px;
  }

  .v3-date {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .v3-fest img {
    width: 72px;
  }
}

/* accordions (faq + folded subsections) */
.v3-faq-group {
  margin: 22px 0 10px;
  font: 600 11px var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}

.v3-acc {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.v3-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  font: 600 14.5px var(--display);
  list-style: none;
  cursor: pointer;
}

.v3-acc summary::-webkit-details-marker {
  display: none;
}

.v3-acc summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 600 15px / 1 var(--text);
  transition: transform 0.2s;
}

.v3-acc[open] {
  border-color: transparent;
  background: var(--mist);
}

.v3-acc[open] summary::after {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  transform: rotate(45deg);
}

.v3-acc-body {
  padding: 0 16px 16px;
}

.v3-acc-body p:last-child {
  margin-bottom: 0;
}

/* column cards */
.v3-cards {
  display: grid;
  gap: 12px;
}

.v3-cols-1 { grid-template-columns: 1fr; }
.v3-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v3-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .v3-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .v3-cols-2,
  .v3-cols-3 { grid-template-columns: 1fr; }
}

.v3-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

.v3-card .v3-ico {
  margin-bottom: 14px;
}

.v3-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.v3-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: -2px 0 8px;
  font: 600 12.5px var(--display);
}

.v3-meta span + span {
  color: var(--muted);
  font-weight: 500;
}

.v3-card .card-stars {
  margin-bottom: 6px;
}

.v3-main .v3-card-text p,
.v3-main .v3-card-text li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.v3-card-text p:last-child {
  margin-bottom: 0;
}

/* tabs (panel blocks) */
.v3-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.v3-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

.v3-panel[hidden] {
  display: none;
}

.v3-panel:not(:has(.v3-panel-side)) {
  grid-template-columns: 1fr;
}

.v3-panel-side {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--mist);
}

.v3-panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .v3-panel {
    grid-template-columns: 1fr;
  }
}

/* callouts */
.v3-callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r);
}

.v3-callout .v3-ico {
  background: var(--paper);
}

.v3-callout b {
  display: block;
  font: 600 15px var(--display);
}

.v3-main .v3-callout p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.b-green { background: var(--green-soft); }
.b-green .v3-ico { color: var(--green-ink); }
.b-sun { background: var(--sun-soft); }
.b-sun .v3-ico { color: var(--sun); }
.b-coral { background: var(--coral-soft); }
.b-coral .v3-ico { color: var(--coral); }
.b-blue { background: var(--blue-soft); }
.b-blue .v3-ico { color: var(--blue); }
.b-plum { background: var(--plum-soft); }
.b-plum .v3-ico { color: var(--plum); }

/* ---------- footer ---------- */
.v3-foot {
  padding: 36px 0 44px;
  background: var(--nav);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.v3-foot .v3-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.v3-foot img {
  width: auto;
  height: 48px;
  mix-blend-mode: lighten;
}

.v3-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

body.v3 .v3-foot a {
  color: #fff;
}

.v3-foot small {
  margin-left: auto;
}

.v3-dest-txt b,
.v3-dest-txt small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-district { background: #f1ecfd; color: #5b2bbf; }
.tag-sights { background: #fdecef; color: #b02a4c; }

.v3-main h2.v3-group-title {
  margin: 0 0 6px;
  font: 700 clamp(26px, 3.2vw, 32px) / 1.15 var(--display);
}

/* site sakura bullets -> small green dots */
.v3-main .section-desc ul li::before,
.v3-main .section-block ul li::before {
  width: 6px !important;
  height: 6px !important;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--green) !important;
  background-image: none !important;
}

.v3-kind {
  letter-spacing: 1px;
  text-shadow: none;
}

body.v3 .v3-topnav .v3-edit {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

.v3-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.v3 .v3-city-chips .v3-chip {
  color: var(--ink);
}

body.v3 .v3-city-chips .v3-chip:hover {
  border-color: var(--green);
  text-decoration: none;
}

body.v3 .v3-city-chips .v3-chip-more {
  border-color: var(--green);
  color: var(--green-ink);
}

.v3-foot-res {
  flex-basis: 100%;
  font-size: 12.5px;
}

.v3-pin-here circle {
  fill: #e0476b;
  stroke: #fff;
}

.v3-pin-here .v3-here-ring {
  fill: rgba(224, 71, 107, 0.22);
  stroke: none;
  animation: v3-pulse 2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes v3-pulse {
  0% { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .v3-pin-here .v3-here-ring {
    animation: none;
  }
}

/* long place-kind badges ("Section of Populated Place") wrap on phones */
.v3-main .badge {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

/* wide maps (the world): a landscape card shaped like the map */
.v3-banner-map .v3-map-card:has(svg[data-wide]) {
  width: 560px;
  height: auto;
  margin-top: 40px;
}

.v3-map-card:has(svg[data-wide]) svg,
.v3-side-map:has(svg[data-wide]) svg {
  height: auto;
}

.v3-side-map:has(svg[data-wide]) {
  aspect-ratio: auto;
}

@media (max-width: 991px) {
  .v3-banner-map .v3-map-card:has(svg[data-wide]) {
    width: 100%;
    margin-top: 0;
  }
}

/* map colours: darker water, pale green neighbours, visible sub-region lines */
.v3-map-card .rm-context,
.v3-side-map .rm-context {
  fill: var(--map-land);
  stroke: var(--map-land-line);
}

.v3-subborder {
  fill: none;
  stroke: #b7c0c3;
  stroke-width: 1.2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

/* long titles step down so the lede stays on the banner */
.v3-banner h1.is-long {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1;
  letter-spacing: -1.5px;
}

.v3-banner h1.is-xlong {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -1px;
}

/* photo credit (CC licences need author, licence and source) */
.v3-credit {
  position: absolute;
  top: 26px;
  right: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px 8px;
  max-width: 460px;
  margin: 0;
  padding: 5px 14px 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(6, 30, 38, 0.55);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  font: 500 12px / 1.4 var(--text);
}

.v3-credit > :nth-child(n + 3)::before {
  content: "\00b7";
  margin-right: 8px;
  opacity: 0.7;
}

body.v3 .v3-credit a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline dotted rgba(255, 255, 255, 0.5);
  text-underline-offset: 2px;
}

body.v3 .v3-credit a:hover {
  color: #fff;
}

@media (max-width: 991px) {
  .v3-credit {
    position: static;
    order: 3;
    align-self: flex-start;
    justify-content: flex-start;
    max-width: 100%;
    margin-top: 14px;
  }
}

/* no photo: dark navy with a faint world map */
.v3-banner-plain {
  background:
    radial-gradient(ellipse 60% 70% at 20% 30%, rgba(46, 139, 87, 0.28), rgba(46, 139, 87, 0) 70%),
    radial-gradient(ellipse 50% 60% at 85% 70%, rgba(54, 171, 171, 0.18), rgba(54, 171, 171, 0) 70%),
    url("../images/world-outline.svg") center 42% / max(1500px, 115%) auto no-repeat,
    #0f1d2e;
}

.v3-banner-plain::after {
  display: none;
}

.v3-banner-plain:not(:has(.v3-map-card)) {
  height: clamp(440px, 58vh, 540px);
}

/* ================= v3 sub-pages (resources, travel advice, listings) ================= */

/* account menu in the top bar */
body.v3 .v3-topnav .dropdown-menu {
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

body.v3 .v3-topnav .dropdown-item {
  display: block;
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--ink);
  font: 500 14px var(--text);
}

body.v3 .v3-topnav .dropdown-item:hover {
  background: var(--mist);
  color: var(--ink);
}

body.v3 .v3-topnav .dropdown-divider {
  margin: 5px 0;
  border-color: var(--line);
}

.v3-user .v3-icon-btn {
  font-size: 17px;
}

/* compact dark banner with the faint world map */
.v3-subhero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 120px;
  color: #fff;
}

/* the backdrop stops short of the bottom edge, so no hairline shows under the curve */
.v3-subhero::before {
  content: "";
  position: absolute;
  inset: 0 0 8px;
  background:
    radial-gradient(ellipse 60% 80% at 15% 20%, rgba(46, 139, 87, 0.3), rgba(46, 139, 87, 0) 70%),
    radial-gradient(ellipse 50% 70% at 90% 80%, rgba(54, 171, 171, 0.2), rgba(54, 171, 171, 0) 70%),
    url("../images/world-outline.svg") center 40% / max(1400px, 110%) auto no-repeat,
    #0f1d2e;
}

.v3-subhero.has-photo::before {
  background: #0f1d2e;
}

.v3-subhero-img {
  position: absolute;
  inset: 0 0 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.v3-subhero-inner {
  position: relative;
  z-index: 1;
}

.v3-subhero-text {
  max-width: 760px;
  margin-top: 34px;
}

.v3-subhero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.8);
  font: 700 12px var(--display);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.v3-subhero h1 {
  margin: 0;
  color: #fff;
  font: 800 clamp(38px, 6vw, 68px) / 1.02 var(--display);
  letter-spacing: -1.5px;
}

.v3-subhero h1.is-long {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -1px;
}

.v3-subhero-lede {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.65;
}

.v3-subhero .v3-swoosh {
  bottom: -3px;
  height: 92px;
}

@media (max-width: 640px) {
  .v3-subhero {
    padding: 22px 0 70px;
  }

  .v3-subhero .v3-swoosh {
    height: 44px;
  }

  .v3-subhero-lede {
    font-size: 15.5px;
  }
}

.v3-sub-body {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

/* resources hub cards */
.v3-res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
  margin-top: -40px;
}

body.v3 .v3-res-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(15, 62, 74, 0.06);
  border-radius: var(--r-lg);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.v3 .v3-res-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.v3-res-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--paper);
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(15, 62, 74, 0.08);
}

.b-green .v3-res-ico { color: var(--green-ink); }
.b-blue .v3-res-ico { color: var(--blue); }
.b-plum .v3-res-ico { color: var(--plum); }
.b-sun .v3-res-ico { color: var(--sun); }
.b-coral .v3-res-ico { color: var(--coral); }
.b-sky .v3-res-ico { color: var(--sky); }
.b-green { background: var(--green-soft); }
.b-sky { background: var(--sky-soft); }

.v3-res-title {
  font: 700 19px / 1.25 var(--display);
}

.v3-res-blurb {
  flex: 1;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.v3-res-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.v3-res-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font: 600 12px var(--display);
}

.v3-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0476b;
  box-shadow: 0 0 0 3px rgba(224, 71, 107, 0.25);
}

.v3-res-go {
  color: var(--green-ink);
  font: 600 13px var(--display);
}

.v3-res-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, #0f1d2e, #17485a);
  color: #fff;
}

.v3-res-cta h2 {
  margin: 0 0 4px;
  color: #fff;
  font: 700 24px var(--display);
}

.v3-res-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.v3-res-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.v3 .v3-res-cta .v3-btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
}

/* ---- sub-page content: Bootstrap pieces in the v3 look ---- */
.v3-sub-body {
  padding-top: 8px;
  font-size: 16.5px;
}

.v3-sub-body h2 {
  margin: 40px 0 16px;
  font: 700 clamp(23px, 2.6vw, 28px) / 1.2 var(--display);
  color: var(--ink);
}

.v3-sub-body h3 {
  margin: 30px 0 14px;
  font: 700 20px / 1.25 var(--display);
  color: var(--ink);
}

.v3-sub-body p,
.v3-sub-body li {
  line-height: 1.7;
}

.v3-subhero-big {
  font: 600 24px var(--display);
  color: rgba(255, 255, 255, 0.9);
}

body.v3 .v3-subhero-btn {
  margin-top: 22px;
}

.v3-subhero-art {
  position: absolute;
  top: 40px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  padding: 24px;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
}

.v3-subhero-art svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 860px) {
  .v3-subhero-art {
    display: none;
  }
}

.v3-map-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #eaf4f7;
  box-shadow: var(--shadow);
}

.v3-map-panel svg {
  display: block;
  width: 100%;
  height: auto;
}

.v3-chart-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

/* cards */
.v3-sub-body .card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 62, 74, 0.04);
}

.v3-sub-body .card-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0 !important;
  background: var(--mist);
  color: var(--ink);
  font: 600 15px var(--display);
}

body.v3 .v3-sub-body a.card {
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.v3 .v3-sub-body a.card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}

/* stat and tile cards cycle through the pastel tints */
.v3-sub-body .row > :nth-child(6n + 1) > .card.text-center { background: var(--green-soft); }
.v3-sub-body .row > :nth-child(6n + 2) > .card.text-center { background: var(--blue-soft); }
.v3-sub-body .row > :nth-child(6n + 3) > .card.text-center { background: var(--plum-soft); }
.v3-sub-body .row > :nth-child(6n + 4) > .card.text-center { background: var(--sun-soft); }
.v3-sub-body .row > :nth-child(6n + 5) > .card.text-center { background: var(--coral-soft); }
.v3-sub-body .row > :nth-child(6n + 6) > .card.text-center { background: var(--sky-soft); }

.v3-sub-body .card.text-center {
  border-color: transparent;
}

.v3-sub-body .card[data-tone="strong"] {
  border: 2px solid var(--green) !important;
}

.v3-sub-body .card[data-tone="soft"] {
  opacity: 0.78;
}

.v3-sub-body .info-box-label {
  color: var(--ink-2);
  font: 600 13px / 1.35 var(--display);
}

.v3-sub-body .info-box-value {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

.v3-sub-body .info-box-sub {
  color: var(--muted);
}

/* pill links (languages, plug types, filters) */
.v3-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.v3 .v3-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 13.5px var(--display);
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.v3 .v3-pill:hover {
  border-color: var(--green);
  background: var(--green-soft);
  text-decoration: none;
}

body.v3 .v3-pill.is-on {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.v3-pill .plug-pill-icon svg {
  width: 20px;
  height: 20px;
}

/* tables */
.v3-sub-body table.table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  --bs-table-bg: transparent;
  --bs-table-color: var(--ink);
}

.v3-sub-body table.table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
  color: var(--ink-2);
  font: 600 12.5px var(--display);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

body.v3 .v3-sub-body table.table thead th a {
  color: var(--ink-2);
}

.v3-sub-body table.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.v3-sub-body table.table tbody tr:last-child td {
  border-bottom: 0;
}

.v3-sub-body table.table tbody tr:hover td {
  background: var(--mist);
}

.v3-sub-body .table-responsive,
.v3-sub-body .table-container {
  border-radius: var(--r);
}

/* soft badges */
.v3-sub-body .badge.text-bg-success { background: var(--green-soft) !important; color: var(--green-ink) !important; }
.v3-sub-body .badge.text-bg-warning { background: var(--sun-soft) !important; color: var(--sun) !important; }
.v3-sub-body .badge.text-bg-danger { background: var(--coral-soft) !important; color: var(--coral) !important; }

.v3-sub-body .badge {
  font-family: var(--display);
  font-weight: 600;
}

.v3-sub-body .alert-secondary,
.v3-sub-body .alert-info,
.v3-sub-body .alert-light {
  border: 0;
  border-radius: var(--r);
  background: var(--mist);
  color: var(--ink-2);
}

/* pagination */
.v3-sub-body .pagination {
  gap: 6px;
}

.v3-sub-body .page-link {
  border: 1px solid var(--line);
  border-radius: 999px !important;
  color: var(--ink);
  font: 600 13.5px var(--display);
}

.v3-sub-body .page-item.active .page-link {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

body.v3 .v3-sub-body .btn-dark,
body.v3 .v3-sub-body .btn-primary {
  border-color: var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

body.v3 .v3-sub-body .btn-outline-secondary,
body.v3 .v3-sub-body .btn-outline-dark {
  border-color: var(--line);
  border-radius: 999px;
  color: var(--ink);
}

body.v3 .v3-sub-body .btn-outline-secondary:hover,
body.v3 .v3-sub-body .btn-outline-dark:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--ink);
}

/* sub-hero extras: stat chips, channel avatar and tags */
.v3-subhero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.v3-subhero-stats span {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font: 500 13.5px var(--text);
  backdrop-filter: blur(6px);
}

.v3-subhero-stats b {
  color: #fff;
  font: 700 15px var(--display);
}

body.v3 .v3-subhero-lede a {
  color: #8ff0cd;
}

.v3-subhero-avatar {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.v3-subhero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.v3-subhero-tags span {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: 600 12px var(--display);
}

body.v3 .v3-btn-yt {
  border-color: #e62117;
  background: #e62117;
}

.v3-subhero.has-photo .v3-subhero-text {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* headings inside flex rows and cards keep their own spacing */
.v3-sub-body :is(.d-flex, .card, header) > :is(h2, h3),
.v3-sub-body :is(.d-flex, .card) > div > :is(h2, h3) {
  margin-top: 0;
}

.v3-sub-body > :first-child,
.v3-sub-body > section:first-child > h2:first-child {
  margin-top: 0;
}

/* ---- travel advice ---- */
.v3-subhero-tall {
  padding-bottom: 150px;
}

.v3-advice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 56px;
}

.v3-advice-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.v3-side-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.v3-side-card .v3-kicker {
  margin-bottom: 8px;
}

body.v3 .v3-side-link {
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ink);
  font: 500 14.5px / 1.35 var(--text);
}

body.v3 .v3-side-link:hover {
  background: var(--mist);
  text-decoration: none;
}

.v3-side-link.is-current {
  background: var(--green-soft);
  color: var(--green-ink);
  font-weight: 600;
}

.v3-side-card .v3-pills {
  gap: 6px;
}

.v3-side-card .v3-pill {
  padding: 4px 11px;
  font-size: 12.5px;
}

@media (max-width: 991px) {
  .v3-advice {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .v3-advice-aside {
    position: static;
  }
}

/* long-form prose from CMS blocks */
.v3-prose {
  font-size: 17px;
}

.v3-prose p,
.v3-prose li {
  line-height: 1.75;
}

.v3-prose .v3-advice-main > :first-child,
.v3-advice-main > :first-child {
  margin-top: 0;
}

body.v3 .v3-prose a:not(.v3-btn):not(.v3-pill):not(.card):not(.btn) {
  color: var(--green-ink);
  text-decoration: underline;
  text-decoration-color: rgba(11, 143, 104, 0.35);
  text-underline-offset: 3px;
}

body.v3 .v3-prose a:not(.v3-btn):not(.v3-pill):not(.card):not(.btn):hover {
  text-decoration-color: currentColor;
}

.v3-prose blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--green-soft);
}

.v3-prose table:not(.table) {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r);
  font-size: 15px;
}

.v3-prose table:not(.table) th {
  padding: 10px 14px;
  background: var(--mist);
  font: 600 13px var(--display);
}

.v3-prose table:not(.table) td {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

/* travel-advice link cards: pastel tints instead of the dark left rule */
.v3-prose .row > [class*="col"] > a.card.card-link {
  border: 1px solid transparent;
  border-left: 0 !important;
  border-radius: var(--r-lg);
  box-shadow: none;
}

.v3-prose .row > :nth-child(6n + 1) > a.card.card-link { background: var(--green-soft); }
.v3-prose .row > :nth-child(6n + 2) > a.card.card-link { background: var(--blue-soft); }
.v3-prose .row > :nth-child(6n + 3) > a.card.card-link { background: var(--plum-soft); }
.v3-prose .row > :nth-child(6n + 4) > a.card.card-link { background: var(--sun-soft); }
.v3-prose .row > :nth-child(6n + 5) > a.card.card-link { background: var(--coral-soft); }
.v3-prose .row > :nth-child(6n + 6) > a.card.card-link { background: var(--sky-soft); }

.v3-prose a.card.card-link .card-body {
  padding: 22px;
}

.v3-prose a.card.card-link h3 {
  font: 700 18px / 1.3 var(--display) !important;
}

.v3-prose a.card.card-link p,
.v3-prose a.card.card-link .card-text {
  color: var(--muted);
  font-size: 15px;
}

/* section headings: plain, left-aligned, no rules */
.v3-prose .section-heading,
.v3-sub-body .section-heading {
  display: block;
  margin: 44px 0 14px;
  color: var(--ink);
  font: 700 clamp(23px, 2.6vw, 28px) / 1.2 var(--display);
  text-align: left;
}

.v3-prose .section-heading::before,
.v3-prose .section-heading::after,
.v3-sub-body .section-heading::before,
.v3-sub-body .section-heading::after {
  display: none !important;
}

/* site sakura bullets -> small green dots */
.v3-prose ul li::before {
  width: 6px !important;
  height: 6px !important;
  margin-top: 0.68em;
  border-radius: 50%;
  background: var(--green) !important;
  background-image: none !important;
}

/* "More in the travel guide" pills */
.advice-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.v3 .advice-cat-pill {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink) !important;
  font: 600 13.5px var(--display);
  text-decoration: none !important;
}

body.v3 .advice-cat-pill:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.advice-cat-pill--current {
  border-color: var(--green) !important;
  background: var(--green) !important;
  color: #fff !important;
}

/* advice hub and sections: one readable column, headings aligned with the text */
.v3-sub-body.travel-advice {
  max-width: 1000px;
}

.v3-prose .section-desc,
.v3-prose .section-heading {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.v3-prose .row.mx-auto {
  margin-right: calc(-0.5 * var(--bs-gutter-x)) !important;
  margin-left: calc(-0.5 * var(--bs-gutter-x)) !important;
}

.v3-viewall [hidden] {
  display: none;
}

/* ---- city / attraction listings ---- */
.v3-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.v3-group-pills .n {
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 62, 74, 0.08);
  font-size: 12px;
}

.v3-group-pills .is-on .n {
  background: rgba(255, 255, 255, 0.25);
}

.v3-listing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.v3 .v3-listing .sort-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--mist);
}

body.v3 .v3-listing .sort-tab {
  margin: 0;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font: 600 13.5px var(--display);
  cursor: pointer;
}

body.v3 .v3-listing .sort-tab:hover {
  color: var(--ink);
  text-decoration: none;
}

body.v3 .v3-listing .sort-tab.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 62, 74, 0.12);
}

.v3-listing .sort-tabs-spinner {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
}

.v3-listing .kind-pills-wrap {
  position: relative;
}

.v3-listing .kind-pills {
  display: flex;
  gap: 8px;
  padding: 4px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.v3-listing .kind-pills::-webkit-scrollbar {
  display: none;
}

body.v3 .v3-listing .kind-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 13px var(--display);
  white-space: nowrap;
}

body.v3 .v3-listing .kind-pill:hover {
  border-color: var(--green);
  background: var(--green-soft);
  text-decoration: none;
}

body.v3 .v3-listing .kind-pill.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.v3-listing .kind-pill-count {
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 62, 74, 0.08);
  font-size: 11.5px;
}

.v3-listing .kind-pill.active .kind-pill-count {
  background: rgba(255, 255, 255, 0.25);
}

.v3-listing .kind-pills-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(-60%);
}

.v3-listing .kind-pills-arrow-left { left: -10px; }
.v3-listing .kind-pills-arrow-right { right: -10px; }

/* listing cards: photo on top, rounded, rank chip on the photo */
body.v3 .v3-listing a.card.card-link {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
}

.v3-listing .card-img-top {
  border-radius: 0;
}

.v3-listing .card-img-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  background:
    url("../images/world-outline.svg") center / 260% auto no-repeat,
    linear-gradient(135deg, #0f1d2e, #17485a);
  color: rgba(255, 255, 255, 0.5);
  font-size: 26px;
}

.v3-listing .card-body {
  padding: 12px 14px 14px;
}

.v3-listing .card-rank,
.v3-cat .card-rank {
  position: absolute;
  top: -16px;
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 700 12.5px var(--display);
}

.v3-listing .card-title {
  margin: 8px 0 2px;
  font: 600 16px / 1.3 var(--display);
}

.v3-listing .card-subtitle {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.v3-listing .badge-geo-sm {
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mist) !important;
  color: var(--ink-2) !important;
  font: 600 11px var(--display);
}

.v3-listing #load-more .btn,
.v3-listing [data-static-loadmore] .btn {
  padding: 9px 26px;
}

/* ---------- home page (v3/home.html) ---------- */
.v3-home-hero {
  position: relative;
  display: flex;
  min-height: clamp(560px, 78vh, 720px);
  overflow: hidden;
  background: #0f1d2e;
  color: #fff;
}

.v3-home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 55%, rgba(6, 30, 38, 0.55) 0%, rgba(6, 30, 38, 0.2) 60%, rgba(6, 30, 38, 0) 85%),
    linear-gradient(180deg, rgba(6, 30, 38, 0.35) 0%, rgba(6, 30, 38, 0) 25%);
}

.v3-home-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 130px;
  text-align: center;
}

.v3-home-hero .v3-kind {
  margin: 0 0 18px;
}

.v3-home-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font: 800 clamp(38px, 6vw, 72px) / 1.02 var(--display);
  letter-spacing: -1.5px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.v3-home-lede {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.v3-home-search {
  display: flex;
  align-items: center;
  width: min(620px, 100%);
  margin-top: 28px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  color: #0f3e4a;
  text-align: left;
}

.v3-home-search .search-icon {
  flex: none;
  color: #7d98a1;
}

.v3-home-search .ts-wrapper {
  flex: 1;
  min-width: 0;
}

.v3-home-search .ts-wrapper.single .ts-control {
  min-height: 0;
  flex-wrap: nowrap;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0f3e4a;
  font-size: 16px;
}

.v3-home-search .ts-control input {
  width: 100% !important;
  color: #0f3e4a;
}

.v3-home-search .ts-control.has-items input {
  width: 0 !important;
  min-width: 0;
}

.v3-home-search .ts-dropdown {
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

body.v3 .v3-home-search .v3-btn {
  flex: none;
  padding: 11px 24px;
}


.v3-home-first {
  padding-top: 20px;
}

.v3-home-intro {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.v3-home-tint {
  background: var(--mist);
}

.v3-home-tint + .v3-band {
  padding-top: 60px;
}

/* section heads: kicker + big two-tone title, action on the right */
.v3-home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.v3-home-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--green-ink);
  font: 700 12px var(--display);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.v3-home-big {
  margin: 0;
  color: var(--ink);
  font: 800 clamp(30px, 4vw, 44px) / 1.1 var(--display);
  letter-spacing: -0.8px;
}

.v3-home-big span {
  color: var(--green);
}

/* continents as photo circles */
.v3-home-circles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 34px 0 12px;
}

body.v3 .v3-home-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  text-align: center;
}

body.v3 .v3-home-circle:hover {
  text-decoration: none;
}

.v3-home-circle-img {
  display: block;
  width: min(124px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--mist);
  box-shadow: 0 0 0 2px var(--line), var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.v3-home-circle:hover .v3-home-circle-img {
  box-shadow: 0 0 0 3px var(--green), var(--shadow-lg);
  transform: translateY(-4px);
}

.v3-home-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3-home-circle b {
  margin-top: 12px;
  font: 600 15px / 1.2 var(--display);
}

.v3-home-circle small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

/* "Most Popular" sub-head: title left, link right */
.v3-home-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
}

.v3-home-subhead h2 {
  margin: 0;
  font: 700 22px var(--display);
}

.v3-home-subhead .v3-viewall {
  margin: 0;
}

body.v3 .v3-home-subhead .v3-viewall a {
  color: var(--ink-2);
  font: 600 14px var(--display);
}

.v3-home-subhead .v3-chips + * {
  margin-top: 0;
}

/* skewed photo cards (stippl's "Popular right now") */
.v3-skew-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 22px;
}

.v3-home-subhead + .v3-chips {
  margin-top: 14px;
}

.v3-home-subhead + .v3-chips + .v3-skew-grid {
  margin-top: 0;
}

.v3-skew {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1.04;
  border-radius: 16px;
  background: var(--mist);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(var(--ry, 0deg)) rotate(var(--rz, 0deg));
  transition: transform 0.25s, box-shadow 0.25s;
}

.v3-skew:nth-child(5n + 1) { --ry: 7deg; --rz: -1.6deg; }
.v3-skew:nth-child(5n + 2) { --ry: -5deg; --rz: 1.2deg; }
.v3-skew:nth-child(5n + 3) { --ry: 4deg; --rz: -0.6deg; }
.v3-skew:nth-child(5n + 4) { --ry: -6deg; --rz: 1.6deg; }
.v3-skew:nth-child(5n) { --ry: 5deg; --rz: -1deg; }
.v3-skew:nth-child(10n + 6) { --ry: -4deg; --rz: 0.8deg; }
.v3-skew:nth-child(10n + 8) { --ry: -7deg; --rz: -1.4deg; }

.v3-skew:hover {
  box-shadow: var(--shadow-lg);
  transform: perspective(900px) rotateY(0) rotate(0) translateY(-4px);
}

.v3-skew[hidden] {
  display: none;
}

.v3-skew > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3-skew::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7));
}

.v3-skew-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.25);
}

.v3-skew-temp {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f3e4a;
  font: 600 11px var(--display);
}

.v3-skew-temp .bi {
  color: #e0476b;
}

.v3-skew-txt {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  color: #fff;
}

.v3-skew-txt b {
  display: block;
  font: 700 16px / 1.2 var(--display);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.v3-skew-txt small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.35;
  opacity: 0.92;
}

.v3-home-month .v3-skew-grid {
  margin-top: 30px;
}

/* interests: white cards with a photo */
.v3-home-interests {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

body.v3 .v3-home-int {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

body.v3 .v3-home-int:hover {
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-3px);
}

.v3-home-int-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--mist);
}

.v3-home-int-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3-home-int-ico {
  position: absolute;
  bottom: -18px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--green-ink);
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(15, 62, 74, 0.15);
}

.v3-home-int-txt {
  display: block;
  padding: 26px 16px 16px;
}

.v3-home-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

body.v3 .v3-home-more .v3-chip:hover {
  border-color: var(--green);
  text-decoration: none;
}

.v3-home-int b,
.v3-home-start b,
.v3-home-styles b {
  display: block;
  font: 600 15.5px / 1.3 var(--display);
}

.v3-home-int small,
.v3-home-start small,
.v3-home-styles small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* plan your trip */
.v3-home-plan {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 24px;
}

body.v3 .v3-home-start {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: linear-gradient(120deg, #0f1d2e, #17485a);
  color: #fff;
}

body.v3 .v3-home-start:hover {
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

.v3-home-start small {
  color: rgba(255, 255, 255, 0.8) !important;
}

.v3-home-start .v3-res-ico {
  flex: none;
  margin: 0;
  color: var(--green-ink);
}

.v3-home-start > .bi-arrow-right {
  margin-left: auto;
  font-size: 20px;
}

.v3-home-h3 {
  margin: 26px 0 12px;
  font: 600 19px var(--display);
}

.v3-home-byg .v3-home-h3 {
  margin-top: 0;
}

.v3-home-styles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v3-home-byg {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.v3-home-byg ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.v3-home-byg li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.v3-home-byg li:last-child {
  border-bottom: 0;
}

.v3-home-byg li .bi {
  flex: none;
  margin-top: 2px;
  color: var(--green);
}

.v3-home-res {
  margin-top: 24px;
}

.v3-home-about h3 {
  margin: 0 0 6px;
  font: 600 17px var(--display);
}

.v3-home-about p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 991px) {
  .v3-home-plan { grid-template-columns: minmax(0, 1fr); }
  .v3-home-interests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-skew-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v3-home-circles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .v3-home-styles { grid-template-columns: minmax(0, 1fr); }
  .v3-skew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-home-interests { grid-template-columns: minmax(0, 1fr); }
  .v3-home-lede { font-size: 16px; }
  body.v3 .v3-home-search .v3-btn { padding: 10px 16px; }
  .v3-home-search { padding-left: 14px; }
  .v3-home-circle-img { width: min(104px, 100%); }
}
}

.v3-home-styles small {
  font-family: var(--text);
  font-weight: 400;
}

/* continent circles: centre on the photo's subject */
.v3-home-circle[href="/north-america/"] img { object-position: 64% 50%; }
.v3-home-circle[href="/south-america/"] img { object-position: 60% 40%; }
.v3-home-circle[href="/oceania/"] img { object-position: 92% 50%; }

/* ---------- month pages (pages/travel_guide_month.html) ---------- */
.v3-month-hero .v3-subhero-text {
  max-width: 820px;
}

.v3-month-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.v3-month-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.v3-month-fact small {
  color: rgba(255, 255, 255, 0.75);
  font: 600 10.5px var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.v3-month-fact b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font: 600 15px var(--display);
}

.v3-month-fact .bi {
  font-size: 13px;
  opacity: 0.85;
}

.v3-sdot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--faint);
}

.s-high .v3-sdot { background: var(--bar-best); }
.s-shoulder .v3-sdot { background: var(--bar-mid); }
.s-low .v3-sdot { background: var(--bar-low); }

.v3-month {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

/* month strip: twelve season-coloured bars */
.v3-month-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  margin-top: -30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

body.v3 .v3-month-strip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0 8px;
  border-radius: 12px;
  color: var(--muted);
}

body.v3 .v3-month-strip a:hover {
  background: var(--mist);
  text-decoration: none;
}

body.v3 .v3-month-strip a.is-on {
  background: var(--mist);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--green);
}

.v3-month-bar {
  display: block;
  width: 70%;
  height: 34px;
  border-radius: 999px;
  background: var(--line);
}

.s-high .v3-month-bar { height: 52px; background: var(--bar-best); }
.s-shoulder .v3-month-bar { height: 40px; background: var(--bar-mid); }
.s-low .v3-month-bar { height: 28px; background: var(--bar-low); }

.v3-month-strip a {
  justify-content: flex-end;
  min-height: 86px;
}

.v3-month-strip b {
  font: 600 13px var(--display);
}

.v3-month-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.v3-month-advisory {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--r);
  background: var(--coral-soft);
}

.v3-month-advisory p:last-child {
  margin-bottom: 0;
}

/* weather: city range bars | map */
.v3-month-weather {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 40px;
}

.v3-month-weather.no-map {
  grid-template-columns: minmax(0, 1fr);
}

.v3-month-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.v3-month-card .v3-band-title,
.v3-month-sec .v3-band-title {
  font-size: clamp(22px, 2.6vw, 26px);
}

.v3-month-h3 {
  margin: 0 0 14px;
  font: 600 19px var(--display);
}

.v3-month-map img {
  width: 100%;
  border-radius: 14px;
}

.v3-month-map .temp-legend {
  margin-top: 10px;
}

.v3-wx-head,
.v3-wx li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 84px;
  align-items: center;
  gap: 14px;
}

.v3-wx-head {
  margin: 20px 0 4px;
  color: var(--faint);
  font: 600 11px var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.v3-wx {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v3-wx li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.v3-wx li:last-child {
  border-bottom: 0;
}

.v3-wx-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font: 600 15px var(--display);
}

.v3-wx-name .badge {
  font: 600 10.5px var(--text);
}

.v3-wx-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 13px var(--display);
}

.v3-wx-lo { color: var(--blue); min-width: 30px; text-align: right; }
.v3-wx-hi { color: var(--coral); min-width: 30px; }

.v3-wx-track {
  position: relative;
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--mist);
}

.v3-wx-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7db8e0, #e8c96a 55%, #f08a6c);
}

.v3-wx-rain {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.v3-wx-rain .bi {
  color: var(--blue);
}

.v3-month-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* regions + events */
.v3-month-sec {
  margin-top: 48px;
}

.v3-month-regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.v3-month-region {
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--green-soft);
}

.v3-month-region:nth-child(6n + 2) { background: var(--blue-soft); }
.v3-month-region:nth-child(6n + 3) { background: var(--sun-soft); }
.v3-month-region:nth-child(6n + 4) { background: var(--plum-soft); }
.v3-month-region:nth-child(6n + 5) { background: var(--sky-soft); }
.v3-month-region:nth-child(6n) { background: var(--coral-soft); }

.v3-month-region h3 {
  margin: 0;
  font: 600 18px / 1.3 var(--display);
}

.v3-month-places {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.v3-month-region .v3-prose p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
}

.v3-month-region .v3-prose p + p {
  margin-top: 10px;
}

.v3-month-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.v3-month-event {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

.v3-month-event b {
  font: 600 15.5px var(--display);
}

.v3-month-event p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.v3-month .v3-res-cta {
  margin-top: 48px;
}

@media (max-width: 991px) {
  .v3-month-weather { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .v3-month-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 12px; }
  .v3-month-regions { grid-template-columns: minmax(0, 1fr); }
  .v3-wx-head,
  .v3-wx li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .v3-wx-rain { grid-column: 1 / -1; margin-top: -4px; }
  .v3-wx-head span:last-child { display: none; }
  .v3-month-card { padding: 18px; }
}

.v3-wx-sub {
  color: var(--faint);
  font: 400 12px var(--text);
}

/* "More ways to travel" icon tiles under the interest photo cards */
.v3-home-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.v3-home-tiles small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font: 400 12.5px / 1.35 var(--text);
}

.v3-home-interests + .v3-home-h3 {
  margin-top: 36px;
}

/* plan your trip: start card, then the before-you-go list in two columns */
.v3-home-start {
  margin-top: 24px;
}

.v3-home-byg {
  margin-top: 16px;
}

.v3-home-byg ul {
  columns: 2;
  column-gap: 40px;
}

.v3-home-byg li {
  break-inside: avoid;
}

@media (max-width: 991px) {
  .v3-home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .v3-home-byg ul { columns: 1; }
}

@media (max-width: 520px) {
  .v3-home-tiles { grid-template-columns: minmax(0, 1fr); }
}

.v3-card-flag {
  width: 18px;
  height: 18px;
  margin: -2px 7px 0 0;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  box-shadow: 0 0 0 1px var(--line);
}

/* the current interest in the "Find Your Interest" nav */
.v3-sub-body .btn-secondary.disabled {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  opacity: 1;
}
