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

:root {
  --ocean:    #0e7490;
  --ocean-dk: #0c4a6e;
  --ocean-lt: #e0f2fe;
  --sand:     #fef3c7;
  --coral:    #e76f51;
  --gold:     #f59e0b;
  --white:    #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:0 8px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

/* ─── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--ocean-dk);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link.active {
  background: var(--ocean-lt);
  color: var(--ocean-dk);
}

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-image: url('https://images.unsplash.com/photo-1559128010-7c1ad6e1b6a5?fit=crop&w=1800&q=85');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,74,110,.55) 0%, rgba(12,74,110,.3) 60%, rgba(0,0,0,.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 24px;
}
.hero-eyebrow {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 12px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: .9;
  margin-bottom: 48px;
}
.hero-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  padding: 20px 36px;
  flex-wrap: wrap;
}
.hero-date-item { text-align: center; }
.hero-date-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 4px;
}
.hero-date-value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
}
.hero-date-divider {
  font-size: 1.25rem;
  opacity: .5;
}

/* ─── Page Header (sub-pages) ──────────────────────────────────────── */
.page-header {
  position: relative;
  margin-top: 60px;
  height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,74,110,.3), rgba(12,74,110,.7));
}
.page-header-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 32px 40px;
}
.page-header-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.page-header-content p {
  font-size: 1rem;
  opacity: .85;
}

/* ─── Layout ───────────────────────────────────────────────────────── */
.main { padding-top: 60px; }
.hero + .main { padding-top: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ocean-dk);
  margin-bottom: 48px;
}

/* ─── Cards ────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .2s, box-shadow .2s;
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ocean-dk);
  margin-bottom: 10px;
}
.card-body { color: var(--gray-600); font-size: .95rem; margin-bottom: 20px; }
.card-cta { color: var(--ocean); font-weight: 600; font-size: .9rem; }

/* ─── Timeline ─────────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px currentColor;
}
.timeline-marker.departure { color: var(--ocean); background: var(--ocean); }
.timeline-marker.transit   { color: var(--gray-400); background: var(--gray-400); }
.timeline-marker.arrival   { color: var(--gold); background: var(--gold); }
.timeline-marker.stay      { color: var(--coral); background: var(--coral); }
.timeline-marker.return    { color: var(--ocean-dk); background: var(--ocean-dk); }
.timeline-content {}
.timeline-date { font-size: .8rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.timeline-title { font-weight: 600; font-size: 1.05rem; color: var(--gray-800); margin-bottom: 2px; }
.timeline-detail { font-size: .9rem; color: var(--gray-600); }

/* ─── Photo Grid ───────────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-item {
  background-size: cover;
  background-position: center;
  background-color: var(--ocean-lt);
  transition: transform .4s;
}
.photo-item:hover { transform: scale(1.02); }
.photo-large { grid-row: span 2; }

/* ─── Packing ──────────────────────────────────────────────────────── */
.packing-progress-bar-wrap { padding: 40px 0 16px; }
.packing-progress-label { font-size: .9rem; color: var(--gray-600); margin-bottom: 10px; }
.progress-track {
  height: 8px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ocean), var(--gold));
  border-radius: 99px;
  width: 0%;
  transition: width .4s ease;
}
.packing-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}
.packing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 80px;
}
.pack-category {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.pack-category-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--ocean-dk), var(--ocean));
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pack-category-icon { font-size: 1.25rem; }
.pack-category-name { font-weight: 600; font-size: .95rem; }
.pack-category-count { margin-left: auto; font-size: .8rem; opacity: .8; }
.pack-items { padding: 12px 0; }
.pack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background .1s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.pack-item:hover { background: var(--gray-50); }
.pack-item.checked .pack-item-label {
  text-decoration: line-through;
  color: var(--gray-400);
}
.pack-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--gray-200);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
  background: var(--white);
}
.pack-item.checked .pack-checkbox {
  background: var(--ocean);
  border-color: var(--ocean);
}
.pack-checkbox::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: none;
}
.pack-item.checked .pack-checkbox::after { display: block; }
.pack-item-label { font-size: .9rem; color: var(--gray-800); }

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}
.btn-primary:hover { background: var(--ocean-dk); border-color: var(--ocean-dk); }
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }

/* ─── Modal ────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ocean-dk);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-label { display: block; font-size: .85rem; font-weight: 500; color: var(--gray-600); margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  transition: border-color .15s;
  background: var(--white);
  resize: vertical;
}
.form-input:focus { outline: none; border-color: var(--ocean); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ─── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: var(--ocean-dk);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 24px;
  font-size: .85rem;
}

/* ─── Calendar toolbar ─────────────────────────────────────────────── */
.calendar-toolbar-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn.active {
  background: var(--ocean-lt);
  color: var(--ocean-dk);
  border-color: var(--ocean-lt);
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-dates { gap: 12px; padding: 16px 20px; }
  .hero-date-divider { display: none; }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: 200px 160px 160px; }
  .photo-large { grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .page-header-content { padding: 24px 24px; }
}
