/* ============================================================
   EUROPE 2027 — FAMILY TRIP WEBSITE
   Dark Navy + Gold · Glassmorphism · Animations
   ============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy-900: #040d1a;
  --navy-800: #071224;
  --navy-700: #0a1a35;
  --navy-600: #0f2347;
  --navy-500: #163060;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --green-400: #34d399;
  --green-500: #10b981;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 40px rgba(251, 191, 36, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy-900);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--gold-500); color: var(--navy-900); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(4, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 40px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--gold-400); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-400);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold-400); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(15,35,71,0.9) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(139,92,246,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(251,191,36,0.1) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, #0a1628 40%, #0f1f3d 70%, var(--navy-900) 100%);
  animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(20deg); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-line {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #c7d8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line.gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, #ff8c00 60%, var(--gold-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(251,191,36,0.5));
  animation: goldGlow 3s ease-in-out infinite alternate;
}

@keyframes goldGlow {
  0% { filter: drop-shadow(0 0 20px rgba(251,191,36,0.4)); }
  100% { filter: drop-shadow(0 0 50px rgba(251,191,36,0.8)); }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.hero-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.route-city {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.route-city:hover {
  background: rgba(251,191,36,0.1);
  border-color: rgba(251,191,36,0.4);
  transform: translateY(-2px);
}

.route-arrow {
  color: var(--gold-400);
  font-size: 1.3rem;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 16px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.countdown-item:hover {
  border-color: rgba(251,191,36,0.4);
  box-shadow: 0 0 20px rgba(251,191,36,0.15);
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

.countdown-sep {
  font-size: 2rem;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 16px;
}

.countdown-until {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(251,191,36,0.4);
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(251,191,36,0.5);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold-400);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0.5; }
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--navy-800);
}

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

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ── DESTINATION CARDS ──────────────────────────────────── */
.dest-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.dest-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.dest-card:hover {
  transform: translateY(-8px);
  border-color: rgba(251,191,36,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--shadow-glow);
}

.dest-card-flag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

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

.dest-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  z-index: 2;
}

.dest-nights {
  background: rgba(251,191,36,0.9);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
}

.dest-card-body {
  padding: 24px;
}
.dest-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.dest-country {
  font-size: 0.8rem;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dest-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.dest-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dest-highlights li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 4px;
  transition: color var(--transition);
}
.dest-card:hover .dest-highlights li { color: var(--text-primary); }

/* ── CSS Destination Illustrations ─────────────────────── */
@keyframes spin { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(360deg); } }
@keyframes waterRipple {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.92); }
}
@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(245,166,35,0.5); }
  50% { box-shadow: 0 0 48px rgba(245,166,35,0.9); }
}
@keyframes bobFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Algarve Cliff & Ocean Illustration */
.algarve-illustration { position: absolute; inset: 0; overflow: hidden; }
.alg-sun {
  position: absolute; top: 22px; right: 28px;
  width: 52px; height: 52px;
  background: radial-gradient(circle, #ffe066 30%, #f5a623 100%);
  border-radius: 50%;
  animation: sunPulse 3s ease-in-out infinite;
}
.alg-cliff {
  position: absolute; bottom: 38px;
  background: linear-gradient(175deg, #c4622d 0%, #8a3d1c 100%);
}
.alg-cliff-l { left: -4px; width: 38%; height: 68%; border-radius: 20% 55% 0 0; }
.alg-cliff-r { right: -4px; width: 32%; height: 52%; border-radius: 55% 20% 0 0; }
.alg-arch {
  position: absolute; bottom: 38px; left: calc(38% - 8px);
  width: 56px; height: 38px;
  border: 10px solid #a84e22;
  border-bottom: none;
  border-radius: 40px 40px 0 0;
}
.alg-ocean {
  position: absolute; bottom: 0; left: 0; right: 0; height: 42px;
  background: linear-gradient(180deg, #1a7bbf 0%, #0d4f7c 100%);
}
.alg-wave {
  position: absolute; left: 0; right: 0; height: 12px;
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
  animation: waterRipple 3.5s ease-in-out infinite;
}
.alg-wave1 { bottom: 32px; }
.alg-wave2 { bottom: 22px; animation-delay: -1.7s; opacity: 0.6; }

/* White Shell Beach Villas Illustration */
.villas-illustration { position: absolute; inset: 0; overflow: hidden; }
.villa-body {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 65px;
  background: rgba(255,255,255,0.88);
  border-radius: 3px;
}
.villa-body::before {
  content: '';
  position: absolute; top: 15px; left: 15px; right: 15px; bottom: 0;
  background: rgba(29,120,190,0.2);
  border-radius: 2px;
}
.villa-roof {
  position: absolute; bottom: 109px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 65px solid transparent;
  border-right: 65px solid transparent;
  border-bottom: 38px solid rgba(196,70,30,0.85);
}
.villa-pool {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px;
  background: linear-gradient(180deg, #4db8e8, #1a7bbf);
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.45);
}
.villa-pool-ripple {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 7px;
  background: rgba(255,255,255,0.25);
  border-radius: 50px;
  animation: waterRipple 2.8s ease-in-out infinite;
}
.villa-palm {
  position: absolute; bottom: 40px;
  width: 7px; height: 46px;
  background: linear-gradient(180deg, #7a4a10, #9a6820);
  border-radius: 3px;
}
.villa-palm::after {
  content: '🌴';
  position: absolute; top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 20px; line-height: 1;
}
.villa-palm-l { left: 18%; }
.villa-palm-r { right: 18%; }

/* Ferragudo Village Illustration */
.ferragudo-illustration { position: absolute; inset: 0; overflow: hidden; }
.ferr-house {
  position: absolute; bottom: 38px;
  background: rgba(255,255,255,0.82);
  border-radius: 2px 2px 0 0;
}
.ferr-house::after {
  content: '';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 16px solid rgba(196,70,30,0.75);
}
.ferr-house1 { width: 30px; height: 44px; left: 14%; }
.ferr-house2 { width: 38px; height: 58px; left: 34%; }
.ferr-house3 { width: 32px; height: 48px; right: 20%; }
.ferr-church {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 55px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
}
.ferr-church::before {
  content: '';
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 22px solid rgba(255,255,255,0.92);
}
.ferr-water {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, #2d9090 0%, #1a3c3c 100%);
  animation: waterRipple 5s ease-in-out infinite;
}
.ferr-boat {
  position: absolute; bottom: 36px; right: 22%;
  width: 38px; height: 10px;
  background: rgba(196,98,45,0.85);
  border-radius: 4px 6px 0 0;
  animation: bobFloat 4s ease-in-out infinite;
}

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  flex: 1;
  min-width: 120px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-400);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--glass-border);
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-400) 10%, var(--gold-400) 90%, transparent);
  opacity: 0.4;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0 24px;
  align-items: start;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item[data-side="left"] .timeline-card { grid-column: 1; }
.timeline-item[data-side="left"] .timeline-marker { grid-column: 2; }
.timeline-item[data-side="left"] .timeline-card:first-child + .timeline-marker { order: 2; }

.timeline-item[data-side="right"] .timeline-card {
  grid-column: 3;
  grid-row: 1;
}
.timeline-item[data-side="right"] .timeline-marker {
  grid-column: 2;
  grid-row: 1;
}

.timeline-marker {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.day-num {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 0 0 4px var(--navy-800), 0 0 0 6px rgba(251,191,36,0.3), 0 0 20px rgba(251,191,36,0.3);
}

.timeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: rgba(251,191,36,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.tl-card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.tl-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.tl-badge-algarve { background: rgba(234,88,12,0.2); color: #fb923c; border: 1px solid rgba(234,88,12,0.35); }
.tl-badge-villas  { background: rgba(29,120,190,0.2); color: #38bdf8; border: 1px solid rgba(29,120,190,0.35); }
.tl-badge-explore { background: rgba(20,184,166,0.2); color: #2dd4bf; border: 1px solid rgba(20,184,166,0.35); }
.tl-badge-travel { background: rgba(251,191,36,0.15); color: var(--gold-400); border: 1px solid rgba(251,191,36,0.3); }

.tl-card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tl-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tl-card-body { padding: 20px 24px; }

.tl-card-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tl-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-detail {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
}

/* ── BUDGET ──────────────────────────────────────────────── */
.budget-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}

.budget-chart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.budget-total-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.total-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-400);
  line-height: 1;
}

.total-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.budget-table-wrap {
  overflow-x: auto;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.budget-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-border);
}

.budget-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

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

.budget-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.budget-total-row td { border-top: 1px solid var(--glass-border); padding-top: 16px; font-weight: 600; color: var(--text-primary); }
.budget-buffer-row td { color: var(--text-secondary); font-size: 0.85rem; }
.budget-final-row td { border-top: 2px solid var(--gold-500); color: var(--gold-400); font-weight: 700; font-size: 1rem; padding-top: 16px; }

.budget-savings-badge {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.08));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50px;
  color: var(--green-400);
  font-size: 0.9rem;
  font-weight: 600;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  transition: var(--transition);
}
.tip-card:hover {
  border-color: rgba(251,191,36,0.25);
  transform: translateY(-4px);
}

.tip-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.tip-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.tip-card p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }

/* ── MAP ──────────────────────────────────────────────────── */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

#trip-map {
  height: 500px;
  width: 100%;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 24px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-start { background: #94a3b8; }
.legend-benagil   { background: #0ea5e9; }
.legend-ferragudo { background: #14b8a6; }
.legend-lagos     { background: #a855f7; }
.legend-castle { background: var(--gold-400); }

/* ── DETAILED ITINERARY ──────────────────────────────────── */
.detail-day {
  margin-bottom: 56px;
}

.detail-day-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
  border: 1px solid transparent;
}

.detail-day-hdr.day-travel {
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(245,158,11,0.06));
  border-color: rgba(251,191,36,0.25);
}
.detail-day-hdr.day-algarve {
  background: linear-gradient(135deg, rgba(234,88,12,0.14), rgba(180,60,10,0.06));
  border-color: rgba(234,88,12,0.28);
}
.detail-day-hdr.day-villas {
  background: linear-gradient(135deg, rgba(29,120,190,0.14), rgba(15,80,140,0.06));
  border-color: rgba(29,120,190,0.28);
}
.detail-day-hdr.day-explore {
  background: linear-gradient(135deg, rgba(20,184,166,0.14), rgba(10,130,110,0.06));
  border-color: rgba(20,184,166,0.28);
}

.dday-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.dday-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold-400);
  line-height: 1;
  flex-shrink: 0;
  min-width: 56px;
}

.dday-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.dday-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.dday-budget-pill {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(251,191,36,0.12);
  color: var(--gold-400);
  border: 1px solid rgba(251,191,36,0.25);
  white-space: nowrap;
}

/* Activity Grid — vertical stack of horizontal cards */
.activity-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Activity Card — horizontal: photo LEFT, content RIGHT */
.activity-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  min-height: 185px;
}
.activity-card:hover {
  border-color: rgba(251,191,36,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* Photo: fixed-width left column */
.act-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 270px;
}

.act-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  background: var(--navy-700); /* placeholder while loading */
}
.activity-card:hover .act-img-wrap img { transform: scale(1.05); }

/* Pulse while Wikipedia image loads */
@keyframes imgLoad {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
img.wiki-loading { animation: imgLoad 1.4s ease-in-out infinite; }

/* Cost badge — bottom-left corner of photo */
.act-cost-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid;
  white-space: nowrap;
  z-index: 2;
}
.act-cost-badge.free {
  background: rgba(16,185,129,0.3);
  color: #34d399;
  border-color: rgba(16,185,129,0.5);
}
.act-cost-badge.paid {
  background: rgba(4,13,26,0.8);
  color: var(--gold-400);
  border-color: rgba(251,191,36,0.5);
}

/* Content: right column, fills remaining width */
.act-content {
  padding: 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.act-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.act-content p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0;
}

.act-content strong { color: var(--gold-400); font-weight: 600; }

.act-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
  margin-top: 14px;
}

.act-cost-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-400);
}

.act-dur {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 3px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  white-space: nowrap;
  margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .detail-day-hdr { padding: 14px 16px; }
  .dday-num { font-size: 1.8rem; min-width: 44px; }
  .dday-meta { gap: 10px; }
  .activity-grid { padding: 12px; }
  .act-img-wrap { width: 200px; }
}

@media (max-width: 580px) {
  .activity-card { flex-direction: column; min-height: unset; }
  .act-img-wrap { width: 100%; height: 200px; }
  .dday-budget-pill { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
}

@media (max-width: 480px) {
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 32px;
  text-align: center;
}

.footer-content { margin-bottom: 32px; }

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-logo span { color: var(--gold-400); }

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-cities {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-details {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  opacity: 0.6;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dest-cards { grid-template-columns: 1fr 1fr; }
  .dest-cards .dest-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }
  .budget-layout { grid-template-columns: 1fr; }
  .budget-chart-wrap { max-width: 360px; margin: 0 auto; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 32px; }
  .timeline-item { grid-template-columns: 64px 1fr; }
  .timeline-item[data-side="left"] .timeline-card,
  .timeline-item[data-side="right"] .timeline-card { grid-column: 2; grid-row: 1; }
  .timeline-item[data-side="left"] .timeline-marker,
  .timeline-item[data-side="right"] .timeline-marker { grid-column: 1; grid-row: 1; }
}

@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .navbar.scrolled { padding: 10px 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(4,13,26,0.97); padding: 20px; gap: 16px; border-bottom: 1px solid var(--glass-border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-title { font-size: clamp(2.8rem, 12vw, 5rem); }
  .dest-cards { grid-template-columns: 1fr; }
  .dest-cards .dest-card:last-child { max-width: 100%; }
  .stats-bar { flex-direction: column; gap: 16px; }
  .stat-divider { width: 80px; height: 1px; }
  .stat-item { min-width: 100%; flex-direction: row; justify-content: space-between; padding: 0 16px; }
  .stat-num { font-size: 1.8rem; }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-marker { padding-top: 0; margin-bottom: 16px; justify-content: flex-start; grid-row: 1 !important; grid-column: 1 !important; }
  .timeline-item[data-side="left"] .timeline-card,
  .timeline-item[data-side="right"] .timeline-card { grid-column: 1; grid-row: 2; }
  .budget-layout { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .map-legend { flex-direction: column; align-items: center; }
  .section { padding: 64px 0; }
  .countdown { gap: 4px; }
  .countdown-item { min-width: 62px; padding: 12px 8px; }
  .countdown-num { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-route { gap: 8px; }
  .route-city { font-size: 0.9rem; padding: 6px 14px; }
  .budget-table { font-size: 0.82rem; }
  .budget-table th, .budget-table td { padding: 10px 8px; }
}
