/* ===================================================================
   Dương Cầm Travel Planner — Thailand 4N3Đ
   Design System & Styles
   =================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  /* Palette — warm gold / deep navy / ocean teal */
  --clr-gold-50:  #fffbeb;
  --clr-gold-100: #fef3c7;
  --clr-gold-200: #fde68a;
  --clr-gold-300: #fcd34d;
  --clr-gold-400: #fbbf24;
  --clr-gold-500: #f59e0b;
  --clr-gold-600: #d97706;

  --clr-navy-800: #1e293b;
  --clr-navy-900: #0f172a;
  --clr-navy-950: #080e1e;

  --clr-teal-400: #2dd4bf;
  --clr-teal-500: #14b8a6;
  --clr-teal-600: #0d9488;

  --clr-surface:  #111827;
  --clr-surface-2:#1f2937;
  --clr-surface-3:#374151;
  --clr-text:     #f1f5f9;
  --clr-text-dim: #94a3b8;
  --clr-border:   rgba(255, 255, 255, 0.08);

  --clr-accent:   var(--clr-gold-400);
  --clr-accent-2: var(--clr-teal-400);

  /* Glassmorphism */
  --glass-bg:     rgba(17, 24, 39, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur:   20px;

  /* Typography */
  --ff-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --ff-serif: 'Playfair Display', Georgia, serif;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radii */
  --radius-sm:  0.5rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-2xl: 2rem;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,.35);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.4);
  --shadow-xl:  0 16px 48px rgba(0,0,0,.5);
  --shadow-glow:0 0 30px rgba(251,191,36,.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  background: var(--clr-navy-950);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover { color: var(--clr-gold-300); }

ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 1px;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-dim);
  max-width: 680px;
  line-height: 1.7;
}

section {
  padding-block: var(--sp-20);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(251,191,36,0.1); }
  50%      { box-shadow: 0 0 40px rgba(251,191,36,0.25); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--sp-4) 0;
  transition: background var(--duration-normal) var(--ease-out),
              padding var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  padding: var(--sp-2) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-text);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--clr-gold-400), var(--clr-gold-600));
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.nav-desktop { display: flex; gap: var(--sp-1); }

.nav-desktop a {
  color: var(--clr-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--clr-text);
  background: rgba(255,255,255,0.06);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--clr-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.06);
}

/* Mobile Nav Overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 14, 30, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
}

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

.nav-mobile a {
  color: var(--clr-text);
  font-size: 1.4rem;
  font-weight: 600;
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-mobile a:hover {
  background: rgba(251,191,36,0.1);
  color: var(--clr-accent);
}

.nav-close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  background: none;
  border: none;
  color: var(--clr-text);
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 30, 0.4) 0%,
    rgba(8, 14, 30, 0.6) 40%,
    rgba(8, 14, 30, 0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding-top: 120px;
  animation: fadeInUp 1s var(--ease-out);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-5);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-gold-300);
  margin-bottom: var(--sp-8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-6);
  color: var(--clr-text);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--clr-gold-300), var(--clr-gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--clr-text-dim);
  margin-bottom: var(--sp-10);
  max-width: 600px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-gold-400), var(--clr-gold-600));
  color: var(--clr-navy-900);
  box-shadow: 0 4px 20px rgba(251,191,36,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251,191,36,0.45);
  color: var(--clr-navy-900);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--clr-text-dim);
  transform: translateY(-2px);
  color: var(--clr-text);
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  gap: var(--sp-10);
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
}

.hero-stat-item {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--ff-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  margin-top: var(--sp-1);
}

/* ---------- DESTINATION CARDS ---------- */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.dest-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.dest-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.dest-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.dest-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.dest-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17,24,39,0.8) 0%, transparent 60%);
}

.dest-card-badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(8,14,30,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-gold-300);
}

.dest-card-body {
  padding: var(--sp-6);
}

.dest-card-title {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.dest-card-sub {
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  margin-bottom: var(--sp-4);
}

.dest-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.dest-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.75rem;
  color: var(--clr-text-dim);
}

.dest-card-pros {
  padding: var(--sp-4);
  background: rgba(45,212,191,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(45,212,191,0.12);
  margin-bottom: var(--sp-4);
}

.dest-card-pros h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-teal-400);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dest-card-pros ul li {
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  padding-left: var(--sp-5);
  position: relative;
  margin-bottom: var(--sp-1);
  line-height: 1.6;
}

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

.dest-card-cons {
  padding: var(--sp-4);
  background: rgba(251,191,36,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(251,191,36,0.1);
}

.dest-card-cons h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-gold-400);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dest-card-cons ul li {
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  padding-left: var(--sp-5);
  position: relative;
  margin-bottom: var(--sp-1);
  line-height: 1.6;
}

.dest-card-cons ul li::before {
  content: '!';
  position: absolute;
  left: 0;
  color: var(--clr-gold-400);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- ITINERARY TABS ---------- */
.itinerary-section {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.itinerary-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  -webkit-overflow-scrolling: touch;
}

.itinerary-tabs::-webkit-scrollbar { height: 4px; }
.itinerary-tabs::-webkit-scrollbar-track { background: var(--clr-surface-2); border-radius: 2px; }
.itinerary-tabs::-webkit-scrollbar-thumb { background: var(--clr-surface-3); border-radius: 2px; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  white-space: nowrap;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-dim);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.tab-btn:hover {
  border-color: var(--clr-text-dim);
  color: var(--clr-text);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--clr-gold-400), var(--clr-gold-600));
  border-color: var(--clr-gold-400);
  color: var(--clr-navy-900);
  box-shadow: 0 4px 20px rgba(251,191,36,0.2);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.5s var(--ease-out); }

/* Day timeline */
.day-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}

.day-block {
  position: relative;
  padding-left: var(--sp-10);
}

.day-block::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-gold-400), transparent);
}

.day-block:last-child::before { display: none; }

.day-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--clr-gold-400), var(--clr-gold-600));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--clr-navy-900);
  box-shadow: 0 0 0 4px var(--clr-surface), 0 0 20px rgba(251,191,36,0.2);
}

.day-header {
  margin-bottom: var(--sp-6);
}

.day-header h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-text);
}

.day-header .day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-gold-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-1);
}

.schedule-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.schedule-card {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: transform var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.schedule-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251,191,36,0.2);
}

.schedule-time {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: var(--sp-2);
}

.schedule-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  line-height: 1.4;
}

.schedule-card p {
  font-size: 0.88rem;
  color: var(--clr-text-dim);
  line-height: 1.65;
}

.food-highlight {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-gold-300);
  margin-top: var(--sp-2);
}

/* ---------- COMPARISON TABLE ---------- */
.comparison-section {
  background: var(--clr-navy-950);
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  margin-top: var(--sp-10);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table thead th {
  background: var(--clr-surface-2);
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  font-weight: 700;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  color: var(--clr-text-dim);
  font-weight: 600;
}

.comparison-table tbody td {
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-dim);
  vertical-align: top;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
}

/* ---------- BUDGET TABLE ---------- */
.budget-section {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.budget-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  margin-top: var(--sp-10);
  -webkit-overflow-scrolling: touch;
}

.budget-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.budget-table thead th {
  background: var(--clr-surface-2);
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  font-weight: 700;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
}

.budget-table thead th:nth-child(2) {
  color: var(--clr-teal-400);
}

.budget-table thead th:nth-child(3) {
  color: var(--clr-gold-400);
}

.budget-table thead th:nth-child(4) {
  color: #e879f9;
}

.budget-table tbody td {
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-dim);
  vertical-align: top;
}

.budget-table tbody td:first-child {
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
}

.budget-table tbody tr:last-child td {
  border-bottom: none;
}

.budget-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.budget-table tfoot td {
  padding: var(--sp-5) var(--sp-6);
  font-weight: 800;
  font-size: 1rem;
  background: var(--clr-surface-2);
  border-top: 2px solid var(--clr-gold-400);
}

.budget-table tfoot td:first-child {
  color: var(--clr-text);
}

.budget-table tfoot td:nth-child(2) {
  color: var(--clr-teal-400);
}

.budget-table tfoot td:nth-child(3) {
  color: var(--clr-gold-400);
}

.budget-table tfoot td:nth-child(4) {
  color: #e879f9;
}

/* ---------- TIPS SECTION ---------- */
.tips-section {
  background: var(--clr-navy-950);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.tip-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  transition: transform var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

.tip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251,191,36,0.2);
}

.tip-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(251,191,36,0.04));
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-5);
}

.tip-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.tip-card p {
  font-size: 0.9rem;
  color: var(--clr-text-dim);
  line-height: 1.7;
}

/* ---------- GALLERY ---------- */
.gallery-section {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,14,30,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.gallery-item:hover::after { opacity: 1; }

.gallery-label {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--clr-navy-950);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .logo {
  margin-bottom: var(--sp-4);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--clr-text-dim);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: var(--sp-16);
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}

.footer-links ul li {
  margin-bottom: var(--sp-2);
}

.footer-links ul li a {
  font-size: 0.88rem;
  color: var(--clr-text-dim);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links ul li a:hover {
  color: var(--clr-accent);
}

.footer-bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--clr-text-dim);
}

.footer-bottom a {
  color: var(--clr-accent);
}

/* ---------- SCROLL-TO-TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--clr-gold-400), var(--clr-gold-600));
  border: none;
  border-radius: 50%;
  color: var(--clr-navy-900);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(251,191,36,0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(251,191,36,0.45);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 15px;
  }

  .nav-desktop { display: none; }
  .menu-toggle { display: block; }

  .hero-content {
    padding-top: 100px;
    padding-inline: var(--sp-2);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--sp-6);
  }

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

  .itinerary-tabs {
    gap: var(--sp-2);
  }

  .schedule-cards {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--sp-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-3);
    text-align: center;
  }

  .comparison-table-wrap,
  .budget-table-wrap {
    margin-inline: calc(-1 * var(--sp-4));
    border-radius: var(--radius-md);
  }

  section {
    padding-block: var(--sp-12);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    gap: var(--sp-4);
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}
