/* ================================================================
   PORTUGAL TRIP — DIMAS & MÔNICA
   Premium Travel Guide — Design System
   ================================================================ */

/* --------------------------------
   1. CUSTOM PROPERTIES
   -------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary: #0b0d17;
  --bg-secondary: #10122a;
  --bg-tertiary: #161836;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --bg-glass: rgba(255, 255, 255, 0.045);

  /* Accent Colors */
  --accent: #2860d4;
  --accent-light: #5c90f5;
  --accent-dark: #1040a0;
  --accent-teal: #64cbb5;
  --accent-blue: #5b9cf5;
  --accent-pink: #e87ea1;
  --accent-purple: #a78bfa;
  --accent-orange: #f0945e;
  --accent-red: #ef6b6b;
  --accent-green: #6bcf7f;

  /* Text */
  --text: #eae4db;
  --text-secondary: #9d978f;
  --text-muted: #6b6760;

  /* Borders & Shadows */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(40, 96, 212, 0.18);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py: 100px;
  --container: 1200px;
  --gap: 24px;

  /* Radii */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-pill: 50px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.35s var(--ease);
  --transition-fast: 0.2s var(--ease);
  --transition-slow: 0.6s var(--ease);
}

/* --------------------------------
   2. RESET & BASE
   -------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--accent-light);
}

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(40, 96, 212, 0.3);
  color: #fff;
}

/* --------------------------------
   3. TYPOGRAPHY
   -------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  max-width: 72ch;
}

.text-accent {
  color: var(--accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------
   4. LAYOUT UTILITIES
   -------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  margin: 0 auto;
  font-size: 1.1rem;
}

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

.section-label i {
  font-size: 0.7rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border: none;
  margin: 24px auto 0;
  border-radius: 2px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

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

/* --------------------------------
   5. NAVIGATION
   -------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(11, 13, 23, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: brightness(0.7) saturate(1.1);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 13, 23, 0.3) 0%,
    rgba(11, 13, 23, 0.5) 40%,
    rgba(11, 13, 23, 0.85) 75%,
    var(--bg-primary) 100%
  );
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 96, 212, 0.12);
  border: 1px solid rgba(40, 96, 212, 0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-dates {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.hero-date-chip:hover {
  border-color: var(--accent);
  background: rgba(40, 96, 212, 0.06);
  transform: translateY(-2px);
}

.hero-date-chip i {
  color: var(--accent);
  font-size: 0.85rem;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll i {
  font-size: 1.2rem;
  animation: bounce-down 2s ease-in-out infinite;
}

/* --------------------------------
   7. INTRO SECTION
   -------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal));
  opacity: 0;
  transition: var(--transition);
}

.intro-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.intro-card:hover::before {
  opacity: 1;
}

.intro-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 20px;
  background: rgba(40, 96, 212, 0.1);
  color: var(--accent);
}

.intro-card h4 {
  margin-bottom: 10px;
}

.intro-card p {
  font-size: 0.9rem;
  margin: 0 auto;
}

/* --------------------------------
   8. DAY HEADER
   -------------------------------- */
.day-section {
  padding-top: 80px;
}

.day-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
}

.day-number::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.day-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.day-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.day-meta-item i {
  color: var(--accent);
  font-size: 0.8rem;
}

.day-context {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* --------------------------------
   9. TIMELINE
   -------------------------------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--accent) 5%,
    var(--accent) 95%,
    transparent 100%
  );
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: -44px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(40, 96, 212, 0.25);
  z-index: 2;
}

.timeline-dot.highlight {
  width: 18px;
  height: 18px;
  left: -46px;
  top: 22px;
  background: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(100, 203, 181, 0.25), 0 0 16px rgba(100, 203, 181, 0.2);
}

.timeline-step {
  position: absolute;
  left: -82px;
  top: 20px;
  width: 28px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.timeline-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.timeline-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.timeline-card-image .img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.timeline-card-body {
  padding: 24px;
}

.timeline-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-card-body h3 i {
  font-size: 0.85rem;
  color: var(--accent);
}

.timeline-card-body p {
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.timeline-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-travel-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.travel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
}

.travel-chip i {
  font-size: 0.75rem;
  color: var(--accent-teal);
}

/* Image fallback */
.img-fallback {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-fallback::after {
  content: '\f3c5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-muted);
  opacity: 0.4;
}

/* --------------------------------
   10. BADGES
   -------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid;
}

.badge i { font-size: 0.6rem; }

.badge-praia {
  color: #5ec4e6;
  background: rgba(94, 196, 230, 0.1);
  border-color: rgba(94, 196, 230, 0.2);
}

.badge-restaurante {
  color: var(--accent-orange);
  background: rgba(240, 148, 94, 0.1);
  border-color: rgba(240, 148, 94, 0.2);
}

.badge-sunset {
  color: var(--accent-pink);
  background: rgba(232, 126, 161, 0.1);
  border-color: rgba(232, 126, 161, 0.2);
}

.badge-passeio {
  color: var(--accent-green);
  background: rgba(107, 207, 127, 0.1);
  border-color: rgba(107, 207, 127, 0.2);
}

.badge-historico {
  color: var(--accent-purple);
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.2);
}

.badge-cerveja {
  color: #f0c850;
  background: rgba(240, 200, 80, 0.1);
  border-color: rgba(240, 200, 80, 0.2);
}

.badge-francesinha {
  color: var(--accent-red);
  background: rgba(239, 107, 107, 0.1);
  border-color: rgba(239, 107, 107, 0.2);
}

.badge-walking {
  color: var(--accent-teal);
  background: rgba(100, 203, 181, 0.1);
  border-color: rgba(100, 203, 181, 0.2);
}

.badge-miradouro {
  color: #f5c842;
  background: rgba(245, 200, 66, 0.1);
  border-color: rgba(245, 200, 66, 0.2);
}

.badge-gastronomia {
  color: var(--accent);
  background: rgba(40, 96, 212, 0.1);
  border-color: rgba(40, 96, 212, 0.2);
}

.badge-cultura {
  color: #c4a0f5;
  background: rgba(196, 160, 245, 0.1);
  border-color: rgba(196, 160, 245, 0.2);
}

.badge-barco {
  color: var(--accent-blue);
  background: rgba(91, 156, 245, 0.1);
  border-color: rgba(91, 156, 245, 0.2);
}

/* --------------------------------
   11. BUTTONS & LINKS
   -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-maps {
  color: var(--accent-teal);
  background: rgba(100, 203, 181, 0.1);
  border: 1px solid rgba(100, 203, 181, 0.2);
}

.btn-maps:hover {
  background: rgba(100, 203, 181, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(40, 96, 212, 0.3);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: var(--bg-card);
}

/* Small button variant used in map popups */
.btn-sm {
  padding: 6px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
  gap: 6px;
}

/* Midpoint route marker wrapper */
.route-midpoint {
  pointer-events: auto;
}
.route-midpoint div {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Make leaflet popup content match dark map cards */
.leaflet-popup-content {
  background: var(--bg-secondary) !important;
  color: var(--text) !important;
  font-size: 0.92rem;
}

/* Small chips inside popups */
.map-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}

/* --------------------------------
   12. MAP CONTAINERS
   -------------------------------- */
.map-section {
  margin: 48px 0;
  position: relative;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-container {
  height: 480px;
  width: 100%;
  z-index: 1;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.map-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.map-header h3 i {
  color: var(--accent);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.map-legend-line {
  width: 24px;
  height: 3px;
  border-radius: 2px;
}

.map-legend-line.car {
  background: var(--accent-blue);
}

.map-legend-line.walk {
  background: var(--accent-teal);
}

.map-open-btn {
  margin-top: 14px;
  text-align: center;
}

/* Leaflet custom styles */
.leaflet-popup-content-wrapper {
  background: var(--bg-secondary) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
}

.leaflet-popup-content strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.leaflet-popup-tip {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-control-zoom a {
  background: var(--bg-secondary) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.leaflet-control-attribution {
  background: rgba(11, 13, 23, 0.8) !important;
  color: var(--text-muted) !important;
  font-size: 0.65rem !important;
}

.leaflet-control-attribution a {
  color: var(--text-secondary) !important;
}

/* Custom map markers */
.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-family: var(--font-body);
}

.custom-marker.car {
  background: var(--accent-blue);
}

.custom-marker.walk {
  background: var(--accent-teal);
}

.custom-marker.special {
  background: var(--accent);
}

/* --------------------------------
   13. OBSERVATION / NOTE BLOCKS
   -------------------------------- */
.observation {
  background: rgba(40, 96, 212, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.observation i {
  color: var(--accent);
  margin-right: 8px;
}

.observation-tbd {
  background: rgba(167, 139, 250, 0.06);
  border-left-color: var(--accent-purple);
}

.observation-tbd i {
  color: var(--accent-purple);
}

.observation-question {
  background: rgba(91, 156, 245, 0.06);
  border-left-color: var(--accent-blue);
}

.observation-question i {
  color: var(--accent-blue);
}

/* --------------------------------
   14. RESTAURANT SECTION
   -------------------------------- */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.restaurant-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.restaurant-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.restaurant-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.restaurant-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.restaurant-card:hover .restaurant-card-image img {
  transform: scale(1.06);
}

.restaurant-card-image .restaurant-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.restaurant-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.restaurant-card-body h4 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.restaurant-card-body .specialty {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.restaurant-card-body .specialty i {
  margin-top: 3px;
  font-size: 0.75rem;
}

.restaurant-card-body p {
  font-size: 0.88rem;
  flex: 1;
}

.restaurant-card-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------
   15. BUCKET LIST / NEXT TRIP
   -------------------------------- */
.bucket-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bucket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.bucket-card {
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.bucket-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.bucket-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.bucket-card:hover img {
  transform: scale(1.1);
}

.bucket-card .bucket-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.bucket-card h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.bucket-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------
   16. EXTRAS SECTION
   -------------------------------- */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.extra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.extra-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.extra-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.extra-card-icon.blue {
  background: rgba(91, 156, 245, 0.1);
  color: var(--accent-blue);
}

.extra-card-icon.green {
  background: rgba(100, 203, 181, 0.1);
  color: var(--accent-teal);
}

.extra-card h4 {
  margin-bottom: 8px;
}

.extra-card p {
  font-size: 0.9rem;
}

/* --------------------------------
   17. DAY 31 CHILL SECTION
   -------------------------------- */
.chill-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.chill-hero {
  text-align: center;
  padding: 40px 0;
}

.chill-emoji {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1;
}

.chill-details {
  max-width: 700px;
  margin: 40px auto 0;
  display: grid;
  gap: 20px;
}

.chill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.chill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(6px);
}

.chill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chill-icon.sunrise { background: rgba(240, 200, 80, 0.1); color: #f0c850; }
.chill-icon.boat { background: rgba(91, 156, 245, 0.1); color: var(--accent-blue); }
.chill-icon.night { background: rgba(167, 139, 250, 0.1); color: var(--accent-purple); }

/* --------------------------------
   18. FOOTER
   -------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  text-align: center;
}

.footer-heart {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.footer h2 {
  margin-bottom: 12px;
}

.footer p {
  margin: 0 auto 32px;
  max-width: 500px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 24px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-secondary);
}

/* --------------------------------
   19. SCROLL-TO-TOP
   -------------------------------- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

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

.scroll-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------
   20. SUB-SECTION HEADERS
   -------------------------------- */
.sub-section-header {
  text-align: center;
  margin: 80px 0 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.sub-section-header h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 8px;
}

.sub-section-header p {
  margin: 0 auto;
  font-size: 0.95rem;
}

/* --------------------------------
   21. GUIMARAES & BRAGA CARDS
   -------------------------------- */
.city-group {
  margin-bottom: 48px;
}

.city-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.city-label i {
  color: var(--accent);
  font-size: 1rem;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.place-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.place-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.place-card-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.place-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.place-card:hover .place-card-image img {
  transform: scale(1.06);
}

.place-card-body {
  padding: 20px;
}

.place-card-body h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.place-card-body p {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

/* --------------------------------
   22. ANIMATIONS & KEYFRAMES
   -------------------------------- */
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

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

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 13, 23, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.2rem;
    padding: 14px 28px;
  }

  .nav-toggle {
    display: block;
    z-index: 1000;
  }

  .grid-2, .grid-3, .grid-4, .intro-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-dates {
    flex-direction: column;
    align-items: center;
  }

  .timeline {
    padding-left: 48px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-dot {
    left: -40px;
  }

  .timeline-dot.highlight {
    left: -42px;
  }

  .timeline-step {
    left: -68px;
    width: 22px;
    font-size: 0.65rem;
  }

  .timeline-card-image {
    height: 180px;
  }

  .map-container {
    height: 360px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .day-header {
    margin-bottom: 40px;
  }

  .hero-content {
    padding: 0 16px;
  }

  .map-legend {
    gap: 12px;
  }

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

@media (max-width: 480px) {
  .bucket-grid {
    grid-template-columns: 1fr;
  }

  .bucket-card {
    height: 200px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 8px 16px;
  }

  .restaurant-card-image {
    height: 160px;
  }

  .timeline-card-body {
    padding: 18px;
  }

  .extra-card {
    padding: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
