:root {
  --bg: #f7f6f2;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-soft: #f2f6ff;
  --text: #16213d;
  --muted: #5c6885;
  --primary: #db4c67;
  --primary-dark: #2d53c7;
  --accent: #0f9d7a;
  --accent-soft: #ecfaf5;
  --line: rgba(22, 33, 61, 0.1);
  --line-strong: rgba(22, 33, 61, 0.16);
  --shadow-lg: 0 28px 90px rgba(33, 53, 107, 0.12);
  --shadow-md: 0 18px 42px rgba(33, 53, 107, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 32px));
}

body[data-theme="dark"] {
  --bg: #0d1326;
  --surface: rgba(18, 27, 52, 0.82);
  --surface-strong: #111a33;
  --surface-soft: #172443;
  --text: #eef3ff;
  --muted: #a7b4d4;
  --primary: #ff6a88;
  --primary-dark: #7d8cff;
  --accent: #38d3b1;
  --accent-soft: #102f2b;
  --line: rgba(190, 204, 243, 0.12);
  --line-strong: rgba(190, 204, 243, 0.2);
  --shadow-lg: 0 28px 90px rgba(3, 8, 24, 0.4);
  --shadow-md: 0 18px 42px rgba(3, 8, 24, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(219, 76, 103, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(45, 83, 199, 0.12), transparent 28%),
    radial-gradient(circle at 24% 86%, rgba(15, 157, 122, 0.12), transparent 24%),
    linear-gradient(180deg, #f9f8f4 0%, #f6f7fb 46%, #f8fafc 100%);
  transition: background 220ms ease, color 220ms ease;
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at top left, rgba(255, 106, 136, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(125, 140, 255, 0.14), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(56, 211, 177, 0.12), transparent 22%),
    linear-gradient(180deg, #0a1020 0%, #0d1326 46%, #111933 100%);
}

body[data-theme="dark"] .site-header {
  background: rgba(9, 15, 31, 0.84);
  border-bottom-color: rgba(190, 204, 243, 0.08);
}

body[data-theme="dark"] .main-nav a {
  border-color: rgba(190, 204, 243, 0.12);
  background: linear-gradient(180deg, rgba(28, 40, 74, 0.98), rgba(18, 28, 54, 0.98));
  color: #eef2ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(2, 7, 21, 0.34);
}

body[data-theme="dark"] .main-nav a:hover {
  background: linear-gradient(135deg, rgba(235, 93, 124, 0.26), rgba(104, 119, 255, 0.3));
  border-color: rgba(125, 140, 255, 0.28);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(2, 7, 21, 0.42);
}

body[data-theme="dark"] .surface-card,
body[data-theme="dark"] .featured-card,
body[data-theme="dark"] .place-card,
body[data-theme="dark"] .modal-card {
  border-color: rgba(190, 204, 243, 0.08);
  box-shadow: 0 24px 80px rgba(2, 7, 20, 0.48);
}

img {
  max-width: 100%;
  display: block;
  image-orientation: from-image;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.surface-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(249, 251, 255, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(23, 35, 71, 0.08);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 16px;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 74px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  max-width: 520px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(36, 54, 104, 0.18);
}

.brand-text {
  display: grid;
  gap: 5px;
}

.brand-text strong {
  font-size: 1.08rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.brand-text small {
  font-size: 0.88rem;
  line-height: 1.4;
}

.brand-text small,
.section-description,
.hero-description,
.about-card p,
.site-footer p,
.results-bar p,
.place-card-description,
.featured-card-description,
.place-card-address {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid rgba(22, 33, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 246, 255, 0.9));
  color: #243250;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 18px rgba(38, 58, 112, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease,
    color 180ms ease, box-shadow 180ms ease;
}

.main-nav a:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(235, 93, 124, 0.18), rgba(104, 119, 255, 0.18));
  border-color: rgba(45, 83, 199, 0.2);
  color: var(--primary-dark);
  box-shadow: 0 12px 24px rgba(38, 58, 112, 0.14);
}

.theme-toggle {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-self: end;
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 74px;
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(219, 76, 103, 0.14), rgba(45, 83, 199, 0.12));
  border: 1px solid rgba(45, 83, 199, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.theme-toggle-icon {
  position: relative;
  z-index: 1;
  font-size: 0.96rem;
  line-height: 1;
  color: var(--primary-dark);
}

.theme-toggle-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7dd, #ffffff);
  box-shadow: 0 6px 18px rgba(31, 43, 88, 0.18);
  transition: transform 220ms ease, background 220ms ease;
}

body[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(135deg, rgba(255, 106, 136, 0.18), rgba(125, 140, 255, 0.2));
  border-color: rgba(190, 204, 243, 0.16);
}

body[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(32px);
  background: linear-gradient(135deg, #dce3ff, #ffffff);
}

.hero,
.featured-section,
.places-section,
.about-section {
  padding: 56px 0 44px;
}

.hero-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.controls-card,
.about-card,
.featured-card,
.place-card,
.modal-card {
  border-radius: var(--radius-xl);
}

.hero-copy,
.controls-card,
.about-card,
.featured-card,
.place-card,
.modal-card,
.hero-visual {
  overflow: hidden;
}

.hero-copy,
.about-card,
.controls-card {
  padding: 40px;
}

.hero-copy {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.92), transparent 22%),
    radial-gradient(circle at 90% 14%, rgba(219, 76, 103, 0.12), transparent 24%),
    radial-gradient(circle at 24% 92%, rgba(45, 83, 199, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(255, 249, 244, 0.96), rgba(247, 249, 255, 0.98) 52%, rgba(242, 250, 247, 0.94));
}

body[data-theme="dark"] .hero-copy {
  background:
    radial-gradient(circle at 14% 18%, rgba(123, 137, 255, 0.14), transparent 20%),
    radial-gradient(circle at 90% 16%, rgba(235, 93, 124, 0.12), transparent 22%),
    radial-gradient(circle at 22% 90%, rgba(56, 211, 177, 0.08), transparent 24%),
    linear-gradient(150deg, rgba(14, 22, 44, 0.98), rgba(12, 19, 38, 0.98) 55%, rgba(15, 24, 47, 0.96));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.about-card h2,
.site-footer h2,
.modal-content h2,
.place-card-title,
.featured-card-title,
.hero-spotlight h2,
.detail-page h1,
.detail-content h2,
.weather-card h3 {
  margin: 0;
  line-height: 1.14;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  letter-spacing: -0.035em;
}

.hero-description,
.section-description,
.about-card p,
.detail-page p,
.modal-short,
#modalDescription,
.place-card-description,
.featured-card-description,
.group-note,
.results-bar p {
  text-align: justify;
  text-justify: inter-word;
}

.hero-description {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.hero-actions .button {
  min-width: 188px;
  min-height: 50px;
  padding: 0 24px;
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease,
    border-color 180ms ease;
  text-align: center;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 34px rgba(45, 83, 199, 0.24);
}

.button-secondary,
.button-tertiary {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(45, 83, 199, 0.12);
}

.button-secondary:hover,
.button-tertiary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(45, 83, 199, 0.22);
}

body[data-theme="dark"] .button-primary {
  color: #fbfcff;
  background: linear-gradient(135deg, #eb5d7c, #6877ff);
  box-shadow: 0 18px 38px rgba(4, 10, 28, 0.5);
}

body[data-theme="dark"] .button-secondary,
body[data-theme="dark"] .button-tertiary {
  color: #edf2ff;
  background: linear-gradient(180deg, rgba(23, 35, 67, 0.96), rgba(17, 27, 51, 0.98));
  border-color: rgba(190, 204, 243, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .button-secondary:hover,
body[data-theme="dark"] .button-tertiary:hover {
  background: linear-gradient(180deg, rgba(28, 42, 78, 0.98), rgba(19, 31, 58, 1));
  border-color: rgba(190, 204, 243, 0.2);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px;
  margin: 38px 0 0;
  padding: 0;
  max-width: 440px;
  margin-inline: auto;
}

.hero-stats li {
  min-width: 0;
  width: 100%;
  padding: 22px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.hero-visual {
  padding: 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(45, 83, 199, 0.2), transparent 26%),
    radial-gradient(circle at 28% 88%, rgba(15, 157, 122, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(250, 244, 238, 0.96), rgba(241, 246, 255, 0.98) 46%, rgba(236, 250, 245, 0.96));
}

body[data-theme="dark"] .hero-visual {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.05), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(123, 137, 255, 0.22), transparent 26%),
    radial-gradient(circle at 28% 88%, rgba(56, 211, 177, 0.12), transparent 24%),
    linear-gradient(150deg, rgba(15, 22, 43, 0.98), rgba(18, 28, 56, 0.98) 48%, rgba(11, 19, 38, 0.98));
}

.hero-gallery {
  display: grid;
  gap: 16px;
  height: 100%;
}

.hero-gallery-main {
  position: relative;
  min-height: 580px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.hero-gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-thumb {
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-thumb.is-active {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(45, 83, 199, 0.28);
}

.hero-spotlight {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.92));
  box-shadow: 0 22px 42px rgba(20, 35, 80, 0.14);
}

body[data-theme="dark"] .hero-spotlight {
  background: linear-gradient(180deg, rgba(13, 21, 43, 0.94), rgba(17, 27, 52, 0.94));
  box-shadow: 0 22px 42px rgba(2, 7, 21, 0.52);
}

.hero-spotlight-label,
.modal-category,
.place-card-category,
.featured-card-category,
.detail-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-spotlight h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.hero-spotlight p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

body[data-theme="dark"] .hero h1,
body[data-theme="dark"] .hero-spotlight h2,
body[data-theme="dark"] .brand-text strong,
body[data-theme="dark"] .hero-stats strong,
body[data-theme="dark"] .hero-stats span,
body[data-theme="dark"] .place-card-title,
body[data-theme="dark"] .featured-card-title,
body[data-theme="dark"] .about-card h2,
body[data-theme="dark"] .site-footer h2,
body[data-theme="dark"] .modal-content h2,
body[data-theme="dark"] .detail-page h1,
body[data-theme="dark"] .detail-content h2 {
  color: #f5f7ff;
}

body[data-theme="dark"] .brand-text small,
body[data-theme="dark"] .section-description,
body[data-theme="dark"] .hero-description,
body[data-theme="dark"] .about-card p,
body[data-theme="dark"] .site-footer p,
body[data-theme="dark"] .results-bar p,
body[data-theme="dark"] .place-card-description,
body[data-theme="dark"] .featured-card-description,
body[data-theme="dark"] .place-card-address,
body[data-theme="dark"] .detail-page p,
body[data-theme="dark"] .modal-short,
body[data-theme="dark"] #modalDescription,
body[data-theme="dark"] .group-note,
body[data-theme="dark"] .hero-spotlight p,
body[data-theme="dark"] .weather-status,
body[data-theme="dark"] .weather-source,
body[data-theme="dark"] .weather-metric-label {
  color: #b7c4e4;
}

body[data-theme="dark"] .group-note,
body[data-theme="dark"] .results-bar p,
body[data-theme="dark"] .filter-label,
body[data-theme="dark"] .search-field label {
  color: #d7e2ff;
}

body[data-theme="dark"] .weather-card h3,
body[data-theme="dark"] .weather-metric-value,
body[data-theme="dark"] .detail-fact-value,
body[data-theme="dark"] .detail-related-item strong {
  color: #f3f6ff;
}

body[data-theme="dark"] .hero-stats li,
body[data-theme="dark"] .detail-fact,
body[data-theme="dark"] .detail-related-item,
body[data-theme="dark"] .weather-metric,
body[data-theme="dark"] .search-field input,
body[data-theme="dark"] .filter-chip {
  background: rgba(18, 28, 54, 0.74);
  border-color: rgba(190, 204, 243, 0.12);
}

body[data-theme="dark"] .controls-card {
  background:
    radial-gradient(circle at top left, rgba(123, 137, 255, 0.16), transparent 26%),
    linear-gradient(145deg, rgba(17, 26, 48, 0.96), rgba(14, 23, 44, 0.98));
}

body[data-theme="dark"] .group-note {
  background: linear-gradient(135deg, rgba(123, 137, 255, 0.18), rgba(70, 101, 204, 0.14), rgba(56, 211, 177, 0.12));
  border-color: rgba(190, 204, 243, 0.18);
}

body[data-theme="dark"] .search-field input {
  color: #f4f7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(4, 10, 28, 0.18);
}

body[data-theme="dark"] .hero-card-label,
body[data-theme="dark"] .modal-category,
body[data-theme="dark"] .place-card-category,
body[data-theme="dark"] .featured-card-category,
body[data-theme="dark"] .detail-badge {
  background: rgba(123, 137, 255, 0.16);
  color: #d7defe;
}

body[data-theme="dark"] .eyebrow {
  color: #ff758f;
}

body[data-theme="dark"] .search-field input::placeholder {
  color: #90a0c6;
}

body[data-theme="dark"] .weather-card {
  background: linear-gradient(135deg, rgba(22, 31, 58, 0.96), rgba(17, 26, 50, 0.98), rgba(15, 35, 47, 0.96));
  border-color: rgba(125, 140, 255, 0.12);
}

body[data-theme="dark"] .weather-metric {
  background: linear-gradient(180deg, rgba(20, 30, 56, 0.86), rgba(16, 25, 48, 0.92));
  border-color: rgba(190, 204, 243, 0.1);
}

.hero-spotlight-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: stretch;
}

.hero-spotlight-actions .button {
  flex: 1 1 168px;
  min-height: 48px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading-column {
  align-items: end;
}

.section-description {
  max-width: 58ch;
  margin: 0;
  line-height: 1.78;
}

.controls-card {
  display: grid;
  gap: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 26%),
    linear-gradient(145deg, rgba(255, 250, 246, 0.96), rgba(245, 248, 255, 0.98));
}

.controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
}

.group-note {
  margin: 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(219, 76, 103, 0.08), rgba(45, 83, 199, 0.08), rgba(15, 157, 122, 0.08));
  border: 1px solid rgba(45, 83, 199, 0.08);
  line-height: 1.75;
}

.search-field,
.filter-field {
  display: grid;
  gap: 10px;
}

.search-field label,
.filter-label {
  font-weight: 700;
}

.search-field input {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  padding: 0 18px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-field input:focus {
  border-color: rgba(45, 83, 199, 0.28);
  box-shadow: 0 0 0 4px rgba(45, 83, 199, 0.1);
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid rgba(45, 83, 199, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
}

.filter-chip:active {
  transform: translateY(1px) scale(0.985);
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 26px rgba(45, 83, 199, 0.18);
}

.filter-chip.is-active {
  transform: translateY(-1px);
  box-shadow:
    0 16px 28px rgba(45, 83, 199, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body[data-theme="dark"] .filter-chip {
  color: #d7e2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .filter-chip:hover {
  box-shadow: 0 14px 28px rgba(2, 7, 21, 0.34);
}

body[data-theme="dark"] .filter-chip.is-active {
  color: #ffffff;
  box-shadow:
    0 18px 32px rgba(2, 7, 21, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.results-bar {
  padding: 22px 0 14px;
}

.results-bar p {
  font-size: 0.95rem;
}

.featured-grid,
.places-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.featured-card,
.place-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.featured-card:hover,
.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px rgba(32, 48, 99, 0.14);
  border-color: rgba(45, 83, 199, 0.14);
}

.featured-card::before,
.place-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.place-card-media-link,
.featured-card-media-link {
  display: block;
}

.featured-card-image,
.place-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #e8edf4;
  transition: transform 260ms ease;
}

.featured-card:hover .featured-card-image,
.place-card:hover .place-card-image {
  transform: scale(1.03);
}

.featured-card-content,
.place-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 22px;
}

.featured-card-title,
.place-card-title {
  margin-top: 14px;
  font-size: 1.24rem;
  text-align: left;
  line-height: 1.28;
}

.featured-card-description,
.place-card-description {
  margin: 12px 0 0;
  line-height: 1.7;
}

.place-card-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-card-meta {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-actions .button {
  flex: 1 1 160px;
}

.place-card-address {
  line-height: 1.65;
  font-size: 0.95rem;
}

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

.about-card {
  line-height: 1.8;
}

.site-footer {
  margin-top: 46px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(237, 242, 255, 0.56));
}

.footer-inner {
  justify-content: center;
  text-align: center;
}

.site-footer p {
  max-width: 60ch;
  margin: 12px auto 0;
}

.empty-state {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  text-align: center;
}

.place-modal {
  width: min(1120px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  border: 0;
  padding: 0;
  background: transparent;
}

.place-modal::backdrop {
  background: rgba(7, 17, 41, 0.68);
  backdrop-filter: blur(9px);
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  background: var(--surface-strong);
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

.modal-media {
  min-height: 100%;
  background: linear-gradient(180deg, #eef2f9, #e3e8f2);
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}

.modal-image.is-portrait {
  object-fit: contain;
  padding: 20px;
}

.modal-content {
  padding: 34px;
  overflow-y: auto;
  max-height: calc(100vh - 24px);
}

.modal-short {
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.7;
  margin: 14px 0 0;
}

#modalDescription {
  margin: 18px 0 0;
  line-height: 1.85;
}

.modal-details {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  text-align: center;
}

.modal-details dt {
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-details dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.weather-card {
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(219, 76, 103, 0.08), rgba(45, 83, 199, 0.08), rgba(15, 157, 122, 0.08));
  border: 1px solid rgba(45, 83, 199, 0.1);
}

.weather-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.weather-source {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.weather-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.weather-metric {
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.82);
  text-align: center;
}

.weather-metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.weather-metric-value {
  display: block;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-actions .button {
  flex: 1 1 220px;
}

.modal-map-link,
.modal-detail-link {
  max-width: 280px;
  text-align: center;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  font-size: 1.7rem;
  line-height: 1;
}

.detail-page {
  padding: 34px 0 48px;
}

.detail-shell {
  display: grid;
  gap: 24px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.detail-breadcrumb a {
  color: var(--primary-dark);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 26px;
  align-items: stretch;
}

.detail-cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-strong);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-intro {
  padding: 30px;
}

.detail-intro h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  text-align: left;
}

.detail-lead {
  margin: 16px 0 0;
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.75;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
}

.detail-content,
.detail-sidebar-card,
.detail-related {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.detail-content {
  line-height: 1.9;
}

.detail-content h2 {
  margin-bottom: 16px;
  font-size: 1.55rem;
  text-align: left;
}

.detail-sidebar {
  display: grid;
  gap: 20px;
}

.detail-facts {
  display: grid;
  gap: 14px;
}

.detail-fact {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.detail-fact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-fact-value {
  line-height: 1.7;
}

.detail-weather {
  margin: 0;
}

.detail-related-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.detail-related-item {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, border-color 180ms ease;
}

.detail-related-item:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 83, 199, 0.24);
}

.detail-related-item strong {
  display: block;
  margin-bottom: 6px;
}

.detail-related-item span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.place-card[data-category="hoi_an"] .place-card-category,
.featured-card[data-category="hoi_an"] .featured-card-category,
.modal-category[data-category="hoi_an"],
.detail-badge[data-category="hoi_an"] {
  background: #fff0f3;
  color: #cf3f62;
}

.place-card[data-category="hoi_an_dong"] .place-card-category,
.featured-card[data-category="hoi_an_dong"] .featured-card-category,
.modal-category[data-category="hoi_an_dong"],
.detail-badge[data-category="hoi_an_dong"] {
  background: #ecfcf7;
  color: #138867;
}

.place-card[data-category="hoi_an_tay"] .place-card-category,
.featured-card[data-category="hoi_an_tay"] .featured-card-category,
.modal-category[data-category="hoi_an_tay"],
.detail-badge[data-category="hoi_an_tay"] {
  background: #f2efff;
  color: #5446d8;
}

.place-card[data-category="hoi_an"]::before,
.featured-card[data-category="hoi_an"]::before {
  background: linear-gradient(90deg, #db4c67, #f28e5a);
}

.place-card[data-category="hoi_an_dong"]::before,
.featured-card[data-category="hoi_an_dong"]::before {
  background: linear-gradient(90deg, #0f9d7a, #18b7a7);
}

.place-card[data-category="hoi_an_tay"]::before,
.featured-card[data-category="hoi_an_tay"]::before {
  background: linear-gradient(90deg, #2d53c7, #7b66ff);
}

@media (max-width: 1080px) {
  .hero-grid,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer-inner {
    flex-direction: column;
    align-items: start;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto 74px;
  }

  .hero,
  .featured-section,
  .places-section,
  .about-section {
    padding: 48px 0 38px;
  }

  .hero-grid {
    gap: 26px;
  }

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

  .featured-grid,
  .places-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .modal-image {
    min-height: 300px;
    max-height: 480px;
  }

  .modal-content {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .hero,
  .featured-section,
  .places-section,
  .about-section,
  .detail-page {
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 10px;
    padding: 14px 0 12px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    justify-self: stretch;
    margin-top: 2px;
  }

  .main-nav a {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .brand-text small {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .hero-copy,
  .hero-visual,
  .controls-card,
  .about-card,
  .featured-card-content,
  .place-card-body,
  .modal-content,
  .detail-intro,
  .detail-content,
  .detail-sidebar-card,
  .detail-related {
    padding: 22px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-description,
  .hero-description {
    line-height: 1.72;
  }

  .controls-grid {
    gap: 16px;
  }

  .group-note {
    padding: 16px 16px 17px;
    border-radius: 18px;
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .featured-grid,
  .places-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-chip {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.92rem;
    text-align: center;
    justify-content: center;
  }

  .hero-gallery-main > img {
    height: 240px;
  }

  .hero-gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-thumb img {
    aspect-ratio: 4 / 3;
  }

  .hero-spotlight {
    position: static;
    margin-top: 0;
    padding: 22px;
    border-radius: 0 0 24px 24px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 8.8vw, 3rem);
  }

  .hero-actions {
    margin-top: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-spotlight-actions .button {
    width: 100%;
    min-width: 0;
  }

  .hero-stats {
    display: flex;
    max-width: none;
    gap: 12px;
    margin-top: 24px;
  }

  .hero-stats li {
    flex: 1 1 100%;
    min-width: 0;
    padding: 16px 18px;
  }

  .weather-card-header,
  .modal-actions,
  .detail-actions {
    flex-direction: column;
  }

  .weather-metrics {
    grid-template-columns: 1fr;
  }

  .modal-actions .button,
  .card-actions .button {
    width: 100%;
    max-width: none;
  }

  .modal-actions .button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.95rem;
    flex: 1 1 auto;
  }

  .card-actions .button {
    flex: 1 1 calc(50% - 5px);
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.94rem;
  }

  .featured-card-content,
  .place-card-body {
    padding: 20px 20px 18px;
  }

  .featured-card-title,
  .place-card-title {
    font-size: 1.14rem;
    margin-top: 12px;
  }

  .featured-card-description,
  .place-card-description,
  .place-card-address,
  .results-bar p {
    font-size: 0.94rem;
  }

  .detail-breadcrumb {
    flex-wrap: wrap;
  }
}

/* Structured search and ward-filter panel */
.group-note {
  display: grid;
  grid-template-columns: minmax(160px, 0.62fr) minmax(0, 2.38fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  line-height: 1.45;
}

.group-note-heading {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px 18px;
  border-right: 1px solid #d8e7ff;
  background: rgba(255, 255, 255, 0.52);
}

.group-note-kicker {
  color: #1d4ed8;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.group-note-heading strong {
  color: #102958;
  font-size: 0.92rem;
  line-height: 1.35;
}

.group-note-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.group-note-list li {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid rgba(147, 197, 253, 0.34);
}

.group-note-list li:last-child {
  border-right: 0;
}

.group-note-list strong {
  color: #173a88;
  font-size: 0.76rem;
  line-height: 1.35;
}

.group-note-list span {
  color: #526078;
  font-size: 0.69rem;
  line-height: 1.5;
}

.controls-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(390px, 0.9fr);
  align-items: start;
  gap: 24px;
}

.search-field,
.filter-field {
  gap: 8px;
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-chip,
body[data-theme="dark"] .filter-chip {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 12px;
  line-height: 1.25;
  text-align: center;
}

body[data-theme="dark"] .group-note-heading {
  border-right-color: rgba(147, 197, 253, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

body[data-theme="dark"] .group-note-kicker {
  color: #67e8f9;
}

body[data-theme="dark"] .group-note-heading strong {
  color: #f1f6ff;
}

body[data-theme="dark"] .group-note-list li {
  border-right-color: rgba(147, 197, 253, 0.12);
}

body[data-theme="dark"] .group-note-list strong {
  color: #bfdbfe;
}

body[data-theme="dark"] .group-note-list span {
  color: #aebddb;
}

@media (max-width: 1080px) {
  .controls-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .filter-group {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .group-note {
    grid-template-columns: 1fr;
  }

  .group-note-heading {
    padding: 13px 14px;
    border-right: 0;
    border-bottom: 1px solid #d8e7ff;
  }

  .group-note-list {
    grid-template-columns: 1fr;
  }

  .group-note-list li {
    padding: 11px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(147, 197, 253, 0.3);
  }

  .group-note-list li:last-child {
    border-bottom: 0;
  }

  .group-note-list span {
    font-size: 0.72rem;
  }

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

  body[data-theme="dark"] .group-note-heading {
    border-bottom-color: rgba(147, 197, 253, 0.14);
  }

  body[data-theme="dark"] .group-note-list li {
    border-bottom-color: rgba(147, 197, 253, 0.12);
  }
}

@media (max-width: 420px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) 74px;
    align-items: start;
  }

  .main-nav {
    gap: 8px;
  }

  .main-nav a {
    font-size: 0.88rem;
    padding: 0 8px;
  }

  .filter-group {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .button {
    flex-basis: 100%;
    width: 100%;
  }
}

/* Blue & white youth identity refresh */
:root {
  --bg: #f3f8ff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #eaf3ff;
  --text: #0f172a;
  --muted: #526078;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #06b6d4;
  --accent-soft: #ecfeff;
  --line: rgba(30, 64, 175, 0.12);
  --line-strong: rgba(30, 64, 175, 0.2);
  --shadow-lg: 0 24px 64px rgba(30, 64, 175, 0.11);
  --shadow-md: 0 12px 32px rgba(30, 64, 175, 0.09);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1200px, calc(100% - 40px));
}

body[data-theme="dark"] {
  --bg: #081225;
  --surface: #101d35;
  --surface-strong: #0e1a30;
  --surface-soft: #172a4b;
  --text: #f1f6ff;
  --muted: #aebddb;
  --primary: #60a5fa;
  --primary-dark: #93c5fd;
  --accent: #22d3ee;
  --accent-soft: #123344;
  --line: rgba(147, 197, 253, 0.14);
  --line-strong: rgba(147, 197, 253, 0.24);
  --shadow-lg: 0 24px 70px rgba(1, 8, 23, 0.42);
  --shadow-md: 0 14px 34px rgba(1, 8, 23, 0.3);
}

html {
  scroll-padding-top: 104px;
}

body {
  background:
    radial-gradient(circle at 5% 4%, rgba(37, 99, 235, 0.1), transparent 24%),
    radial-gradient(circle at 95% 12%, rgba(6, 182, 212, 0.08), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 52%, #f7fbff 100%);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 5% 4%, rgba(37, 99, 235, 0.2), transparent 25%),
    radial-gradient(circle at 95% 12%, rgba(6, 182, 212, 0.12), transparent 21%),
    linear-gradient(180deg, #07101f 0%, var(--bg) 52%, #0b172b 100%);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  color: #ffffff;
  background: #1e40af;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a,
button,
input {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #06b6d4;
  outline-offset: 3px;
}

.surface-card {
  background: var(--surface);
  border-color: var(--line);
  backdrop-filter: none;
}

.site-header,
body[data-theme="dark"] .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(30, 64, 175, 0.12);
  box-shadow: 0 8px 28px rgba(30, 64, 175, 0.08);
  backdrop-filter: blur(14px);
}

body[data-theme="dark"] .site-header {
  background: rgba(8, 18, 37, 0.92);
  border-bottom-color: rgba(147, 197, 253, 0.12);
}

.header-inner,
.footer-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border-color: #ffffff;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.16);
}

.brand-text strong {
  color: #173a88;
  font-size: 1.06rem;
  font-weight: 800;
}

.brand-text small {
  color: #60708a;
}

body[data-theme="dark"] .brand-text strong {
  color: #f1f6ff;
}

body[data-theme="dark"] .brand-text small {
  color: #aebddb;
}

.main-nav a,
body[data-theme="dark"] .main-nav a {
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #334155;
  background: transparent;
  box-shadow: none;
  font-weight: 650;
}

.main-nav a:hover,
body[data-theme="dark"] .main-nav a:hover {
  color: #1e40af;
  background: #eaf3ff;
  border-color: #d8e7ff;
  box-shadow: none;
  transform: none;
}

body[data-theme="dark"] .main-nav a {
  color: #d8e5fb;
}

body[data-theme="dark"] .main-nav a:hover {
  color: #ffffff;
  background: #172a4b;
  border-color: rgba(147, 197, 253, 0.18);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}

.theme-toggle-track,
body[data-theme="dark"] .theme-toggle-track {
  width: 68px;
  height: 40px;
  padding-inline: 9px;
  background: #eaf3ff;
  border-color: #cfe0fb;
}

body[data-theme="dark"] .theme-toggle-track {
  background: #172a4b;
  border-color: rgba(147, 197, 253, 0.2);
}

.theme-toggle-thumb {
  width: 30px;
  height: 30px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

body[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(28px);
  background: #dbeafe;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  color: #1e40af;
}

.theme-toggle-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-theme="dark"] .theme-toggle-icon {
  color: #bfdbfe;
}

.hero,
.featured-section,
.places-section,
.about-section {
  padding-top: 64px;
  padding-bottom: 48px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 24px;
}

.hero-copy {
  position: relative;
  padding: 48px;
  color: #ffffff;
  background:
    linear-gradient(140deg, rgba(6, 182, 212, 0.12), transparent 34%),
    linear-gradient(135deg, #173a88 0%, #1e40af 48%, #2563eb 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 72px rgba(30, 64, 175, 0.22);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -96px;
  width: 260px;
  height: 260px;
  border: 44px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero .eyebrow {
  color: #bfeeff;
}

body[data-theme="dark"] .hero .eyebrow {
  color: #bfeeff;
}

.hero h1 {
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(2.65rem, 5.4vw, 4.6rem);
}

.hero-description {
  color: #e1ecff;
  text-align: left;
}

body[data-theme="dark"] .hero-description {
  color: #e1ecff;
}

.hero-actions {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
}

.hero-actions .button-primary {
  color: #173a88;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(7, 21, 57, 0.18);
}

.hero-actions .button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
}

.hero-actions .button-secondary:hover {
  color: #173a88;
  background: #ffffff;
  border-color: #ffffff;
}

.hero-stats {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin-inline: 0;
}

.hero-stats li,
body[data-theme="dark"] .hero-stats li {
  padding: 18px 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-stats strong,
.hero-stats span,
body[data-theme="dark"] .hero-stats strong,
body[data-theme="dark"] .hero-stats span {
  color: #ffffff;
}

.hero-stats strong {
  font-size: 1.85rem;
}

.hero-visual,
body[data-theme="dark"] .hero-visual {
  padding: 14px;
  background: #ffffff;
  border-color: #dce9fb;
  box-shadow: var(--shadow-lg);
}

body[data-theme="dark"] .hero-visual {
  background: #101d35;
  border-color: rgba(147, 197, 253, 0.14);
}

.hero-gallery-main {
  min-height: 548px;
  border-radius: 18px;
}

.hero-gallery-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(3, 12, 31, 0.42) 100%);
  pointer-events: none;
}

.hero-spotlight,
body[data-theme="dark"] .hero-spotlight {
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(7, 21, 57, 0.18);
  backdrop-filter: blur(12px);
}

body[data-theme="dark"] .hero-spotlight {
  border-color: rgba(147, 197, 253, 0.15);
  background: rgba(14, 26, 48, 0.94);
}

.hero-spotlight-label,
.modal-category,
.place-card-category,
.featured-card-category,
.detail-badge {
  background: #eaf3ff;
  color: #1e40af;
}

.hero-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: none;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.hero-thumb:hover {
  opacity: 0.88;
}

.hero-thumb.is-active {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

.eyebrow {
  color: #1d4ed8;
  letter-spacing: 0.11em;
}

body[data-theme="dark"] .eyebrow {
  color: #67e8f9;
}

.section-heading h2,
.about-card h2,
.detail-content h2 {
  letter-spacing: -0.025em;
}

.section-description,
.hero-description,
.about-card p,
.detail-page p,
.modal-short,
#modalDescription,
.place-card-description,
.featured-card-description,
.group-note,
.results-bar p {
  text-align: left;
  text-justify: auto;
}

.button {
  min-height: 46px;
  border-radius: 12px;
  padding-inline: 20px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button-primary,
body[data-theme="dark"] .button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.2);
}

.button-primary:hover {
  box-shadow: 0 16px 30px rgba(30, 64, 175, 0.26);
}

.button-secondary,
.button-tertiary,
body[data-theme="dark"] .button-secondary,
body[data-theme="dark"] .button-tertiary {
  color: #1e40af;
  background: #ffffff;
  border-color: #cfe0fb;
  box-shadow: none;
}

body[data-theme="dark"] .button-secondary,
body[data-theme="dark"] .button-tertiary {
  color: #dbeafe;
  background: #172a4b;
  border-color: rgba(147, 197, 253, 0.2);
}

body[data-theme="dark"] .hero-actions .button-primary {
  color: #173a88;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(3, 12, 31, 0.26);
}

body[data-theme="dark"] .hero-actions .button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
}

.button-secondary:hover,
.button-tertiary:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.featured-section {
  padding-top: 52px;
}

.places-section {
  border-block: 1px solid rgba(30, 64, 175, 0.08);
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.56), rgba(243, 248, 255, 0.82));
}

body[data-theme="dark"] .places-section {
  border-block-color: rgba(147, 197, 253, 0.08);
  background: linear-gradient(180deg, rgba(16, 29, 53, 0.48), rgba(8, 18, 37, 0.7));
}

.controls-card,
body[data-theme="dark"] .controls-card {
  padding: 32px;
  background: var(--surface);
  border-color: var(--line);
}

.group-note {
  color: #334e75;
  background: #eff6ff;
  border-color: #d8e7ff;
}

body[data-theme="dark"] .group-note {
  color: #c7d7f2;
  background: #142746;
  border-color: rgba(147, 197, 253, 0.14);
}

.search-field input,
body[data-theme="dark"] .search-field input {
  min-height: 54px;
  border-radius: 12px;
  background: #ffffff;
  border-color: #cdddf3;
  box-shadow: none;
}

body[data-theme="dark"] .search-field input {
  color: #f1f6ff;
  background: #0d1a31;
  border-color: rgba(147, 197, 253, 0.18);
}

.search-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-chip,
body[data-theme="dark"] .filter-chip {
  min-height: 44px;
  color: #42526b;
  background: #ffffff;
  border-color: #cdddf3;
  box-shadow: none;
}

body[data-theme="dark"] .filter-chip {
  color: #d2def3;
  background: #142746;
  border-color: rgba(147, 197, 253, 0.16);
}

.filter-chip.is-active,
.filter-chip:hover,
body[data-theme="dark"] .filter-chip.is-active,
body[data-theme="dark"] .filter-chip:hover {
  color: #ffffff;
  background: #1e40af;
  border-color: #1e40af;
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.18);
}

.featured-grid,
.places-grid {
  gap: 22px;
}

.featured-card,
.place-card,
body[data-theme="dark"] .featured-card,
body[data-theme="dark"] .place-card {
  border-color: #dce7f5;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.07);
}

body[data-theme="dark"] .featured-card,
body[data-theme="dark"] .place-card {
  border-color: rgba(147, 197, 253, 0.12);
}

.featured-card:hover,
.place-card:hover {
  transform: translateY(-3px);
  border-color: #b8d2f4;
  box-shadow: 0 18px 38px rgba(30, 64, 175, 0.12);
}

.featured-card::before,
.place-card::before {
  height: 4px;
}

.featured-card-image,
.place-card-image {
  background: #eaf1f9;
}

.featured-card-content,
.place-card-body {
  padding: 22px;
}

.featured-card-title,
.place-card-title {
  color: #172b4d;
  font-size: 1.2rem;
  letter-spacing: -0.018em;
}

body[data-theme="dark"] .featured-card-title,
body[data-theme="dark"] .place-card-title {
  color: #f1f6ff;
}

.featured-card-description,
.place-card-description {
  line-height: 1.65;
}

.place-card-description {
  -webkit-line-clamp: 3;
}

.card-actions .button {
  min-height: 44px;
}

.place-card[data-category="hoi_an"] .place-card-category,
.featured-card[data-category="hoi_an"] .featured-card-category,
.modal-category[data-category="hoi_an"],
.detail-badge[data-category="hoi_an"] {
  color: #1e40af;
  background: #eaf2ff;
}

.place-card[data-category="hoi_an_dong"] .place-card-category,
.featured-card[data-category="hoi_an_dong"] .featured-card-category,
.modal-category[data-category="hoi_an_dong"],
.detail-badge[data-category="hoi_an_dong"] {
  color: #0e7490;
  background: #e6faff;
}

.place-card[data-category="hoi_an_tay"] .place-card-category,
.featured-card[data-category="hoi_an_tay"] .featured-card-category,
.modal-category[data-category="hoi_an_tay"],
.detail-badge[data-category="hoi_an_tay"] {
  color: #1d4ed8;
  background: #eef2ff;
}

body[data-theme="dark"] .place-card-category,
body[data-theme="dark"] .featured-card-category,
body[data-theme="dark"] .modal-category,
body[data-theme="dark"] .detail-badge {
  color: #dbeafe;
  background: #1d3761;
}

body[data-theme="dark"] .place-card[data-category="hoi_an_dong"] .place-card-category,
body[data-theme="dark"] .featured-card[data-category="hoi_an_dong"] .featured-card-category,
body[data-theme="dark"] .modal-category[data-category="hoi_an_dong"],
body[data-theme="dark"] .detail-badge[data-category="hoi_an_dong"] {
  color: #a5f3fc;
  background: #123b4c;
}

.place-card[data-category="hoi_an"]::before,
.featured-card[data-category="hoi_an"]::before {
  background: linear-gradient(90deg, #1e40af, #2563eb);
}

.place-card[data-category="hoi_an_dong"]::before,
.featured-card[data-category="hoi_an_dong"]::before {
  background: linear-gradient(90deg, #0891b2, #22d3ee);
}

.place-card[data-category="hoi_an_tay"]::before,
.featured-card[data-category="hoi_an_tay"]::before {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.about-grid {
  gap: 22px;
}

.about-card {
  border-top: 4px solid #2563eb;
}

.about-card:nth-child(2) {
  border-top-color: #06b6d4;
}

.site-footer {
  margin-top: 0;
  padding: 44px 0;
  border-top: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0f2d68, #173a88 58%, #1e40af);
}

.site-footer h2,
body[data-theme="dark"] .site-footer h2 {
  color: #ffffff;
}

.site-footer p,
body[data-theme="dark"] .site-footer p {
  color: #dbeafe;
}

.place-modal::backdrop {
  background: rgba(4, 12, 29, 0.64);
  backdrop-filter: blur(6px);
}

.modal-card {
  border: 1px solid var(--line);
  box-shadow: 0 32px 90px rgba(4, 12, 29, 0.32);
}

.modal-close {
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: #1e40af;
  border: 1px solid #d8e7ff;
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.12);
}

.modal-close svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.weather-card,
body[data-theme="dark"] .weather-card {
  background: #eff6ff;
  border-color: #d8e7ff;
}

body[data-theme="dark"] .weather-card {
  background: #142746;
  border-color: rgba(147, 197, 253, 0.14);
}

.weather-metric,
body[data-theme="dark"] .weather-metric {
  border-radius: 12px;
  background: #ffffff;
  border-color: #dce7f5;
}

body[data-theme="dark"] .weather-metric {
  background: #101d35;
  border-color: rgba(147, 197, 253, 0.12);
}

.detail-page {
  padding-top: 42px;
}

.detail-cover,
.detail-intro,
.detail-content,
.detail-sidebar-card,
.detail-related {
  border-radius: 20px;
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
}

.detail-intro {
  position: relative;
  overflow: hidden;
  border-top: 4px solid #2563eb;
}

.detail-intro::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -82px;
  width: 190px;
  height: 190px;
  border: 34px solid rgba(37, 99, 235, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.detail-lead {
  color: #234c9a;
}

body[data-theme="dark"] .detail-lead {
  color: #bfdbfe;
}

.detail-fact,
.detail-related-item,
body[data-theme="dark"] .detail-fact,
body[data-theme="dark"] .detail-related-item {
  border-radius: 14px;
  background: #f8fbff;
  border-color: #dce7f5;
}

body[data-theme="dark"] .detail-fact,
body[data-theme="dark"] .detail-related-item {
  background: #142746;
  border-color: rgba(147, 197, 253, 0.12);
}

.detail-related-item:hover {
  border-color: #93c5fd;
}

@media (max-width: 1080px) {
  .hero-copy {
    padding: 44px;
  }

  .hero-gallery-main {
    min-height: 520px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 28px, 1200px);
  }

  html {
    scroll-padding-top: 154px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) 68px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .main-nav {
    gap: 6px;
  }

  .main-nav a {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 0.9rem;
  }

  .hero,
  .featured-section,
  .places-section,
  .about-section {
    padding-top: 36px;
    padding-bottom: 34px;
  }

  .hero-copy,
  .hero-visual,
  .controls-card,
  .about-card,
  .modal-content,
  .detail-intro,
  .detail-content,
  .detail-sidebar-card,
  .detail-related {
    padding: 22px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-gallery-main {
    min-height: auto;
    aspect-ratio: auto;
  }

  .hero-gallery-main::after {
    display: none;
  }

  .hero-spotlight,
  body[data-theme="dark"] .hero-spotlight {
    border-radius: 0 0 16px 16px;
    backdrop-filter: none;
  }

  .hero-stats li {
    padding: 16px 12px;
  }

  .hero-stats strong {
    font-size: 1.55rem;
  }

  .filter-chip {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .brand-text small {
    display: none;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Editorial journey storytelling */
.journey-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.journey-section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.journey-section-heading .section-description {
  max-width: 58ch;
}

.journey-showcase {
  position: relative;
}

.journey-showcase::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 62px;
  bottom: 54px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, #e11d48 16%, #e11d48 84%, transparent);
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.28);
}

.journey-showcase::after {
  content: "KÝ ỨC • TIẾP BƯỚC •";
  position: absolute;
  left: -39px;
  top: 50%;
  color: #be123c;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.journey-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(380px, 0.84fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 28px;
  background: #ffffff;
  box-shadow:
    0 2px 4px rgba(30, 64, 175, 0.08),
    0 22px 52px rgba(30, 64, 175, 0.13),
    0 48px 100px rgba(15, 45, 104, 0.1);
}

.journey-panel::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: calc(58% - 1px);
  width: 2px;
  background: linear-gradient(180deg, transparent 8%, #e11d48 28%, #e11d48 72%, transparent 92%);
  opacity: 0.72;
  pointer-events: none;
}

.journey-media {
  position: relative;
  min-width: 0;
  min-height: 650px;
  overflow: hidden;
  background: #102958;
}

.journey-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(12, 38, 88, 0.78), rgba(37, 99, 235, 0.08) 56%),
    linear-gradient(180deg, transparent 48%, rgba(3, 12, 31, 0.82) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.journey-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.journey-media img {
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  filter: saturate(0.64) contrast(1.06);
  transform: scale(1.025);
}

.journey-chapter-number {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 30px;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.09em;
  pointer-events: none;
}

.journey-media-caption {
  position: absolute;
  z-index: 3;
  right: 38px;
  bottom: 38px;
  left: 38px;
  display: grid;
  gap: 9px;
  color: #ffffff;
}

.journey-media-caption span {
  color: #a5f3fc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-media-caption strong {
  max-width: 22ch;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.journey-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 42px;
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.09), transparent 30%),
    linear-gradient(145deg, #ffffff, #f3f8ff);
}

.journey-content::before {
  content: "HỒ SƠ SỐ";
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(30, 64, 175, 0.16);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.journey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.journey-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  color: #31527f;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.journey-meta span:first-child {
  color: #ffffff;
  background: #1e40af;
  border-color: #1e40af;
}

.journey-content h3 {
  max-width: 12ch;
  margin: 0;
  color: #102958;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.journey-content > p {
  margin: 18px 0 24px;
  color: #526078;
  line-height: 1.72;
}

.journey-stops {
  position: relative;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-stops::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, #e11d48, rgba(225, 29, 72, 0.2));
}

.journey-stops li {
  position: relative;
}

.journey-stops a {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 7px 10px 7px 0;
  border-radius: 12px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.journey-stops a:hover {
  background: rgba(219, 234, 254, 0.72);
  transform: translateX(4px);
}

.journey-stop-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #e11d48;
  border-radius: 50%;
  color: #be123c;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(225, 29, 72, 0.14);
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.journey-stop-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.journey-stop-copy strong {
  overflow: hidden;
  color: #172b4d;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-stop-copy small {
  color: #64748b;
  font-size: 0.72rem;
}

.journey-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}

.journey-actions .button {
  flex: 1 1 0;
}

.journey-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.journey-selector-button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid #cfdef2;
  border-radius: 16px;
  color: #172b4d;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.07);
  cursor: pointer;
  text-align: left;
  transition:
    transform 200ms ease,
    color 200ms ease,
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.journey-selector-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #e11d48;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 200ms ease;
}

.journey-selector-button:hover {
  transform: translateY(-3px);
  border-color: #9fc2ed;
  box-shadow: 0 14px 30px rgba(30, 64, 175, 0.12);
}

.journey-selector-button.is-active {
  color: #ffffff;
  border-color: #173a88;
  background: linear-gradient(135deg, #173a88, #1e40af);
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.2);
  transform: translateY(-4px);
}

.journey-selector-button.is-active::before {
  transform: scaleY(1);
}

.journey-selector-number {
  color: #1e40af;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
}

.journey-selector-button.is-active .journey-selector-number {
  color: #fda4af;
}

.journey-selector-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.journey-selector-copy strong {
  font-size: 0.92rem;
  line-height: 1.3;
}

.journey-selector-copy small {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.4;
}

.journey-selector-button.is-active .journey-selector-copy small {
  color: #bfdbfe;
}

.journey-panel.is-switching .journey-media img {
  animation: journey-image-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-panel.is-switching .journey-content > * {
  animation: journey-copy-reveal 360ms ease-out both;
}

@keyframes journey-image-reveal {
  from {
    opacity: 0.55;
    transform: scale(1.07);
  }
  to {
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes journey-copy-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body[data-theme="dark"] .journey-panel {
  border-color: rgba(147, 197, 253, 0.16);
  background: #0e1a30;
  box-shadow:
    0 2px 4px rgba(1, 8, 23, 0.2),
    0 24px 54px rgba(1, 8, 23, 0.4),
    0 50px 100px rgba(1, 8, 23, 0.34);
}

body[data-theme="dark"] .journey-content {
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.18), transparent 30%),
    linear-gradient(145deg, #101d35, #0e1a30);
}

body[data-theme="dark"] .journey-content h3,
body[data-theme="dark"] .journey-stop-copy strong {
  color: #f1f6ff;
}

body[data-theme="dark"] .journey-content > p,
body[data-theme="dark"] .journey-stop-copy small {
  color: #aebddb;
}

body[data-theme="dark"] .journey-meta span {
  color: #d2def3;
  border-color: rgba(147, 197, 253, 0.18);
  background: rgba(23, 42, 75, 0.76);
}

body[data-theme="dark"] .journey-meta span:first-child {
  color: #ffffff;
  border-color: #2563eb;
  background: #1d4ed8;
}

body[data-theme="dark"] .journey-stops a:hover {
  background: rgba(37, 99, 235, 0.13);
}

body[data-theme="dark"] .journey-stop-number {
  color: #fda4af;
  background: #101d35;
}

body[data-theme="dark"] .journey-selector-button {
  color: #e5edfa;
  border-color: rgba(147, 197, 253, 0.15);
  background: #101d35;
}

body[data-theme="dark"] .journey-selector-copy small {
  color: #aebddb;
}

body[data-theme="dark"] .journey-selector-button.is-active {
  color: #ffffff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #173a88, #1d4ed8);
}

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

  .journey-panel::before {
    top: 499px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, transparent 8%, #e11d48 28%, #e11d48 72%, transparent 92%);
  }

  .journey-media,
  .journey-media img {
    min-height: 500px;
  }

  .journey-content h3 {
    max-width: 16ch;
  }

  .journey-selector-button {
    min-height: 108px;
  }
}

@media (max-width: 760px) {
  .journey-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
  }

  .journey-panel {
    min-height: 0;
    border-radius: 22px;
  }

  .journey-panel::before {
    display: none;
  }

  .journey-media,
  .journey-media img {
    min-height: 380px;
  }

  .journey-media::after {
    inset: 12px;
    border-radius: 14px;
  }

  .journey-chapter-number {
    top: 16px;
    left: 22px;
    font-size: 8rem;
  }

  .journey-media-caption {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  .journey-content {
    padding: 28px;
  }

  .journey-content h3 {
    max-width: 13ch;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .journey-selector {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 78vw);
    gap: 12px;
    padding: 5px 2px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .journey-selector::-webkit-scrollbar {
    display: none;
  }

  .journey-selector-button {
    min-height: 96px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .journey-chapter-number {
    font-size: 6.5rem;
  }

  .journey-media-caption strong {
    font-size: 1.45rem;
  }

  .journey-content {
    padding: 22px;
  }

  .journey-meta {
    margin-bottom: 18px;
  }

  .journey-stops a {
    min-height: 58px;
  }

  .journey-actions {
    flex-direction: column;
  }

}

/* Stitch screen: Hoi An Heritage Digital Handbook V1 */
.hero {
  padding: 48px 0 58px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(30, 64, 175, 0.16);
}

.hero-copy,
.hero-visual,
body[data-theme="dark"] .hero-copy,
body[data-theme="dark"] .hero-visual {
  min-width: 0;
  min-height: 620px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-copy,
body[data-theme="dark"] .hero-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(42px, 5vw, 66px);
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 8%, rgba(6, 182, 212, 0.17), transparent 28%),
    linear-gradient(145deg, #173a88, #1e40af 60%, #2457c5);
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: -76px;
  left: -74px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.025),
    0 0 0 68px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.hero-copy::after {
  right: -110px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 40px rgba(255, 255, 255, 0.018),
    0 0 0 80px rgba(255, 255, 255, 0.012);
}

.hero .eyebrow,
body[data-theme="dark"] .hero .eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: #bfeeff;
  font-size: 0.74rem;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(2.65rem, 4.9vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-description,
body[data-theme="dark"] .hero-description {
  position: relative;
  z-index: 1;
  max-width: 56ch;
  margin-top: 20px;
  color: #dbeafe;
  font-size: 0.9rem;
  line-height: 1.72;
}

.hero-actions {
  margin-top: 26px;
}

.hero-actions .button {
  min-width: 146px;
  min-height: 46px;
  font-size: 0.82rem;
}

.hero-actions .button-primary,
body[data-theme="dark"] .hero-actions .button-primary {
  color: #173a88;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(3, 12, 31, 0.2);
}

.hero-actions .button-secondary,
body[data-theme="dark"] .hero-actions .button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  position: relative;
  z-index: 1;
  max-width: 330px;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 34px;
}

.hero-stats li,
body[data-theme="dark"] .hero-stats li {
  padding: 16px 18px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  text-align: left;
}

.hero-stats strong {
  margin-bottom: 4px;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-stats span {
  font-size: 0.7rem;
}

.hero-visual,
body[data-theme="dark"] .hero-visual {
  padding: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.08), transparent 28%),
    #f3f7ff;
}

.hero-gallery {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.hero-gallery-main {
  min-height: 480px;
  aspect-ratio: auto;
  border-radius: 14px;
  background: #dbeafe;
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.1);
}

.hero-gallery-main > img {
  object-position: center;
}

.hero-gallery-main::after {
  background: linear-gradient(180deg, transparent 58%, rgba(3, 12, 31, 0.22));
}

.hero-spotlight,
body[data-theme="dark"] .hero-spotlight {
  right: 26px;
  bottom: 24px;
  left: 26px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px rgba(15, 45, 104, 0.16);
}

.hero-spotlight-label {
  padding: 6px 10px;
  font-size: 0.66rem;
}

.hero-spotlight h2 {
  margin-top: 10px;
  color: #172b4d;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.hero-spotlight p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  font-size: 0.76rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-spotlight-actions {
  margin-top: 14px;
}

.hero-spotlight-actions .button {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.72rem;
}

.hero-gallery-thumbs {
  gap: 10px;
}

.hero-thumb {
  border-radius: 10px;
  background: #ffffff;
}

.hero-thumb img {
  aspect-ratio: 16 / 9;
}

body[data-theme="dark"] .hero-grid {
  border-color: rgba(147, 197, 253, 0.12);
  background: #101d35;
  box-shadow: 0 28px 72px rgba(1, 8, 23, 0.42);
}

body[data-theme="dark"] .hero-visual {
  background:
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.12), transparent 28%),
    #101d35;
}

body[data-theme="dark"] .hero-spotlight {
  border-color: rgba(147, 197, 253, 0.16);
  background: rgba(14, 26, 48, 0.95);
}

body[data-theme="dark"] .hero-spotlight h2 {
  color: #f1f6ff;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  body[data-theme="dark"] .hero-copy,
  body[data-theme="dark"] .hero-visual {
    min-height: auto;
  }

  .hero-copy,
  body[data-theme="dark"] .hero-copy {
    min-height: 570px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-visual,
  body[data-theme="dark"] .hero-visual {
    min-height: 610px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 28px;
  }

  .hero-grid {
    border-radius: 18px;
  }

  .hero-copy,
  body[data-theme="dark"] .hero-copy {
    min-height: 540px;
    padding: 34px 26px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .hero-stats {
    max-width: none;
  }

  .hero-visual,
  body[data-theme="dark"] .hero-visual {
    min-height: auto;
    padding: 18px;
  }

  .hero-gallery-main {
    min-height: 520px;
  }

  .hero-spotlight,
  body[data-theme="dark"] .hero-spotlight {
    right: 14px;
    bottom: 14px;
    left: 14px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .hero-copy,
  body[data-theme="dark"] .hero-copy {
    min-height: 520px;
    padding: 30px 22px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions .button {
    min-width: 0;
    padding-inline: 12px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-gallery-main {
    min-height: 480px;
  }

  .hero-spotlight,
  body[data-theme="dark"] .hero-spotlight {
    padding: 18px;
  }

  .hero-spotlight-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-spotlight-actions .button {
    min-width: 0;
    padding-inline: 10px;
  }
}

/* Scrollable 3D place galleries */
.gallery-heading-side {
  display: grid;
  gap: 18px;
  justify-items: end;
}

.gallery-heading-side .section-description {
  text-align: right;
}

.gallery-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gallery-swipe-hint {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.gallery-arrow {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #c7daf4;
  border-radius: 14px;
  color: #1e40af;
  background: linear-gradient(145deg, #ffffff, #edf5ff);
  box-shadow:
    -3px -3px 8px rgba(255, 255, 255, 0.9),
    4px 6px 14px rgba(30, 64, 175, 0.12);
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-arrow:hover:not(:disabled) {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.24);
  transform: translateY(-2px);
}

.gallery-arrow:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

body[data-theme="dark"] .gallery-arrow {
  color: #bfdbfe;
  background: linear-gradient(145deg, #172a4b, #101d35);
  border-color: rgba(147, 197, 253, 0.2);
  box-shadow:
    -3px -3px 8px rgba(39, 65, 106, 0.2),
    5px 8px 18px rgba(1, 8, 23, 0.34);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.results-bar p {
  margin: 0;
}

.featured-grid.gallery-track,
.places-grid.gallery-track {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 368px);
  align-items: stretch;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 36px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  perspective: 1200px;
  cursor: grab;
}

.places-grid.gallery-track {
  grid-auto-columns: minmax(310px, 350px);
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.gallery-track.is-dragging > .featured-card,
.gallery-track.is-dragging > .place-card {
  --tilt-x: 0deg !important;
  --tilt-y: 0deg !important;
}

.gallery-track img {
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-track > .featured-card,
.gallery-track > .place-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 0%;
  position: relative;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  min-width: 0;
  border: 1px solid rgba(147, 197, 253, 0.7);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.98));
  box-shadow:
    0 2px 3px rgba(30, 64, 175, 0.08),
    0 12px 22px rgba(30, 64, 175, 0.1),
    0 26px 54px rgba(30, 64, 175, 0.13);
  transform:
    perspective(1100px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(0);
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.gallery-track > .featured-card::after,
.gallery-track > .place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at var(--glow-x) var(--glow-y),
      rgba(255, 255, 255, 0.58),
      transparent 34%
    );
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gallery-track > .featured-card:hover,
.gallery-track > .place-card:hover,
.gallery-track > .featured-card:focus-within,
.gallery-track > .place-card:focus-within {
  border-color: #7eb1ee;
  box-shadow:
    0 3px 4px rgba(30, 64, 175, 0.08),
    0 18px 30px rgba(30, 64, 175, 0.14),
    0 36px 70px rgba(30, 64, 175, 0.2);
  transform:
    perspective(1100px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(-8px);
}

.gallery-track > .featured-card:hover::after,
.gallery-track > .place-card:hover::after {
  opacity: 0.62;
}

.gallery-track .featured-card-media-link,
.gallery-track .place-card-media-link {
  position: relative;
  z-index: 2;
  margin: 12px 12px 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow:
    0 8px 18px rgba(15, 45, 104, 0.16),
    0 18px 34px rgba(30, 64, 175, 0.12);
  transform: translateZ(24px);
}

.gallery-track .featured-card-image,
.gallery-track .place-card-image {
  aspect-ratio: 16 / 11;
}

.gallery-track .featured-card-content,
.gallery-track .place-card-body {
  position: relative;
  z-index: 3;
  transform: translateZ(18px);
}

.gallery-track .featured-card-category,
.gallery-track .place-card-category {
  box-shadow: 0 5px 12px rgba(30, 64, 175, 0.1);
}

.gallery-track .featured-card-title,
.gallery-track .place-card-title {
  font-size: 1.22rem;
}

.gallery-track .button {
  position: relative;
  z-index: 5;
}

.gallery-track .empty-state {
  width: min(620px, calc(100vw - 40px));
  scroll-snap-align: start;
}

body[data-theme="dark"] .gallery-track > .featured-card,
body[data-theme="dark"] .gallery-track > .place-card {
  border-color: rgba(147, 197, 253, 0.18);
  background:
    linear-gradient(145deg, rgba(23, 42, 75, 0.98), rgba(14, 26, 48, 0.99));
  box-shadow:
    0 2px 4px rgba(1, 8, 23, 0.2),
    0 16px 28px rgba(1, 8, 23, 0.34),
    0 34px 64px rgba(1, 8, 23, 0.42);
}

body[data-theme="dark"] .gallery-track > .featured-card:hover,
body[data-theme="dark"] .gallery-track > .place-card:hover,
body[data-theme="dark"] .gallery-track > .featured-card:focus-within,
body[data-theme="dark"] .gallery-track > .place-card:focus-within {
  border-color: rgba(96, 165, 250, 0.52);
  box-shadow:
    0 4px 6px rgba(1, 8, 23, 0.24),
    0 20px 34px rgba(1, 8, 23, 0.42),
    0 42px 78px rgba(1, 8, 23, 0.52);
}

@media (max-width: 1080px) {
  .gallery-heading-side {
    width: 100%;
    justify-items: start;
  }

  .gallery-heading-side .section-description {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .featured-grid.gallery-track,
  .places-grid.gallery-track {
    grid-template-columns: none;
    grid-auto-columns: minmax(280px, 84vw);
    gap: 16px;
    margin-right: 0;
    width: calc(100% - 14px);
    padding-right: 14px;
    padding-bottom: 30px;
  }

  .results-bar {
    align-items: center;
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .gallery-track .card-actions {
    flex-direction: row;
  }

  .gallery-track .card-actions .button {
    flex: 1 1 calc(50% - 6px);
    width: auto;
    padding-inline: 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 460px) {
  .results-bar {
    align-items: flex-end;
  }

  .results-bar p {
    max-width: 52%;
  }

  .gallery-heading-side {
    gap: 14px;
  }

  .gallery-swipe-hint {
    display: none;
  }

  .featured-grid.gallery-track,
  .places-grid.gallery-track {
    grid-auto-columns: minmax(270px, 86vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .gallery-track > .featured-card,
  .gallery-track > .place-card,
  .gallery-track > .featured-card:hover,
  .gallery-track > .place-card:hover,
  .gallery-track > .featured-card:focus-within,
  .gallery-track > .place-card:focus-within {
    transform: none;
    will-change: auto;
  }
}

/* Digital exhibition — editorial journey */
.journey-section-heading {
  align-items: start;
  margin-bottom: 36px;
}

.journey-section-heading > div {
  max-width: 640px;
}

.journey-section-heading h2 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(2.7rem, 5.7vw, 5rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.journey-section-heading .section-description {
  max-width: 52ch;
  padding-top: 12px;
  font-size: 0.96rem;
  line-height: 1.75;
}

.journey-showcase::before,
.journey-showcase::after {
  display: none;
}

.journey-panel {
  position: relative;
  display: block;
  min-height: 720px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #0a1b38;
  box-shadow: 0 34px 80px rgba(15, 45, 104, 0.2);
  isolation: isolate;
}

.journey-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  width: auto;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 15, 34, 0.45), transparent 58%),
    linear-gradient(180deg, transparent 45%, rgba(4, 15, 34, 0.3));
  opacity: 1;
}

.journey-media {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: #0a1b38;
}

.journey-media::before {
  background:
    linear-gradient(90deg, rgba(7, 22, 51, 0.32), transparent 62%),
    linear-gradient(180deg, rgba(7, 22, 51, 0.06), rgba(7, 22, 51, 0.35));
  mix-blend-mode: normal;
}

.journey-media::after {
  inset: 22px;
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 4px;
}

.journey-media img {
  min-height: 720px;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.015);
}

.journey-chapter-number {
  top: auto;
  right: 42px;
  bottom: -28px;
  left: auto;
  color: rgba(255, 255, 255, 0.14);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(10rem, 22vw, 18rem);
  font-weight: 500;
  letter-spacing: -0.1em;
}

.journey-media-caption {
  top: 48px;
  right: 48px;
  bottom: auto;
  left: auto;
  max-width: 250px;
  gap: 6px;
  text-align: right;
}

.journey-media-caption span {
  color: #fda4af;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.journey-media-caption strong {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.journey-content {
  position: absolute;
  z-index: 4;
  bottom: 48px;
  left: 48px;
  display: flex;
  width: min(650px, calc(100% - 96px));
  min-height: 490px;
  padding: 42px 46px 38px;
  border-left: 3px solid #e11d48;
  background: rgba(250, 252, 255, 0.94);
  box-shadow: 0 24px 70px rgba(3, 12, 31, 0.25);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.journey-content::before {
  content: "CHƯƠNG " attr(data-label);
  display: none;
}

.journey-meta {
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.journey-meta::before {
  content: "";
  width: 34px;
  height: 2px;
  background: #e11d48;
}

.journey-meta span {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #526078;
  background: transparent;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.journey-meta span:first-child {
  color: #be123c;
  border: 0;
  background: transparent;
}

.journey-content h3 {
  max-width: 13ch;
  color: #102958;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(2.7rem, 5vw, 4.65rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.journey-content > p {
  max-width: 57ch;
  margin: 16px 0 22px;
  color: #526078;
  font-size: 0.9rem;
  line-height: 1.65;
}

.journey-stops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(30, 64, 175, 0.16);
  border-bottom: 1px solid rgba(30, 64, 175, 0.16);
}

.journey-stops::before {
  top: 25px;
  right: 12%;
  bottom: auto;
  left: 12%;
  width: auto;
  height: 1px;
  background: rgba(225, 29, 72, 0.34);
}

.journey-stops li {
  min-width: 0;
}

.journey-stops a {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 9px;
  min-height: 112px;
  padding: 14px 14px 13px 0;
  border-radius: 0;
}

.journey-stops a:hover {
  background: transparent;
  transform: translateY(-2px);
}

.journey-stop-number {
  width: 24px;
  height: 24px;
  border: 1px solid #e11d48;
  color: #be123c;
  box-shadow: none;
  font-size: 0.58rem;
}

.journey-stop-copy {
  gap: 4px;
}

.journey-stop-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.4;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.journey-content .journey-more {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.7rem;
  font-style: italic;
}

.journey-actions {
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
}

.journey-actions .button {
  flex: 0 0 auto;
  min-height: 46px;
  border-radius: 4px;
}

.journey-actions .button-primary {
  padding-inline: 24px;
}

.journey-actions .button-secondary {
  border: 0;
  border-bottom: 1px solid #1e40af;
  background: transparent;
  box-shadow: none;
}

.journey-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid rgba(30, 64, 175, 0.2);
  border-bottom: 1px solid rgba(30, 64, 175, 0.2);
}

.journey-selector-button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 116px;
  padding: 22px 24px;
  overflow: visible;
  border: 0;
  border-right: 1px solid rgba(30, 64, 175, 0.16);
  border-radius: 0;
  color: #172b4d;
  background: transparent;
  box-shadow: none;
}

.journey-selector-button::before {
  inset: -1px 0 auto;
  width: auto;
  height: 3px;
  background: #e11d48;
  transform: scaleX(0);
  transform-origin: left;
}

.journey-selector-button:hover {
  border-color: rgba(30, 64, 175, 0.16);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
  transform: none;
}

.journey-selector-button.is-active {
  color: #102958;
  border-color: rgba(30, 64, 175, 0.16);
  background: rgba(219, 234, 254, 0.45);
  box-shadow: none;
  transform: none;
}

.journey-selector-number,
.journey-selector-button.is-active .journey-selector-number {
  color: #be123c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 2rem;
  font-weight: 600;
}

.journey-selector-copy {
  gap: 5px;
}

.journey-selector-copy strong {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.15;
}

.journey-selector-copy small,
.journey-selector-button.is-active .journey-selector-copy small {
  color: #64748b;
  font-size: 0.65rem;
}

.journey-selector-button:focus-visible {
  z-index: 2;
  outline: 3px solid #06b6d4;
  outline-offset: 3px;
}

.journey-panel.is-switching .journey-media img {
  animation: exhibition-image-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-panel.is-switching .journey-content > * {
  animation: exhibition-copy-reveal 320ms ease-out both;
}

@keyframes exhibition-image-reveal {
  from {
    opacity: 0.7;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes exhibition-copy-reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body[data-theme="dark"] .journey-panel {
  border: 0;
  background: #071226;
}

body[data-theme="dark"] .journey-content {
  border-left-color: #fb7185;
  background: rgba(12, 29, 55, 0.94);
}

body[data-theme="dark"] .journey-content h3,
body[data-theme="dark"] .journey-stop-copy strong {
  color: #f4f7fc;
}

body[data-theme="dark"] .journey-content > p,
body[data-theme="dark"] .journey-content .journey-more,
body[data-theme="dark"] .journey-selector-copy small {
  color: #b7c5dc;
}

body[data-theme="dark"] .journey-meta span,
body[data-theme="dark"] .journey-meta span:first-child {
  border: 0;
  background: transparent;
}

body[data-theme="dark"] .journey-meta span {
  color: #fda4af;
}

body[data-theme="dark"] .journey-stop-number {
  color: #fda4af;
  background: #0c1d37;
}

body[data-theme="dark"] .journey-selector,
body[data-theme="dark"] .journey-selector-button {
  border-color: rgba(147, 197, 253, 0.18);
}

body[data-theme="dark"] .journey-selector-button,
body[data-theme="dark"] .journey-selector-button.is-active {
  color: #f4f7fc;
  background: transparent;
}

body[data-theme="dark"] .journey-selector-button:hover,
body[data-theme="dark"] .journey-selector-button.is-active {
  background: rgba(37, 99, 235, 0.1);
}

@media (max-width: 1080px) {
  .journey-panel {
    min-height: 680px;
  }

  .journey-media,
  .journey-media img {
    min-height: 680px;
  }

  .journey-content {
    bottom: 36px;
    left: 36px;
    width: min(620px, calc(100% - 72px));
  }

  .journey-panel::before {
    inset: 0;
    height: auto;
    background:
      linear-gradient(90deg, rgba(4, 15, 34, 0.42), transparent 75%),
      linear-gradient(180deg, transparent 50%, rgba(4, 15, 34, 0.34));
  }
}

@media (max-width: 760px) {
  .journey-section-heading {
    gap: 12px;
    margin-bottom: 24px;
  }

  .journey-section-heading h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .journey-panel {
    display: flex;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(15, 45, 104, 0.14);
    flex-direction: column;
  }

  .journey-media {
    position: relative;
    inset: auto;
    min-height: 380px;
  }

  .journey-media img {
    min-height: 380px;
  }

  .journey-media::after {
    inset: 14px;
  }

  .journey-chapter-number {
    right: 24px;
    bottom: -16px;
    left: auto;
    font-size: 9rem;
  }

  .journey-media-caption {
    top: 28px;
    right: 28px;
    max-width: 190px;
  }

  .journey-content {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    min-height: 0;
    padding: 30px 26px 28px;
    border-top: 3px solid #e11d48;
    border-left: 0;
    background: #ffffff;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .journey-content h3 {
    max-width: 14ch;
    font-size: clamp(2.5rem, 11vw, 3.6rem);
  }

  .journey-stops {
    grid-template-columns: 1fr;
  }

  .journey-stops::before {
    top: 23px;
    right: auto;
    bottom: 23px;
    left: 12px;
    width: 1px;
    height: auto;
  }

  .journey-stops a {
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    padding: 8px 0;
  }

  .journey-stop-copy strong {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }

  .journey-selector {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 78vw);
    gap: 0;
    margin-top: 20px;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .journey-selector-button {
    min-height: 106px;
    border-right: 1px solid rgba(30, 64, 175, 0.16);
    scroll-snap-align: start;
  }

  body[data-theme="dark"] .journey-panel,
  body[data-theme="dark"] .journey-content {
    background: #0c1d37;
  }
}

@media (max-width: 480px) {
  .journey-media,
  .journey-media img {
    min-height: 310px;
  }

  .journey-media-caption {
    top: 24px;
    right: 24px;
    left: 92px;
  }

  .journey-media-caption strong {
    font-size: 0.8rem;
  }

  .journey-content {
    padding: 26px 20px 24px;
  }

  .journey-content > p {
    margin: 14px 0 20px;
  }

  .journey-actions {
    align-items: stretch;
    gap: 10px;
  }

  .journey-actions .button {
    width: 100%;
  }

  .journey-selector {
    grid-auto-columns: minmax(240px, 86vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-panel.is-switching .journey-media img,
  .journey-panel.is-switching .journey-content > * {
    animation: none;
  }
}

/* Stitch V2 composition — keep the local blue and white palette */
.journey-showcase {
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.16);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 22px 56px rgba(30, 64, 175, 0.12);
}

.journey-panel,
body[data-theme="dark"] .journey-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  grid-template-areas: "content media";
  min-height: 540px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.journey-panel::before {
  display: none;
}

.journey-media {
  position: relative;
  inset: auto;
  grid-area: media;
  min-height: 540px;
  overflow: hidden;
  background: #102958;
}

.journey-media::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 18, 42, 0.28), transparent 24%);
  mix-blend-mode: normal;
}

.journey-media::after {
  display: none;
}

.journey-media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  filter: none;
  transform: scale(1.01);
}

.journey-chapter-number {
  display: none;
}

.journey-media-caption {
  top: 24px;
  right: 28px;
  bottom: auto;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: none;
  gap: 7px;
  color: #ffffff;
  text-align: right;
}

.journey-media-caption span {
  color: #d8f7ff;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.journey-media-caption span::after {
  content: " · ";
}

.journey-media-caption strong {
  max-width: 28ch;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.4;
}

.journey-content,
body[data-theme="dark"] .journey-content {
  position: relative;
  inset: auto;
  grid-area: content;
  display: flex;
  width: auto;
  min-height: 540px;
  padding: clamp(38px, 4vw, 58px);
  border: 0;
  background:
    radial-gradient(circle at 4% 8%, rgba(6, 182, 212, 0.07), transparent 30%),
    #f8fbff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.journey-content::before {
  display: none;
}

.journey-meta {
  gap: 0;
  margin-bottom: 18px;
}

.journey-meta::before {
  display: none;
}

.journey-meta span,
.journey-meta span:first-child,
body[data-theme="dark"] .journey-meta span,
body[data-theme="dark"] .journey-meta span:first-child {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #0891b2;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-meta span:last-child {
  display: none;
}

.journey-content h3,
body[data-theme="dark"] .journey-content h3 {
  max-width: 11ch;
  color: #102958;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(2.7rem, 4.7vw, 4.3rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.journey-content > p,
body[data-theme="dark"] .journey-content > p {
  max-width: 55ch;
  margin: 16px 0 25px;
  color: #526078;
  font-size: 0.82rem;
  line-height: 1.68;
}

.journey-stops {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 2px;
  border: 0;
}

.journey-stops::before {
  top: 13px;
  right: 16%;
  bottom: auto;
  left: 12%;
  width: auto;
  height: 1px;
  background: #9cc9d8;
}

.journey-stops a {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  min-height: 92px;
  padding: 0 14px 8px 0;
  border-radius: 0;
}

.journey-stops a:hover {
  color: #1e40af;
  background: transparent;
  transform: translateY(-2px);
}

.journey-stop-number,
body[data-theme="dark"] .journey-stop-number {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  border: 1px solid #7fb7ca;
  color: #1e40af;
  background: #f8fbff;
  box-shadow: 0 0 0 4px #f8fbff;
  font-size: 0.56rem;
}

.journey-stop-copy {
  gap: 0;
}

.journey-stop-copy strong,
body[data-theme="dark"] .journey-stop-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #172b4d;
  font-size: 0.7rem;
  line-height: 1.4;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.journey-stop-copy small {
  display: none;
}

.journey-content .journey-more,
body[data-theme="dark"] .journey-content .journey-more {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 0.68rem;
  font-style: normal;
}

.journey-actions {
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
}

.journey-actions .button {
  flex: 0 0 auto;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.journey-actions .button-primary {
  padding-inline: 20px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.2);
}

.journey-actions .button-secondary,
body[data-theme="dark"] .journey-actions .button-secondary {
  min-height: 36px;
  padding-inline: 2px;
  border: 0;
  border-bottom: 1px solid #93c5fd;
  border-radius: 0;
  color: #1e40af;
  background: transparent;
}

.journey-selector,
body[data-theme="dark"] .journey-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(30, 64, 175, 0.16);
  background: #f1f7ff;
}

.journey-selector-button,
body[data-theme="dark"] .journey-selector-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 18px 24px;
  border: 0;
  border-right: 1px solid rgba(30, 64, 175, 0.12);
  border-radius: 0;
  color: #172b4d;
  background: transparent;
  box-shadow: none;
}

.journey-selector-button:last-child {
  border-right: 0;
}

.journey-selector-button::before {
  inset: -1px 0 auto;
  width: auto;
  height: 3px;
  background: #06b6d4;
  transform: scaleX(0);
  transform-origin: left;
}

.journey-selector-button:hover,
body[data-theme="dark"] .journey-selector-button:hover {
  border-color: rgba(30, 64, 175, 0.12);
  background: rgba(219, 234, 254, 0.66);
  box-shadow: none;
  transform: none;
}

.journey-selector-button.is-active,
body[data-theme="dark"] .journey-selector-button.is-active {
  color: #102958;
  border-color: rgba(30, 64, 175, 0.12);
  background: #e9f3ff;
  box-shadow: none;
  transform: none;
}

.journey-selector-button.is-active::before {
  transform: scaleX(1);
}

.journey-selector-number,
.journey-selector-button.is-active .journey-selector-number,
body[data-theme="dark"] .journey-selector-number,
body[data-theme="dark"] .journey-selector-button.is-active .journey-selector-number {
  color: #173a88;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 2rem;
  font-weight: 600;
}

.journey-selector-copy {
  gap: 4px;
}

.journey-selector-copy strong {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.18;
}

.journey-selector-copy small,
.journey-selector-button.is-active .journey-selector-copy small,
body[data-theme="dark"] .journey-selector-copy small {
  color: #64748b;
  font-size: 0.58rem;
}

body[data-theme="dark"] .journey-showcase {
  border-color: rgba(147, 197, 253, 0.14);
  background: #101d35;
  box-shadow: 0 24px 60px rgba(1, 8, 23, 0.34);
}

body[data-theme="dark"] .journey-panel {
  background: #101d35;
}

body[data-theme="dark"] .journey-content {
  background:
    radial-gradient(circle at 4% 8%, rgba(34, 211, 238, 0.08), transparent 30%),
    #101d35;
}

body[data-theme="dark"] .journey-content h3,
body[data-theme="dark"] .journey-stop-copy strong,
body[data-theme="dark"] .journey-selector-button,
body[data-theme="dark"] .journey-selector-button.is-active {
  color: #f1f6ff;
}

body[data-theme="dark"] .journey-content > p,
body[data-theme="dark"] .journey-content .journey-more,
body[data-theme="dark"] .journey-selector-copy small {
  color: #aebddb;
}

body[data-theme="dark"] .journey-stop-number {
  color: #bfdbfe;
  background: #101d35;
  box-shadow: 0 0 0 4px #101d35;
}

body[data-theme="dark"] .journey-selector {
  background: #142746;
}

body[data-theme="dark"] .journey-selector-button:hover,
body[data-theme="dark"] .journey-selector-button.is-active {
  background: #183259;
}

body[data-theme="dark"] .journey-actions .button-secondary {
  color: #bfdbfe;
}

@media (max-width: 920px) {
  .journey-panel,
  body[data-theme="dark"] .journey-panel {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .journey-content,
  body[data-theme="dark"] .journey-content {
    padding: 34px;
  }

  .journey-content h3,
  body[data-theme="dark"] .journey-content h3 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
  }

  .journey-selector-button,
  body[data-theme="dark"] .journey-selector-button {
    padding-inline: 18px;
  }
}

@media (max-width: 760px) {
  .journey-showcase {
    overflow: visible;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
  }

  .journey-panel,
  body[data-theme="dark"] .journey-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    min-height: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(30, 64, 175, 0.12);
  }

  .journey-media,
  .journey-media img {
    min-height: 360px;
  }

  .journey-content,
  body[data-theme="dark"] .journey-content {
    min-height: 0;
    padding: 30px 24px;
    border-top: 0;
  }

  .journey-stops {
    grid-template-columns: 1fr;
  }

  .journey-stops::before {
    top: 14px;
    right: auto;
    bottom: 20px;
    left: 13px;
    width: 1px;
    height: auto;
  }

  .journey-stops a {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    min-height: 54px;
    padding: 6px 0;
  }

  .journey-stop-copy strong {
    font-size: 0.76rem;
    -webkit-line-clamp: 1;
  }

  .journey-selector,
  body[data-theme="dark"] .journey-selector {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 82vw);
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid rgba(30, 64, 175, 0.14);
    border-radius: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .journey-selector-button,
  body[data-theme="dark"] .journey-selector-button {
    min-height: 94px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .journey-media,
  .journey-media img {
    min-height: 300px;
  }

  .journey-media-caption {
    top: 20px;
    right: 20px;
    left: 20px;
  }

  .journey-media-caption strong {
    max-width: 18ch;
  }

  .journey-content,
  body[data-theme="dark"] .journey-content {
    padding: 26px 20px;
  }

  .journey-content h3,
  body[data-theme="dark"] .journey-content h3 {
    font-size: clamp(2.35rem, 12vw, 3.15rem);
  }

  .journey-actions {
    align-items: stretch;
  }

  .journey-actions .button {
    width: 100%;
  }

  .journey-selector,
  body[data-theme="dark"] .journey-selector {
    grid-auto-columns: minmax(238px, 88vw);
  }
}

/* Stitch V1 correction: right gallery only, restore the original left hero */
.hero {
  padding-top: 64px;
  padding-bottom: 48px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 24px;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy,
body[data-theme="dark"] .hero-copy {
  display: block;
  min-height: 0;
  padding: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  color: #ffffff;
  background:
    linear-gradient(140deg, rgba(6, 182, 212, 0.12), transparent 34%),
    linear-gradient(135deg, #173a88 0%, #1e40af 48%, #2563eb 100%);
  box-shadow: 0 28px 72px rgba(30, 64, 175, 0.22);
}

body[data-theme="dark"] .hero-copy {
  background:
    linear-gradient(140deg, rgba(34, 211, 238, 0.1), transparent 34%),
    linear-gradient(135deg, #102958 0%, #173a88 52%, #1d4ed8 100%);
}

.hero-copy::before {
  display: none;
}

.hero-copy::after {
  right: -84px;
  bottom: -96px;
  width: 260px;
  height: 260px;
  border: 44px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.hero .eyebrow,
body[data-theme="dark"] .hero .eyebrow {
  margin-bottom: 16px;
  color: #bfeeff;
  font-size: 0.82rem;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.65rem, 5.4vw, 4.6rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.hero-description,
body[data-theme="dark"] .hero-description {
  max-width: 58ch;
  margin-top: 18px;
  color: #e1ecff;
  font-size: 1.05rem;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.hero-actions .button {
  min-width: 188px;
  min-height: 50px;
  padding-inline: 24px;
  font-size: 1rem;
}

.hero-stats {
  display: grid;
  max-width: 460px;
  gap: 16px;
  margin: 38px 0 0;
  padding: 0;
}

.hero-stats li,
body[data-theme="dark"] .hero-stats li {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.hero-stats strong {
  margin-bottom: 8px;
  font-size: 1.85rem;
}

.hero-stats span {
  font-size: inherit;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  body[data-theme="dark"] .hero-copy {
    padding: 44px;
  }

  .hero h1 {
    max-width: 15ch;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 34px;
  }

  .hero-copy,
  body[data-theme="dark"] .hero-copy {
    min-height: 0;
    padding: 22px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.12rem, 10vw, 3.15rem);
  }

  .hero-description,
  body[data-theme="dark"] .hero-description {
    font-size: 1rem;
  }

  .hero-stats li,
  body[data-theme="dark"] .hero-stats li {
    padding: 16px 12px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    min-width: 0;
    padding-inline: 18px;
  }
}

/* Compact journey chapter rail on mobile */
.journey-selector-number,
.journey-selector-button.is-active .journey-selector-number,
body[data-theme="dark"] .journey-selector-number,
body[data-theme="dark"] .journey-selector-button.is-active .journey-selector-number {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
}

@media (max-width: 760px) {
  .journey-selector,
  body[data-theme="dark"] .journey-selector {
    grid-auto-columns: minmax(205px, 70vw);
  }

  .journey-selector-button,
  body[data-theme="dark"] .journey-selector-button {
    gap: 10px;
    min-height: 76px;
    padding: 11px 14px;
  }

  .journey-selector-number,
  .journey-selector-button.is-active .journey-selector-number,
  body[data-theme="dark"] .journey-selector-number,
  body[data-theme="dark"] .journey-selector-button.is-active .journey-selector-number {
    font-size: 1.55rem;
  }

  .journey-selector-copy {
    gap: 0;
  }

  .journey-selector-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .journey-selector-copy small {
    display: none;
  }
}

@media (max-width: 480px) {
  .journey-selector,
  body[data-theme="dark"] .journey-selector {
    grid-auto-columns: minmax(195px, 76vw);
  }
}

/* Interactive 3D coverflow for the monument catalogue */
.places-grid.gallery-track.coverflow-track {
  grid-auto-columns: 350px;
  gap: 22px;
  padding-top: 52px;
  padding-right: max(18px, calc((100% - 350px) / 2));
  padding-bottom: 66px;
  padding-left: max(18px, calc((100% - 350px) / 2));
  scroll-padding-inline: max(18px, calc((100% - 350px) / 2));
  perspective: 1600px;
  perspective-origin: 50% 46%;
}

.places-grid.coverflow-track > .place-card {
  --coverflow-rotate: 0deg;
  --coverflow-scale: 1;
  --coverflow-y: 0px;
  --coverflow-z: 0px;
  --coverflow-opacity: 1;
  scroll-snap-align: center;
  opacity: var(--coverflow-opacity);
  transform:
    perspective(1500px)
    translateZ(var(--coverflow-z))
    translateY(var(--coverflow-y))
    rotateY(var(--coverflow-rotate))
    scale(var(--coverflow-scale));
  transform-origin: center center;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.places-grid.coverflow-track > .place-card:hover,
.places-grid.coverflow-track > .place-card:focus-within {
  opacity: 1;
  transform:
    perspective(1500px)
    translateZ(var(--coverflow-z))
    translateY(calc(var(--coverflow-y) - 6px))
    rotateY(var(--coverflow-rotate))
    scale(var(--coverflow-scale));
}

.places-grid.coverflow-track > .place-card.is-coverflow-active {
  border-color: #60a5fa;
  box-shadow:
    0 4px 8px rgba(30, 64, 175, 0.1),
    0 24px 40px rgba(30, 64, 175, 0.18),
    0 52px 90px rgba(30, 64, 175, 0.2);
}

.places-grid.coverflow-track > .place-card:not(.is-coverflow-active) .place-card-body {
  filter: saturate(0.88);
}

.places-grid.coverflow-track > .place-card.is-coverflow-active .place-card-media-link {
  box-shadow:
    0 12px 24px rgba(15, 45, 104, 0.2),
    0 24px 44px rgba(30, 64, 175, 0.16);
}

.places-grid.coverflow-track.is-dragging > .place-card {
  transition: opacity 100ms linear;
}

body[data-theme="dark"] .places-grid.coverflow-track > .place-card.is-coverflow-active {
  border-color: rgba(96, 165, 250, 0.68);
  box-shadow:
    0 4px 8px rgba(1, 8, 23, 0.26),
    0 26px 46px rgba(1, 8, 23, 0.46),
    0 54px 96px rgba(1, 8, 23, 0.54);
}

@media (max-width: 760px) {
  .places-grid.gallery-track.coverflow-track {
    grid-auto-columns: minmax(270px, 82vw);
    width: 100%;
    gap: 12px;
    padding-top: 36px;
    padding-right: 9vw;
    padding-bottom: 48px;
    padding-left: 9vw;
    scroll-padding-inline: 9vw;
    perspective: 1200px;
  }

  .places-grid.coverflow-track > .place-card:hover,
  .places-grid.coverflow-track > .place-card:focus-within {
    transform:
      perspective(1200px)
      translateZ(var(--coverflow-z))
      translateY(var(--coverflow-y))
      rotateY(var(--coverflow-rotate))
      scale(var(--coverflow-scale));
  }
}

@media (prefers-reduced-motion: reduce) {
  .places-grid.coverflow-track > .place-card,
  .places-grid.coverflow-track > .place-card:hover,
  .places-grid.coverflow-track > .place-card:focus-within {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Equal hero columns with a raised 3D gallery on the right */
@media (min-width: 1081px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .hero-copy,
  .hero-visual,
  body[data-theme="dark"] .hero-copy,
  body[data-theme="dark"] .hero-visual {
    min-height: 620px;
  }

  .hero-visual,
  body[data-theme="dark"] .hero-visual {
    position: relative;
    isolation: isolate;
    overflow: visible;
    border: 1px solid rgba(147, 197, 253, 0.5);
    border-radius: var(--radius-xl);
    box-shadow:
      0 4px 8px rgba(30, 64, 175, 0.08),
      0 24px 42px rgba(30, 64, 175, 0.15),
      0 48px 86px rgba(15, 45, 104, 0.18);
    transform:
      perspective(1500px)
      rotateX(0.8deg)
      rotateY(-2.2deg)
      translateY(-7px)
      translateZ(18px);
    transform-origin: left center;
    transform-style: preserve-3d;
    transition:
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 260ms ease;
  }

  .hero-visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 18px -16px -18px 16px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: inherit;
    background: rgba(219, 234, 254, 0.48);
    box-shadow: 0 18px 44px rgba(30, 64, 175, 0.1);
    transform: translateZ(-34px);
    pointer-events: none;
  }

  .hero-visual:hover,
  .hero-visual:focus-within {
    box-shadow:
      0 6px 12px rgba(30, 64, 175, 0.1),
      0 30px 52px rgba(30, 64, 175, 0.18),
      0 58px 100px rgba(15, 45, 104, 0.22);
    transform:
      perspective(1500px)
      rotateX(0deg)
      rotateY(-1deg)
      translateY(-11px)
      translateZ(26px);
  }

  body[data-theme="dark"] .hero-visual {
    border-color: rgba(147, 197, 253, 0.18);
    box-shadow:
      0 4px 8px rgba(1, 8, 23, 0.26),
      0 26px 48px rgba(1, 8, 23, 0.42),
      0 52px 92px rgba(1, 8, 23, 0.5);
  }

  body[data-theme="dark"] .hero-visual::before {
    border-color: rgba(96, 165, 250, 0.14);
    background: rgba(23, 58, 136, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .hero-visual:hover,
  .hero-visual:focus-within {
    transform: none;
    transition: none;
  }
}

/* Layered 3D treatment for the journey showcase */
@media (min-width: 761px) {
  .journey-showcase,
  body[data-theme="dark"] .journey-showcase {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    perspective: 1800px;
    perspective-origin: 50% 42%;
  }

  .journey-panel,
  body[data-theme="dark"] .journey-panel {
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.42);
    border-radius: 20px;
    box-shadow:
      0 5px 10px rgba(30, 64, 175, 0.08),
      0 24px 48px rgba(30, 64, 175, 0.14),
      0 54px 92px rgba(15, 45, 104, 0.16);
    transform: translateZ(22px) rotateX(0.35deg);
    transform-origin: center bottom;
    transform-style: preserve-3d;
    transition:
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 260ms ease;
  }

  .journey-panel:hover,
  .journey-panel:focus-within {
    box-shadow:
      0 7px 14px rgba(30, 64, 175, 0.1),
      0 30px 56px rgba(30, 64, 175, 0.17),
      0 62px 108px rgba(15, 45, 104, 0.2);
    transform: translateY(-6px) translateZ(30px) rotateX(0deg);
  }

  .journey-content,
  body[data-theme="dark"] .journey-content {
    z-index: 2;
    border-right: 1px solid rgba(147, 197, 253, 0.28);
    box-shadow:
      inset -18px 0 36px rgba(30, 64, 175, 0.035),
      16px 0 38px rgba(15, 45, 104, 0.08);
    transform: translateZ(10px);
  }

  .journey-media {
    z-index: 1;
    box-shadow: inset 18px 0 36px rgba(5, 18, 42, 0.12);
    transform: translateZ(2px);
  }

  .journey-selector,
  body[data-theme="dark"] .journey-selector {
    gap: 14px;
    margin-top: 22px;
    border: 0;
    background: transparent;
    perspective: 1200px;
    transform-style: preserve-3d;
  }

  .journey-selector-button,
  body[data-theme="dark"] .journey-selector-button {
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.42);
    border-radius: 14px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 242, 255, 0.88));
    box-shadow:
      0 3px 6px rgba(30, 64, 175, 0.07),
      0 14px 28px rgba(30, 64, 175, 0.11);
    transform: translateY(0) translateZ(0) rotateX(0.8deg);
    transform-origin: center bottom;
    transition:
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 220ms ease,
      border-color 220ms ease,
      background 220ms ease;
  }

  .journey-selector-button:last-child {
    border-right: 1px solid rgba(147, 197, 253, 0.42);
  }

  .journey-selector-button:hover,
  body[data-theme="dark"] .journey-selector-button:hover {
    border-color: rgba(37, 99, 235, 0.48);
    background:
      linear-gradient(145deg, #ffffff, rgba(219, 234, 254, 0.94));
    box-shadow:
      0 5px 10px rgba(30, 64, 175, 0.1),
      0 20px 38px rgba(30, 64, 175, 0.17);
    transform: translateY(-6px) translateZ(16px) rotateX(0deg);
  }

  .journey-selector-button.is-active,
  body[data-theme="dark"] .journey-selector-button.is-active {
    border-color: rgba(37, 99, 235, 0.62);
    background:
      linear-gradient(145deg, #ffffff 0%, #dbeafe 100%);
    box-shadow:
      0 6px 12px rgba(30, 64, 175, 0.12),
      0 24px 44px rgba(30, 64, 175, 0.2);
    transform: translateY(-8px) translateZ(24px) rotateX(0deg);
  }

  .journey-selector-button::before {
    top: 0;
    right: 14px;
    left: 14px;
    border-radius: 0 0 999px 999px;
  }

  body[data-theme="dark"] .journey-panel {
    border-color: rgba(147, 197, 253, 0.18);
    box-shadow:
      0 5px 10px rgba(1, 8, 23, 0.24),
      0 28px 54px rgba(1, 8, 23, 0.4),
      0 58px 104px rgba(1, 8, 23, 0.46);
  }

  body[data-theme="dark"] .journey-selector-button {
    border-color: rgba(147, 197, 253, 0.2);
    background: linear-gradient(145deg, #152c4e, #101f39);
    box-shadow:
      0 3px 6px rgba(1, 8, 23, 0.22),
      0 16px 32px rgba(1, 8, 23, 0.34);
  }

  body[data-theme="dark"] .journey-selector-button:hover,
  body[data-theme="dark"] .journey-selector-button.is-active {
    border-color: rgba(96, 165, 250, 0.48);
    background: linear-gradient(145deg, #1b3d69, #142746);
  }
}

@media (max-width: 760px) {
  .journey-selector,
  body[data-theme="dark"] .journey-selector {
    gap: 10px;
    padding: 8px 8px 16px;
    border: 0;
    background: transparent;
  }

  .journey-selector-button,
  body[data-theme="dark"] .journey-selector-button {
    border: 1px solid rgba(147, 197, 253, 0.42);
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #eef6ff);
    box-shadow:
      0 3px 6px rgba(30, 64, 175, 0.06),
      0 12px 24px rgba(30, 64, 175, 0.12);
  }

  .journey-selector-button.is-active,
  body[data-theme="dark"] .journey-selector-button.is-active {
    border-color: rgba(37, 99, 235, 0.52);
    background: linear-gradient(145deg, #ffffff, #dbeafe);
    box-shadow:
      0 4px 8px rgba(30, 64, 175, 0.08),
      0 16px 30px rgba(30, 64, 175, 0.16);
    transform: translateY(-2px);
  }

  body[data-theme="dark"] .journey-selector-button {
    border-color: rgba(147, 197, 253, 0.18);
    background: linear-gradient(145deg, #152c4e, #101f39);
  }

  body[data-theme="dark"] .journey-selector-button.is-active {
    border-color: rgba(96, 165, 250, 0.42);
    background: linear-gradient(145deg, #1b3d69, #142746);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-panel,
  .journey-panel:hover,
  .journey-panel:focus-within,
  .journey-content,
  .journey-media,
  .journey-selector-button,
  .journey-selector-button:hover,
  .journey-selector-button.is-active {
    transform: none;
    transition: none;
  }
}

/* Stitch carousel stage — preserve the existing cards and coverflow transforms */
.places-carousel-shell {
  position: relative;
  isolation: isolate;
  margin-top: 34px;
  padding: 42px 0 30px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.96) 0 15%, transparent 49%),
    radial-gradient(circle at 50% 70%, rgba(96, 165, 250, 0.18), transparent 48%),
    linear-gradient(135deg, #edf7ff 0%, #dceeff 50%, #d3e9ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -28px 70px rgba(59, 130, 246, 0.08),
    0 28px 72px rgba(30, 64, 175, 0.12);
}

.places-carousel-shell::before,
.places-carousel-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.places-carousel-shell::before {
  top: 24%;
  left: 50%;
  width: min(720px, 70%);
  height: 66%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 90px rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
}

.places-carousel-shell::after {
  right: 8%;
  bottom: 12%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  opacity: 0.7;
}

.places-carousel-intro {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.places-carousel-intro .eyebrow {
  margin-bottom: 9px;
  color: #1d4ed8;
}

.places-carousel-intro h3 {
  max-width: 18ch;
  color: #102958;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

.places-carousel-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 68ch;
  margin: 11px 0 0;
  color: #526078;
  font-size: 0.82rem;
  line-height: 1.55;
}

.places-carousel-stage {
  position: relative;
  z-index: 2;
  margin-top: 2px;
}

.places-carousel-viewport {
  position: relative;
  width: 100%;
}

.places-carousel-stage .places-grid.gallery-track {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.places-carousel-arrow {
  position: absolute;
  z-index: 30;
  top: 50%;
  width: 48px;
  height: 48px;
  border-color: rgba(147, 197, 253, 0.7);
  border-radius: 14px;
  box-shadow:
    0 4px 9px rgba(30, 64, 175, 0.1),
    0 16px 30px rgba(30, 64, 175, 0.17);
  transform: translateY(-50%);
}

.places-carousel-arrow-prev {
  left: 18px;
}

.places-carousel-arrow-next {
  right: 18px;
}

.places-carousel-arrow:hover:not(:disabled) {
  transform: translateY(calc(-50% - 3px));
}

.places-carousel-arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.places-carousel-progress {
  --carousel-progress: 0;
  position: relative;
  z-index: 4;
  width: min(320px, 42%);
  height: 5px;
  margin: -11px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 2px rgba(30, 64, 175, 0.1);
}

.places-carousel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e40af, #3b82f6, #06b6d4);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.38);
  transform: scaleX(var(--carousel-progress));
  transform-origin: left center;
  transition: transform 160ms ease-out;
}

body[data-theme="dark"] .places-carousel-shell {
  border-color: rgba(147, 197, 253, 0.14);
  background:
    radial-gradient(circle at 50% 52%, rgba(30, 64, 175, 0.24) 0 12%, transparent 52%),
    radial-gradient(circle at 50% 72%, rgba(37, 99, 235, 0.2), transparent 48%),
    linear-gradient(135deg, #0d1b32 0%, #11294a 52%, #10233f 100%);
  box-shadow:
    inset 0 1px 0 rgba(147, 197, 253, 0.08),
    inset 0 -32px 80px rgba(1, 8, 23, 0.18),
    0 30px 76px rgba(1, 8, 23, 0.36);
}

body[data-theme="dark"] .places-carousel-intro h3 {
  color: #f1f6ff;
}

body[data-theme="dark"] .places-carousel-intro .eyebrow {
  color: #67e8f9;
}

body[data-theme="dark"] .places-carousel-summary {
  color: #b7c5dc;
}

body[data-theme="dark"] .places-carousel-progress {
  background: rgba(147, 197, 253, 0.16);
}

@media (max-width: 760px) {
  .places-carousel-shell {
    margin-top: 26px;
    padding-top: 30px;
    padding-bottom: 24px;
    border-radius: 20px;
  }

  .places-carousel-intro {
    width: min(100% - 32px, 620px);
  }

  .places-carousel-intro h3 {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
  }

  .places-carousel-summary {
    font-size: 0.76rem;
  }

  .places-carousel-stage {
    margin-top: 4px;
  }

  .places-carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .places-carousel-arrow-prev {
    left: 8px;
  }

  .places-carousel-arrow-next {
    right: 8px;
  }

  .places-carousel-progress {
    width: min(230px, 54%);
    margin-top: -6px;
  }
}

@media (max-width: 480px) {
  .places-carousel-summary span[aria-hidden="true"] {
    display: none;
  }

  .places-carousel-summary {
    display: grid;
    gap: 2px;
  }

  .places-carousel-arrow {
    top: 48%;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .places-carousel-progress span {
    transition: none;
  }
}

/* Reliable chapter controls, uniform media and book-page transitions */
.journey-selector,
body[data-theme="dark"] .journey-selector {
  transform-style: flat;
}

.journey-selector-button {
  z-index: 1;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.journey-selector-button > * {
  pointer-events: none;
}

.journey-selector-button:hover,
.journey-selector-button:focus-visible,
.journey-selector-button.is-active {
  z-index: 3;
}

.journey-media {
  height: 540px;
  min-height: 540px;
}

.journey-media img,
.journey-panel.is-switching .journey-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.journey-panel {
  perspective: 1800px;
  perspective-origin: 50% 50%;
}

.journey-content,
.journey-media {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.journey-panel::after {
  content: "";
  position: absolute;
  z-index: 12;
  top: 0;
  bottom: 0;
  display: block;
  width: 50%;
  opacity: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(226, 238, 255, 0.94) 48%,
      rgba(116, 151, 205, 0.42) 100%
    );
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.24),
    0 20px 48px rgba(15, 45, 104, 0.22);
  backface-visibility: hidden;
  pointer-events: none;
}

.journey-panel.is-page-forward::after {
  right: 0;
  left: auto;
  transform-origin: left center;
}

.journey-panel.is-page-backward::after {
  right: auto;
  left: 0;
  transform-origin: right center;
}

.journey-panel.is-page-flipping.is-page-forward::after {
  animation: journey-page-sheet-forward 680ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.journey-panel.is-page-flipping.is-page-backward::after {
  animation: journey-page-sheet-backward 680ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.journey-panel.is-page-flipping.is-page-forward .journey-media {
  animation: journey-page-content-forward 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left center;
}

.journey-panel.is-page-flipping.is-page-backward .journey-content {
  animation: journey-page-content-backward 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: right center;
}

@keyframes journey-page-sheet-forward {
  0% {
    opacity: 0;
    transform: rotateY(0deg);
  }
  12% {
    opacity: 0.9;
  }
  52% {
    opacity: 0.78;
    transform: rotateY(-92deg);
  }
  100% {
    opacity: 0;
    transform: rotateY(-178deg);
  }
}

@keyframes journey-page-sheet-backward {
  0% {
    opacity: 0;
    transform: rotateY(0deg);
  }
  12% {
    opacity: 0.9;
  }
  52% {
    opacity: 0.78;
    transform: rotateY(92deg);
  }
  100% {
    opacity: 0;
    transform: rotateY(178deg);
  }
}

@keyframes journey-page-content-forward {
  0% {
    opacity: 0.3;
    transform: translateZ(2px) rotateY(68deg) scale(0.985);
  }
  60% {
    opacity: 0.86;
  }
  100% {
    opacity: 1;
    transform: translateZ(2px) rotateY(0deg) scale(1);
  }
}

@keyframes journey-page-content-backward {
  0% {
    opacity: 0.3;
    transform: translateZ(10px) rotateY(-68deg) scale(0.985);
  }
  60% {
    opacity: 0.86;
  }
  100% {
    opacity: 1;
    transform: translateZ(10px) rotateY(0deg) scale(1);
  }
}

body[data-theme="dark"] .journey-panel::after {
  background:
    linear-gradient(
      90deg,
      rgba(23, 50, 89, 0.98) 0%,
      rgba(16, 37, 67, 0.96) 48%,
      rgba(4, 15, 34, 0.62) 100%
    );
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.14),
    0 22px 52px rgba(1, 8, 23, 0.46);
}

@media (max-width: 760px) {
  .journey-media {
    height: clamp(280px, 82vw, 360px);
    min-height: clamp(280px, 82vw, 360px);
  }

  .journey-media img,
  .journey-panel.is-switching .journey-media img {
    min-height: 0;
  }

  .journey-panel::after {
    top: 0;
    bottom: auto;
    width: 100%;
    height: clamp(280px, 82vw, 360px);
  }

  .journey-panel.is-page-forward::after,
  .journey-panel.is-page-backward::after {
    right: 0;
    left: 0;
    transform-origin: top center;
  }

  .journey-panel.is-page-flipping.is-page-backward::after {
    animation-name: journey-page-sheet-forward;
  }

  .journey-panel.is-page-flipping.is-page-backward .journey-content {
    animation: none;
  }

  .journey-panel.is-page-flipping.is-page-forward .journey-media,
  .journey-panel.is-page-flipping.is-page-backward .journey-media {
    animation: journey-mobile-page-turn 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
    transform-origin: top center;
  }
}

@keyframes journey-mobile-page-turn {
  0% {
    opacity: 0.32;
    transform: rotateX(-64deg) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-panel::after {
    display: none;
  }

  .journey-panel.is-page-flipping .journey-content,
  .journey-panel.is-page-flipping .journey-media {
    animation: none;
  }
}

/* Compact vertical rhythm across sections and large content blocks */
.hero {
  padding-top: 42px;
  padding-bottom: 34px;
}

.featured-section {
  padding-top: 38px;
  padding-bottom: 34px;
}

.places-section,
.about-section {
  padding-top: 42px;
  padding-bottom: 36px;
}

.journey-section-heading {
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading,
.section-heading-column {
  gap: 18px;
  margin-bottom: 22px;
}

.hero-copy,
body[data-theme="dark"] .hero-copy {
  padding: 40px;
}

.hero .eyebrow,
body[data-theme="dark"] .hero .eyebrow {
  margin-bottom: 12px;
}

.hero-description,
body[data-theme="dark"] .hero-description {
  margin-top: 14px;
}

.hero-actions {
  margin-top: 22px;
}

.hero-stats {
  gap: 12px;
  margin-top: 28px;
}

.controls-card,
body[data-theme="dark"] .controls-card {
  gap: 18px;
  padding: 24px;
}

.group-note {
  padding: 14px 16px;
}

.journey-content,
body[data-theme="dark"] .journey-content {
  padding: clamp(30px, 3vw, 44px);
}

.journey-content > p,
body[data-theme="dark"] .journey-content > p {
  margin-top: 12px;
  margin-bottom: 18px;
}

.journey-actions {
  padding-top: 18px;
}

.journey-selector,
body[data-theme="dark"] .journey-selector {
  margin-top: 16px;
}

.journey-selector-button,
body[data-theme="dark"] .journey-selector-button {
  min-height: 92px;
  padding: 15px 20px;
}

.places-carousel-shell {
  margin-top: 24px;
  padding-top: 30px;
  padding-bottom: 22px;
}

.places-carousel-intro .eyebrow {
  margin-bottom: 6px;
}

.places-carousel-summary {
  margin-top: 8px;
}

.about-grid {
  gap: 18px;
}

.about-card {
  padding: 24px;
}

.site-footer {
  margin-top: 32px;
  padding-top: 22px;
  padding-bottom: 28px;
}

@media (max-width: 760px) {
  .hero,
  .featured-section,
  .places-section,
  .about-section {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .journey-section-heading {
    gap: 16px;
    margin-bottom: 18px;
  }

  .section-heading,
  .section-heading-column {
    gap: 14px;
    margin-bottom: 18px;
  }

  .hero-copy,
  body[data-theme="dark"] .hero-copy {
    padding: 20px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-stats {
    margin-top: 22px;
  }

  .controls-card,
  body[data-theme="dark"] .controls-card {
    gap: 16px;
    padding: 18px;
  }

  .journey-content,
  body[data-theme="dark"] .journey-content {
    padding: 24px 20px;
  }

  .journey-selector,
  body[data-theme="dark"] .journey-selector {
    margin-top: 10px;
  }

  .journey-selector-button,
  body[data-theme="dark"] .journey-selector-button {
    min-height: 76px;
    padding: 11px 14px;
  }

  .places-carousel-shell {
    margin-top: 20px;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .about-card {
    padding: 20px;
  }

  .site-footer {
    margin-top: 24px;
    padding-top: 18px;
    padding-bottom: 22px;
  }
}

.controls-card .group-note {
  padding: 0;
}

/* Calm, predictable hero-gallery transitions and clearer controls */
.hero-gallery-main > img {
  will-change: opacity, transform, filter;
  transform: scale(1);
  transition:
    opacity 280ms ease,
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 280ms ease;
}

.hero-gallery-main.is-leaving > img {
  opacity: 0.42;
  filter: saturate(0.82) blur(1.5px);
  transform: scale(1.035);
}

.hero-gallery-main.is-entering > img {
  animation: hero-gallery-image-enter 920ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-gallery-main .hero-spotlight {
  will-change: opacity, transform;
  transition:
    opacity 240ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-gallery-main.is-leaving .hero-spotlight {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.hero-gallery-main.is-entering .hero-spotlight {
  animation: hero-gallery-copy-enter 720ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-spotlight,
body[data-theme="dark"] .hero-spotlight {
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
}

.hero-spotlight p {
  color: #526078;
}

.hero-thumb {
  position: relative;
  min-height: 54px;
  overflow: hidden;
  touch-action: manipulation;
}

.hero-thumb::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 240ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-thumb.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-thumb:focus-visible {
  outline: 3px solid #06b6d4;
  outline-offset: 3px;
}

@keyframes hero-gallery-image-enter {
  0% {
    opacity: 0.3;
    filter: saturate(0.82) blur(1.5px);
    transform: scale(1.045);
  }
  45% {
    opacity: 0.82;
    filter: saturate(0.94) blur(0);
  }
  100% {
    opacity: 1;
    filter: saturate(1) blur(0);
    transform: scale(1);
  }
}

@keyframes hero-gallery-copy-enter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .hero-gallery-main.is-entering > img {
    animation-duration: 780ms;
  }

  .hero-gallery-main.is-entering .hero-spotlight {
    animation-duration: 620ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gallery-main > img,
  .hero-gallery-main.is-entering > img,
  .hero-gallery-main .hero-spotlight,
  .hero-gallery-main.is-entering .hero-spotlight,
  .hero-thumb::after {
    animation: none;
    transition: none;
  }
}

/* Unified modern Vietnamese sans-serif typography */
:root {
  --font-sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
dialog {
  font-family: var(--font-sans);
  font-synthesis: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
.button,
.filter-chip {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

.hero h1 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.journey-section-heading h2 {
  font-family: var(--font-sans);
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.journey-content h3,
body[data-theme="dark"] .journey-content h3 {
  font-family: var(--font-sans);
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.042em;
}

.journey-selector-number,
.journey-selector-button.is-active .journey-selector-number,
body[data-theme="dark"] .journey-selector-number,
body[data-theme="dark"] .journey-selector-button.is-active .journey-selector-number {
  font-family: var(--font-sans);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.journey-selector-copy strong {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.places-carousel-intro h3 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-spotlight h2,
.section-heading h2,
.about-card h2,
.detail-content h1,
.detail-content h2,
.modal-card h2,
.place-card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (max-width: 760px) {
  .journey-section-heading h2 {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }

  .journey-content h3,
  body[data-theme="dark"] .journey-content h3 {
    font-size: clamp(2.05rem, 9.5vw, 2.85rem);
  }

  .places-carousel-intro h3 {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
  }
}

/* Keep a three-card coverflow composition across responsive widths */
.places-grid.gallery-track.coverflow-track {
  --coverflow-card-width: 350px;
  grid-auto-columns: var(--coverflow-card-width);
  padding-right: max(18px, calc((100% - var(--coverflow-card-width)) / 2));
  padding-left: max(18px, calc((100% - var(--coverflow-card-width)) / 2));
  scroll-padding-inline: max(18px, calc((100% - var(--coverflow-card-width)) / 2));
}

.places-grid.gallery-track.coverflow-track.is-triplet-clamping {
  scroll-snap-type: none;
}

@media (min-width: 761px) and (max-width: 1080px) {
  .places-grid.gallery-track.coverflow-track {
    --coverflow-card-width: clamp(270px, 32vw, 320px);
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .places-grid.gallery-track.coverflow-track {
    --coverflow-card-width: min(68vw, 270px);
    grid-auto-columns: var(--coverflow-card-width);
    gap: 12px;
    padding-right: calc((100% - var(--coverflow-card-width)) / 2);
    padding-left: calc((100% - var(--coverflow-card-width)) / 2);
    scroll-padding-inline: calc((100% - var(--coverflow-card-width)) / 2);
  }
}

/* Final production accessibility and overflow safeguards */
html,
body {
  overflow-x: clip;
}

.hero-spotlight-actions .button,
.journey-actions .button,
.journey-actions .button-secondary,
.gallery-track .card-actions .button {
  min-height: 44px;
}

.hero h1.hero-title-long {
  max-width: none;
  font-size: clamp(2rem, 7.8vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-description,
body[data-theme="dark"] .hero-description {
  max-width: 48ch;
  line-height: 1.65;
}

@media (min-width: 761px) {
  .journey-content,
  body[data-theme="dark"] .journey-content {
    padding-bottom: 20px;
  }
}

.brand-marks {
  position: relative;
  display: inline-grid;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  place-items: center;
}

.brand-logo-primary {
  object-fit: contain;
  padding: 3px;
  background: #ffffff;
}

.brand-logo-secondary {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 25px;
  height: 25px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(15, 45, 104, 0.24);
}

body[data-theme="dark"] .brand-logo-secondary {
  border-color: #142746;
  box-shadow: 0 5px 12px rgba(1, 8, 23, 0.44);
}

@media (max-width: 520px) {
  .brand-marks {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .brand-logo-secondary {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }
}

.places-carousel-shell {
  padding-top: 22px;
}

.places-carousel-intro {
  gap: 0;
}

.places-carousel-intro .eyebrow {
  margin-bottom: 4px;
}

.places-carousel-intro h3 {
  margin: 0;
}

.places-carousel-summary {
  margin-top: 6px;
}

@media (max-width: 760px) {
  .places-carousel-shell {
    padding-top: 18px;
  }

  .places-carousel-intro .eyebrow {
    margin-bottom: 3px;
  }

  .places-carousel-summary {
    margin-top: 5px;
  }
}

/* Mobile journey: one viewport, three chapter controls fully contained */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 135px;
  }

  .featured-section {
    display: flex;
    height: calc(100svh - 135px);
    min-height: 0;
    padding: 12px 0;
    overflow: hidden;
    flex-direction: column;
  }

  .journey-section-heading {
    flex: 0 0 auto;
    gap: 6px;
    margin-bottom: 8px;
  }

  .journey-section-heading .eyebrow {
    margin-bottom: 3px;
    font-size: 0.68rem;
  }

  .journey-section-heading h2 {
    font-size: clamp(1.85rem, 8.6vw, 2.3rem);
    line-height: 1.02;
  }

  .journey-section-heading .section-description {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .journey-showcase,
  body[data-theme="dark"] .journey-showcase {
    display: grid;
    width: var(--container);
    min-height: 0;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.42);
    border-radius: 16px;
    background: rgba(239, 246, 255, 0.72);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.1);
    flex: 1 1 auto;
    gap: 6px;
    grid-template-rows: minmax(0, 1fr) 76px;
  }

  body[data-theme="dark"] .journey-showcase {
    border-color: rgba(147, 197, 253, 0.18);
    background: rgba(16, 37, 67, 0.74);
    box-shadow: 0 12px 30px rgba(1, 8, 23, 0.3);
  }

  .journey-panel,
  body[data-theme="dark"] .journey-panel {
    display: grid;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: none;
    grid-template-areas:
      "media"
      "content";
    grid-template-columns: 1fr;
    grid-template-rows: minmax(150px, 42%) minmax(0, 58%);
  }

  .journey-media,
  .journey-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .journey-content,
  body[data-theme="dark"] .journey-content {
    height: 100%;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
  }

  .journey-meta {
    margin-bottom: 2px;
  }

  .journey-content h3,
  body[data-theme="dark"] .journey-content h3 {
    display: -webkit-box;
    max-width: none;
    overflow: hidden;
    font-size: clamp(1.55rem, 7vw, 1.9rem);
    line-height: 1.02;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .journey-content > p,
  body[data-theme="dark"] .journey-content > p {
    display: -webkit-box;
    margin: 4px 0 6px;
    overflow: hidden;
    font-size: 0.7rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .journey-stops {
    display: grid;
    min-height: 0;
    margin: 0;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-stops::before {
    display: none;
  }

  .journey-stops a {
    display: grid;
    min-width: 0;
    min-height: 50px;
    padding: 3px;
    gap: 2px;
    grid-template-columns: 1fr;
  }

  .journey-stop-number,
  body[data-theme="dark"] .journey-stop-number {
    width: 22px;
    height: 22px;
    font-size: 0.52rem;
  }

  .journey-stop-copy strong,
  body[data-theme="dark"] .journey-stop-copy strong {
    font-size: 0.58rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  .journey-content .journey-more {
    display: none;
  }

  .journey-actions {
    display: grid;
    width: 100%;
    margin-top: auto;
    padding-top: 5px;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-actions .button,
  .journey-actions .button-secondary {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 8px;
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .journey-selector,
  body[data-theme="dark"] .journey-selector {
    display: grid;
    width: 100%;
    min-width: 0;
    height: 76px;
    margin: 0;
    padding: 6px;
    overflow: hidden;
    border-radius: 10px;
    gap: 6px;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-selector-button,
  body[data-theme="dark"] .journey-selector-button {
    display: grid;
    min-width: 0;
    min-height: 0;
    height: 62px;
    padding: 5px 6px;
    border-right: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 8px;
    gap: 4px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .journey-selector-button:last-child {
    border-right: 1px solid rgba(147, 197, 253, 0.3);
  }

  .journey-selector-number,
  .journey-selector-button.is-active .journey-selector-number,
  body[data-theme="dark"] .journey-selector-number,
  body[data-theme="dark"] .journey-selector-button.is-active .journey-selector-number {
    font-size: clamp(1.2rem, 5.4vw, 1.5rem);
  }

  .journey-selector-copy {
    min-width: 0;
    gap: 1px;
  }

  .journey-selector-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(0.5rem, 2.35vw, 0.65rem);
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .journey-selector-copy small {
    display: none;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .journey-section-heading .section-description {
    display: none;
  }

  .journey-section-heading {
    margin-bottom: 6px;
  }

  .journey-panel,
  body[data-theme="dark"] .journey-panel {
    grid-template-rows: minmax(140px, 40%) minmax(0, 60%);
  }

  .journey-content > p,
  body[data-theme="dark"] .journey-content > p,
  .journey-stops,
  .journey-content .journey-more {
    display: none;
  }

  .journey-content,
  body[data-theme="dark"] .journey-content {
    padding: 8px 10px;
  }

  .journey-actions {
    padding-top: 3px;
  }
}

@media (max-width: 375px) {
  .featured-section {
    height: calc(100svh - 160px);
  }
}

/* Mobile coverflow: keep three complete cards in the viewport */
@media (max-width: 760px) {
  .places-grid.gallery-track.coverflow-track {
    --coverflow-card-width: calc((100% - 16px) / 3);
    grid-auto-columns: var(--coverflow-card-width);
    gap: 8px;
    padding-right: 4px;
    padding-left: 4px;
    scroll-padding-inline: 4px;
    scroll-snap-type: none;
    scroll-behavior: smooth;
    touch-action: pan-x pan-y;
  }

  .places-grid.coverflow-track > .place-card {
    border-radius: 12px;
    transition:
      opacity 120ms linear,
      border-color 160ms ease,
      box-shadow 160ms ease;
  }

  .places-grid.coverflow-track .place-card-media-link {
    margin: 5px 5px 0;
    border-radius: 9px;
  }

  .places-grid.coverflow-track .place-card-image {
    transition: opacity 180ms ease;
  }

  .places-grid.coverflow-track .place-card-image.is-lazy-pending {
    opacity: 0;
  }

  .places-grid.coverflow-track .place-card-image.is-lazy-loaded {
    opacity: 1;
  }

  .places-grid.coverflow-track .place-card-body {
    padding: 7px 5px 6px;
  }

  .places-grid.coverflow-track .place-card-category {
    max-width: 100%;
    padding: 4px 5px;
    overflow: hidden;
    font-size: clamp(0.46rem, 2vw, 0.54rem);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .places-grid.coverflow-track .place-card-title {
    display: -webkit-box;
    min-height: 2.4em;
    margin-top: 5px;
    overflow: hidden;
    font-size: clamp(0.62rem, 2.8vw, 0.72rem);
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .places-grid.coverflow-track .place-card-description {
    min-height: 2.7em;
    margin-top: 5px;
    font-size: clamp(0.54rem, 2.25vw, 0.62rem);
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .places-grid.coverflow-track .place-card-meta {
    gap: 5px;
    padding-top: 6px;
  }

  .places-grid.coverflow-track .place-card-address {
    display: -webkit-box;
    min-height: 2.6em;
    overflow: hidden;
    font-size: clamp(0.52rem, 2.15vw, 0.6rem);
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .places-grid.coverflow-track .card-actions {
    gap: 3px;
    flex-wrap: nowrap;
  }

  .places-grid.coverflow-track .card-actions .button {
    min-width: 0;
    min-height: 48px;
    padding: 5px 2px;
    font-size: clamp(0.48rem, 2vw, 0.56rem);
    line-height: 1.15;
  }

  .places-carousel-arrow {
    top: clamp(92px, 18vw, 140px);
    width: 40px;
    height: 40px;
    transform: none;
  }

  .journey-selector-button::before {
    display: none;
  }
}

.journey-selector-button::before {
  display: none;
}

/* Mobile journey page turn and readable single-line image caption */
@media (max-width: 760px) {
  .journey-panel {
    perspective-origin: center top;
  }

  .journey-panel::after {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 42%;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(226, 238, 255, 0.94) 52%,
        rgba(116, 151, 205, 0.42) 100%
      );
  }

  body[data-theme="dark"] .journey-panel::after {
    background:
      linear-gradient(
        180deg,
        rgba(23, 50, 89, 0.98) 0%,
        rgba(16, 37, 67, 0.96) 52%,
        rgba(4, 15, 34, 0.62) 100%
      );
  }

  .journey-panel.is-page-forward::after {
    transform-origin: top center;
  }

  .journey-panel.is-page-backward::after {
    transform-origin: bottom center;
  }

  .journey-panel.is-page-flipping.is-page-forward::after {
    animation: journey-mobile-sheet-forward 620ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .journey-panel.is-page-flipping.is-page-backward::after {
    animation: journey-mobile-sheet-backward 620ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .journey-panel.is-page-flipping.is-page-forward .journey-media {
    animation: journey-mobile-content-forward 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
    transform-origin: top center;
  }

  .journey-panel.is-page-flipping.is-page-backward .journey-media {
    animation: journey-mobile-content-backward 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
    transform-origin: bottom center;
  }

  .journey-media::before {
    background: linear-gradient(180deg, rgba(3, 13, 32, 0.54), transparent 36%);
  }

  .journey-media-caption {
    top: 8px;
    right: 8px;
    bottom: auto;
    left: 8px;
    display: flex;
    min-width: 0;
    max-width: none;
    padding: 6px 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 18, 42, 0.76);
    box-shadow: 0 6px 18px rgba(3, 13, 32, 0.24);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    text-align: left;
  }

  .journey-media-caption span {
    min-width: 0;
    max-width: 46%;
    overflow: hidden;
    color: #d8f7ff;
    font-size: clamp(0.5rem, 2.35vw, 0.6rem);
    line-height: 1.1;
    letter-spacing: 0.045em;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 46%;
  }

  .journey-media-caption span::after {
    display: none;
    content: "";
  }

  .journey-media-caption strong {
    min-width: 0;
    max-width: none;
    padding-left: 6px;
    overflow: hidden;
    border-left: 1px solid rgba(216, 247, 255, 0.36);
    color: #ffffff;
    font-size: clamp(0.5rem, 2.25vw, 0.58rem);
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
  }
}

@keyframes journey-mobile-sheet-forward {
  0% {
    opacity: 0;
    transform: rotateX(0deg);
  }

  14% {
    opacity: 0.9;
  }

  54% {
    opacity: 0.8;
    transform: rotateX(-92deg);
  }

  100% {
    opacity: 0;
    transform: rotateX(-178deg);
  }
}

@keyframes journey-mobile-sheet-backward {
  0% {
    opacity: 0;
    transform: rotateX(0deg);
  }

  14% {
    opacity: 0.9;
  }

  54% {
    opacity: 0.8;
    transform: rotateX(92deg);
  }

  100% {
    opacity: 0;
    transform: rotateX(178deg);
  }
}

@keyframes journey-mobile-content-forward {
  0% {
    opacity: 0.34;
    transform: rotateX(-62deg) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
  }
}

@keyframes journey-mobile-content-backward {
  0% {
    opacity: 0.34;
    transform: rotateX(62deg) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .journey-panel.is-page-flipping::after,
  .journey-panel.is-page-flipping .journey-media {
    animation: none;
  }
}

/* Compact mobile header while preserving 44px touch targets. */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 112px;
  }

  .header-inner {
    gap: 6px 8px;
    padding-top: 6px;
    padding-bottom: 4px;
  }

  .brand {
    gap: 8px;
  }

  .brand-marks {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-logo-secondary {
    width: 19px;
    height: 19px;
    border-radius: 6px;
  }

  .main-nav {
    margin-top: 0;
  }

  .journey-panel,
  body[data-theme="dark"] .journey-panel {
    grid-template-rows: minmax(180px, 1fr) auto;
  }

  .journey-content,
  body[data-theme="dark"] .journey-content {
    height: auto;
  }

  .journey-actions {
    margin-top: 8px;
    padding-top: 0;
  }
}

/* Compact search and ward filters on mobile. */
@media (max-width: 760px) {
  .controls-card,
  body[data-theme="dark"] .controls-card {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .controls-grid {
    gap: 12px;
  }

  .search-field,
  .filter-field {
    gap: 6px;
  }

  .search-field label,
  .filter-label {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .search-field input,
  body[data-theme="dark"] .search-field input {
    min-height: 44px;
    padding-inline: 12px;
    border-radius: 11px;
    font-size: 0.82rem;
  }

  .filter-group {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-chip,
  body[data-theme="dark"] .filter-chip {
    min-width: 0;
    min-height: 44px;
    padding: 6px 8px;
    font-size: clamp(0.69rem, 3vw, 0.78rem);
    line-height: 1.2;
    white-space: normal;
  }
}

/* Compact information cards on mobile without truncating their content. */
@media (max-width: 760px) {
  .about-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .about-grid {
    gap: 12px;
  }

  .about-card,
  body[data-theme="dark"] .about-card {
    padding: 16px;
    border-top-width: 3px;
    border-radius: 18px;
    line-height: 1.55;
  }

  .about-card .eyebrow {
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.68rem;
    line-height: 1.25;
    letter-spacing: 0.08em;
  }

  .about-card .eyebrow::before {
    width: 22px;
  }

  .about-card h2 {
    font-size: clamp(1.08rem, 5vw, 1.25rem);
    line-height: 1.18;
  }

  .about-card > p:last-child {
    margin: 10px 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
  }
}

/* Branded curtain reveal inspired by the reference site's opening motion. */
.page-intro {
  position: fixed;
  z-index: 10000;
  display: none;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  inset: 0;
  isolation: isolate;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  transition: opacity 180ms ease;
}

html.has-page-intro .page-intro {
  display: grid;
}

.page-intro.is-complete {
  opacity: 0;
}

.page-intro-slat {
  --intro-delay: 0ms;
  position: relative;
  min-width: 0;
}

.page-intro-slat:nth-of-type(1),
.page-intro-slat:nth-of-type(9) {
  --intro-delay: 120ms;
}

.page-intro-slat:nth-of-type(2),
.page-intro-slat:nth-of-type(8) {
  --intro-delay: 90ms;
}

.page-intro-slat:nth-of-type(3),
.page-intro-slat:nth-of-type(7) {
  --intro-delay: 60ms;
}

.page-intro-slat:nth-of-type(4),
.page-intro-slat:nth-of-type(6) {
  --intro-delay: 30ms;
}

.page-intro-panel {
  position: absolute;
  right: -1px;
  left: -1px;
  height: 50.5%;
  background:
    linear-gradient(145deg, rgba(6, 182, 212, 0.12), transparent 48%),
    linear-gradient(135deg, #0b2451 0%, #173a88 58%, #1e40af 100%);
  transform: translateY(0);
  transition: transform 680ms cubic-bezier(0.72, 0, 0.22, 1);
  transition-delay: var(--intro-delay);
  will-change: transform;
}

.page-intro-panel--top {
  top: 0;
}

.page-intro-panel--bottom {
  bottom: 0;
}

.page-intro.is-opening .page-intro-panel--top {
  transform: translateY(-102%);
}

.page-intro.is-opening .page-intro-panel--bottom {
  transform: translateY(102%);
}

.page-intro-brand {
  position: absolute;
  z-index: 2;
  display: grid;
  color: #ffffff;
  text-align: center;
  place-content: center;
  justify-items: center;
  inset: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.page-intro-logo {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(1, 8, 23, 0.32);
  place-items: center;
}

.page-intro-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-intro-brand strong {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-intro-brand > span:last-child {
  margin-top: 7px;
  color: #bfeeff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-intro.is-opening .page-intro-brand {
  opacity: 0;
  transform: scale(0.97);
}

@media (max-width: 520px) {
  .page-intro-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .page-intro-brand strong {
    max-width: 24ch;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .page-intro-brand > span:last-child {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.has-page-intro .page-intro {
    display: none;
  }
}

/* Mobile journey: preserve complete text and imagery on short phone viewports. */
@media (max-width: 760px) {
  .featured-section {
    height: auto;
    min-height: calc(100svh - 112px);
    padding: 12px 0 20px;
    overflow: visible;
  }

  .journey-section-heading .section-description {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .journey-showcase,
  body[data-theme="dark"] .journey-showcase {
    min-height: 0;
    overflow: visible;
    flex: none;
    grid-template-rows: auto auto;
  }

  .journey-panel,
  body[data-theme="dark"] .journey-panel {
    height: auto;
    min-height: 0;
    overflow: hidden;
    grid-template-rows: auto auto;
  }

  .journey-media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    background: #dbeafe;
  }

  body[data-theme="dark"] .journey-media {
    background: #102958;
  }

  .journey-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
  }

  .journey-content,
  body[data-theme="dark"] .journey-content {
    height: auto;
    min-height: 0;
    padding: 12px;
    overflow: visible;
  }

  .journey-content h3,
  body[data-theme="dark"] .journey-content h3,
  .journey-content > p,
  body[data-theme="dark"] .journey-content > p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .journey-stops {
    display: grid;
  }

  .journey-stops a {
    min-height: 58px;
  }

  .journey-stop-copy strong,
  body[data-theme="dark"] .journey-stop-copy strong {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .journey-actions {
    margin-top: 8px;
  }

  .journey-selector,
  body[data-theme="dark"] .journey-selector {
    height: auto;
    min-height: 76px;
    overflow: visible;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-selector-button,
  body[data-theme="dark"] .journey-selector-button {
    height: auto;
    min-height: 64px;
    align-items: center;
  }

  .journey-selector-copy strong {
    display: block;
    overflow: visible;
    font-size: clamp(0.48rem, 2.25vw, 0.62rem);
    line-height: 1.2;
    text-overflow: clip;
    white-space: normal;
    -webkit-line-clamp: unset;
  }

  .journey-media-caption {
    overflow: visible;
    border-radius: 10px;
    align-items: flex-start;
  }

  .journey-media-caption span,
  .journey-media-caption strong {
    display: block;
    overflow: visible;
    line-height: 1.2;
    text-overflow: clip;
    white-space: normal;
  }

  .journey-media-caption span {
    max-width: 42%;
    flex-basis: 42%;
  }
}
