:root {
  --color-primary: #0E5F7A;
  --color-accent: #1A8CA6;
  --color-gold: #E8B84B;
  --color-cream: #FAF7F0;
  --color-ink: #14232B;
  --scrim: rgba(10, 20, 25, .55);
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

/* ============ SPLASH ============ */
.splash {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash__bg {
  position: absolute;
  inset: 0;
  background-image: url('./photos/cover.webp');
  background-size: cover;
  background-position: center;
  animation: kenburns 14s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

.splash__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 95, 122, .35) 0%, rgba(10, 20, 25, .15) 40%, rgba(10, 20, 25, .75) 100%);
}

.splash__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 32px;
  text-align: center;
  max-width: 900px;
}

.splash__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .5px;
}

.splash__title {
  margin: 0;
  line-height: 1.05;
}

/* "BẢN ĐỒ SỐ DU LỊCH" — bold sans, outlined */
.splash__title-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 85px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #fff;
  -webkit-text-stroke: 1.5px var(--color-primary);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(14, 95, 122, .55);
}

/* "Hà Tiên" — brush script, thick colored outline behind white fill */
.splash__title-script {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 170px;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 5px var(--color-primary);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 rgba(14, 95, 122, .35), 0 14px 26px rgba(0, 0, 0, .35);
}

@media (max-width:640px) {
  .splash__title-eyebrow {
    font-size: 15px;
  }

  .splash__title-script {
    font-size: 64px;
  }
}

.splash__cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -20px;
}

.splash__card {
  width: 300px;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.splash__card:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, .4);
  z-index: 3;
}

.splash__card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.splash__card--left {
  transform: rotate(-7deg) translate(18px, 6px);
  z-index: 1;
}

.splash__card--left:hover {
  transform: rotate(-7deg) translate(18px, 6px) scale(1.08);
}

.splash__card--center {
  transform: translateY(-10px) scale(1.08);
  z-index: 2;
}

.splash__card--center:hover {
  transform: translateY(-10px) scale(1.16);
}

.splash__card--right {
  transform: rotate(7deg) translate(-18px, 6px);
  z-index: 1;
}

.splash__card--right:hover {
  transform: rotate(7deg) translate(-18px, 6px) scale(1.08);
}

.splash__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: revealUp .7s ease-out .9s both;
}

.splash__cta {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 270px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(26, 140, 166, .45);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.splash__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(26, 140, 166, .55);
}

.splash__cta:active {
  transform: translateY(0) scale(.96);
  box-shadow: 0 6px 16px rgba(26, 140, 166, .4);
}

.splash__cta svg {
  transition: transform .15s ease;
  flex-shrink: 0;
}

.splash__cta:hover svg {
  transform: translateX(3px);
}

.splash__cta--free {
  background: linear-gradient(135deg, #1A8CA6 0%, #0E5F7A 100%);
  box-shadow: 0 10px 24px rgba(26, 140, 166, .45);
  animation: ctaPulse 2.4s ease-in-out 1.7s infinite;
}

.splash__cta--free:hover {
  animation-play-state: paused;
}

.splash__cta--route {
  background: linear-gradient(135deg, #E8B84B 0%, #D49B28 100%);
  box-shadow: 0 10px 24px rgba(212, 155, 40, .45);
}

.splash__cta--route:hover {
  box-shadow: 0 14px 28px rgba(212, 155, 40, .58);
}

.splash__cta--route:active {
  box-shadow: 0 6px 16px rgba(212, 155, 40, .4);
}

.splash__logo {
  animation: revealUp .7s ease-out .15s both;
}

.splash__title-eyebrow {
  animation: revealUp .7s ease-out .3s both;
}

.splash__title-script {
  animation: revealUp .8s ease-out .45s both;
}

.splash__cards {
  animation: revealUp .8s ease-out .65s both;
}

.splash__powered-by {
  position: absolute;
  bottom: 40px;
  left: 180px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: #fff;
}

.splash__powered-by img {
  width: 171px;
  height: 75px;
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: 0 10px 24px rgba(26, 140, 166, .45);
  }

  50% {
    box-shadow: 0 10px 24px rgba(26, 140, 166, .45), 0 0 0 8px rgba(26, 140, 166, .18);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .splash__bg,
  .splash__logo,
  .splash__title-eyebrow,
  .splash__title-script,
  .splash__cards,
  .splash__actions,
  .splash__cta,
  .splash__card {
    animation: none !important;
  }
}

@media (max-width:640px) {
  .splash__cards {
    gap: 8px;
  }

  .splash__card {
    width: 160px;
    height: 80px;
  }

  .splash__actions {
    width: 100%;
    max-width: 320px;
    gap: 12px;
  }

  .splash__actions .splash__cta {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }

  .splash__powered-by {
    left: 50%;
    transform: translateX(-50%);
  }

  .splash__powered-by img {
    width: 115px;
    height: 50px;
  }

  .splash__powered-by p {
    font-size: 10px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: #fff;
    text-shadow: 0 2px 0 rgba(14, 95, 122, .55);
    text-align: center;
    font-family: var(--font-body);
    font-weight: 400;
  }
  
}

/* ============ TOUR MAIN ============ */
.tour {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.tour__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

/* ---- Right scene-list panel ---- */
.scene-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 370px;
  max-width: 90vw;
  height: 100%;
  height: 100dvh;
  background: var(--color-cream);
  box-shadow: -10px 0 30px rgba(0, 0, 0, .25);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.scene-panel.open,
.info-panel.open {
  transform: translateX(0);
}

/* Hero Header Card */
.scene-panel__hero {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 85%, rgba(250, 247, 240, 0.8) 100%);
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(14, 95, 122, .12);
  box-shadow: 0 4px 16px rgba(14, 95, 122, 0.04);
  flex-shrink: 0;
}

.scene-panel__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scene-panel__logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(232, 184, 75, 0.45);
  box-shadow: 0 4px 12px rgba(14, 95, 122, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.scene-panel__logo-badge:hover {
  transform: scale(1.05);
}

.scene-panel__logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scene-panel__titles {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.scene-panel__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.scene-panel__brand-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.scene-panel__close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(14, 95, 122, .05);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, transform .15s ease;
}

.scene-panel__close:hover {
  background: rgba(14, 95, 122, .12);
  transform: rotate(90deg);
}

/* Search Box */
.scene-panel__search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 14px;
}

.scene-panel__search-icon {
  position: absolute;
  left: 12px;
  color: #718096;
  pointer-events: none;
}

.scene-panel__search-input {
  width: 100%;
  height: 36px;
  padding: 0 32px 0 36px;
  background: #ffffff;
  border: 1.5px solid rgba(14, 95, 122, .14);
  border-radius: 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.scene-panel__search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 140, 166, 0.15);
  background: #ffffff;
}

.scene-panel__search-clear {
  position: absolute;
  right: 10px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 95, 122, .1);
  color: var(--color-primary);
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.scene-panel__search-clear:hover {
  background: rgba(14, 95, 122, .2);
}

/* Category Filter Chips */
.scene-panel__filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scene-panel__filters::-webkit-scrollbar {
  display: none;
}

.scene-filter-pill {
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(14, 95, 122, .15);
  background: #ffffff;
  color: var(--color-primary);
  cursor: pointer;
  transition: all .18s ease;
  flex-shrink: 0;
}

.scene-filter-pill:hover {
  background: rgba(14, 95, 122, .06);
  border-color: var(--color-accent);
}

.scene-filter-pill.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(14, 95, 122, .25);
}

/* Footer Sidebar */
.scene-panel__footer {
  flex-shrink: 0;
  padding: 11px 16px;
  background: #ffffff;
  border-top: 1px solid rgba(14, 95, 122, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #718096;
}

.scene-panel__footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-panel__footer-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.scene-panel__footer-brand span strong {
  color: var(--color-primary);
}

.scene-panel__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}

.scene-panel__footer-link:hover {
  color: var(--color-accent);
}

.menu-group__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-group__count {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(26, 140, 166, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
}

.scene-panel__list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scene-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 16px;
  text-align: center;
  color: #8fa0a8;
  font-size: 13.5px;
  font-family: var(--font-body);
}

.scene-panel__empty svg {
  opacity: 0.6;
  color: var(--color-accent);
}

.menu-group {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 95, 122, .08);
  transition: border-color .15s ease;
}

.menu-group:hover {
  border-color: var(--color-accent);
}

.menu-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-ink);
  background: transparent;
  transition: background .15s ease, color .15s ease;
}

.menu-group__header:hover {
  background: rgba(14, 95, 122, .04);
}

.menu-group__header.active {
  color: var(--color-gold);
}

.menu-group__icon {
  transition: transform .25s ease;
  color: #8fa0a8;
}

.menu-group.open .menu-group__icon {
  transform: rotate(180deg);
}

.menu-group__content {
  display: none;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
  background: #f8f9fa;
  border-top: 1px solid rgba(14, 95, 122, .08);
}

.menu-group.open .menu-group__content {
  display: flex;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--color-ink);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(14, 95, 122, .08);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.menu-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(14, 95, 122, .15);
  transform: translateY(-1px);
}

.menu-item.active {
  border-color: var(--color-gold);
  background: #FFFBF0;
}

.menu-item.active .menu-item__name {
  color: #c7951a;
  font-weight: 600;
}

.menu-item__thumb {
  flex-shrink: 0;
  width: 90px;
  height: 68px;
  overflow: hidden;
  background: #e2e8eb;
}

.menu-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.menu-item:hover .menu-item__thumb img {
  transform: scale(1.07);
}

.menu-item__name {
  flex: 1;
  padding: 10px 12px 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.4;
}

/* ---- Bottom nav ---- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 35, 43, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  z-index: 35;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, .75);
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 10.5px;
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}

.bottom-nav__item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.bottom-nav__item.active {
  color: var(--color-gold);
}

.bottom-nav__item--center {
  padding: 0;
  margin: 0 4px;
}

.bottom-nav__center-mark {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(232, 184, 75, .55);
  transform: translateY(-10px);
  transition: transform .15s ease;
}

.bottom-nav__item--center:hover .bottom-nav__center-mark {
  transform: translateY(-13px);
}

/* ---- Mobile nav toggle button ---- */
.bottom-nav-toggle {
  display: none;
}

@media (max-width:640px) {
  .scene-panel,
  .info-panel {
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 50;
  }

  .scene-panel__footer,
  .info-panel__footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    transform: translateX(-50%);
    padding: 6px 10px;
    gap: 6px;
    max-width: calc(100vw - 20px);
    width: auto;
    border-radius: 999px;
    background: rgba(16, 29, 36, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 35;
  }

  /* Hidden state if user toggles */
  .bottom-nav.nav-hidden {
    transform: translateX(-50%) translateY(calc(100% + 80px));
    opacity: 0;
    pointer-events: none;
  }

  .bottom-nav__item {
    padding: 6px 9px;
    gap: 2px;
    border-radius: 12px;
  }

  .bottom-nav__item svg {
    width: 20px;
    height: 20px;
  }

  .bottom-nav__item span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
  }

  .bottom-nav__center-mark {
    width: 44px;
    height: 44px;
    font-size: 13px;
    transform: translateY(-8px);
    box-shadow: 0 4px 14px rgba(232, 184, 75, .5);
  }

  .bottom-nav__item--center:hover .bottom-nav__center-mark {
    transform: translateY(-10px);
  }

  /* Mobile nav toggle button */
  .bottom-nav-toggle {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
    transform: translateX(-50%);
    z-index: 36;
    width: 44px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(16, 29, 36, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.15s ease;
  }

  .bottom-nav-toggle:active {
    background: rgba(16, 29, 36, 0.95);
    transform: translateX(-50%) scale(0.92);
  }

  .bottom-nav-toggle svg {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  }

  /* When nav is hidden, move toggle down to bottom edge & flip arrow up */
  .bottom-nav-toggle.nav-hidden {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    background: rgba(16, 29, 36, 0.92);
    border-color: rgba(232, 184, 75, 0.5);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  }

  .bottom-nav-toggle.nav-hidden svg {
    transform: rotate(180deg);
    color: var(--color-gold);
  }
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 95%;
  max-width: none;
  height: 95vh;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 51;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-ink);
  z-index: 52;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal__close:hover {
  background: #fff;
}

.modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Topbar inside Flipbook Modal ---- */
.info-flipbook-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid rgba(14, 95, 122, 0.12);
  flex-shrink: 0;
  z-index: 2;
}

.info-flipbook-modal__titles {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  min-width: 0;
}

.info-flipbook-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-flipbook-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.info-flipbook-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid rgba(14, 95, 122, 0.15);
  cursor: pointer;
  transition: all .15s ease;
}

.info-flipbook-modal__btn:hover {
  background: #e2e8f0;
}

.info-flipbook-modal__btn--tour {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.info-flipbook-modal__btn--tour:hover {
  background: #09475c;
}

.info-flipbook-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 95, 122, 0.08);
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}

.info-flipbook-modal__close:hover {
  background: rgba(14, 95, 122, 0.18);
}

/* ============ PLACE DETAIL MODAL & INFO PANEL ============ */
.info-badge {
  background: rgba(14, 95, 122, 0.08);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.info-group {
  display: flex;
  flex-direction: column;
}

.info-card-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(14, 95, 122, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.info-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 18px rgba(14, 95, 122, 0.12);
  transform: translateY(-2px);
}

.info-item:active {
  transform: translateY(0);
}

.info-item .menu-item__thumb {
  flex-shrink: 0;
  width: 88px;
  height: 68px;
  overflow: hidden;
  background: #e2e8eb;
  position: relative;
}

.info-item .menu-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.info-item:hover .menu-item__thumb img {
  transform: scale(1.08);
}

.info-item__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  padding: 8px 4px 8px 0;
}

.info-item__text .menu-item__name {
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-item__sub {
  font-size: 11.5px;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  line-height: 1.3;
}

/* Accordion Header specific */
.info-item--group-header {
  position: relative;
}

.info-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 12px;
  flex-shrink: 0;
}

.info-item__badge-count {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 95, 122, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(14, 95, 122, 0.15);
  letter-spacing: 0.2px;
}

.info-group__icon {
  color: #8fa0a8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.info-card-group.open .info-group__icon,
.info-group.open .info-group__icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* Action label (Xem cẩm nang pill) */
.info-item__action-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(14, 95, 122, 0.06);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.info-item:hover .info-item__action-label {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(14, 95, 122, 0.25);
}

/* Submenu container */
.info-group__sublist {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
  margin-left: 20px;
  border-left: 2px dashed rgba(14, 95, 122, 0.22);
  margin-top: 2px;
  margin-bottom: 4px;
  animation: infoSublistSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card-group.open .info-group__sublist,
.info-group.open .info-group__sublist {
  display: flex;
}

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

.info-item--sub {
  background: #fdfefe;
  border: 1px solid rgba(14, 95, 122, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.menu-item__thumb--sub {
  width: 72px !important;
  height: 58px !important;
}

.info-panel__footer {
  padding: 12px 16px;
}

.info-panel__flipbook-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 95, 122, 0.25);
  transition: transform .18s ease, box-shadow .18s ease;
}

.info-panel__flipbook-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 95, 122, 0.35);
}

.place-modal__content {
  width: 90%;
  max-width: 540px;
  height: auto;
  max-height: 90vh;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
}

.place-modal__banner {
  position: relative;
  width: 100%;
  height: 220px;
  background: #e2e8eb;
  overflow: hidden;
}

.place-modal__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-modal__badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(14, 95, 122, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.place-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  cursor: pointer;
  z-index: 5;
  transition: background .2s ease, transform .15s ease;
}

.place-modal__close:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.08);
}

.place-modal__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
}

.place-modal__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-primary);
  line-height: 1.3;
}

.place-modal__subtitle {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--color-accent);
  font-weight: 600;
}

.place-modal__desc {
  font-size: 14px;
  line-height: 1.65;
  color: #4a5568;
  margin-bottom: 22px;
}

.place-modal__actions {
  display: flex;
  gap: 10px;
}

.place-modal__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .18s ease;
}

.place-modal__btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 95, 122, 0.25);
}

.place-modal__btn--primary:hover {
  background: #09475c;
  transform: translateY(-1px);
}

.place-modal__btn--secondary {
  background: #f1f5f9;
  color: var(--color-primary);
  border: 1px solid rgba(14, 95, 122, 0.15);
}

.place-modal__btn--secondary:hover {
  background: #e2e8f0;
}

/* ============ SIDEBAR PREVIEW LỘ TRÌNH (ROUTE DRAWER) ============ */
.route-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
  transition: visibility .35s ease;
}

.route-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.route-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .35s ease;
}

.route-drawer.open .route-drawer__backdrop {
  opacity: 1;
}

.route-drawer__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  height: 100vh;
  background: linear-gradient(165deg, #0A2430 0%, #061821 100%);
  border-left: 1px solid rgba(26, 140, 166, 0.25);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);
  display: flex;
  padding: 24px;
  gap: 22px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.route-drawer.open .route-drawer__panel {
  transform: translateX(0);
}

/* Cột trái: Card ảnh bìa dọc phong cảnh Hà Tiên */
.route-drawer__cover {
  flex: 0 0 340px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: url('./photos/cover.webp');
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 22px;
  box-sizing: border-box;
}

.route-drawer__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 95, 122, 0.1) 0%, rgba(10, 36, 48, 0.45) 45%, rgba(6, 24, 33, 0.95) 100%);
  pointer-events: none;
}

.route-drawer__cover-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-drawer__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(232, 184, 75, 0.18);
  border: 1px solid rgba(232, 184, 75, 0.55);
  color: var(--color-gold);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.route-drawer__cover-title {
  margin: 4px 0 0 0;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  font-family: var(--font-display);
}

.route-drawer__cover-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  font-family: var(--font-body);
}

/* Cột phải: Danh sách chặng & nút bắt đầu */
.route-drawer__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.route-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(26, 140, 166, 0.2);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.route-drawer__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.route-drawer__subtitle {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--color-gold);
  font-weight: 600;
}

.route-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, color .2s ease;
  flex-shrink: 0;
}

.route-drawer__close:hover {
  background: rgba(26, 140, 166, 0.3);
  color: #fff;
  transform: scale(1.06);
}

/* Danh sách cuộn */
.route-drawer__list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
  margin-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 140, 166, 0.3) transparent;
}

.route-drawer__list::-webkit-scrollbar {
  width: 5px;
}
.route-drawer__list::-webkit-scrollbar-thumb {
  background: rgba(26, 140, 166, 0.35);
  border-radius: 4px;
}

.route-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  text-decoration: none;
  color: inherit;
}

.route-item:hover {
  background: rgba(26, 140, 166, 0.15);
  border-color: rgba(26, 140, 166, 0.45);
  transform: translateX(3px);
}

.route-item__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 140, 166, 0.7);
  color: #48cae4;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(26, 140, 166, 0.15);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.route-item:hover .route-item__number {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(232, 184, 75, 0.15);
}

.route-item__info {
  flex: 1;
  min-width: 0;
}

.route-item__name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.route-item__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.route-item__tag {
  color: var(--color-gold);
  font-weight: 600;
}

.route-item__arrow {
  color: rgba(255, 255, 255, 0.35);
  transition: transform .15s ease, color .15s ease;
  flex-shrink: 0;
}

.route-item:hover .route-item__arrow {
  color: var(--color-gold);
  transform: translateX(3px);
}

/* Nút sticky chân trang: Gold gradient match với nút ngoài trang chủ */
.route-drawer__footer {
  padding-top: 14px;
  border-top: 1px solid rgba(26, 140, 166, 0.2);
  flex-shrink: 0;
}

.route-drawer__btn-start {
  width: 100%;
  padding: 15px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #E8B84B 0%, #D49B28 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(212, 155, 40, .45);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.route-drawer__btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(212, 155, 40, .58);
  filter: brightness(1.05);
}

.route-drawer__btn-start:active {
  transform: translateY(0) scale(0.98);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .route-drawer__panel {
    max-width: 100%;
    padding: 20px 16px;
    flex-direction: column;
    gap: 12px;
  }

  .route-drawer__cover {
    display: none;
  }

  .route-item {
    padding: 11px 13px;
  }

  .route-item__name {
    font-size: 14px;
  }

  .route-drawer__btn-start {
    padding: 14px 18px;
    font-size: 14.5px;
  }
}