/* ===========================================================
   Landing page tour (PQ-01..PQ-17) — /{lang}/tour-phu-quoc/{slug}
   Dùng chung biến màu của travel.css.
   Dùng thuộc tính logical (inline-start/end) để tự đảo chiều khi dir="rtl" (tiếng Ả Rập).
   Mốc responsive: ≥1400 màn lớn · ≤1199 laptop nhỏ · ≤991 tablet · ≤767 điện thoại
                   ≤380 điện thoại nhỏ · điện thoại xoay ngang · thiết bị cảm ứng · in ấn
   =========================================================== */
.lp { --wa: #25d366; --wa-dark: #1da851; --lp-gap: 20px; overflow-wrap: break-word; }
.lp-eyebrow {
  display: inline-block; color: var(--accent-dark); font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 8px;
}
.lp-h2 { font-size: clamp(24px, 3.6vw, 38px); margin-bottom: 18px; }
.lp-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 13px 26px; border-radius: 999px; font-weight: 800; font-size: 16px;
  transition: transform .2s, box-shadow .2s, background .2s; text-align: center; line-height: 1.3;
}
.lp-btn i { font-size: 1.2em; }
.lp-btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.35); }
.lp-btn--wa:hover, .lp-btn--wa:focus-visible { background: var(--wa-dark); color: #fff; }
.lp-btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.65); backdrop-filter: blur(4px); }
.lp-btn--ghost:hover, .lp-btn--ghost:focus-visible { background: #fff; color: var(--brand-deep); }
.lp-btn--book { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.lp-btn--book:hover, .lp-btn--book:focus-visible { background: var(--accent-dark); color: #fff; }
.lp-btn--lg { padding: 16px 34px; font-size: 18px; }
.lp-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lp a:focus-visible, .lp button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- HERO ---------- */
.lp-hero {
  position: relative; min-height: min(82vh, 760px); min-height: min(82svh, 760px);
  background-color: var(--brand-deep); background-size: cover; background-position: center; color: #fff;
  display: flex; align-items: flex-end;
}
.lp-hero--plain { background-image: linear-gradient(135deg, var(--brand-deep), var(--brand-dark) 55%, var(--brand)); min-height: 520px; }
.lp-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,30,40,.25) 0%, rgba(6,30,40,.15) 35%, rgba(6,30,40,.82) 100%);
}
.lp-hero__inner { position: relative; padding-top: 80px; padding-bottom: 110px; }
.lp-crumbs { font-size: 13.5px; margin-bottom: 18px; opacity: .92; display: flex; flex-wrap: wrap; align-items: center; }
.lp-crumbs a { color: #fff; }
.lp-crumbs a:hover { color: var(--gold); }
.lp-crumbs span { margin: 0 6px; }
.lp-code {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  font-weight: 800; letter-spacing: 1.5px; font-size: 13px; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.lp-title {
  color: #fff; font-size: clamp(30px, 5.4vw, 60px); line-height: 1.12;
  max-width: 920px; margin: 16px 0 14px; text-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.lp-tagline { font-size: clamp(16px, 2.1vw, 22px); max-width: 720px; margin: 0 0 28px; opacity: .95; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- THÔNG TIN NHANH ---------- */
.lp-facts { position: relative; margin-top: -64px; z-index: 2; }
.lp-facts__card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.lp-facts__card--1 { grid-template-columns: 1fr; }
.lp-facts__card--2 { grid-template-columns: repeat(2, 1fr); }
.lp-facts__card--4 { grid-template-columns: repeat(4, 1fr); }
.lp-fact { display: flex; gap: 14px; align-items: flex-start; padding: 24px 26px; min-width: 0; }
.lp-fact + .lp-fact { border-inline-start: 1px solid var(--line); }
.lp-fact__body { min-width: 0; }
.lp-fact__icon {
  flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--brand-dark); font-size: 19px;
}
.lp-fact__label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.lp-fact__value { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.45; margin-top: 2px; }
.lp-note {
  margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: #fff8e6; border: 1px solid #ffe2a3; color: #6b4e00; font-size: 15px;
}
.lp-note i { color: #d99a00; margin-inline-end: 4px; }

/* ---------- MÔ TẢ ---------- */
.lp-story { padding: 84px 0 72px; }
.lp-story__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lp-story__grid--text { grid-template-columns: 1fr; max-width: 820px; }
.lp-story__text p { font-size: 17px; color: #3d5560; margin: 0 0 18px; }
.lp-story__text p.lp-lead { font-size: 19.5px; color: var(--ink); line-height: 1.65; }
.lp-story__media { margin: 0; position: relative; isolation: isolate; }
.lp-story__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg);
}
.lp-story__media::before {
  content: ""; position: absolute; inset-block: 22px -18px; inset-inline: 22px -18px; border-radius: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); opacity: .14; z-index: -1;
}

/* ---------- ĐIỂM NHẤN ---------- */
.lp-highlights { padding: 80px 0; background: var(--bg-soft); }
.lp-hl-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--lp-gap);
}
.lp-hl {
  position: relative; background: #fff; border-radius: var(--radius); padding: 28px 24px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.lp-hl__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 20px rgba(10,161,196,.28); margin-bottom: 18px;
}
.lp-hl__num { position: absolute; top: 20px; inset-inline-end: 22px; font-weight: 900; font-size: 26px; color: var(--line); }
.lp-hl p { margin: 0; font-weight: 600; font-size: 16.5px; line-height: 1.5; color: var(--ink); }

/* ---------- HÌNH ẢNH ---------- */
.lp-gallery { padding: 80px 0; }
.lp-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.lp-grid__item { position: relative; overflow: hidden; border-radius: 14px; display: block; background: var(--bg-soft); }
.lp-grid__item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.lp-grid__item:nth-child(6n+4) { grid-row: span 2; }
.lp-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }

/* ---------- CTA ---------- */
.lp-cta {
  position: relative; padding: 96px 0; color: #fff; text-align: center;
  background-color: var(--brand-deep); background-size: cover; background-position: center;
}
.lp-cta__shade { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,58,74,.92), rgba(6,122,150,.82)); }
.lp-cta__inner { position: relative; }
.lp-cta h2 { color: #fff; font-size: clamp(24px, 4vw, 44px); max-width: 820px; margin: 18px auto 30px; }
.lp-cta__alt { margin: 20px 0 0; opacity: .9; }
.lp-cta__alt a { color: #fff; font-weight: 800; text-decoration: underline; }

/* ---------- TOUR KHÁC ---------- */
.lp-others { padding: 80px 0; }
.lp-others__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lp-other {
  display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius-sm); min-width: 0;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: box-shadow .2s, border-color .2s;
}
.lp-other:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.lp-other img, .lp-other__ph { flex: 0 0 84px; width: 84px; height: 66px; object-fit: cover; border-radius: 10px; }
.lp-other__ph { display: grid; place-items: center; color: #fff; font-size: 22px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.lp-other__body { display: flex; flex-direction: column; min-width: 0; }
.lp-other__body small { color: var(--accent-dark); font-weight: 800; letter-spacing: 1px; }
.lp-other__body b { font-size: 14.5px; line-height: 1.35; }

/* ---------- Lightbox ---------- */
.lp-lb {
  position: fixed; inset: 0; z-index: 1000; background: rgba(4,18,24,.94);
  display: flex; align-items: center; justify-content: center; padding: 50px 64px;
  touch-action: pan-y;
}
.lp-lb[hidden] { display: none; }
.lp-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.lp-lb__close, .lp-lb__nav {
  position: absolute; border: none; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 20px; display: grid; place-items: center;
}
.lp-lb__close:hover, .lp-lb__nav:hover { background: rgba(255,255,255,.25); }
.lp-lb__close { top: calc(14px + env(safe-area-inset-top)); inset-inline-end: 14px; }
.lp-lb__prev { inset-inline-start: 10px; top: 50%; transform: translateY(-50%); }
.lp-lb__next { inset-inline-end: 10px; top: 50%; transform: translateY(-50%); }
.lp-lb__count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #cfe9f1; font-size: 14px; }

/* ---------- Thanh đặt tour cố định (chỉ hiện ở tablet / điện thoại) ---------- */
.lp-sticky { display: none; }

/* ===========================================================
   RTL (tiếng Ả Rập): đảo icon mũi tên, bỏ giãn chữ
   =========================================================== */
[dir="rtl"] .lp-lb__prev i, [dir="rtl"] .lp-lb__next i { transform: scaleX(-1); }
[dir="rtl"] .lp-eyebrow, [dir="rtl"] .lp-code, [dir="rtl"] .lp-fact__label { letter-spacing: 0; }
[dir="rtl"] .lp-title { line-height: 1.3; }

/* ===========================================================
   Hiệu ứng chỉ dùng cho thiết bị có chuột (tránh "dính hover" trên cảm ứng)
   =========================================================== */
@media (hover: hover) and (pointer: fine) {
  .lp-btn--wa:hover, .lp-btn--book:hover, .lp-btn--ghost:hover { transform: translateY(-2px); }
  .lp-hl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .lp-grid__item:hover img { transform: scale(1.06); }
}
/* Nền cố định (parallax) chỉ cho máy tính — iOS/Android hiển thị lỗi với background-attachment: fixed */
@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
  .lp-cta { background-attachment: fixed; }
}

/* ---------- Màn hình lớn (≥1400px) ---------- */
@media (min-width: 1400px) {
  .lp-grid { grid-auto-rows: 230px; }
  .lp-story__text p.lp-lead { font-size: 20.5px; }
}

/* ---------- Laptop nhỏ / tablet ngang (≤1199px) ---------- */
@media (max-width: 1199px) {
  .lp-story__grid { gap: 40px; }
  .lp-fact { padding: 22px 20px; }
  .lp-facts__card--4 { grid-template-columns: repeat(2, 1fr); }
  .lp-facts__card--4 .lp-fact:nth-child(3) { border-inline-start: 0; }
  .lp-facts__card--4 .lp-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Tablet dọc (≤991px) ---------- */
@media (max-width: 991px) {
  .lp-hero { min-height: min(70vh, 640px); min-height: min(70svh, 640px); }
  .lp-hero__inner { padding-bottom: 96px; }
  .lp-story { padding: 64px 0 56px; }
  .lp-story__grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-story__media { max-width: 560px; width: 100%; margin-inline: auto; }
  .lp-story__media img { aspect-ratio: 4 / 3; }
  .lp-highlights, .lp-gallery, .lp-others { padding: 64px 0; }
  .lp-hl-grid { grid-template-columns: repeat(2, 1fr); --lp-gap: 16px; }
  .lp-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .lp-cta { padding: 80px 0; }
  .lp-lb { padding: 60px 56px; }

  /* Thanh đặt tour cố định ở đáy màn hình */
  .lp { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .lp-sticky {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff;
    box-shadow: 0 -6px 20px rgba(11,58,74,.12);
  }
  .lp-sticky__wa {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
    background: var(--wa); color: #fff; font-weight: 800; border-radius: 999px; padding: 12px 16px;
  }
  .lp-sticky__wa:hover { color: #fff; }
  .lp-sticky__book {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
    background: var(--accent); color: #fff; font-weight: 800; border-radius: 999px; padding: 12px 16px;
    text-align: center; line-height: 1.2;
  }
  .lp-sticky__book:hover { color: #fff; }
  .lp-sticky__call {
    flex: 0 0 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
    border: 1.5px solid var(--line); color: var(--brand-dark); font-size: 18px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .lp-sticky { justify-content: center; }
  .lp-sticky__wa, .lp-sticky__book { flex: 0 1 300px; }
}

/* ---------- Điện thoại (≤767px) ---------- */
@media (max-width: 767px) {
  .lp-hero { min-height: 76vh; min-height: 76svh; }
  .lp-hero__inner { padding-top: 56px; padding-bottom: 84px; }
  .lp-crumbs { font-size: 12.5px; margin-bottom: 14px; }
  .lp-actions { flex-direction: column; }
  .lp-actions .lp-btn { width: 100%; }
  .lp-facts { margin-top: -48px; }
  .lp-facts__card, .lp-facts__card--2, .lp-facts__card--4 { grid-template-columns: 1fr; }
  .lp-fact { padding: 16px 18px; }
  .lp-fact + .lp-fact, .lp-facts__card--4 .lp-fact:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--line); }
  .lp-head { margin-bottom: 28px; }
  .lp-story { padding: 52px 0 44px; }
  .lp-story__text p { font-size: 16px; }
  .lp-story__text p.lp-lead { font-size: 17.5px; }
  .lp-story__media::before { inset-block: 14px -10px; inset-inline: 14px -10px; }
  .lp-highlights, .lp-gallery, .lp-others { padding: 52px 0; }
  .lp-hl-grid { grid-template-columns: 1fr; --lp-gap: 12px; }
  .lp-hl { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 18px; }
  .lp-hl__icon { width: 48px; height: 48px; font-size: 19px; margin: 0; border-radius: 14px; }
  .lp-hl__num { top: 10px; inset-inline-end: 14px; font-size: 18px; }
  .lp-hl p { font-size: 15.5px; padding-inline-end: 22px; }
  .lp-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .lp-grid__item:nth-child(6n+4) { grid-row: span 1; }
  .lp-cta { padding: 64px 0; }
  .lp-btn--lg { width: 100%; padding: 15px 20px; font-size: 16px; }
  .lp-cta__btns { gap: 10px; }
  /* Thanh dưới: "Đặt tour ngay" chiếm chỗ chính, WhatsApp & gọi thu thành nút tròn */
  .lp-sticky__wa { flex: 0 0 50px; height: 50px; padding: 0; border-radius: 50%; font-size: 22px; }
  .lp-sticky__wa span { display: none; }
  .lp-others__grid { grid-template-columns: 1fr; gap: 10px; }
  .lp-lb { padding: 64px 8px; }
  .lp-lb__nav { width: 42px; height: 42px; font-size: 17px; background: rgba(0,0,0,.35); }
}

/* ---------- Điện thoại nhỏ (≤380px, vd iPhone SE / Galaxy cũ) ---------- */
@media (max-width: 380px) {
  .lp .container { padding-inline: 12px; }
  .lp-title { font-size: 27px; }
  .lp-code { font-size: 11.5px; padding: 5px 11px; letter-spacing: 1px; }
  .lp-btn { font-size: 15px; padding: 12px 16px; }
  .lp-fact { gap: 12px; padding: 14px; }
  .lp-fact__icon { flex-basis: 40px; height: 40px; font-size: 17px; }
  .lp-fact__value { font-size: 15px; }
  .lp-grid { grid-auto-rows: 120px; }
  .lp-grid__item:nth-child(6n+1) { grid-row: span 1; }
  .lp-other img, .lp-other__ph { flex-basis: 70px; width: 70px; height: 56px; }
  .lp-sticky { padding-inline: 12px; }
  .lp-sticky__book { font-size: 15px; padding-inline: 12px; }
}

/* ---------- Điện thoại xoay ngang (màn thấp) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .lp-hero { min-height: 0; }
  .lp-hero__inner { padding-top: 40px; padding-bottom: 76px; }
  .lp-title { font-size: clamp(24px, 4vw, 34px); margin: 10px 0 8px; }
  .lp-tagline { margin-bottom: 16px; }
  .lp-actions { flex-direction: row; }
  .lp-actions .lp-btn { width: auto; }
  .lp-sticky { padding-block: 6px calc(6px + env(safe-area-inset-bottom)); }
  .lp-sticky__wa, .lp-sticky__call, .lp-sticky__book { min-height: 42px; height: 42px; padding-block: 8px; }
  .lp-sticky__call { flex-basis: 42px; }
  .lp { padding-bottom: 58px; }
  .lp-lb { padding: 12px 64px; }
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  .lp-hl, .lp-grid__item img, .lp-btn { transition: none; }
}

/* ---------- In ấn ---------- */
@media print {
  .lp-sticky, .lp-lb, .lp-actions, .lp-others { display: none !important; }
  .lp-hero, .lp-cta { min-height: 0; color: #000; background: none !important; }
  .lp-hero__shade, .lp-cta__shade { display: none; }
  .lp-title, .lp-cta h2 { color: #000; text-shadow: none; }
  .lp-facts { margin-top: 0; }
  .lp { padding-bottom: 0; }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 767px) {
  .lp-sticky__wa { flex-basis: 42px; }
}
