/* ---- globals.css */
/* Proud Indonesia: merah putih. White pages, the flag's red for everything that matters. */
:root {
  --red: #d7141a;
  --red-deep: #a30d16;
  --red-dark: #6e0a10;
  --red-soft: #fff0f1;
  --red-line: #ffd4d7;
  --white: #ffffff;
  --bg: #ffffff;
  --paper: #ffffff;
  --cloud: #faf7f7;
  --ink: #1b1515;
  --ink-2: #4a4141;
  --muted: #8a7f7f;
  --line: #f0e6e6;
  --gold: #e9b44c;
  --star-off: #e6dcdc;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgb(110 10 16 / 6%), 0 4px 12px rgb(110 10 16 / 6%);
  --shadow: 0 2px 4px rgb(110 10 16 / 6%), 0 16px 40px rgb(110 10 16 / 10%);
  --shadow-lg: 0 30px 80px rgb(110 10 16 / 22%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-serif: Georgia, serif;
  --font-sans: system-ui, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--red);
  color: #fff;
}

a {
  color: var(--red);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-serif), Georgia, serif;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: var(--ink);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86em;
}

.pad {
  padding: 28px;
}

.block {
  padding-top: 72px;
  padding-bottom: 24px;
}

.block-sm {
  margin-top: 40px;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 8px;
}

.eyebrow,
.kicker,
.hero-kind {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 10px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgb(215 20 26 / 30%);
}

.btn-red:hover {
  background: var(--red-deep);
}

.btn-white {
  background: #fff;
  color: var(--red);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.btn-glass {
  background: rgb(255 255 255 / 16%);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 40%);
  backdrop-filter: blur(10px);
}

.btn-glass:hover,
.btn-glass.is-on {
  background: #fff;
  color: var(--red);
}

.btn-outline {
  background: #fff;
  color: var(--red);
  border: 1.5px solid var(--red-line);
}

.btn-outline:hover {
  border-color: var(--red);
}

.btn-ghost {
  background: var(--cloud);
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: var(--red-soft);
  color: var(--red);
}

.btn-google {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 14px;
  font-size: 1rem;
}

.btn-google:hover {
  border-color: var(--ink-2);
}

.btn-google.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.center-btn {
  display: flex;
  margin: 24px auto 0;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 4px 6px;
}

.link-btn:hover {
  color: var(--red);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-flag {
  width: 26px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(var(--red) 50%, #fff 50%);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgb(215 20 26 / 25%);
  animation: wave 4s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes wave {
  0%,
  100% {
    transform: skewY(0deg);
  }
  50% {
    transform: skewY(-4deg);
  }
}

.brand-name {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand-name b {
  color: var(--red);
}

.header-search {
  flex: 1;
  max-width: 440px;
  margin-left: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.93rem;
  font-weight: 500;
}

.header-nav > a {
  color: var(--ink-2);
}

.header-nav > a:hover {
  color: var(--red);
}

.lang-switch {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-2) !important;
}

.lang-switch:hover {
  border-color: var(--red);
  color: var(--red) !important;
}

.user-menu {
  position: relative;
}

.user-menu-placeholder {
  display: inline-block;
  width: 34px;
  height: 34px;
}

.user-menu-btn {
  border: 0;
  background: none;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red);
}

.user-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 250px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  animation: pop 0.18s var(--ease);
}

.user-menu-pop a,
.user-menu-pop button {
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
}

.user-menu-pop a:hover,
.user-menu-pop button:hover {
  background: var(--red-soft);
  color: var(--red);
}

.user-menu-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.user-menu-head small {
  display: block;
  color: var(--muted);
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-initials {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font-weight: 700;
}

/* ---------------------------------------------------------------- search */
.search {
  position: relative;
}

.search form {
  position: relative;
}

.search input {
  width: 100%;
  font-size: 1.05rem;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 16px 22px 16px 52px;
  outline: none;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.2s;
}

.search input:focus {
  border-color: var(--gold);
}

.search-compact input {
  font-size: 0.92rem;
  padding: 9px 14px 9px 40px;
  box-shadow: none;
  background: var(--cloud);
  border: 1.5px solid var(--line);
}

.search-compact input:focus {
  border-color: var(--red);
  background: #fff;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--red);
  pointer-events: none;
}

.search-compact .search-icon {
  left: 14px;
  width: 16px;
  height: 16px;
}

.search-results {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: pop 0.15s var(--ease);
}

.search-results button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  padding: 10px 14px;
  border-radius: 9px;
}

.search-results button.active {
  background: var(--red);
  color: #fff;
}

.search-results button.active small {
  color: rgb(255 255 255 / 80%);
}

.search-results small {
  color: var(--muted);
  white-space: nowrap;
}

.search-empty {
  padding: 10px 14px;
  color: var(--muted);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

/* ---------------------------------------------------------------- section heads + reveal */
.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 5px;
  border-radius: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--red) 50%, var(--line) 50%);
}

.section-head p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 1.05rem;
}

.section-head.light h2,
.section-head.light p {
  color: #fff;
}

.section-head.light .kicker {
  color: #ffd6d8;
}

.section-head.light h2::after {
  background: linear-gradient(90deg, #fff 50%, rgb(255 255 255 / 30%) 50%);
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}

/* ---------------------------------------------------------------- home */
.home-hero-red {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 20%, rgb(255 255 255 / 14%), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgb(110 10 16 / 50%), transparent 70%),
    linear-gradient(160deg, #e3191f 0%, var(--red) 40%, var(--red-deep) 100%);
  color: #fff;
  overflow: hidden;
}

.home-hero-red::before {
  /* batik-like kawung dots, very faint */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 25%, rgb(255 255 255 / 7%) 2px, transparent 3px), radial-gradient(circle at 75% 75%, rgb(255 255 255 / 7%) 2px, transparent 3px);
  background-size: 34px 34px;
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 640px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.home-hero .hero-kind {
  color: #ffd6d8;
}

.home-hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.home-hero-text {
  font-size: 1.18rem;
  max-width: 50ch;
  color: rgb(255 255 255 / 88%);
  margin: 22px 0 30px;
}

.hero-search {
  max-width: 600px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-chips a {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.86rem;
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s;
}

.quick-chips a:hover {
  background: #fff;
  color: var(--red);
}

.home-collage {
  position: relative;
  height: 520px;
}

.collage-card {
  position: absolute;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 5px solid #fff;
  transition: transform 0.5s var(--ease), z-index 0s;
  animation: float 9s ease-in-out infinite;
}

.collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-card span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-shadow: 0 1px 6px rgb(0 0 0 / 60%);
}

.collage-card:hover {
  transform: scale(1.06) rotate(0deg) !important;
  z-index: 5;
}

.collage-card.c0 {
  width: 62%;
  height: 58%;
  left: 18%;
  top: 4%;
  transform: rotate(-3deg);
  z-index: 3;
}

.collage-card.c1 {
  width: 44%;
  height: 40%;
  left: 0;
  top: 52%;
  transform: rotate(4deg);
  animation-delay: -2s;
  z-index: 2;
}

.collage-card.c2 {
  width: 44%;
  height: 42%;
  right: 0;
  top: 50%;
  transform: rotate(-5deg);
  animation-delay: -4s;
  z-index: 4;
}

.collage-card.c3 {
  width: 30%;
  height: 28%;
  right: 2%;
  top: 0;
  transform: rotate(7deg);
  animation-delay: -6s;
}

.collage-card.c4 {
  width: 28%;
  height: 26%;
  left: 0;
  top: 10%;
  transform: rotate(-8deg);
  animation-delay: -3s;
}

@keyframes float {
  50% {
    translate: 0 -10px;
  }
}

.home-hero-white {
  background: #fff;
  position: relative;
}

.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: -56px auto 0;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 0;
  max-width: 1000px;
}

.counters div {
  text-align: center;
  border-right: 1px solid var(--line);
}

.counters div:last-child {
  border: 0;
}

.counters dt {
  font-family: var(--font-serif), Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--red);
  line-height: 1.1;
}

.counters dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-scroll,
.near-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding: 6px 0 22px;
}

.feature-card,
.near-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: linear-gradient(150deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.feature-card:hover,
.near-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.feature-card img,
.near-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.feature-card:hover img,
.near-card:hover img {
  transform: scale(1.08);
}

.near-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(70 6 10 / 85%) 0%, rgb(70 6 10 / 20%) 45%, transparent 70%);
}

.near-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 5rem;
  color: rgb(255 255 255 / 25%);
}

.feature-text,
.near-text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-text small,
.near-text small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffd6d8;
}

.feature-text strong {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.near-text strong {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.25rem;
}

.feature-text em {
  font-style: normal;
  font-size: 0.82rem;
  opacity: 0.85;
}

.near-scroll {
}

.map-band {
  margin-top: 64px;
  padding: 72px 0;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
}

.islands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.island {
  background: var(--cloud);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.island:hover {
  border-color: var(--red-line);
  box-shadow: var(--shadow-sm);
}

.island h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.island ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.island a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: all 0.2s;
}

.island a small {
  background: var(--red-soft);
  color: var(--red);
  border-radius: 999px;
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.75rem;
}

.island a:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.island a:hover small {
  background: rgb(255 255 255 / 25%);
  color: #fff;
}

.cta-band {
  margin-top: 80px;
  background: var(--red);
  color: #fff;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta-band p {
  margin: 8px 0 0;
  opacity: 0.88;
}

/* ---------------------------------------------------------------- the travel map */
.trail {
  position: relative;
}

.trail svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgb(70 6 10 / 30%));
}

.trail-dot {
  fill: #d98d93;
  stroke: #fff;
  stroke-width: 1;
  transition: r 0.2s, fill 0.2s;
  cursor: pointer;
}

.trail-dot:hover {
  fill: var(--red-deep);
  r: 7;
}

.trail-dot.is-on {
  fill: var(--red);
}

.trail-dot.is-here {
  fill: var(--gold);
}

.trail-pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  pointer-events: none;
  animation: pulse 2.2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

.trail-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
}

.trail-tip small {
  display: block;
  opacity: 0.7;
}

.progress {
  height: 10px;
  background: var(--red-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 6px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-deep));
  border-radius: 999px;
  transition: width 1s var(--ease);
}

/* ---------------------------------------------------------------- region page */
.region-hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  background: linear-gradient(150deg, var(--red), var(--red-dark));
  color: #fff;
  overflow: hidden;
}

.region-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-out both;
}

@keyframes kenburns {
  from {
    transform: scale(1.12);
  }
}

.region-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(110 10 16 / 92%) 0%, rgb(110 10 16 / 55%) 32%, rgb(0 0 0 / 10%) 70%, rgb(0 0 0 / 25%) 100%);
}

.region-hero-text {
  position: relative;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 48px;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

.region-hero .hero-kind {
  color: #fff;
  background: var(--red);
  padding: 5px 12px;
  border-radius: 999px;
}

.region-hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-shadow: 0 4px 30px rgb(0 0 0 / 30%);
}

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.crumbs a {
  color: inherit;
}

.crumbs span {
  margin: 0 6px;
  opacity: 0.6;
}

.crumbs-light {
  color: rgb(255 255 255 / 85%);
}

.hero-facts {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.98rem;
  color: rgb(255 255 255 / 92%);
}

.hero-actions {
  margin-top: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-live {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 85%);
  align-items: center;
}

.hero-live .stars {
  color: var(--gold);
}

.photo-credit {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-size: 0.72rem;
  color: rgb(255 255 255 / 70%);
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(255 255 255 / 40%);
  background: rgb(255 255 255 / 16%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s var(--ease);
}

.save-btn:hover {
  background: #fff;
  color: var(--red);
}

.save-btn.is-on {
  background: #fff;
  color: var(--red);
}

.save-btn.is-on svg {
  animation: beat 0.4s var(--ease);
}

@keyframes beat {
  50% {
    transform: scale(1.35);
  }
}

.detail-actions .save-btn,
.culture-tile .save-btn {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red-line);
  backdrop-filter: none;
}

.detail-actions .save-btn {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.detail-actions .save-btn.is-on {
  background: var(--red);
  color: #fff;
}

.save-compact {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  background: rgb(255 255 255 / 92%);
  color: var(--red);
  border: 0;
  box-shadow: var(--shadow-sm);
}

.save-compact.is-on {
  background: var(--red);
  color: #fff;
}

.culture-tile .save-compact {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
}

.tabs {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.tabs-row a {
  white-space: nowrap;
  padding: 8px 16px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s;
}

.tabs-row a:hover {
  background: var(--red);
  color: #fff;
}

.region-body > section {
  padding-top: 80px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.intro-lead {
  font-family: var(--font-serif), Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 18px;
}

.intro-lead::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.8;
  margin: 6px 12px 0 0;
  color: var(--red);
  font-weight: 700;
}

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.stat-cards div {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.stat-cards dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.stat-cards dd {
  margin: 4px 0 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.explore-3d {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 22px 22px 22px 86px;
  border-radius: var(--radius);
  background: linear-gradient(130deg, var(--red), var(--red-dark));
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}

.explore-3d:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.explore-3d-badge {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--red);
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.1rem;
}

.explore-3d span:last-child {
  font-size: 0.88rem;
  opacity: 0.85;
}

.prose {
  max-width: 72ch;
  color: var(--ink-2);
}

.prose h3 {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 26px 0 8px;
}

.prose p {
  margin: 0 0 14px;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 32px 0 10px;
}

.read-more {
  margin-top: 26px;
}

.read-more-body {
  position: relative;
  max-height: calc(var(--lines) * 1.75em);
  overflow: hidden;
  transition: max-height 0.6s var(--ease);
}

.read-more-body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.read-more.is-open .read-more-body {
  max-height: none;
}

.read-more.is-open .read-more-body::after {
  display: none;
}

.read-more-btn {
  margin-top: 8px;
  border: 0;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.read-more-btn:hover {
  background: var(--red);
  color: #fff;
}

.fallback-note {
  font-size: 0.85rem !important;
  color: var(--muted);
  font-style: italic;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chips button {
  white-space: nowrap;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.filter-chips button small {
  opacity: 0.6;
  margin-left: 4px;
}

.filter-chips button:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-chips button.is-on {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}

.bento-card {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.bento-card.is-big {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.bento-card:hover img {
  transform: scale(1.08);
}

.bento-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 4rem;
  color: rgb(255 255 255 / 22%);
}

.bento-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(70 6 10 / 88%) 0%, rgb(70 6 10 / 25%) 50%, transparent 75%);
}

.bento-text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento-type {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #ffd6d8;
}

.bento-text strong {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.15;
}

.bento-card.is-big .bento-text strong {
  font-size: 1.9rem;
}

.bento-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gold);
}

.bento-rating.dark {
  color: var(--ink-2);
  margin-top: 8px;
}

.bento-rating .stars,
.culture-tile .stars {
  color: var(--gold);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.culture-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}

.culture-tile::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 50%, var(--red-line) 50%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.culture-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--red-line);
}

.culture-tile:hover::before {
  transform: scaleX(1);
}

.culture-icon {
  font-size: 2.2rem;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  border-radius: 18px;
  margin-bottom: 14px;
  transition: transform 0.4s var(--ease);
}

.culture-tile:hover .culture-icon {
  transform: rotate(-8deg) scale(1.08);
}

.culture-tile strong {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.15;
}

.culture-lead {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.from-province {
  margin-top: 40px;
  padding: 28px;
  background: var(--cloud);
  border-radius: var(--radius);
}

.from-province h3 {
  font-size: 1.5rem;
}

.from-province > p {
  margin: 4px 0 18px;
}

.community-band {
  position: relative;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--red-soft), #fff);
  border: 1.5px dashed var(--red-line);
  margin-bottom: 26px;
}

.cta-card strong {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.4rem;
}

.cta-card p {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.sources {
  margin-top: 80px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--cloud);
  font-size: 0.92rem;
}

.sources h2 {
  font-size: 1.3rem;
}

.sources ul {
  padding-left: 18px;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- notes (travel posts) */
.notes-grid {
  columns: 3 300px;
  column-gap: 18px;
}

.note-card {
  break-inside: avoid;
  margin-bottom: 18px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.note-photos {
  display: grid;
  gap: 3px;
  position: relative;
}

.note-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.note-photos.n1 img {
  aspect-ratio: 4 / 3;
}

.note-photos.n2 {
  grid-template-columns: 1fr 1fr;
}

.note-photos.n3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.note-photos.n3 .first {
  grid-row: span 2;
  aspect-ratio: auto;
}

.note-more {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 2px 10px;
}

.note-body {
  padding: 16px 18px 12px;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

a.note-meta:hover {
  text-decoration: none;
}

.note-meta strong {
  color: var(--ink);
}

.note-meta small {
  display: block;
}

.note-region {
  margin: 10px 0 2px;
  font-size: 0.82rem;
  color: var(--red);
  font-weight: 600;
}

.note-card h3 {
  font-size: 1.3rem;
  margin: 6px 0;
}

.note-card .stars {
  color: var(--gold);
}

.note-text {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 0.93rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.note-actions .spacer {
  flex: 1;
}

.like,
.note-comments {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
}

.like:hover,
.note-comments:hover {
  background: var(--red-soft);
  color: var(--red);
}

.like.is-on {
  color: var(--red);
}

.like.pop svg {
  animation: beat 0.45s var(--ease);
}

.notes-empty {
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius);
  background: var(--cloud);
  color: var(--ink-2);
}

.notes-empty p {
  margin: 0 0 16px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skeleton {
  height: 260px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--cloud) 25%, var(--red-soft) 50%, var(--cloud) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------------------------------------------------------------- stars */
.stars {
  display: inline-flex;
  gap: 1px;
  vertical-align: middle;
  color: var(--gold);
}

.stars-input button {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--gold);
  transition: transform 0.15s;
}

.stars-input button:hover {
  transform: scale(1.2);
}

/* ---------------------------------------------------------------- modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(40 6 9 / 55%);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.2s;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.35s var(--ease);
  outline: none;
}

.modal-wide {
  width: min(980px, 100%);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow-sm);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}

.modal-close:hover {
  background: var(--red);
  color: #fff;
}

.login {
  padding: 40px 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-flag {
  width: 64px;
  height: 44px;
  margin: 0 auto 6px;
  border-radius: 8px;
  background: linear-gradient(var(--red) 50%, #fff 50%);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  animation: wave 3s ease-in-out infinite;
}

.login h2 {
  font-size: 1.9rem;
}

.login p {
  margin: 0;
}

.login-dev {
  text-align: left;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.row {
  display: flex;
  gap: 8px;
}

.row input {
  flex: 1;
  min-width: 0;
}

input:not([type='file']):not([type='search']),
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.form-error {
  color: var(--red);
  font-size: 0.88rem;
  margin: 6px 0 0;
}

.composer {
  padding: 34px 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.composer h2 {
  font-size: 2rem;
  margin-top: -6px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > span {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.composer-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-photo {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
  animation: pop 0.25s var(--ease);
}

.composer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-photo button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  line-height: 1;
}

.composer-add {
  width: 104px;
  height: 104px;
  border-radius: 14px;
  border: 2px dashed var(--red-line);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.composer-add span {
  font-size: 1.6rem;
  line-height: 1;
}

.composer-add:hover {
  border-color: var(--red);
}

.composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.post-view {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.post-gallery {
  background: #120809;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-gallery > img {
  width: 100%;
  flex: 1;
  object-fit: contain;
  max-height: 72vh;
}

.post-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

.post-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  background: none;
  opacity: 0.6;
}

.post-thumbs button.is-on {
  border-color: #fff;
  opacity: 1;
}

.post-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 30px 28px 24px;
}

.post-view:not(:has(.post-gallery)) {
  grid-template-columns: 1fr;
}

.post-content h2 {
  font-size: 2rem;
  margin: 8px 0;
}

.post-text {
  color: var(--ink-2);
  margin-top: 12px;
}

.comments-title {
  font-size: 1.15rem;
  margin: 22px 0 10px;
}

.comments,
.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comments li,
.review-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
}

.comments p,
.review-list p {
  margin: 2px 0 0;
  color: var(--ink-2);
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-img {
  margin: 0;
  position: relative;
  background: var(--red-dark);
}

.detail-img img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.detail-img figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.7rem;
}

.detail-img figcaption a {
  color: rgb(255 255 255 / 80%);
}

.detail-body {
  padding: 32px 28px;
}

.detail:not(:has(.detail-img)) {
  grid-template-columns: 1fr;
}

.detail-body h2 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.detail-text {
  color: var(--ink-2);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.reviews {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.reviews-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-avg {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}

.review-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 16px;
  background: var(--cloud);
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------- profile */
.profile-hero {
  background: linear-gradient(160deg, var(--red), var(--red-deep));
  color: #fff;
  padding: 64px 0 0;
}

.profile-head {
  display: flex;
  gap: 28px;
  align-items: center;
}

.profile-head .avatar {
  box-shadow: 0 0 0 5px #fff;
}

.profile-head .hero-kind {
  color: #ffd6d8;
}

.profile-head h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.profile-bio {
  margin: 8px 0;
  opacity: 0.9;
  max-width: 60ch;
}

.profile-since {
  opacity: 0.75;
  margin: 4px 0 12px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 40px;
  padding: 22px 0;
  box-shadow: var(--shadow);
}

.profile-stats div {
  text-align: center;
  border-right: 1px solid var(--line);
}

.profile-stats div:last-child {
  border: 0;
}

.profile-stats strong {
  display: block;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 2.3rem;
  color: var(--red);
  line-height: 1.1;
}

.profile-stats span {
  font-size: 0.86rem;
  color: var(--muted);
}

.wish-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.wish-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.wish-list a:hover {
  border-color: var(--red);
  text-decoration: none;
}

/* ---------------------------------------------------------------- lists (province, A-Z) */
.grid {
  display: grid;
  gap: 18px;
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.region-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.region-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.region-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  overflow: hidden;
}

.region-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.region-card:hover .region-card-img img {
  transform: scale(1.08);
}

.region-card-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 3.4rem;
  color: rgb(255 255 255 / 28%);
}

.kind-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--red);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.region-card-body {
  padding: 16px 18px 18px;
}

.region-card-body h3 {
  font-size: 1.2rem;
}

.region-card-body p {
  margin: 4px 0 0;
}

.region-card-facts {
  color: var(--muted);
  font-size: 0.82rem;
}

.block-title {
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.az {
  columns: 3 280px;
  column-gap: 40px;
  margin-top: 32px;
}

.az section {
  break-inside: avoid;
  margin-bottom: 28px;
}

.az h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.az h2 a {
  color: var(--red);
}

.az ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.85;
}

.az ul a {
  color: var(--ink-2);
}

.az ul a:hover {
  color: var(--red);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 0;
  padding: 48px 0 36px;
  background: var(--ink);
  color: rgb(255 255 255 / 75%);
  font-size: 0.92rem;
  border-top: 6px solid var(--red);
}

.region + .site-footer,
main:has(.cta-band) + .site-footer {
  margin-top: 0;
}

main {
  min-height: 60vh;
  padding-bottom: 80px;
}

main:has(.cta-band) {
  padding-bottom: 0;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
}

.site-footer .brand-name {
  color: #fff;
}

.footer-row p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #fff;
}

.footer-license {
  grid-column: 1 / -1;
  color: rgb(255 255 255 / 50%);
  font-size: 0.8rem;
}

.prose a,
.sources a {
  text-decoration: underline;
  text-decoration-color: var(--red-line);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 110px;
  }

  .home-collage {
    height: 320px;
  }

  .intro-grid,
  .detail,
  .post-view {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .header-row {
    gap: 10px;
  }

  .header-nav > a:not(.lang-switch) {
    display: none;
  }

  .brand-name {
    display: none;
  }

  .header-search {
    max-width: none;
  }

  .counters,
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }

  .counters div:nth-child(2),
  .profile-stats div:nth-child(2) {
    border-right: 0;
  }

  .region-hero {
    min-height: 620px;
  }

  .hero-buttons .btn,
  .hero-buttons .save-btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .photo-credit {
    position: static;
    display: block;
    margin: 0 16px 10px;
  }

  .region-hero {
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
  }

  .bento-card.is-big {
    grid-column: span 2;
    grid-row: span 1;
  }

  .profile-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .composer {
    padding: 28px 20px 20px;
  }

  .footer-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.bento-card,
.culture-tile {
  cursor: pointer;
}

/* ---------------------------------------------------------------- the puzzle map (region outlines) */
.trail {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgb(70 6 10 / 30%);
  touch-action: pan-y;
}

.trail svg {
  filter: none;
  cursor: grab;
  user-select: none;
}

.trail svg:active {
  cursor: grabbing;
}

.trail-loading {
  aspect-ratio: 1000 / 375;
  background: linear-gradient(90deg, #fff5f6 25%, #fff 50%, #fff5f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.trail-sea rect {
  fill: #fdf3f4;
}

.trail-region {
  fill: #ffffff;
  stroke: #e7aab0;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.2s;
}

.trail-region:nth-child(3n) {
  fill: #fff8f8;
}

.trail-region:nth-child(5n + 1) {
  fill: #fdeef0;
}

.trail-region.is-on {
  fill: var(--red);
  stroke: #fff;
}

.trail-region.is-here {
  fill: var(--gold);
}

.trail-region.is-hover,
.trail-region:hover {
  fill: var(--red-deep);
  stroke: #fff;
}

.trail-zoom {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trail-zoom button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.trail-zoom button:hover {
  background: var(--red);
  color: #fff;
}

.trail-tip {
  transform: translate(-50%, calc(-100% - 16px));
  z-index: 3;
}

.trail-attr {
  position: absolute;
  left: 12px;
  bottom: 6px;
  margin: 0;
  font-size: 0.66rem;
  color: var(--muted);
}

.map-band .trail-attr {
  color: #b9878b;
}

/* on the red band: a white archipelago on red, like the flag */
.map-band .trail {
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.map-band .trail-sea rect {
  fill: transparent;
}

.map-band .trail-region {
  fill: #fff;
  stroke: #f0b8bd;
  filter: drop-shadow(0 2px 3px rgb(70 6 10 / 25%));
}

.map-band .trail-region.is-on {
  fill: var(--red-dark);
  stroke: #fff;
}

.map-band .trail-region.is-hover,
.map-band .trail-region:hover {
  fill: var(--gold);
  stroke: #fff;
}

.map-band .trail-attr {
  color: rgb(255 255 255 / 60%);
}

/* ---- app.css */
/* ================================================================ the app shell (every page) */
body {
  background:
    radial-gradient(1200px 600px at 100% -10%, #ffe3e5 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #fff0f1 0%, transparent 60%),
    #fff;
  min-height: 100dvh;
}

main {
  min-height: 100dvh;
  padding: 0 0 110px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the top bar floats over everything */
.site-header {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 12px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 20px;
  background: rgb(255 255 255 / 72%);
  backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 10px 30px rgb(110 10 16 / 12%);
}

.site-header .wrap {
  max-width: none;
  padding: 0 14px 0 18px;
}

.header-row {
  height: 58px;
}

main > :first-child:not(.atlas-app):not(.province-app) {
  padding-top: 90px;
}

/* the dock */
.dock {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border-radius: 26px;
  background: rgb(27 21 21 / 88%);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgb(40 6 9 / 45%);
}

.dock a,
.dock button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 66px;
  padding: 7px 10px 6px;
  border: 0;
  border-radius: 18px;
  background: none;
  color: rgb(255 255 255 / 72%);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.dock a span,
.dock button span {
  font-size: 1.25rem;
  line-height: 1.2;
}

.dock a:hover,
.dock button:hover {
  color: #fff;
  background: rgb(255 255 255 / 10%);
  text-decoration: none;
}

.dock a.is-on {
  color: #fff;
  background: rgb(255 255 255 / 14%);
}

.dock .dock-write {
  min-width: 58px;
  height: 58px;
  margin: -18px 6px 0;
  border-radius: 20px;
  background: linear-gradient(150deg, #ff2a31, var(--red-deep));
  color: #fff;
  box-shadow: 0 10px 26px rgb(215 20 26 / 55%), 0 0 0 4px rgb(27 21 21 / 88%);
  justify-content: center;
}

.dock .dock-write span {
  font-size: 1.6rem;
}

.dock .dock-write:hover {
  transform: translateY(-3px) rotate(-6deg);
  background: linear-gradient(150deg, #ff2a31, var(--red-deep));
}

/* ================================================================ the map */
.atlas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

.atlas svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
}

.atlas svg:active {
  cursor: grabbing;
}

.atlas-loading {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgb(255 255 255 / 12%) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.atlas-region {
  fill: #fff;
  stroke: #f2b7bc;
  stroke-width: 0.7px;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.25s;
}

.atlas-region.is-visited {
  fill: var(--red-dark);
  stroke: #ffb3b8;
}

.atlas-region.is-marked {
  fill: #fff;
  stroke: var(--red);
  stroke-width: 1.2px;
}

.atlas-region.is-hover {
  fill: var(--gold);
  stroke: #fff;
}

.atlas-region.is-selected {
  fill: var(--gold);
  stroke: #fff;
  stroke-width: 2px;
  animation: glow 1.6s ease-in-out infinite;
}

@keyframes glow {
  50% {
    fill: #ffd27a;
  }
}

.atlas-zoom {
  position: absolute;
  right: 18px;
  bottom: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.atlas-zoom button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgb(255 255 255 / 92%);
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgb(40 6 9 / 25%);
}

.atlas-zoom button:hover {
  background: var(--gold);
  color: #fff;
}

.atlas-tip {
  position: absolute;
  z-index: 20;
  transform: translate(-50%, calc(-100% - 18px));
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
}

.atlas-tip small {
  display: block;
  opacity: 0.7;
}

/* ---------------------------------------------------------------- home: the atlas app */
.atlas-app {
  position: relative;
  height: 100dvh;
  margin-bottom: -110px;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 70% 30%, rgb(255 255 255 / 10%), transparent 60%),
    radial-gradient(circle at 20% 80%, rgb(110 10 16 / 60%), transparent 50%),
    linear-gradient(160deg, #e3191f, var(--red) 45%, var(--red-deep));
}

.atlas-app::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 25%, rgb(255 255 255 / 6%) 2px, transparent 3px), radial-gradient(circle at 75% 75%, rgb(255 255 255 / 6%) 2px, transparent 3px);
  background-size: 34px 34px;
  pointer-events: none;
}

.atlas-full {
  position: absolute;
  inset: 0;
}

.atlas-full .atlas-region {
  filter: drop-shadow(0 2px 2px rgb(70 6 10 / 30%));
}

.atlas-intro {
  position: absolute;
  z-index: 10;
  left: 28px;
  top: 96px;
  width: min(420px, calc(100% - 56px));
  padding: 26px 26px 22px;
  border-radius: 28px;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 28%);
  backdrop-filter: blur(16px);
  color: #fff;
  box-shadow: 0 30px 60px rgb(40 6 9 / 30%);
  transition: transform 0.6s var(--ease), opacity 0.4s;
  animation: rise 0.8s var(--ease) both;
}

.atlas-intro.is-min {
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.atlas-intro .hero-kind {
  color: #ffd6d8;
}

.atlas-intro h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.atlas-lead {
  margin: 14px 0 18px;
  color: rgb(255 255 255 / 88%);
}

.atlas-search {
  position: relative;
}

.atlas-search input {
  width: 100%;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 20px !important;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgb(40 6 9 / 30%) !important;
}

.atlas-search ul,
.region-picker-hits {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.atlas-search button,
.region-picker-hits button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
}

.atlas-search button:hover,
.region-picker-hits button:hover {
  background: var(--red);
  color: #fff;
}

.atlas-search small,
.region-picker-hits small {
  opacity: 0.6;
}

.region-picker {
  position: relative;
}

.atlas-islands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.atlas-islands button,
.mood-row button,
.prov-row button,
.seg button,
.chip-btn {
  border: 1px solid rgb(255 255 255 / 40%);
  background: rgb(255 255 255 / 10%);
  color: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.atlas-islands button:hover,
.atlas-islands button.is-on {
  background: #fff;
  color: var(--red);
}

.dice {
  font-size: 1.05rem !important;
}

.dice:hover {
  transform: rotate(180deg);
}

.atlas-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.atlas-stats dt {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.atlas-stats dd {
  margin: 4px 0 0;
  font-size: 0.72rem;
  opacity: 0.8;
}

.atlas-mine {
  margin: 14px 0 0;
  font-size: 0.86rem;
  background: rgb(0 0 0 / 18%);
  border-radius: 12px;
  padding: 8px 12px;
}

.live-note {
  position: absolute;
  z-index: 10;
  left: 28px;
  bottom: 104px;
  max-width: min(420px, calc(100% - 56px));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  border: 0;
  border-radius: 18px;
  padding: 12px 16px;
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
  box-shadow: 0 16px 40px rgb(40 6 9 / 30%);
  font-size: 0.84rem;
  animation: rise 0.5s var(--ease);
}

.live-note em {
  display: block;
  font-family: var(--font-serif), Georgia, serif;
  font-style: normal;
  font-size: 1rem;
  margin-top: 2px;
}

.live-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgb(34 197 94 / 60%);
  animation: live 1.6s infinite;
}

@keyframes live {
  70% {
    box-shadow: 0 0 0 10px rgb(34 197 94 / 0%);
  }
}

.peek {
  position: absolute;
  z-index: 15;
  right: 20px;
  top: 88px;
  bottom: 104px;
  width: min(400px, calc(100% - 40px));
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 90px rgb(40 6 9 / 45%);
  animation: peek-in 0.55s var(--ease);
}

@keyframes peek-in {
  from {
    transform: translateX(110%);
  }
}

.peek-close {
  position: absolute;
  z-index: 3;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 90%);
  font-size: 1.4rem;
}

.peek-photo {
  position: relative;
  flex: 0 0 46%;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  color: #fff;
}

.peek-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 14s ease-out both;
}

.peek-photo > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 6rem;
  opacity: 0.25;
}

.peek-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(70 6 10 / 90%), transparent 60%);
}

.peek-photo-text {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 16px;
}

.peek-photo-text small {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffd6d8;
}

.peek-photo-text h2 {
  font-size: 2rem;
}

.peek-body {
  flex: 1;
  overflow: auto;
  padding: 16px 20px 20px;
}

.peek-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.peek-tiles div {
  text-align: center;
  background: var(--red-soft);
  border-radius: 14px;
  padding: 10px 4px;
}

.peek-tiles b {
  display: block;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.35rem;
  color: var(--red);
  line-height: 1.1;
}

.peek-tiles small {
  font-size: 0.66rem;
  color: var(--muted);
}

.peek-rating {
  margin: 12px 0 0;
  font-size: 0.86rem;
}

.peek-blurb {
  font-size: 0.92rem;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.peek-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.peek-actions .save-compact,
.peek-actions .chip-btn {
  position: static;
  border: 1.5px solid var(--red-line);
  background: var(--red-soft);
  color: var(--red);
  box-shadow: none;
}

.peek-actions .chip-btn.is-on {
  background: var(--red);
  color: #fff;
}

/* ================================================================ region: the bento screen */
.region-app {
  padding: 84px 16px 0;
}

.bento-screen {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, 17vh);
  gap: 14px;
  max-width: 1500px;
  margin: 0 auto;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 20px;
  color: var(--ink);
  box-shadow: 0 2px 4px rgb(110 10 16 / 4%), 0 12px 30px rgb(110 10 16 / 7%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  animation: tile-in 0.6s var(--ease) both;
}

.bento-screen > :nth-child(2) {
  animation-delay: 0.05s;
}
.bento-screen > :nth-child(3) {
  animation-delay: 0.1s;
}
.bento-screen > :nth-child(4) {
  animation-delay: 0.15s;
}
.bento-screen > :nth-child(5) {
  animation-delay: 0.2s;
}
.bento-screen > :nth-child(6) {
  animation-delay: 0.25s;
}
.bento-screen > :nth-child(7) {
  animation-delay: 0.3s;
}
.bento-screen > :nth-child(8) {
  animation-delay: 0.35s;
}
.bento-screen > :nth-child(9) {
  animation-delay: 0.4s;
}
.bento-screen > :nth-child(n + 10) {
  animation-delay: 0.45s;
}

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

a.tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px rgb(110 10 16 / 18%);
  text-decoration: none;
}

.tile-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.tile-hero {
  grid-column: span 3;
  grid-row: span 3;
  padding: 0;
  border: 0;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-out both;
}

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(110 10 16 / 92%) 0%, rgb(110 10 16 / 40%) 40%, transparent 75%);
}

.tile-hero-text {
  position: relative;
  padding: 26px 28px;
  width: 100%;
}

.tile-hero .hero-kind {
  background: var(--red);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
}

.tile-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.tile-hero .crumbs {
  margin-bottom: 12px;
}

.tile-hero .photo-credit {
  position: absolute;
  top: 14px;
  right: 18px;
  bottom: auto;
}

.tile-hero .save-compact {
  position: static;
  width: 40px;
  height: 40px;
}

.tile-play {
  grid-column: span 1;
  grid-row: span 1;
  border: 0;
  background: linear-gradient(150deg, #ff2a31, var(--red-deep));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.play-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--red);
  font-size: 1.3rem;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 25%);
  animation: ring 2s infinite;
}

@keyframes ring {
  70% {
    box-shadow: 0 0 0 16px rgb(255 255 255 / 0%);
  }
}

.tile-play small {
  opacity: 0.8;
}

.tile-map {
  grid-column: span 2;
  grid-row: span 1;
  padding: 0;
  background: linear-gradient(160deg, #e3191f, var(--red-deep));
  border: 0;
}

.atlas-mini {
  position: absolute;
  inset: 0;
}

.atlas-mini .atlas-region {
  stroke: #f7c3c7;
  cursor: inherit;
}

.atlas-mini .atlas-region.is-marked {
  fill: var(--gold);
  stroke: #fff;
  animation: glow 1.6s infinite;
}

.on-map {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: #fff;
}

.tile-stats {
  grid-column: span 1;
  grid-row: span 1;
}

.tile-stats p {
  margin: 6px 0 0;
  line-height: 1.1;
}

.tile-stats b {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.25rem;
}

.tile-stats small {
  color: var(--muted);
  font-size: 0.72rem;
}

.tile-community {
  grid-column: span 1;
  grid-row: span 1;
  background: var(--ink);
  border: 0;
  color: #fff;
}

.tile-community .tile-kicker {
  color: #ff8d93;
}

.tile-big {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  margin: 6px 0 2px;
}

.tile-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 6px;
  font-size: 0.74rem;
  opacity: 0.85;
}

.tile-wisata {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tile-strip {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  min-height: 0;
}

.tile-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

.tile-strip img:first-child {
  grid-row: span 2;
}

.tile-glyph {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  place-items: center;
  font-size: 4rem;
}

.tile-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
}

.tile-foot b,
.tile-count {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.tile-count {
  position: absolute;
  right: 18px;
  bottom: 12px;
}

.tile-food {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(140deg, #fff7e8, #fff);
}

.tile-emoji-row {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 1.6rem;
  letter-spacing: 4px;
  opacity: 0.9;
}

.tile-names {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.tile-names li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.tile-dance {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(140deg, var(--red-soft), #fff);
}

.tile-story {
  grid-column: span 2;
  grid-row: span 1;
  background: var(--red);
  border: 0;
  color: #fff;
}

.tile-story .tile-kicker {
  color: #ffd6d8;
}

.tile-quote {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-more {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tile-notes {
  grid-column: span 2;
  grid-row: span 1;
}

.note-tile {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  align-items: center;
}

.note-tile img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.note-tile-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.note-tile strong {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.1rem;
}

.tile-empty {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.tile-3d,
.tile-near {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(130deg, #1d2b3a, #24476a);
  border: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.tile-near {
  background: linear-gradient(130deg, var(--ink), #3a2222);
}

.tile-near .tile-kicker {
  color: #ff8d93;
}

.tile-near b {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.tile-near small {
  opacity: 0.75;
}

.badge-3d {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--red);
  border-radius: 14px;
  font-weight: 900;
}

/* ================================================================ sheets */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}

.sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(40 6 9 / 55%);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s;
}

.sheet.is-open .sheet-backdrop {
  opacity: 1;
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1200px, 100%);
  height: calc(100dvh - 40px);
  transform: translate(-50%, 100%);
  transition: transform 0.55s var(--ease);
  background: #fff;
  border-radius: 32px 32px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -30px 80px rgb(40 6 9 / 35%);
}

.sheet.is-open .sheet-panel {
  transform: translate(-50%, 0);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 26px 32px 18px;
  border-bottom: 1px solid var(--line);
}

.sheet-head::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 54px;
  height: 5px;
  margin-left: -27px;
  border-radius: 3px;
  background: var(--line);
}

.sheet-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.sheet-close {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.6rem;
}

.sheet-body {
  flex: 1;
  overflow: auto;
  padding: 24px 32px 120px;
}

.chapters {
  max-width: 820px;
  margin-top: 26px;
}

.chapter {
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}

.chapter summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.chapter summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-sans), sans-serif;
  color: var(--red);
  font-size: 1.4rem;
}

.chapter[open] summary::after {
  content: '−';
}

.chapter[open] summary {
  background: var(--red-soft);
}

.chapter-no {
  font-family: var(--font-sans), sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  padding: 3px 7px;
}

.chapter-body {
  padding: 4px 22px 10px;
  color: var(--ink-2);
}

/* ================================================================ stories */
.stories {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0d0506;
  display: grid;
  place-items: center;
  animation: fade 0.25s;
}

.story {
  position: relative;
  width: min(480px, 100vw);
  height: min(860px, 100dvh);
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(160deg, #e3191f, var(--red-dark));
  color: #fff;
  user-select: none;
  animation: story-in 0.4s var(--ease);
}

@keyframes story-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.story-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 7s ease-out both;
}

.story-emoji {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9rem;
  animation: float 4s ease-in-out infinite;
}

.story-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(40 4 6 / 92%) 0%, rgb(40 4 6 / 30%) 45%, rgb(0 0 0 / 30%) 100%);
}

.story-bars {
  position: absolute;
  left: 12px;
  right: 56px;
  top: 14px;
  display: flex;
  gap: 4px;
}

.story-bars span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgb(255 255 255 / 30%);
  overflow: hidden;
}

.story-bars i {
  display: block;
  height: 100%;
  background: #fff;
}

.story-close {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 4px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 2rem;
}

.story-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 30px;
  animation: rise 0.6s var(--ease);
}

.story-kicker {
  display: inline-block;
  background: var(--red);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-text h2 {
  font-size: 2.4rem;
  margin: 10px 0 8px;
}

.story-text p {
  margin: 0 0 14px;
  color: rgb(255 255 255 / 88%);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.story-actions .save-btn {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.story-count {
  position: absolute;
  right: 16px;
  top: 26px;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ================================================================ province + explore: photo tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.photo-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgb(110 10 16 / 12%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.photo-tile:hover,
.photo-tile.is-hover {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: 0 24px 50px rgb(110 10 16 / 25%);
  text-decoration: none;
}

.photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.photo-tile:hover img {
  transform: scale(1.1);
}

.photo-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(70 6 10 / 88%), transparent 55%);
}

.photo-tile-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 5rem;
  opacity: 0.25;
}

.photo-tile-text {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
}

.photo-tile-text small {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd6d8;
}

.photo-tile-text b {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.1;
}

.photo-tile-text em {
  font-style: normal;
  font-size: 0.74rem;
  opacity: 0.85;
  margin-top: 2px;
}

.photo-tile.is-visited {
  outline: 3px solid var(--gold);
}

.stamp-mini {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 900;
  transform: rotate(-12deg);
}

.province-app {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  height: 100dvh;
  margin-bottom: -110px;
}

.province-map {
  position: relative;
  background: linear-gradient(160deg, #e3191f, var(--red-deep));
}

.province-map .atlas {
  position: absolute;
  inset: 0;
}

.province-map .atlas-region {
  fill: rgb(255 255 255 / 30%);
  stroke: rgb(255 255 255 / 25%);
}

.province-map .atlas-region.is-marked {
  fill: #fff;
  stroke: #f2b7bc;
}

.province-map .atlas-region.is-visited {
  fill: var(--red-dark);
}

.province-map .atlas-region.is-hover,
.province-map .atlas-region.is-selected {
  fill: var(--gold);
  animation: none;
}

.province-map .atlas-zoom {
  bottom: 110px;
}

.province-title {
  position: absolute;
  left: 28px;
  top: 92px;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 20px rgb(70 6 10 / 50%);
}

.province-title .hero-kind {
  color: #ffd6d8;
}

.province-title h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  line-height: 0.95;
  max-width: 12ch;
}

.province-title p {
  margin: 10px 0 0;
  opacity: 0.9;
}

.province-nav {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  pointer-events: auto;
}

.province-nav a {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  backdrop-filter: blur(6px);
}

.province-nav a:hover {
  background: #fff;
  color: var(--red);
  text-decoration: none;
}

.province-list {
  overflow: auto;
  padding: 90px 22px 130px;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--red-soft);
}

.seg button {
  border: 0;
  color: var(--red);
  background: none;
}

.seg button.is-on {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 14px rgb(215 20 26 / 30%);
}

.seg button small {
  opacity: 0.7;
  margin-left: 4px;
}

/* ---------------------------------------------------------------- explore */
.explorer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.explorer-head {
  text-align: center;
  padding: 30px 0 26px;
}

.explorer-head h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  background: linear-gradient(120deg, var(--red), var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.explorer-input {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(110 10 16 / 18%), 0 0 0 1px var(--line);
}

.explorer-input > span {
  font-size: 1.5rem;
  color: var(--red);
}

.explorer-input input {
  flex: 1;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 1.25rem;
  padding: 10px 6px !important;
}

.explorer-input .dice {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  font-size: 1.4rem !important;
  transition: transform 0.4s var(--ease);
}

.mood-row,
.prov-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.mood-row button {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  padding: 9px 16px;
}

.mood-row button:hover,
.mood-row button.is-on {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.prov-row {
  gap: 6px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.prov-row button {
  background: var(--red-soft);
  border: 0;
  color: var(--red);
}

.prov-row button.is-on {
  background: var(--red);
  color: #fff;
}

.explorer-count {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.explorer-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

/* ================================================================ the passport */
.passport {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 18px;
  align-items: start;
}

.passport-loading,
.center-note {
  height: 60vh;
  display: grid;
  place-items: center;
}

.passport-cover {
  position: sticky;
  top: 90px;
  border-radius: 28px;
  padding: 30px 28px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgb(255 255 255 / 18%), transparent 50%),
    linear-gradient(160deg, #b0101a, var(--red-dark));
  box-shadow: 0 30px 70px rgb(110 10 16 / 35%), inset 0 0 0 2px rgb(233 180 76 / 50%), inset 0 0 0 8px rgb(110 10 16), inset 0 0 0 9px rgb(233 180 76 / 35%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.passport-emblem {
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}

.passport-word {
  font-family: var(--font-serif), Georgia, serif;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.passport-cover .avatar {
  box-shadow: 0 0 0 4px var(--gold);
}

.passport-cover h1 {
  font-size: 2.3rem;
  margin-top: 6px;
}

.passport-level {
  margin: 0;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.passport-level small {
  color: rgb(255 255 255 / 70%);
  font-weight: 500;
}

.passport-bio {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.88;
}

.passport-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 25%);
  overflow: hidden;
  margin: 8px 0 4px;
}

.passport-meter span {
  display: block;
  height: 100%;
  min-width: 6px;
  background: linear-gradient(90deg, var(--gold), #ffe08a);
  border-radius: 999px;
}

.passport-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 6px 0;
}

.passport-stats dt {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}

.passport-stats dd {
  margin: 2px 0 0;
  font-size: 0.66rem;
  opacity: 0.75;
}

.passport-since {
  margin: 0 0 6px;
  font-size: 0.78rem;
  opacity: 0.7;
}

.passport-pages {
  min-height: 70vh;
  border-radius: 28px;
  padding: 22px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgb(215 20 26 / 5%) 31px 32px),
    linear-gradient(160deg, #fffaf3, #fff);
  border: 1px solid #f3e6d6;
  box-shadow: 0 20px 50px rgb(110 10 16 / 10%);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px dashed #e0d2c2;
  color: #b9aa98;
  font-size: 0.8rem;
  font-weight: 600;
  filter: grayscale(1);
}

.badge i {
  font-style: normal;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5ede3;
}

.badge.is-got {
  filter: none;
  color: var(--ink);
  border: 1px solid var(--gold);
  background: #fffaf0;
  box-shadow: 0 6px 14px rgb(233 180 76 / 25%);
}

.badge.is-got i {
  background: var(--gold);
}

.stamp-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px 14px;
  padding: 8px 4px;
}

.stamp {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  color: var(--red);
  border: 3px double var(--red);
  border-radius: 50%;
  background: rgb(215 20 26 / 3%);
  mix-blend-mode: multiply;
  transition: transform 0.3s var(--ease);
  animation: stamp-in 0.5s var(--ease) both;
}

.stamp.shape-1 {
  border-radius: 18px;
  color: #1f4e9c;
  border-color: #1f4e9c;
}

.stamp.shape-2 {
  border-radius: 50% 50% 14px 14px;
  color: #0d7a4a;
  border-color: #0d7a4a;
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: scale(1.8) rotate(-20deg);
  }
}

.stamp:hover {
  transform: scale(1.08) rotate(0deg) !important;
  text-decoration: none;
}

.stamp-kind {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.stamp b {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 4px 0;
}

.stamp-date {
  font-size: 0.66rem;
  font-weight: 700;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  padding: 1px 6px;
}

.stamp-prov {
  font-size: 0.56rem;
  margin-top: 4px;
  opacity: 0.8;
}

.stamp-empty {
  grid-column: 1 / -1;
  padding: 40px 10px;
  text-align: center;
  color: var(--muted);
}

.passport-map {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, #e3191f, var(--red-deep));
  padding: 0 0 8px;
}

.atlas-passport {
  height: 52vh;
}

.passport-map p {
  color: #fff !important;
  padding: 0 16px;
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.wish {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.wish i {
  font-style: normal;
  font-size: 1.6rem;
}

.wish small {
  color: var(--muted);
}

/* ================================================================ about */
.about-app {
  padding: 0 16px;
}

.about-hero {
  grid-column: span 3;
  grid-row: span 3;
  padding: 34px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.about-hero p {
  max-width: 46ch;
  opacity: 0.9;
  margin: 0;
}

.about-flag {
  position: absolute;
  right: 34px;
  top: 34px;
  width: 110px;
  height: 74px;
  border-radius: 10px;
  background: linear-gradient(#fff 50%, rgb(255 255 255 / 25%) 50%);
  animation: wave 3s ease-in-out infinite;
}

.tile-photos {
  grid-column: span 3;
  grid-row: span 2;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--red);
}

.tile-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

.tile-fact {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tile-fact b {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
}

.tile-fact.red {
  background: var(--red);
  color: #fff;
  border: 0;
}

.tile-fact.red b {
  color: #fff;
}

.tile-text {
  grid-column: span 2;
}

.tile-text p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.tile-sources {
  grid-column: span 3;
}

.about-bento .tile-3d {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

/* ================================================================ small screens */
@media (max-width: 1100px) {
  .bento-screen {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
  }

  .tile-hero {
    grid-column: span 4;
    grid-row: span 3;
  }

  .about-hero,
  .tile-photos,
  .tile-sources,
  .about-bento .tile-3d {
    grid-column: span 4;
  }

  .passport {
    grid-template-columns: 1fr;
  }

  .passport-cover {
    position: static;
  }

  .province-app {
    grid-template-columns: 1fr;
    height: auto;
    margin-bottom: 0;
  }

  .province-map {
    height: 62vh;
  }

  .province-list {
    padding-top: 22px;
  }
}

@media (max-width: 640px) {
  .site-header {
    left: 8px;
    right: 8px;
    top: 8px;
  }

  .bento-screen {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .tile-hero {
    grid-column: span 2;
    grid-row: span 3;
  }

  .tile-map,
  .tile-wisata,
  .tile-food,
  .tile-dance,
  .tile-story,
  .tile-notes,
  .tile-3d,
  .tile-near,
  .tile-text,
  .about-hero,
  .tile-photos,
  .tile-sources,
  .about-bento .tile-3d {
    grid-column: span 2;
  }

  .region-app,
  .about-app {
    padding-left: 10px;
    padding-right: 10px;
  }

  .atlas-intro {
    left: 12px;
    right: 12px;
    top: 80px;
    width: auto;
    padding: 18px;
  }

  .atlas-intro h1 {
    font-size: 2.4rem;
  }

  .atlas-lead,
  .atlas-stats {
    display: none;
  }

  .live-note {
    display: none;
  }

  .peek {
    left: 8px;
    right: 8px;
    top: auto;
    width: auto;
    height: 62dvh;
    bottom: 96px;
    animation-name: sheet-up;
  }

  @keyframes sheet-up {
    from {
      transform: translateY(110%);
    }
  }

  .atlas-zoom {
    display: none;
  }

  .dock a,
  .dock button {
    min-width: 54px;
    padding: 6px 6px 5px;
  }

  .sheet-head,
  .sheet-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .story {
    border-radius: 0;
  }

  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stamp-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

.atlas-intro {
  background: linear-gradient(160deg, rgb(150 10 18 / 72%), rgb(90 6 12 / 62%));
  border-color: rgb(255 255 255 / 22%);
}

.tile-strip.n1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.tile-strip.n1 img:first-child {
  grid-row: auto;
}

/* the bento locks together without holes */
.bento-screen {
  grid-auto-flow: dense;
}

.tile-map {
  grid-row: span 2;
}

@media (max-width: 1100px) {
  .tile-map {
    grid-row: span 1;
  }
}

/* ---- landing.css */
/* ================================================================ desktop navigation */
.topnav {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  top: 0;
  background: rgb(255 255 255 / 86%);
  backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid var(--line);
}

.topnav::after {
  /* the flag's stripe under the bar */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 50%, #fff 50% 100%);
}

.topnav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 28px;
}

.topnav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.topnav-link:hover {
  background: var(--red-soft);
  color: var(--red);
  text-decoration: none;
}

.topnav-link.is-on {
  color: var(--red);
}

.topnav-link.is-on::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.caret {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.topnav-link[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.nav-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  display: inline-grid;
  place-items: center;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.topnav-search {
  width: 280px;
}

.topnav-write {
  white-space: nowrap;
}

.mega {
  position: relative;
}

.mega-panel {
  position: absolute;
  left: -220px;
  top: calc(100% + 10px);
  width: min(980px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
  padding: 26px 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgb(40 6 9 / 25%);
  border: 1px solid var(--line);
  animation: pop 0.18s var(--ease);
}

.mega-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.mega-col h4 {
  margin: 0 0 8px;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.1rem;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col a {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.mega-col a small {
  color: var(--muted);
}

.mega-col a:hover {
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

.mega-col a:hover small {
  color: #fff;
}

/* the dock is the phone's menu only */
@media (min-width: 901px) {
  .dock {
    display: none;
  }

  main {
    padding-bottom: 60px;
  }
}

@media (max-width: 900px) {
  .topnav-menu,
  .topnav-write,
  .topnav-search {
    display: none;
  }

  .topnav-row {
    height: 58px;
    padding: 0 14px;
  }
}

main > :first-child:not(.atlas-app):not(.province-app) {
  padding-top: 96px;
}

.province-list {
  padding-top: 96px;
}

.province-title {
  top: 96px;
}

/* ================================================================ landing: the split hero */
.atlas-app {
  height: auto;
  min-height: 100dvh;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(380px, 0.8fr) 1.4fr;
  gap: 28px;
  align-items: center;
  padding: 96px 28px 32px;
}

.atlas-app .atlas-intro {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0 0 0 max(0px, calc((100vw - 1500px) / 2));
}

.atlas-app .atlas-intro h1 {
  font-size: clamp(3rem, 4.8vw, 5.6rem);
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-mapbox {
  position: relative;
  height: calc(100dvh - 128px);
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 60% 30%, rgb(255 255 255 / 12%), transparent 60%),
    rgb(110 10 16 / 35%);
  border: 1px solid rgb(255 255 255 / 25%);
  box-shadow: inset 0 0 80px rgb(70 6 10 / 35%), 0 40px 80px rgb(40 6 9 / 30%);
}

.hero-mapbox .atlas-full {
  position: absolute;
  inset: 0;
}

.hero-mapbox .atlas-zoom {
  bottom: 18px;
}

.hero-mapbox .live-note {
  left: 18px;
  bottom: 18px;
}

.hero-mapbox .peek {
  top: 16px;
  bottom: 16px;
  right: 16px;
}

.map-full-btn {
  position: absolute;
  z-index: 12;
  left: 18px;
  top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: rgb(255 255 255 / 92%);
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgb(40 6 9 / 25%);
}

.map-full-btn:hover {
  background: var(--gold);
  color: #fff;
}

.atlas-app.is-full .hero-mapbox {
  position: fixed;
  z-index: 90;
  inset: 0;
  height: auto;
  border-radius: 0;
  background: linear-gradient(160deg, #e3191f, var(--red-deep));
}

/* ================================================================ landing: the rails */
.rails {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 28px 0;
}

.rail {
  margin-top: 56px;
}

.rail-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.rail-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.rail-head a {
  margin-left: auto;
  font-weight: 700;
}

.rail-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 4px 0 8px;
}

.poster {
  position: relative;
  height: 360px;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  background: linear-gradient(150deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgb(110 10 16 / 14%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.poster.is-wide {
  grid-column: span 2;
}

.poster.is-short {
  height: 240px;
}

.poster:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgb(110 10 16 / 28%);
  text-decoration: none;
}

.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.poster:hover img {
  transform: scale(1.08);
}

.poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(70 6 10 / 90%), transparent 55%);
}

.poster-rank {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 10px;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}

.poster-badge {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  background: #fff;
  color: var(--red);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 0.8rem;
}

.poster-text {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
}

.poster-text small {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd6d8;
}

.poster-text b {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.poster.is-wide .poster-text b {
  font-size: 2.2rem;
}

.poster-text em {
  font-style: normal;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 4px;
}

.island-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.island-card {
  position: relative;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--red), var(--red-dark));
  color: #fff;
  transition: transform 0.35s var(--ease);
}

.island-card:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

.island-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.island-card:hover img {
  transform: scale(1.08);
}

.island-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgb(110 10 16 / 92%) 10%, rgb(110 10 16 / 20%) 70%);
}

.island-icon {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 14px;
  font-size: 2.2rem;
}

.island-text {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 44px;
  display: flex;
  flex-direction: column;
}

.island-text b {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.island-text small {
  opacity: 0.85;
  margin-top: 4px;
}

.island-provs {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 16px;
  font-size: 0.76rem;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.passport-teaser {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin: 72px 0 20px;
  padding: 44px 48px;
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(600px 300px at 90% 0%, rgb(255 255 255 / 12%), transparent 60%),
    linear-gradient(140deg, #b0101a, var(--red-dark));
}

.pt-cover {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(160deg, #8f0d15, #5a070c);
  box-shadow: inset 0 0 0 2px rgb(233 180 76 / 60%), inset 0 0 0 8px #5a070c, inset 0 0 0 9px rgb(233 180 76 / 40%), 0 20px 40px rgb(0 0 0 / 30%);
  color: var(--gold);
  font-family: var(--font-serif), Georgia, serif;
  transform: rotate(-6deg);
}

.pt-cover span {
  font-size: 2.6rem;
}

.pt-cover b {
  letter-spacing: 0.3em;
}

.pt-cover small {
  letter-spacing: 0.3em;
  font-size: 0.7rem;
}

.pt-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pt-stamps .stamp {
  width: 104px;
  height: 104px;
  color: #fff;
  border-color: rgb(255 255 255 / 80%);
  background: rgb(255 255 255 / 6%);
  mix-blend-mode: normal;
  padding: 8px;
}

.pt-stamps .stamp b {
  font-size: 0.9rem;
}

.pt-text h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.pt-text p {
  opacity: 0.9;
  margin: 12px 0 22px;
  max-width: 48ch;
}

@media (max-width: 1100px) {
  .atlas-app {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .atlas-app .atlas-intro {
    padding: 0;
  }

  .hero-mapbox {
    height: 62vh;
  }

  .island-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .passport-teaser {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .pt-cover {
    width: 160px;
  }
}

@media (max-width: 640px) {
  .atlas-app {
    padding: 72px 12px 20px;
  }

  .atlas-app .atlas-intro h1 {
    font-size: 3rem;
  }

  .rails {
    padding: 0 12px;
  }

  .island-grid {
    grid-template-columns: 1fr;
  }

  .poster {
    height: 300px;
  }

  .rail-track {
    grid-auto-columns: 210px;
  }
}

/* ---- fixes after the screenshots: a solid white bar, the hero in two rows, the map as wide as it is */
.topnav {
  background: #fff;
  backdrop-filter: none;
  box-shadow: 0 4px 20px rgb(110 10 16 / 10%);
}

.topnav::after {
  display: none;
}

.atlas-app {
  display: block;
  min-height: 0;
  padding: 100px 28px 36px;
}

.atlas-app .atlas-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: 56px;
  align-items: end;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
}

.atlas-intro > .hero-kind,
.atlas-intro > h1,
.atlas-intro > .atlas-lead {
  grid-column: 1;
}

.atlas-intro > .hero-cta,
.atlas-intro > .atlas-search,
.atlas-intro > .atlas-islands,
.atlas-intro > .atlas-stats,
.atlas-intro > .atlas-mine {
  grid-column: 2;
}

.atlas-intro > .hero-kind {
  grid-row: 1;
}

.atlas-intro > h1 {
  grid-row: 2 / span 3;
  align-self: center;
}

.atlas-intro > .atlas-lead {
  grid-row: 5;
  margin-bottom: 0;
}

.atlas-intro > .hero-cta {
  grid-row: 1 / span 2;
  align-self: end;
}

.atlas-intro > .atlas-search {
  grid-row: 3;
}

.atlas-intro > .atlas-islands {
  grid-row: 4;
}

.atlas-intro > .atlas-stats {
  grid-row: 5;
}

.atlas-intro > .atlas-mine {
  grid-row: 6;
}

.atlas-app .atlas-intro h1 {
  font-size: clamp(3.4rem, 7vw, 7.4rem);
}

.hero-mapbox {
  max-width: 1500px;
  margin: 28px auto 0;
  height: min(74vh, calc((min(100vw, 1500px) - 56px) / 2.35));
  min-height: 380px;
}

@media (max-width: 1100px) {
  .atlas-app .atlas-intro {
    grid-template-columns: 1fr;
  }

  .atlas-intro > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .hero-mapbox {
    height: 60vh;
  }
}

.atlas-under {
  fill: #fff;
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
  pointer-events: none;
}

.atlas-full .atlas-under {
  filter: drop-shadow(0 3px 4px rgb(70 6 10 / 35%));
}

.atlas-full .atlas-region,
.map-band .trail-region {
  filter: none;
}

/* ---- pages.css */
/* ================================================================ the pages of a region */
.region-page {
  padding-top: 71px;
}

.region-band {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.region-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-out both;
}

.region-band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(110 10 16 / 92%) 0%, rgb(110 10 16 / 45%) 50%, rgb(0 0 0 / 15%) 100%);
}

.region-band-text {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px 26px;
  animation: rise 0.6s var(--ease) both;
}

.region-band h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.region-band p {
  margin: 8px 0 0;
  opacity: 0.9;
}

.region-band .crumbs {
  margin-bottom: 10px;
}

.region-tabs {
  position: sticky;
  top: 68px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgb(110 10 16 / 6%);
}

.region-tabs a {
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.93rem;
  transition: background 0.2s, color 0.2s;
}

.region-tabs a:hover {
  background: var(--red-soft);
  color: var(--red);
  text-decoration: none;
}

.region-tabs a.is-on {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 16px rgb(215 20 26 / 30%);
}

.region-page-body {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 28px 60px;
}

/* cards that are links to their own pages */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.place-card,
.culture-card2 {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgb(110 10 16 / 7%);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.place-card:hover,
.culture-card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgb(110 10 16 / 18%);
}

.place-card-link,
.culture-card2-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
}

.place-card-link:hover,
.culture-card2-link:hover {
  text-decoration: none;
}

.place-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  overflow: hidden;
}

.place-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.place-card:hover .place-card-img img {
  transform: scale(1.08);
}

.place-card-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 4rem;
  color: rgb(255 255 255 / 30%);
}

.place-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 16px;
}

.place-card-body small {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.place-card-body b {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.15;
}

.place-card-body em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.place-card .save-compact,
.culture-card2 .save-compact {
  position: absolute;
  top: 12px;
  right: 12px;
}

.culture-card2-link {
  padding: 22px 22px 20px;
  gap: 6px;
}

.culture-card2-link b {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.culture-card2:hover .culture-icon {
  transform: rotate(-8deg) scale(1.08);
}

.from-province {
  margin-top: 44px;
}

.from-province h2 {
  font-size: 1.8rem;
}

/* one place, dish or dance */
.detail-page {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.detail-photo {
  margin: 0 0 22px;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgb(110 10 16 / 18%);
}

.detail-photo img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.detail-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 0.72rem;
}

.detail-photo figcaption a {
  color: #fff;
  text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
}

.detail-photo-empty {
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  color: rgb(255 255 255 / 30%);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 7rem;
}

.culture-hero {
  height: 200px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 6rem;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at 30% 30%, rgb(255 255 255 / 25%), transparent 50%),
    linear-gradient(140deg, var(--red), var(--red-dark));
}

.detail-lead {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 14px;
}

.detail-text {
  color: var(--ink-2);
}

.detail-h2 {
  font-size: 1.8rem;
  margin: 40px 0 16px;
}

.detail-side {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 30px rgb(110 10 16 / 8%);
}

.side-card .reviews {
  border: 0;
  padding: 0;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pager a {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--red-soft);
  color: var(--ink);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1rem;
  line-height: 1.2;
}

.pager a small {
  font-family: var(--font-sans), sans-serif;
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 4px;
}

.pager a:hover {
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

.pager a:hover small {
  color: #ffd6d8;
}

.pager-next {
  text-align: right;
}

/* the story page */
.story-page {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}

.story-toc {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story-toc a {
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--ink-2);
  font-weight: 600;
  border-left: 3px solid var(--line);
}

.story-toc a:hover {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red);
  text-decoration: none;
}

.story-part {
  scroll-margin-top: 140px;
  margin-bottom: 36px;
}

.story-part h2 {
  font-size: 2rem;
}

.story-part .chapters {
  margin-top: 14px;
}

/* simple one-column pages: writing, signing in, a note */
.page-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

.page-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

.page-narrow .composer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgb(110 10 16 / 10%);
}

.page-narrow .composer h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.login-page .login {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgb(110 10 16 / 10%);
  max-width: 520px;
  margin: 0 auto;
}

.login h1 {
  font-size: 2rem;
}

.page-wide .post-view {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgb(110 10 16 / 10%);
}

.inline-edit {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

@media (max-width: 1000px) {
  .detail-page,
  .story-page {
    grid-template-columns: 1fr;
  }

  .detail-side,
  .story-toc {
    position: static;
  }

  .story-toc {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .region-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .region-band {
    height: 220px;
  }

  .region-tabs {
    top: 58px;
  }

  .region-page {
    padding-top: 61px;
  }

  .region-page-body {
    padding: 22px 14px 40px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* maps never trap the page's scrolling: vertical swipes scroll the page, Ctrl + wheel zooms */
.atlas {
  touch-action: pan-y;
}

.atlas.is-free {
  touch-action: none;
}

.atlas-hint {
  position: absolute;
  z-index: 15;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgb(27 21 21 / 82%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: none;
  animation: fade 0.2s;
}

/* the province page scrolls as a page: the map stays beside the list */
.province-app {
  height: auto;
  margin-bottom: 0;
  align-items: start;
}

.province-map {
  position: sticky;
  top: 71px;
  height: calc(100dvh - 71px);
}

.province-list {
  overflow: visible;
}

@media (max-width: 1100px) {
  .province-map {
    position: relative;
    top: 0;
    height: 62vh;
  }
}

/* ---- rail.css */
/* ================================================================ the app identity: one strong sans, a red rail */
:root {
  --font-serif: var(--font-jakarta);
  --font-sans: var(--font-jakarta);
  --rail: 92px;
}

body {
  font-family: var(--font-jakarta), system-ui, sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-jakarta), system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* the headings that were serif in cards and tiles: heavy sans now */
.poster-text b,
.photo-tile-text b,
.place-card-body b,
.culture-card2-link b,
.island-text b,
.tile-names,
.tile-quote,
.note-tile strong,
.tile-big,
.tile-foot b,
.tile-count,
.tile-stats b,
.atlas-stats dt,
.detail-lead,
.stamp b,
.passport-stats dt,
.peek-tiles b,
.pager a,
.chapter summary,
.stat-cards dd,
.counters dt,
.live-note em {
  font-family: var(--font-jakarta), system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tile-quote,
.detail-lead,
.live-note em {
  font-weight: 600;
}

/* ---------------------------------------------------------------- the rail */
.app-rail {
  display: none;
}

@media (min-width: 901px) {
  .topnav {
    display: none;
  }

  .app-rail {
    position: fixed;
    z-index: 80;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 16px;
    background: linear-gradient(180deg, #e3191f 0%, var(--red) 40%, var(--red-deep) 100%);
    box-shadow: 6px 0 30px rgb(110 10 16 / 25%);
  }

  main {
    padding-left: var(--rail);
  }

  /* no top bar any more: the pages start at the top */
  main > :first-child:not(.atlas-app):not(.province-app) {
    padding-top: 36px;
  }

  .atlas-app {
    padding-top: 32px;
  }

  .region-page {
    padding-top: 0;
  }

  .region-tabs {
    top: 0;
  }

  .region-app {
    padding-top: 24px;
  }

  .province-map {
    top: 0;
    height: 100dvh;
  }

  .province-list {
    padding-top: 28px;
  }

  .province-title {
    top: 28px;
  }

  .detail-side,
  .story-toc {
    top: 84px;
  }

  .passport-cover {
    top: 24px;
  }

  .page-narrow,
  .page-wide {
    padding-top: 48px;
  }
}

.rail-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(70 6 10 / 35%);
  margin-bottom: 26px;
}

.rail-flag {
  width: 30px;
  height: 21px;
  border-radius: 4px;
  background: linear-gradient(var(--red) 50%, #fff 50%);
  box-shadow: 0 0 0 1.5px var(--red);
  animation: wave 4s ease-in-out infinite;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.rail-item {
  position: relative;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0 8px;
  border: 0;
  border-radius: 18px;
  background: none;
  color: rgb(255 255 255 / 75%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}

.rail-item:hover {
  background: rgb(255 255 255 / 12%);
  color: #fff;
  text-decoration: none;
}

.rail-item.is-on {
  background: #fff;
  color: var(--red);
  box-shadow: 0 8px 20px rgb(70 6 10 / 30%);
}

.rail-item.is-on::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #fff;
}

.rail-write {
  width: 60px;
  height: 60px;
  margin: 12px 0;
  border: 0;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 24px rgb(70 6 10 / 40%), inset 0 -3px 0 rgb(0 0 0 / 12%);
  transition: transform 0.25s var(--ease);
}

.rail-write:hover {
  transform: rotate(-8deg) scale(1.06);
}

.rail-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rail-lang {
  width: 44px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1.5px solid rgb(255 255 255 / 45%);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
}

.rail-lang:hover {
  background: #fff;
  color: var(--red);
  text-decoration: none;
}

.rail-avatar {
  position: relative;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 70%);
}

.rail-avatar i {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.rail-login {
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  color: var(--red);
  font-weight: 800;
  font-size: 0.75rem;
}

.rail-flyout {
  position: absolute;
  left: calc(var(--rail) + 12px);
  top: 12px;
  bottom: 12px;
  width: min(760px, calc(100vw - var(--rail) - 40px));
  padding: 26px 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgb(40 6 9 / 30%);
  animation: flyout 0.3s var(--ease);
}

@keyframes flyout {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}

.rail-flyout h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.rail-flyout-cols {
  columns: 3;
  column-gap: 24px;
}

.rail-flyout-cols > div {
  break-inside: avoid;
  margin-bottom: 16px;
}

.rail-flyout h4 {
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.rail-flyout a {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 500;
}

.rail-flyout a small {
  color: var(--muted);
}

.rail-flyout a:hover {
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

.rail-flyout a:hover small {
  color: #fff;
}

/* ---------------------------------------------------------------- app-style back button */
.app-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
  border: 1px solid rgb(255 255 255 / 35%);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.app-back:hover {
  background: #fff;
  color: var(--red);
  text-decoration: none;
}

/* the big hero title: heavy, tight */
.atlas-app .atlas-intro h1,
.tile-hero h1,
.region-band h1,
.explorer-head h1,
.province-title h1 {
  font-weight: 800;
  letter-spacing: -0.05em;
}

@media (min-width: 901px) {
  main > .region-page {
    padding-top: 0;
  }
}

.source-list {
  margin: 10px 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.source-link {
  margin-top: 28px;
  font-size: 0.86rem;
}

.source-link a {
  color: var(--muted);
  font-weight: 600;
}

.source-link a:hover {
  color: var(--red);
}

.tile-sources {
  scroll-margin-top: 24px;
}

/* the About page: boxes as tall as what they hold; the sources across the whole width */
.about-bento {
  grid-auto-rows: minmax(150px, auto);
}

.about-bento .about-hero {
  min-height: 460px;
}

.about-bento .tile-sources {
  grid-column: 1 / -1;
  padding: 26px 30px;
}

.about-bento .tile-sources .source-list {
  font-size: 0.98rem;
}

.about-bento .tile-text:not(.tile-sources) {
  grid-column: span 3;
}

.about-bento .tile-3d {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .about-bento .tile-text:not(.tile-sources) {
    grid-column: 1 / -1;
  }
}

.about-bento .tile-fact.red {
  grid-column: span 2;
}

/* ---- photos.css */
/* ================================================================ photo tiles on a region's overview */
.tile-photo {
  padding: 0;
  border: 0;
  color: #fff;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
}

.tile-photo .tile-bg,
.tile-play .tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

a.tile-photo:hover .tile-bg,
a.tile-photo:hover .tile-mosaic img,
.tile-play:hover .tile-bg {
  transform: scale(1.07);
}

.tile-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 3px;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.tile-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
  transition: transform 1s var(--ease);
}

.tile-mosaic.n3 img:first-child {
  grid-row: span 2;
}

.tile-mosaic.n2 {
  grid-template-rows: 1fr;
}

.tile-mosaic.n1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.tile-photo-shade,
.tile-play-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(70 6 10 / 92%) 0%, rgb(70 6 10 / 35%) 55%, rgb(0 0 0 / 5%) 100%);
}

.tile-photo-shade.deep {
  background: linear-gradient(to top, rgb(110 10 16 / 95%) 0%, rgb(110 10 16 / 70%) 60%, rgb(110 10 16 / 35%) 100%);
}

.tile-play-shade {
  background: radial-gradient(circle at 50% 45%, rgb(215 20 26 / 40%), rgb(70 6 10 / 85%));
}

.tile-play {
  overflow: hidden;
}

.tile-play .play-ring,
.tile-play b,
.tile-play small {
  position: relative;
  z-index: 1;
}

.tile-photo-text {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 64px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tile-photo .tile-kicker {
  color: #ffd6d8;
}

.tile-photo-text b {
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tile-photo .tile-quote {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  -webkit-line-clamp: 3;
}

.tile-photo .tile-count {
  z-index: 1;
  color: #fff;
  font-size: 2.4rem;
}

.tile-photo .tile-more {
  z-index: 1;
  color: #fff;
}

.tile-glyph-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 5rem;
  opacity: 0.35;
}

.tile-near.tile-photo {
  display: block;
}

/* ---------------------------------------------------------------- culture cards with a photo */
.culture-card2-link.has-photo {
  padding: 0 0 18px;
}

.culture-card2-link.has-photo > b,
.culture-card2-link.has-photo > .culture-lead,
.culture-card2-link.has-photo > .place-rating {
  padding: 0 20px;
}

.culture-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--red-soft);
}

.culture-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.culture-card2:hover .culture-photo img {
  transform: scale(1.08);
}

/* photo credits sit on the photo, small */
.photo-credit,
.detail-photo figcaption span {
  font-size: 0.68rem;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgb(255 255 255 / 80%);
  text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
}

/* the story tile: the quote above, "read more" below it */
.tile-story .tile-photo-text {
  right: 20px;
  bottom: 40px;
}

.tile-story .tile-more {
  bottom: 14px;
  right: 20px;
}

/* the notes tile: an invitation, not an empty white box */
.tile-notes {
  background:
    radial-gradient(circle at 85% 20%, rgb(233 180 76 / 30%), transparent 45%),
    linear-gradient(140deg, #fff 0%, var(--red-soft) 100%);
  border-color: var(--red-line);
}

.tile-notes::after {
  content: '✎';
  position: absolute;
  right: 16px;
  bottom: 4px;
  font-size: 4.6rem;
  line-height: 1;
  color: rgb(215 20 26 / 12%);
  transform: rotate(-12deg);
  transition: transform 0.4s var(--ease), color 0.4s;
}

a.tile-notes:hover::after {
  transform: rotate(-4deg) scale(1.1);
  color: rgb(215 20 26 / 25%);
}

.tile-notes .tile-empty {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 75%;
}

.tile-notes .tile-empty::after {
  content: ' →';
  color: var(--red);
}

/* ---------------------------------------------------------------- the instant loading screen */
.page-loading {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

.pl-bar {
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  background-size: 200% 100%;
  animation: shimmer 1s linear infinite;
}

.pl-hero,
.pl-grid span {
  border-radius: 26px;
  background: linear-gradient(90deg, #fbeff0 25%, #fff6f6 50%, #fbeff0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.pl-hero {
  height: 46vh;
  margin-bottom: 14px;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.pl-grid span {
  height: 190px;
}

/* ---- editor.css */
/* ================================================================ the block editor (writing a note) */
.page-narrow:has(.block-editor) {
  max-width: 880px;
}

.block-editor {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 20px;
  background: var(--cloud);
  border: 1.5px dashed var(--line);
  transition: border-color 0.2s, background 0.2s;
}

.block-editor.is-drag {
  border-color: var(--red);
  background: var(--red-soft);
}

.be-drop {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgb(255 240 241 / 88%);
  color: var(--red);
  font-weight: 800;
  font-size: 1.2rem;
  pointer-events: none;
}

.be-block {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.be-block:focus-within,
.be-block:hover {
  border-color: var(--red-line);
  box-shadow: 0 6px 18px rgb(110 10 16 / 8%);
}

.be-block textarea,
.be-block input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  resize: none;
  overflow: hidden;
  padding: 14px 16px !important;
  line-height: 1.65;
}

.be-h input {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.be-quote {
  border-left: 5px solid var(--red) !important;
  border-radius: 6px 14px 14px 6px;
}

.be-quote textarea {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--ink-2);
}

.be-img figure {
  margin: 0;
  padding: 10px;
}

.be-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 10px;
}

.be-img figure input {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 6px !important;
}

.be-uploading {
  height: 200px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #fbeff0 25%, #fff6f6 50%, #fbeff0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.be-link {
  display: grid;
  grid-template-columns: auto 1.4fr 1fr;
  align-items: center;
  gap: 4px;
  padding-left: 14px;
}

/* the move/remove buttons and the format bar appear on the block in use */
.be-tools,
.be-format {
  position: absolute;
  z-index: 2;
  top: -14px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.be-tools {
  right: 10px;
}

.be-format {
  left: 10px;
}

.be-block:hover .be-tools,
.be-block:focus-within .be-tools,
.be-block:hover .be-format,
.be-block:focus-within .be-format {
  opacity: 1;
  pointer-events: auto;
}

.be-tools button,
.be-format button {
  min-width: 28px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #fff;
  font-size: 0.85rem;
}

.be-tools button:hover:not(:disabled),
.be-format button:hover {
  background: var(--red);
}

.be-tools button:disabled {
  opacity: 0.3;
}

.ins-line {
  display: flex;
  justify-content: center;
  height: 18px;
  align-items: center;
}

.ins-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--red-line);
  background: #fff;
  color: var(--red);
  font-weight: 800;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s;
}

.ins-line:hover .ins-plus,
.ins-plus:focus {
  opacity: 1;
  transform: scale(1.1);
}

.ins-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px 0;
}

.ins-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.ins-bar button span {
  color: var(--red);
}

.ins-bar button:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.ins-bar button:hover span {
  color: #fff;
}

.be-help {
  text-align: center;
  margin: 4px 0 0;
}

/* ================================================================ a note read like a blog post */
.post-view.is-blog {
  display: block;
  max-width: 820px;
  margin: 0 auto;
}

.post-view.is-blog .post-content {
  padding: 40px 48px 32px;
}

.post-view.is-blog .post-content > h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  margin: 12px 0 10px;
}

.post-blog {
  margin-top: 22px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.post-blog p {
  margin: 0 0 18px;
}

.post-blog h3 {
  font-size: 1.6rem;
  color: var(--ink);
  margin: 34px 0 12px;
}

.post-blog blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  border-left: 5px solid var(--red);
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.post-blog figure {
  margin: 28px -48px;
}

.post-blog figure img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.post-blog figcaption {
  padding: 8px 48px 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.ugc-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red-line);
  text-underline-offset: 3px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--cloud);
  color: var(--ink);
}

.link-card:hover {
  border-color: var(--red);
  text-decoration: none;
}

.link-card > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.link-card small {
  color: var(--muted);
}

@media (max-width: 640px) {
  .post-view.is-blog .post-content {
    padding: 26px 18px;
  }

  .post-blog figure {
    margin: 22px -18px;
  }

  .post-blog figcaption {
    padding: 8px 18px 0;
  }

  .be-link {
    grid-template-columns: 1fr;
  }
}

/* ---- write.css */
/* ================================================================ the writing page */
.page-write {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 140px;
}

@media (min-width: 901px) {
  .page-write {
    padding-top: 28px;
  }
}

/* 1 · the cover, the title written on it */
.write-cover {
  position: relative;
  min-height: 300px;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  box-shadow: 0 30px 60px rgb(110 10 16 / 25%);
  animation: rise 0.6s var(--ease) both;
}

.write-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 30s ease-out both;
}

.write-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(70 6 10 / 95%) 0%, rgb(70 6 10 / 55%) 55%, rgb(0 0 0 / 20%) 100%);
}

.write-cover-text {
  position: relative;
  width: 100%;
  padding: 28px 32px 26px;
}

.write-where {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #ffd6d8;
  font-weight: 700;
  font-size: 0.92rem;
}

.write-where a {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  padding: 3px 10px;
}

.write-where a:hover {
  background: #fff;
  color: var(--red);
  text-decoration: none;
}

textarea.write-title {
  width: 100%;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  resize: none;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-jakarta), system-ui, sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

textarea.write-title::placeholder {
  color: rgb(255 255 255 / 55%);
}

.write-note {
  margin: 10px 0 0;
  color: #fff;
  font-size: 0.85rem;
}

.write-note button {
  margin-left: 6px;
  border: 0;
  border-radius: 999px;
  padding: 3px 10px;
  background: rgb(255 255 255 / 20%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* 2 · the trip card */
.trip-card {
  position: relative;
  margin: -26px 18px 0;
  padding: 30px 28px 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgb(110 10 16 / 12%);
  animation: rise 0.6s 0.1s var(--ease) both;
}

.trip-tag {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trip-row h3 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

.trip-row + .trip-grid,
.trip-card > .trip-row + .trip-row {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.trip-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}

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

.place-chips button,
.place-chips select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}

.place-chips button:first-child {
  padding-left: 14px;
}

.place-chips img,
.place-chips i {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-style: normal;
  background: var(--red-soft);
}

.place-chips select {
  width: auto;
  padding: 9px 14px;
}

.place-chips button:hover,
.place-chips select:hover {
  border-color: var(--red);
}

.place-chips button.is-on,
.place-chips select.is-on {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 8px 18px rgb(215 20 26 / 28%);
}

.trip-month {
  max-width: 240px;
  font-weight: 600;
}

.big-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.big-stars button {
  border: 0;
  background: none;
  padding: 0 2px;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--star-off);
  transition: transform 0.15s, color 0.15s;
}

.big-stars button.is-on {
  color: var(--gold);
}

.big-stars button:hover {
  transform: scale(1.18) rotate(-6deg);
}

.big-stars-label {
  margin-left: 12px;
  font-weight: 800;
  color: var(--red);
  min-width: 120px;
}

/* 3 · the story, last and widest */
.write-story {
  margin-top: 36px;
  animation: rise 0.6s 0.2s var(--ease) both;
}

.write-story h2 {
  font-size: 1.8rem;
}

.write-story > p {
  margin: 4px 0 16px;
}

.write-story .block-editor {
  min-height: 340px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgb(110 10 16 / 7%);
}

.write-story .be-block textarea {
  font-size: 1.08rem;
}

/* the bar that stays at the bottom */
.write-bar {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(940px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 22px;
  border-radius: 22px;
  background: rgb(27 21 21 / 92%);
  backdrop-filter: blur(14px);
  color: #fff;
  box-shadow: 0 20px 50px rgb(40 6 9 / 40%);
}

@media (min-width: 901px) {
  .write-bar {
    left: calc(50% + var(--rail) / 2);
  }
}

.write-stats {
  font-size: 0.86rem;
  color: rgb(255 255 255 / 75%);
}

.write-stats b {
  color: #fff;
}

.write-stats em {
  font-style: normal;
  color: #86efac;
}

.write-err {
  flex: 1;
  font-size: 0.82rem;
  color: #ffb3b8;
}

.write-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.write-bar .btn-ghost {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.write-bar .btn-red.is-ready {
  animation: ring-red 1.8s infinite;
}

@keyframes ring-red {
  70% {
    box-shadow: 0 0 0 12px rgb(215 20 26 / 0%);
  }
  0% {
    box-shadow: 0 0 0 0 rgb(215 20 26 / 60%);
  }
}

.write-pick {
  max-width: 640px;
  margin: 40px auto;
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgb(110 10 16 / 10%);
}

.write-pick h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .write-bar {
    bottom: 96px;
  }
}

@media (max-width: 640px) {
  .write-cover-text {
    padding: 22px 20px;
  }

  .trip-card {
    margin: -20px 6px 0;
    padding: 26px 18px 20px;
  }

  .trip-grid {
    grid-template-columns: 1fr;
  }

  .write-stats {
    display: none;
  }
}

/* the trip card overlaps the cover's foot, never the title */
.write-cover {
  min-height: 340px;
}

.write-cover-text {
  padding-bottom: 58px;
}

@media (max-width: 640px) {
  .write-cover-text {
    padding-bottom: 46px;
  }
}

/* ================================================================ the place picker */
.pp-open,
.pp-chosen {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border-radius: 20px;
  border: 2px dashed var(--red-line);
  background: linear-gradient(120deg, var(--red-soft), #fff 70%);
  text-align: left;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.pp-open:hover,
.pp-chosen:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(110 10 16 / 12%);
}

.pp-pin {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--red);
  font-size: 1.5rem;
  box-shadow: 0 8px 18px rgb(215 20 26 / 30%);
}

.pp-open b,
.pp-chosen b {
  display: block;
  font-size: 1.05rem;
}

.pp-open small {
  color: var(--muted);
}

.pp-arrow,
.pp-change {
  margin-left: auto;
  color: var(--red);
  font-weight: 800;
}

.pp-chosen {
  border-style: solid;
  border-color: var(--red);
  background: #fff;
}

.pp-chosen-img {
  width: 76px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
}

.pp-chosen-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-chosen-img i,
.pp-card-img i {
  font-style: normal;
  font-size: 1.8rem;
}

.pp-chosen-text small,
.pp-card-text small {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.pp-change {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--red-soft);
  font-size: 0.82rem;
}

.pp-panel {
  padding: 16px;
  border-radius: 22px;
  background: var(--cloud);
  border: 1px solid var(--line);
  animation: rise 0.35s var(--ease);
}

.pp-head {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.pp-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
}

.pp-search:focus-within {
  border-color: var(--red);
}

.pp-search span {
  color: var(--red);
  font-size: 1.2rem;
}

.pp-search input {
  border: 0 !important;
  box-shadow: none !important;
  padding: 11px 4px !important;
}

.pp-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
  color: var(--ink-2);
  box-shadow: 0 2px 8px rgb(110 10 16 / 10%);
}

.pp-close:hover {
  background: var(--red);
  color: #fff;
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.pp-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  color: var(--ink);
  box-shadow: 0 4px 14px rgb(110 10 16 / 8%);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.2s;
}

.pp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgb(110 10 16 / 16%);
}

.pp-card.is-on {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft), 0 18px 36px rgb(110 10 16 / 16%);
}

.pp-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
}

.pp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.pp-card:hover .pp-card-img img {
  transform: scale(1.08);
}

.pp-whole .pp-card-img {
  background:
    radial-gradient(circle at 30% 30%, rgb(255 255 255 / 25%), transparent 50%),
    linear-gradient(140deg, var(--gold), #c98a1e);
}

.pp-check {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 10px rgb(0 0 0 / 25%);
  animation: beat 0.4s var(--ease);
}

.pp-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}

.pp-card-text b {
  font-size: 0.92rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pp-whole .pp-card-text small {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.78rem;
}

.pp-all {
  display: flex;
  margin: 14px auto 0;
}

.pp-none {
  text-align: center;
  padding: 16px;
}

@media (max-width: 640px) {
  .pp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- polish.css */
/* ================================================================================================
   The finishing layer (loaded last): calmer, sharper, more "app".
   - motion: content rises in softly, cards lift under the pointer, photos breathe
   - photos stay sharp: dark shading only where text sits, no red wash over them
   - empty states invite instead of showing dashes
   - no lone card on a row, nothing wider than the screen
   ================================================================================================ */

:root {
  --shadow-1: 0 1px 2px rgb(40 8 10 / 6%), 0 4px 14px rgb(40 8 10 / 6%);
  --shadow-2: 0 2px 4px rgb(40 8 10 / 6%), 0 18px 40px rgb(110 10 16 / 16%);
  --radius-card: 22px;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgb(215 20 26 / 45%);
  outline-offset: 2px;
  border-radius: 10px;
}

html {
  scrollbar-color: rgb(215 20 26 / 35%) transparent;
}

/* ---------------------------------------------------------------- motion */
@keyframes pi-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.region-page-body > *,
.rails > .rail,
.explorer-grid > *,
.card-grid > * {
  animation: pi-rise 0.55s var(--ease) both;
}

.card-grid > *:nth-child(2),
.explorer-grid > *:nth-child(2) {
  animation-delay: 40ms;
}
.card-grid > *:nth-child(3),
.explorer-grid > *:nth-child(3) {
  animation-delay: 80ms;
}
.card-grid > *:nth-child(4),
.explorer-grid > *:nth-child(4) {
  animation-delay: 120ms;
}
.card-grid > *:nth-child(n + 5),
.explorer-grid > *:nth-child(n + 5) {
  animation-delay: 160ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- cards lift */
.place-card,
.culture-card2,
.poster,
.photo-tile,
.island-card,
.more-card {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.place-card:hover,
.culture-card2:hover,
.photo-tile:hover,
.more-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.place-card,
.culture-card2 {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}

/* a place without a photo: its kind as a big icon on a warm card, not a letter on red */
.place-card-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgb(255 255 255 / 70%), transparent 55%),
    linear-gradient(150deg, #fff4ef, #fde1dc 60%, #f9cfc8);
  color: var(--red-dark);
}

.place-card-art i {
  font-style: normal;
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(0 8px 14px rgb(110 10 16 / 18%));
  transition: transform 0.6s var(--ease);
}

.place-card:hover .place-card-art i {
  transform: scale(1.12) rotate(-4deg);
}

.place-card-art small {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

.photo-tile-glyph {
  font-size: 3rem;
  background: linear-gradient(150deg, #fff4ef, #f9cfc8);
}

/* ---------------------------------------------------------------- the landing posters: whole rows only */
.rail-track {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .rail-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rail-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rail-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.poster::after {
  background: linear-gradient(to top, rgb(20 4 6 / 82%) 0%, rgb(20 4 6 / 25%) 45%, transparent 70%);
}

/* ---------------------------------------------------------------- a region's pages: a sharp cover card */
.region-band {
  height: clamp(260px, 34vh, 360px);
  max-width: 1300px;
  margin: 18px auto 0;
  border-radius: 28px;
  box-shadow: var(--shadow-2);
}

.region-band-shade {
  background:
    linear-gradient(to top, rgb(18 4 6 / 88%) 0%, rgb(18 4 6 / 40%) 42%, rgb(18 4 6 / 0%) 72%),
    linear-gradient(to right, rgb(18 4 6 / 35%), transparent 60%);
}

.region-band-text {
  padding: 0 34px 30px;
}

.region-band h1 {
  text-shadow: 0 4px 30px rgb(0 0 0 / 30%);
}

@media (max-width: 1340px) {
  .region-band {
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media (max-width: 640px) {
  .region-band {
    margin: 10px 10px 0;
    border-radius: 22px;
  }

  .region-band-text {
    padding: 0 20px 22px;
  }
}

/* the tabs: one glassy segmented bar */
.region-tabs {
  max-width: max-content;
  margin: -26px auto 0;
  padding: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgb(110 10 16 / 8%);
  box-shadow: var(--shadow-1);
}

@media (max-width: 900px) {
  .region-tabs {
    max-width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 22px;
  }
}

.region-page-body {
  max-width: 1300px;
  padding-top: 30px;
}

/* ---------------------------------------------------------------- one place: facts, directions, more nearby */
.detail-photo {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.detail-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
}

.side-card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}

.fact-card {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 20px 22px;
  background: #fff;
}

.fact-card div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: baseline;
}

.fact-card dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-card dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.fact-card .mono {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-2);
}

.more-places {
  margin-top: 48px;
}

.more-places h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.more-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-1);
}

.more-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.more-card:hover img {
  transform: scale(1.07);
}

.more-card span {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgb(18 4 6 / 85%), transparent);
}

.more-card small {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.more-card b {
  font-size: 1.05rem;
  line-height: 1.25;
}

.more-card:hover {
  text-decoration: none;
}

/* ---------------------------------------------------------------- empty states that invite */
.tile-invite {
  display: grid;
  gap: 6px;
  margin: 6px 0 0;
}

.tile-invite b {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tile-invite span {
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.75;
}

.reviews-first {
  display: grid;
  gap: 2px;
}

.reviews-first strong {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- the explorer: islands + one province picker */
.prov-row.is-compact {
  justify-content: center;
}

.prov-select {
  position: relative;
  display: inline-flex;
}

.prov-select select {
  appearance: none;
  padding: 8px 34px 8px 16px;
  border-radius: 999px;
  border: 1px solid rgb(110 10 16 / 14%);
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.prov-select::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--red);
}

.prov-select.is-on select {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.prov-select.is-on::after {
  color: #fff;
}

/* ---------------------------------------------------------------- buttons feel pressable */
.btn {
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.25s,
    background 0.2s,
    color 0.2s;
}

.btn:active {
  transform: scale(0.97);
}
