/* =========================================================
   VINH HA LONG 3D - trang trai nghiem dam chim nhieu module.
   Moi module co 1 kieu song bien rieng:
   1. Ban do 3D      : 3 lop song SVG truot parallax o mep duoi
   2. Dai duong 3D   : song Gerstner WebGL, 5 che do (bình minh...gió mùa)
   3. Thu vien anh   : "song lua" - soi song manh chuyen dong (canvas)
   4. Tau du lich    : "bien hat" - luoi diem 3D nhap nho (canvas)
   ========================================================= */
html, body { overflow-x: clip; }

.hl3d-page {
  --hl-ink: #04263a;
  --hl-sea: #0a5f73;
  --hl-jade: #19b4a4;
  --hl-mint: #9debd0;
  --hl-hot: #fb923c;
  --hl-hot-dark: #ea580c;
  --hl-glass: rgba(4, 38, 58, 0.72);
  --hl-line: rgba(255, 255, 255, 0.18);
  --hl-sbw: 0px; /* do rong thanh cuon - JS cap nhat de khong bi tran ngang */
  margin-top: -1.5rem; /* bu margin cua <main class="my-4"> de hero sat menu */
  padding-bottom: 1rem;
}

.hl3d-bleed {
  position: relative;
  width: calc(100vw - var(--hl-sbw));
  left: 50%;
  margin-left: calc(-50vw + var(--hl-sbw) / 2);
}
.hl3d-page > section { scroll-margin-top: var(--sticky-header-height, 76px); }
.hl3d-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.hl3d-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hl-mint);
}

/* ---------- Nut dung chung ---------- */
.hl3d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .55rem 1rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1); color: #fff; font-weight: 600; font-size: .92rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s, transform .15s, border-color .2s;
}
.hl3d-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.hl3d-btn:active { transform: scale(.97); }
.hl3d-btn[aria-pressed="true"] { background: rgba(157,235,208,.28); border-color: var(--hl-mint); }
.hl3d-btn-hot { background: var(--hl-hot); border-color: var(--hl-hot); color: #fff; box-shadow: 0 6px 20px rgba(251,146,60,.35); }
.hl3d-btn-hot:hover { background: var(--hl-hot-dark); border-color: var(--hl-hot-dark); }
.hl3d-btn-sm { min-height: 40px; padding: .4rem .85rem; font-size: .85rem; }
.hl3d-btn:focus-visible, .hl3d-round:focus-visible, .hl3d-moods button:focus-visible,
.hl3d-chip:focus-visible, .hl3d-layer-switch button:focus-visible, .hl3d-flow:focus-visible, .hl3d-boat:focus-visible {
  outline: 3px solid var(--hl-mint); outline-offset: 3px;
}
.hl3d-round {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  transition: background .2s, transform .15s;
}
.hl3d-round:hover { background: rgba(255,255,255,.26); }

/* =========================================================
   MODULE 1 - BAN DO 3D
   ========================================================= */
.hl3d-hero {
  height: min(88vh, 900px); min-height: 560px;
  background: #0b2732; overflow: hidden; color: #fff;
}
.hl3d-map { position: absolute; inset: 0; }
.hl3d-hero-shade {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,26,40,.72) 0%, rgba(3,26,40,.18) 34%, transparent 55%),
    linear-gradient(90deg, rgba(3,26,40,.55) 0%, transparent 45%);
}
.hl3d-hero-head { position: absolute; z-index: 3; left: 32px; top: 30px; max-width: 520px; }
.hl3d-hero-head h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; margin: .35rem 0 .6rem; color: #fff;
  font-weight: 800; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hl3d-hero-head h1 span {
  background: linear-gradient(120deg, var(--hl-mint), #7fd3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl3d-hero-sub { color: #d9eef3; font-size: 1.02rem; margin: 0 0 1.1rem; max-width: 440px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hl3d-hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }

.hl3d-layer-switch {
  position: absolute; z-index: 3; right: 60px; top: 18px;
  display: flex; background: var(--hl-glass); border: 1px solid var(--hl-line);
  border-radius: 999px; padding: 4px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hl3d-layer-switch button {
  border: 0; background: transparent; color: #cfe7ee; font-size: .82rem; font-weight: 600;
  border-radius: 999px; padding: .45rem .8rem; min-height: 36px; cursor: pointer;
}
.hl3d-layer-switch button.active, .hl3d-layer-switch button[aria-pressed="true"] { background: var(--hl-mint); color: #063a31; }

/* The diem dang xem */
.hl3d-stop-card {
  position: absolute; z-index: 4; right: 24px; bottom: 150px; width: 360px;
  display: grid; grid-template-columns: 120px 1fr; gap: 0;
  background: rgba(4,38,58,.86); border: 1px solid var(--hl-line); border-radius: 18px;
  overflow: hidden; box-shadow: 0 18px 50px rgba(0,20,35,.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: hl3dCardIn .45s cubic-bezier(.2,.8,.2,1);
}
.hl3d-stop-card[hidden] { display: none; }
@keyframes hl3dCardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.hl3d-stop-card img { width: 120px; height: 100%; min-height: 150px; object-fit: cover; background: #0a3a4c; }
.hl3d-stop-body { padding: 14px 16px 16px; min-width: 0; }
.hl3d-stop-count { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hl-mint); font-weight: 700; }
.hl3d-stop-body h2 { font-size: 1.15rem; margin: .2rem 1.4rem .3rem 0; color: #fff; line-height: 1.25; }
.hl3d-stop-body p {
  font-size: .84rem; color: #c7dde3; margin: 0 0 .7rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hl3d-stop-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.hl3d-stop-close {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
}
.hl3d-stop-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); }
.hl3d-stop-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hl-mint), var(--hl-hot)); }

.hl3d-chips {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 92px;
  display: flex; gap: .5rem; padding: 4px 24px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.hl3d-chips::-webkit-scrollbar { display: none; }
.hl3d-chip {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: 4px 14px 4px 4px; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--hl-line); background: var(--hl-glass); color: #e8f6f8;
  font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, border-color .2s;
}
.hl3d-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #0a3a4c; }
.hl3d-chip b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(157,235,208,.2); color: var(--hl-mint); }
.hl3d-chip:hover { background: rgba(10,95,115,.9); }
.hl3d-chip.active { background: var(--hl-mint); color: #063a31; border-color: var(--hl-mint); }

.hl3d-map-status {
  position: absolute; z-index: 3; left: 32px; bottom: 150px; font-size: .78rem; color: #cfe7ee;
  background: var(--hl-glass); border-radius: 8px; padding: 5px 10px; pointer-events: none;
  transition: opacity .6s;
}
.hl3d-map-status.an { opacity: 0; }

/* Marker anh tron tren ban do */
.hl3d-pin { cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.hl3d-pin-face {
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.45); background: #0a5f73 center/cover no-repeat;
  transition: transform .25s;
}
.hl3d-pin::after { content: ""; width: 3px; height: 14px; background: #fff; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hl3d-pin:hover .hl3d-pin-face, .hl3d-pin.active .hl3d-pin-face { transform: scale(1.25); border-color: var(--hl-hot); }
.hl3d-pin-label {
  position: absolute; top: -26px; white-space: nowrap; font-size: .72rem; font-weight: 700;
  background: rgba(4,38,58,.85); color: #fff; padding: 2px 8px; border-radius: 6px;
  opacity: 0; transform: translateY(4px); transition: .2s; pointer-events: none;
}
.hl3d-pin:hover .hl3d-pin-label, .hl3d-pin.active .hl3d-pin-label { opacity: 1; transform: none; }

.hl3d-page .maplibregl-ctrl-top-right { top: 64px; }
.hl3d-page .maplibregl-ctrl-group { background: rgba(255,255,255,.92); }
.hl3d-page .maplibregl-ctrl-attrib { font-size: 10px; }
.hl3d-page .maplibregl-ctrl-bottom-right, .hl3d-page .maplibregl-ctrl-bottom-left { bottom: 58px; z-index: 3; }
.hl3d-page .maplibregl-cooperative-gesture-screen { z-index: 5; font-size: 1.1rem; }

/* Song kieu 1: 3 lop SVG truot parallax */
.hl3d-wave-parallax { position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; height: 90px; pointer-events: none; overflow: hidden; }
.hl3d-wave-parallax svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.hl3d-wave-parallax .w1 { fill: rgba(157,235,208,.35); animation: hl3dSlide 18s linear infinite; }
.hl3d-wave-parallax .w2 { fill: rgba(125,211,252,.45); animation: hl3dSlide 12s linear infinite reverse; height: 80%; }
.hl3d-wave-parallax .w3 { fill: var(--bg-soft, #f0f9ff); animation: hl3dSlide 8s linear infinite; height: 62%; }
@keyframes hl3dSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Dai so lieu ---------- */
.hl3d-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 8px 0 34px; position: relative; z-index: 3;
}
.hl3d-fact {
  background: #fff; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 8px 28px rgba(12,74,110,.08); border: 1px solid #e0f0f7;
}
.hl3d-fact b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy, #0284c7); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hl3d-fact span { font-size: .86rem; color: #4f6b7a; }

/* =========================================================
   MODULE 2 - DAI DUONG 3D
   ========================================================= */
.hl3d-ocean { background: #04263a; color: #fff; padding-bottom: 10px; }
.hl3d-ocean-stage { position: relative; height: min(78vh, 760px); min-height: 460px; overflow: hidden; }
.hl3d-ocean-stage::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,26,40,.55), rgba(3,26,40,.18) 55%, transparent);
}
.hl3d-ocean-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.hl3d-ocean-stage.dang-cham canvas { touch-action: none; }
.hl3d-ocean-head {
  position: absolute; z-index: 2; left: 32px; top: 28px; max-width: 460px; pointer-events: none;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hl3d-ocean-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); color: #fff; margin: .3rem 0 .4rem; transition: opacity .4s; }
.hl3d-ocean-head p { color: #e5f3f6; margin: 0; font-size: 1rem; transition: opacity .4s; }
.hl3d-ocean-head.doi h2, .hl3d-ocean-head.doi p { opacity: 0; }
.hl3d-ocean-loading {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  background: radial-gradient(ellipse at 50% 70%, #0a5f73, #04263a 70%); color: #cfe7ee; z-index: 1;
  transition: opacity .8s;
}
.hl3d-ocean-loading span { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--hl-mint); animation: hl3dSpin 1s linear infinite; }
.hl3d-ocean-loading.xong { opacity: 0; pointer-events: none; }
@keyframes hl3dSpin { to { transform: rotate(360deg); } }
.hl3d-ocean-fallback { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; background: #04263a; }
.hl3d-ocean-fallback[hidden] { display: none; }
.hl3d-ocean-fallback i { font-size: 2.6rem; color: var(--hl-mint); }
.hl3d-touch-gate { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding-top: 18%; pointer-events: none; }
.hl3d-touch-gate[hidden], .hl3d-touch-done[hidden] { display: none; }
.hl3d-touch-gate .hl3d-btn { pointer-events: auto; }
.hl3d-touch-done { position: absolute; z-index: 3; right: 14px; top: 14px; background: rgba(4,38,58,.8); }

.hl3d-ocean-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1240px; margin: -34px auto 0; padding: 0 16px; position: relative; z-index: 3;
}
.hl3d-moods {
  display: flex; gap: 6px; padding: 6px; background: rgba(4,38,58,.82); border: 1px solid var(--hl-line);
  border-radius: 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35); overflow-x: auto; scrollbar-width: none; max-width: 100%;
}
.hl3d-moods::-webkit-scrollbar { display: none; }
.hl3d-moods button {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 82px; min-height: 58px; padding: 6px 10px; border-radius: 13px; border: 0;
  background: transparent; color: #cfe7ee; font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background .25s, color .25s;
}
.hl3d-moods button i { font-size: 1.25rem; }
.hl3d-moods button:hover { background: rgba(255,255,255,.08); }
.hl3d-moods button.active { background: linear-gradient(135deg, var(--hl-mint), #7fd3ff); color: #06313a; }
.hl3d-ocean-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hl3d-range {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--hl-line); background: rgba(255,255,255,.06); font-size: .85rem; margin: 0;
}
.hl3d-range input { width: 110px; accent-color: var(--hl-mint); }
.hl3d-note { max-width: 1240px; margin: 12px auto 0; padding: 0 16px; font-size: .78rem; color: #8fb1bc; }

/* =========================================================
   MODULE 3 - THU VIEN ANH (coverflow 3D) + song lua
   ========================================================= */
.hl3d-gallery {
  background: radial-gradient(ellipse at 20% 0%, #0f7c8a 0%, transparent 55%),
              linear-gradient(180deg, #04263a 0%, #06455a 55%, #0a5f73 100%);
  color: #fff; padding: 64px 0 56px; overflow: hidden;
}
.hl3d-silk, .hl3d-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hl3d-sec-head { text-align: center; max-width: 680px; margin: 0 auto 26px; }
.hl3d-sec-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); color: #fff; margin: .4rem 0 .5rem; }
.hl3d-sec-head p { color: #c9e3ea; margin: 0; }

.hl3d-flow {
  position: relative; height: clamp(260px, 42vw, 440px); perspective: 1400px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none;
}
.hl3d-flow.keo { cursor: grabbing; }
.hl3d-flow-item {
  position: absolute; left: 50%; top: 0; margin: 0;
  width: clamp(230px, 46vw, 620px); height: 100%;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s, filter .7s;
  border-radius: 20px; overflow: hidden; background: #0a3a4c;
  box-shadow: 0 30px 60px rgba(0,15,25,.5);
  -webkit-box-reflect: below 10px linear-gradient(transparent 70%, rgba(255,255,255,.18));
}
.hl3d-flow.keo .hl3d-flow-item { transition: none; }
.hl3d-flow-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hl3d-flow-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 1rem;
  opacity: 0; transition: opacity .5s;
}
.hl3d-flow-item.active figcaption { opacity: 1; }
.hl3d-flow-item.active { cursor: zoom-in; }

.hl3d-flow-ctrl { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 64px; }
.hl3d-flow-info { text-align: center; max-width: 560px; min-height: 124px; }
.hl3d-flow-info h3 { color: #fff; font-size: 1.3rem; margin: 0 0 .3rem; }
.hl3d-flow-info p { color: #c9e3ea; font-size: .9rem; margin: 0 0 .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl3d-flow-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hl3d-flow-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.hl3d-flow-dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.3); transition: width .3s, background .3s; }
.hl3d-flow-dots span.active { width: 22px; background: var(--hl-mint); }

.hl3d-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.hl3d-lightbox::backdrop { background: rgba(2,16,26,.9); backdrop-filter: blur(4px); }
.hl3d-lightbox img { max-width: 96vw; max-height: 82vh; border-radius: 14px; display: block; margin: 0 auto; }
.hl3d-lightbox-cap { color: #fff; text-align: center; margin-top: 10px; font-weight: 600; }
.hl3d-lightbox-close { position: fixed; top: 14px; right: 14px; }

/* =========================================================
   MODULE 4 - TAU DU LICH + bien hat
   ========================================================= */
.hl3d-boats { background: linear-gradient(180deg, #0a5f73 0%, #04263a 40%, #021723 100%); color: #fff; padding: 60px 0 120px; overflow: hidden; }
.hl3d-sec-head-light p { color: #b7d6de; }
.hl3d-boat-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px; scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) transparent;
}
@media (min-width: 1200px) { .hl3d-boat-track { grid-auto-columns: calc((100% - 48px) / 4); } }
.hl3d-boat {
  scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
  overflow: hidden; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .3s, border-color .3s, background .3s;
}
.hl3d-boat:hover { transform: translateY(-6px); border-color: var(--hl-mint); background: rgba(255,255,255,.1); color: #fff; }
.hl3d-boat-img { position: relative; aspect-ratio: 16/10; background: #0a3a4c; display: grid; place-items: center; }
.hl3d-boat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hl3d-boat:hover .hl3d-boat-img img { transform: scale(1.06); }
.hl3d-boat-img > i { font-size: 2.4rem; color: var(--hl-mint); }
.hl3d-badge { position: absolute; top: 10px; left: 10px; background: rgba(4,38,58,.85); color: var(--hl-mint); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.hl3d-boat-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.hl3d-boat-body h3 { font-size: 1rem; color: #fff; margin: 0 0 .35rem; line-height: 1.35; }
.hl3d-star { color: #fcd34d; font-size: .85rem; font-weight: 700; margin-bottom: .3rem; }
.hl3d-star span { color: #9fc1cb; font-weight: 500; }
.hl3d-boat-body p { color: #b7d6de; font-size: .84rem; margin: 0 0 .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl3d-boat-cta { margin-top: auto; color: var(--hl-hot); font-weight: 700; font-size: .88rem; }
.hl3d-boat-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* Song kieu 4b: bot song 2 lop "vo" nhe o mep duoi, chuyen sang nen trang */
.hl3d-wave-foam { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 1; pointer-events: none; }
.hl3d-wave-foam svg { width: 106%; margin-left: -3%; height: 100%; display: block; }
.hl3d-wave-foam .f1 { fill: rgba(157,235,208,.25); animation: hl3dBob 6s ease-in-out infinite; transform-origin: center bottom; }
.hl3d-wave-foam .f2 { fill: var(--bg-soft, #f0f9ff); animation: hl3dBob 7.5s ease-in-out infinite reverse; transform-origin: center bottom; }
@keyframes hl3dBob { 0%,100% { transform: translateX(0) scaleY(1); } 50% { transform: translateX(-30px) scaleY(1.25); } }

/* ---------- Dieu huong cham ben phai ---------- */
.hl3d-dotnav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 1020; display: none; flex-direction: column; gap: 12px; }
.hl3d-dotnav a { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: rgba(4,38,58,.5); box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: transform .2s, background .2s; }
.hl3d-dotnav a.active { background: var(--hl-hot); transform: scale(1.3); }
.hl3d-dotnav a::before {
  content: attr(data-ten); position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(4,38,58,.9);
  padding: 3px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.hl3d-dotnav a:hover::before, .hl3d-dotnav a:focus-visible::before { opacity: 1; }
@media (min-width: 1100px) { .hl3d-dotnav { display: flex; } }

.hl3d-page .faq-section { margin-top: 2rem !important; }

/* =========================================================
   DIEN THOAI / MAY TINH BANG
   ========================================================= */
@media (max-width: 991.98px) {
  .hl3d-stop-card { right: 16px; width: 330px; }
  .hl3d-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .hl3d-page { padding-bottom: 70px; } /* chua cho thanh CTA co dinh */
  .hl3d-hero { height: 86svh; min-height: 540px; max-height: 760px; }
  .hl3d-hero-head { left: 16px; right: 16px; top: 16px; }
  .hl3d-hero-sub { font-size: .92rem; margin-bottom: .8rem; }
  .hl3d-hero-actions .hl3d-btn { padding: .5rem .8rem; font-size: .85rem; }
  .hl3d-layer-switch { top: auto; right: auto; left: 16px; bottom: 146px; }
  .hl3d-layer-switch button { padding: .35rem .6rem; font-size: .76rem; }
  .hl3d-page .maplibregl-ctrl-top-right { top: auto; bottom: 146px; }
  .hl3d-page .maplibregl-ctrl-top-right { position: absolute; }
  .hl3d-chips { bottom: 80px; padding: 4px 16px; }
  .hl3d-stop-card {
    left: 12px; right: 12px; width: auto; bottom: 138px;
    grid-template-columns: 96px 1fr;
  }
  .hl3d-stop-card img { width: 96px; min-height: 128px; }
  .hl3d-stop-body { padding: 10px 12px 12px; }
  .hl3d-stop-body h2 { font-size: 1rem; }
  .hl3d-stop-body p { -webkit-line-clamp: 2; font-size: .8rem; margin-bottom: .5rem; }
  .hl3d-stop-actions { flex-wrap: nowrap; gap: .35rem; }
  .hl3d-stop-actions .hl3d-btn { font-size: .76rem; padding: .3rem .65rem; min-height: 36px; }
  .hl3d-map-status { left: 16px; right: 16px; bottom: 196px; }
  .hl3d-map-status.an { display: none; }
  .hl3d-wave-parallax { height: 64px; }

  .hl3d-facts { gap: 10px; margin-bottom: 26px; }
  .hl3d-fact { padding: 12px 14px; }
  .hl3d-fact b { font-size: 1.25rem; }
  .hl3d-fact span { font-size: .78rem; }

  .hl3d-ocean-stage { height: 72svh; min-height: 420px; max-height: 640px; }
  .hl3d-ocean-head { left: 16px; right: 16px; top: 18px; }
  .hl3d-ocean-head p { font-size: .9rem; }
  .hl3d-ocean-bar { margin-top: -30px; justify-content: center; }
  .hl3d-moods { width: 100%; justify-content: space-between; }
  .hl3d-moods { gap: 3px; padding: 5px; }
  .hl3d-moods button { min-width: 0; flex: 1 1 0; padding: 6px 2px; font-size: .66rem; white-space: nowrap; min-height: 54px; }
  .hl3d-ocean-tools { justify-content: center; width: 100%; }
  .hl3d-range input { width: 90px; }
  .hl3d-only-fs { display: none; }

  .hl3d-gallery { padding: 44px 0 40px; }
  .hl3d-flow { height: 300px; }
  .hl3d-flow-item { width: 74vw; }
  .hl3d-flow-ctrl { margin-top: 48px; gap: 8px; }
  .hl3d-flow-ctrl .hl3d-round { width: 42px; height: 42px; flex-basis: 42px; }
  .hl3d-flow-info h3 { font-size: 1.1rem; }

  .hl3d-boats { padding: 44px 0 96px; }
  .hl3d-boat-track { grid-auto-columns: 78%; }
}
@media (max-width: 600px) {
  .hl3d-hero-actions #hl3dOrbitBtn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hl3d-wave-parallax svg, .hl3d-wave-foam path { animation-duration: 60s !important; }
  .hl3d-flow-item { transition-duration: .01s; }
}
