:root {
  --navy: #0b2545;
  --ocean: #1a73e8;
  --teal: #0d9488;
  --gold: #f59e0b;
  --bg: #f8fafc;
  --bg-alt: #eef3f9;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 12px 48px rgba(11, 37, 69, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  transition: color 0.2s;
  margin-right: auto;
}

.nav-logo-icon { font-size: 1.4rem; }

.nav.scrolled .nav-logo { color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover { background: rgba(255, 255, 255, 0.15); color: white; }
.nav.scrolled .nav-links a:hover { background: var(--bg-alt); color: var(--navy); }

.nav-cta {
  background: var(--ocean) !important;
  color: white !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
}

.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.nav.scrolled .nav-toggle span { background: var(--navy); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 37, 69, 0.6) 0%,
    rgba(11, 37, 69, 0.3) 50%,
    rgba(11, 37, 69, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 100px 24px 40px;
  max-width: 780px;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}

.hero-scroll svg { width: 20px; height: 20px; }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary { background: var(--ocean); color: white; }
.btn-primary:hover {
  background: #1557c0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.25); }

.btn-outline {
  background: transparent;
  color: var(--ocean);
  border: 1.5px solid var(--ocean);
  margin-top: 8px;
}

.btn-outline:hover {
  background: var(--ocean);
  color: white;
}

.btn-full { width: 100%; }

/* ─── Stats bar ─── */
.stats-bar {
  background: var(--navy);
  color: white;
  padding: 24px;
}

.stats-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }

/* ─── Sections ─── */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 720px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Destination cards ─── */
.dest-card {
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.dest-card:hover { box-shadow: var(--shadow-lg); }

.dest-img {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.dest-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dest-card:hover .dest-img img { transform: scale(1.05); }

.dest-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dest-badge.adventure { background: #10b981; color: white; }
.dest-badge.luxury { background: #7c3aed; color: white; }
.dest-badge.quick { background: var(--gold); color: #1a1a1a; }
.dest-badge.island { background: var(--teal); color: white; }

.dest-body { padding: 32px; }

.dest-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dest-tag { color: var(--ocean); font-size: 0.83rem; font-weight: 600; }
.dest-distance { color: var(--muted); font-size: 0.83rem; }

.dest-body h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.dest-body > p { color: var(--muted); margin-bottom: 24px; line-height: 1.7; }

.dest-highlights { margin-bottom: 24px; }

.dest-highlights h4,
.dest-info-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.dest-highlights ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.dest-highlights ul li:last-child { border: none; }

.dest-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.dest-info-block {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px 18px;
}

.dest-info-block ul li {
  font-size: 0.87rem;
  padding: 4px 0;
  color: var(--muted);
}

/* ─── Compare table ─── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 0.9rem;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 0.83rem;
}

.compare-table thead th:first-child,
.compare-table td:first-child {
  text-align: left;
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--bg); }
.compare-table .highlight { color: var(--ocean); font-weight: 700; }

.recommend-cards {
  display: grid;
  gap: 20px;
}

.recommend-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.recommend-icon { font-size: 2.4rem; margin-bottom: 12px; }

.recommend-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 14px;
}

.recommend-card ul li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 5px 0 5px 18px;
  position: relative;
}

.recommend-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ─── Itinerary tabs ─── */
.tab-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.tab-btn:hover:not(.active) {
  border-color: var(--ocean);
  color: var(--ocean);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.itinerary-grid { display: grid; gap: 24px; }

.itinerary-day {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.itinerary-day h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ocean);
}

.timeline { padding-left: 0; }

.timeline li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
  align-items: flex-start;
}

.timeline li:last-child { border: none; }

.timeline li span {
  flex-shrink: 0;
  width: 52px;
  font-weight: 700;
  color: var(--ocean);
  font-size: 0.8rem;
  padding-top: 1px;
}

/* ─── FAQ ─── */
.faq-list { display: grid; gap: 10px; }

.faq-item {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item[open] { box-shadow: var(--shadow); }

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ocean);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ─── Contact form ─── */
.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full { margin-bottom: 20px; }

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group label span { color: var(--ocean); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.form-group textarea { resize: vertical; }

.form-note {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--teal);
  min-height: 1.4em;
  font-weight: 500;
}

/* ─── Footer ─── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 24px 32px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: white;
}

.footer-logo span { font-size: 1.5rem; }
.footer-logo strong { font-weight: 700; }

.footer-brand p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 260px;
}

.footer-links h3,
.footer-contact h3 {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-contact a:hover { color: white; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: white; }

/* ─── Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─── */
@media (min-width: 600px) {
  .dest-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 700px) {
  .itinerary-grid { grid-template-columns: 1fr 1fr; }
  .recommend-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
}

@media (min-width: 800px) {
  .dest-card { grid-template-columns: 42% 1fr; }
  .dest-card.reverse { grid-template-columns: 1fr 42%; }
  .dest-card.reverse .dest-img { order: 2; }
  .dest-card.reverse .dest-body { order: 1; }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 12px 16px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    color: var(--navy) !important;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-links li:last-child a { border-bottom: none; }

  .nav-cta {
    background: none !important;
    color: var(--ocean) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 13px 0 !important;
  }

  .nav-toggle { display: flex; }

  .section { padding: 60px 16px; }

  .contact-form { padding: 24px 20px; }

  .dest-body { padding: 24px 20px; }

  .footer { padding: 48px 16px 24px; }
}

/* ─── HUY LONG TRAVEL (thí điểm): bổ sung tối thiểu ─── */
/* 4 recommend-card: 2 cột ở màn vừa, 4 cột ở màn rộng (ND-47) */
@media (min-width: 1000px) {
  .recommend-cards { grid-template-columns: repeat(4, 1fr); }
}

/* Khối đánh giá: 2 thẻ, dùng lại recommend-card (ND-56) */
.recommend-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
@media (min-width: 1000px) {
  .recommend-cards.reviews { grid-template-columns: repeat(2, 1fr); }
}

/* Dải báo trang thử nghiệm, cố định trên cùng (D-03, 3.1) */
:root { --banner-h: 32px; }
@media (max-width: 600px) { :root { --banner-h: 48px; } }

.test-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--banner-h); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px; background: var(--navy); color: #fff;
  font-size: 0.8rem; line-height: 1.35; text-align: center;
}
.nav { top: var(--banner-h); }
.hero { padding-top: calc(64px + var(--banner-h)); }
html { scroll-padding-top: calc(72px + var(--banner-h)); }

/* Sửa lỗi mẫu: menu ☰ trên điện thoại co mục về giữa, gạch chân chỉ dài bằng chữ */
@media (max-width: 767px) {
  .nav-links { align-items: stretch; }
}
