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

:root {
  --sky:        #6BB3D9;
  --cheese:     #F5C842;
  --cream:      #FFFBF0;
  --green:      #5CB85C;
  --navy:       #2C3E50;
  --coral:      #E8755A;
  --cream-dark: #F0EAD6;
  --shadow:     0 2px 12px rgba(44,62,80,0.12);
}

/* ─── Base ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Fredoka', sans-serif; font-weight: 700; }
h1 { font-size: 2.8rem; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 8px; }
p  { margin-bottom: 16px; }
.subtitle { font-size: 1.15rem; color: #4a6274; }

/* ─── Layout Utilities ──────────────────────────────────────── */
.page-wrapper { padding-top: 5px; }
.page-wrapper > .section:first-child { padding-top: 30px; }
.container    { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.section      { padding: 60px 0; }
.section-alt  { padding: 60px 0; background: var(--cream-dark); }

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: var(--sky);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
}
.nav-logo svg    { flex-shrink: 0; }
.nav-logo-text   { font-family: 'Fredoka', sans-serif; color: white; font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.nav-links       { list-style: none; display: flex; gap: 28px; }
.nav-links a     { color: white; text-decoration: none; font-size: 0.95rem; font-weight: 500; opacity: 0.88; transition: opacity 0.2s; cursor: pointer; }
.nav-links a:hover,
.nav-links a.active { opacity: 1; text-decoration: none; }
.nav-links a.active { border-bottom: 2px solid white; padding-bottom: 2px; }
.nav-hamburger   { display: none; background: none; border: none; color: white; font-size: 1.6rem; cursor: pointer; padding: 4px 8px; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-block; padding: 14px 28px; border-radius: 8px;
  border: 2px solid transparent; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.2s; text-align: center;
}
.btn-primary        { background: var(--green); color: white; border-color: var(--green); }
.btn-primary:hover  { background: #4da84d; border-color: #4da84d; text-decoration: none; }
.btn-secondary      { background: transparent; border-color: var(--coral); color: var(--coral); }
.btn-secondary:hover{ background: var(--coral); color: white; text-decoration: none; }
.btn-mailto {
  background: white;
  color: #4a6274;
  border-color: rgba(108,179,217,0.35);
}
.btn-mailto:hover {
  background: var(--navy);
  color: white;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(to bottom, #d4eaf7 0%, var(--cream) 100%);
  padding: 40px 24px;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
}
.hero-champ        { margin-bottom: 20px; }
.hero-title        {
  font-family: 'Fredoka', sans-serif;
  font-size: 6.8rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow:
    0 2px 0 #e8f4f8,
    0 4px 0 #d0e8f2,
    0 6px 0 #b8dcec,
    0 0 10px rgba(200,230,245,.3),
    0 4px 8px rgba(108,179,217,.2),
    0 8px 16px rgba(108,179,217,.15);
  letter-spacing: 0.03em;
}
.hero-subtitle     { font-size: 1.4rem; color: #4a6274; margin-bottom: 36px; }
.hero-ctas         { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Clouds ────────────────────────────────────────────────── */
@keyframes drift {
  from { transform: translateX(-200px); }
  to   { transform: translateX(calc(100vw + 200px)); }
}
.cloud {
  position: absolute; z-index: 1; opacity: 0.7;
  animation: drift linear infinite;
  pointer-events: none;
}
.cloud-1 { top: 13%;  animation-duration: 48s;  animation-delay: -12s; }
.cloud-2 { top: 34%;  animation-duration: 68s;  animation-delay: -30s; }
.cloud-3 { top: 58%;  animation-duration: 85s;  animation-delay: -6s;  }

/* ─── Stat Cards ────────────────────────────────────────────── */
.stat-row { display: flex; gap: 16px; justify-content: center; }
.stat-card {
  background: white; border-radius: 12px;
  padding: 20px 16px; text-align: center;
  box-shadow: var(--shadow); flex: 1; max-width: 180px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover        { transform: translateY(-3px); box-shadow: 0 5px 16px rgba(44,62,80,0.16); }
.stat-icon              { margin-bottom: 8px; }
.stat-icon svg          { width: 36px; height: 36px; }
.stat-number            { font-size: 1.9rem; font-weight: 700; color: var(--cheese); line-height: 1.1; }
.stat-label             { font-size: 0.75rem; color: #4a6274; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ─── Page Header (non-index) ───────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--sky) 0%, #a8d8ea 100%);
  padding: 64px 24px 1px; text-align: center;
  position: relative; overflow: hidden;
}
.page-header h1   { color: white; font-size: 2.6rem; position: relative; z-index: 2; }
.page-header-sub  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-top: 8px; position: relative; z-index: 2; }

/* Header drifting clouds */
@keyframes header-drift {
  from { transform: translateX(-150px); }
  to   { transform: translateX(calc(100vw + 150px)); }
}
.header-cloud {
  position: absolute; left: 0; z-index: 1;
  animation: header-drift linear infinite;
}
.header-cloud-1 { top: 18%; opacity: 0.5;  animation-duration: 100s; animation-delay: -4s; }
.header-cloud-2 { top: 62%; opacity: 0.4;  animation-duration: 120s; animation-delay: -40s; }
.header-cloud-3 { top: 38%; opacity: 0.45; animation-duration: 105s; animation-delay: -20s; }

/* ─── Content Cards ─────────────────────────────────────────── */
.content-card {
  display: flex; gap: 40px; align-items: center;
  background: white; border-radius: 16px;
  padding: 40px; box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.content-card.reverse          { flex-direction: row-reverse; }
.content-card-illustration     { flex-shrink: 0; width: 200px; text-align: center; }
.content-card-illustration svg { max-width: 100%; }
.content-card-text             { flex: 1; }
.content-card-text h2          { color: var(--sky); }

/* ─── Steps ─────────────────────────────────────────────────── */
.steps        { max-width: 700px; margin: 0 auto; }
.step         { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 15px; }
.step-number  { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: white;
                display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; flex-shrink: 0; }
.step-content h3 { color: var(--navy); margin-top: 6px; }

/* ─── Tips List ─────────────────────────────────────────────── */
.tips-list        { list-style: none; padding: 0; }
.tips-list li     { padding: 14px 0 14px 24px; border-bottom: 1px solid #e8e0d0; position: relative; }
.tips-list li:last-child { border-bottom: none; }
.tips-list li::before { content: "✦"; position: absolute; left: 0; color: var(--cheese); font-size: 0.85rem; top: 16px; }

/* ─── Map Layout ────────────────────────────────────────────── */
.map-layout          { display: flex; gap: 24px; }
.map-stats-panel     { width: 280px; flex-shrink: 0; background: white; border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.map-stats-panel h2  { color: var(--sky); font-size: 1.5rem; margin-bottom: 20px; }
.map-stats-panel hr  { border: none; border-top: 1px solid #e8e0d0; margin: 16px 0; }
.map-stat-row        { display: flex; justify-content: space-between; padding: 5px 0; }
.map-stat-label      { color: #4a6274; font-size: 0.92rem; }
.map-stat-value      { font-weight: 700; color: var(--navy); }
.map-stat-detail     { font-size: 0.82rem; color: #7a8a9a; padding: 0 0 3px; }
.map-iframe-wrap     { flex: 1; min-width: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.map-iframe-wrap iframe { width: 100%; height: 680px; border: none; display: block; }
.map-champ-deco      { text-align: center; margin-top: 24px; opacity: 0.6; }

/* ─── Map Maximize Button ───────────────────────────────────── */
.map-maximize-btn {
  position: absolute; top: 8px; right: 8px; z-index: 10;
  background: rgba(30,30,40,0.82); color: #fff;
  border: none; border-radius: 6px; width: 36px; height: 36px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.map-maximize-btn:hover { background: rgba(50,50,60,0.95); }
.map-maximize-btn svg   { width: 18px; height: 18px; }

.map-layout.maximized                          { position: fixed; inset: 0; z-index: 999; gap: 0; }
.map-layout.maximized .map-stats-panel         { display: none; }
.map-layout.maximized .map-iframe-wrap         { border-radius: 0; height: 100%; box-shadow: none; pointer-events: none; }
.map-layout.maximized .map-iframe-wrap iframe  { height: 100%; pointer-events: auto; }
.map-layout.maximized .map-maximize-btn        { position: fixed; top: 8px; right: 8px; z-index: 1001; pointer-events: auto; }

/* ─── Stamp Motif ───────────────────────────────────────────── */
.stamp-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin: 28px 0; }

/* ─── Bottom Scene ──────────────────────────────────────────── */
.scene-bottom  { position: relative; height: 150px; overflow: hidden; margin-top: -10px; }
.hills-svg     { width: 100%; height: 100%; display: block; }
.scene-deco           { position: absolute; }
.scene-deco.cow       { left: 14%; bottom: 38px; width: 88px; }
.scene-deco.cheese    { right: 18%; bottom: 50px; width: 78px; }
.scene-deco.tree      { left: 58%; bottom: 32px; width: 48px; }
.scene-deco.tree2     { left: 7%;  bottom: 40px; width: 36px; }

/* ─── Contact ───────────────────────────────────────────────── */
.contact-champ   { margin: 0 auto 28px; width: 180px; }
.contact-section { max-width: 600px; margin: 0 auto; text-align: center; }

/* ─── Decorative Float ──────────────────────────────────────── */
.deco-float { float: right; margin: 0 0 16px 24px; width: 100px; opacity: 0.85; }

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  text-align: center; padding: 28px 24px; font-size: 0.88rem;
}
footer a { color: var(--sky); }

/* ─── Index page — single-viewport fit ─────────────────────── */
body.page-index {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}
body.page-index .hero {
  min-height: 0;
  flex: 1;
  padding: 60px 24px 8px;
}
body.page-index .hero-champ        { margin-bottom: 6px; }
body.page-index .hero-champ svg    { width: 200px; height: auto; }
body.page-index .hero-title        { font-size: 4.8rem; margin-bottom: 6px; }
body.page-index .hero-subtitle     { font-size: 1.15rem; margin-bottom: 16px; }
body.page-index .btn-primary,
body.page-index .btn-secondary     { padding: 10px 24px; font-size: 0.92rem; }
body.page-index > .section         { flex-shrink: 0; padding: 10px 0; }
body.page-index .stat-card         { padding: 12px 18px; }
body.page-index .stat-icon         { margin-bottom: 4px; }
body.page-index .stat-icon svg     { width: 30px; height: 30px; }
body.page-index .stat-number       { font-size: 1.8rem; }
body.page-index .stat-label        { margin-top: 2px; }
body.page-index .subtitle          { margin-top: 10px !important; margin-bottom: 0 !important; font-size: 0.95rem; }
body.page-index .scene-bottom      { flex-shrink: 0; height: 100px; margin-top: -6px; }
body.page-index .scene-deco.cow    { width: 59px;  bottom: 25px; }
body.page-index .scene-deco.cheese { width: 52px;  bottom: 33px; }
body.page-index .scene-deco.tree   { width: 32px;  bottom: 21px; }
body.page-index .scene-deco.tree2  { width: 24px;  bottom: 27px; }
body.page-index footer             { flex-shrink: 0; padding: 12px 24px; }

/* ─── Responsive ≤ 700px ────────────────────────────────────── */
@media (max-width: 700px) {
  /* Nav */
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav.nav-open .nav-links {
    display: flex;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--sky); padding: 12px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  .nav-links li a { padding: 10px 28px; display: block; }
  .nav-hamburger  { display: block; }

  /* Hero */
  .hero-title    { font-size: 3.2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-champ svg { width: 180px !important; }

  /* Stats */
  .stat-row   { flex-direction: column; align-items: center; }
  .stat-card  { max-width: 100%; width: 100%; }

  /* Content cards */
  .content-card { flex-direction: column !important; padding: 24px; }
  .content-card-illustration { width: 100%; max-width: 180px; margin: 0 auto; }

  /* Map */
  .map-layout          { flex-direction: column; }
  .map-stats-panel     { width: 100%; }
  .map-iframe-wrap iframe { height: 400px; }

  /* Page header */
  .page-header h1 { font-size: 2rem; }

  /* Hide decorative floats */
  .deco-float { display: none; }

  /* Scene bottom shrinks */
  .scene-bottom { height: 100px; }
  .scene-deco.cheese { display: none; }

  /* Buttons */
  .hero-ctas { flex-direction: column; align-items: center; }

  /* Index — restore scrolling on mobile */
  body.page-index             { height: auto; overflow-y: visible; }
  body.page-index .hero       { min-height: 50vh; flex: none; padding: 80px 24px 24px; }
  body.page-index > .section  { padding: 24px 0; }
  body.page-index .subtitle   { margin-top: 20px !important; margin-bottom: 16px !important; }
}

/* ─── Flight Logbook Tabs ──────────────────────────────────── */
.logbook {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18));
}

/* Coffee stain decoration in top-right */
.logbook::before {
  content: '';
  position: absolute;
  top: 80px;
  right: 40px;
  width: 45px;
  height: 45px;
  background:
    radial-gradient(circle at 30% 40%, rgba(139,90,43,0.12), transparent 50%),
    radial-gradient(circle at 60% 65%, rgba(139,90,43,0.08), transparent 60%);
  border-radius: 50%;
  transform: rotate(-15deg);
  z-index: 10;
  pointer-events: none;
}

/* Small ink splatter near top-left */
.logbook::after {
  content: '';
  position: absolute;
  top: 120px;
  left: 65px;
  width: 8px;
  height: 8px;
  background: rgba(44,62,80,0.15);
  border-radius: 50%;
  z-index: 10;
  pointer-events: none;
  box-shadow:
    3px 2px 0 -1px rgba(44,62,80,0.1),
    -2px 4px 0 -2px rgba(44,62,80,0.08),
    5px -1px 0 -2px rgba(44,62,80,0.06);
}

.logbook-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: -3px;
  position: relative;
  z-index: 2;
  justify-content: center;
}

/* Decorative corner brackets on logbook (vintage style) */
.logbook-tabs::before {
  content: '';
  position: absolute;
  top: 60px;
  left: -8px;
  width: 24px;
  height: 24px;
  border-left: 3px solid rgba(108,179,217,0.25);
  border-top: 3px solid rgba(108,179,217,0.25);
  border-radius: 4px 0 0 0;
  pointer-events: none;
  z-index: 5;
}

.logbook-tabs::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-right: 3px solid rgba(108,179,217,0.25);
  border-top: 3px solid rgba(108,179,217,0.25);
  border-radius: 0 4px 0 0;
  pointer-events: none;
  z-index: 5;
}

.logbook-tab {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.03) 2px,
      rgba(255,255,255,0.03) 4px
    ),
    linear-gradient(180deg, #ede2ce 0%, #e3d5bf 100%);
  border: 3px solid rgba(108,179,217,0.35);
  border-bottom: none;
  padding: 14px 28px 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #4a3828;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px 12px 0 0;
  position: relative;
  box-shadow:
    inset 0 -3px 6px rgba(0,0,0,0.12),
    inset 2px 2px 0 rgba(255,255,255,0.3),
    inset -1px -1px 0 rgba(0,0,0,0.05);
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Small decorative corner fold on each tab */
.logbook-tab::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.08) 0%, transparent 50%),
    linear-gradient(225deg, rgba(255,255,255,0.4) 0%, transparent 50%);
  border-radius: 0 0 0 2px;
  transform: rotate(45deg);
}

/* Add small ink dot/pencil mark */
.logbook-tab::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 12px;
  width: 3px;
  height: 3px;
  background: rgba(44,62,80,0.15);
  border-radius: 50%;
}

.logbook-tab:hover {
  background: linear-gradient(180deg, #f5ead6 0%, #eaddca 100%);
  transform: translateY(-3px);
  box-shadow:
    inset 0 -3px 8px rgba(0,0,0,0.15),
    inset 2px 2px 0 rgba(255,255,255,0.4),
    0 4px 8px rgba(0,0,0,0.1);
}

.logbook-tab.active {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.05) 2px,
      rgba(255,255,255,0.05) 4px
    ),
    linear-gradient(180deg, #fdfaf5 0%, #f7f2e8 100%);
  color: var(--navy);
  box-shadow:
    3px 0 8px rgba(0,0,0,0.15),
    -3px 0 8px rgba(0,0,0,0.15),
    0 -4px 8px rgba(0,0,0,0.1),
    inset 2px 3px 0 rgba(255,255,255,0.5),
    inset 0 0 20px rgba(245,240,230,0.4);
  transform: translateY(-5px) scale(1.08);
  z-index: 3;
  border-width: 3px;
}

.logbook-tab.active::before {
  background:
    linear-gradient(135deg, rgba(108,179,217,0.15) 0%, transparent 50%),
    linear-gradient(225deg, rgba(255,255,255,0.5) 0%, transparent 50%);
}

.logbook-pages {
  background:
    /* Faint paper grain texture */
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.01) 0px,
      transparent 1px,
      transparent 2px
    ),
    /* Horizontal ruled lines */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(108,179,217,0.12) 31px,
      rgba(108,179,217,0.12) 32px
    ),
    /* Aged paper gradient with subtle aging spots */
    radial-gradient(circle at 15% 25%, rgba(139,90,43,0.03) 20px, transparent 20px),
    radial-gradient(circle at 85% 70%, rgba(139,90,43,0.02) 30px, transparent 30px),
    radial-gradient(circle at 40% 85%, rgba(139,90,43,0.025) 25px, transparent 25px),
    linear-gradient(180deg, #fdfaf5 0%, #f7f2e8 100%);
  border: 4px solid rgba(108,179,217,0.35);
  border-radius: 0 0 16px 16px;
  padding: 48px 52px;
  min-height: 520px;
  box-shadow:
    /* Outer shadows for depth */
    0 12px 28px rgba(0,0,0,0.2),
    0 4px 8px rgba(0,0,0,0.1),
    /* Inner shadows for worn edges */
    inset 0 2px 0 rgba(255,255,255,0.6),
    inset 0 0 60px rgba(232,220,200,0.3),
    inset 3px 0 8px rgba(0,0,0,0.05),
    inset -3px 0 8px rgba(0,0,0,0.05),
    inset 0 -3px 6px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

/* Red margin line (like a real logbook) */
.logbook-pages::before {
  content: '';
  position: absolute;
  left: 48px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(to bottom,
    transparent 0%,
    #c8534f 5%,
    #c8534f 95%,
    transparent 100%);
  opacity: 0.7;
  box-shadow: 0 0 2px rgba(200,83,79,0.3);
}

/* Decorative approval stamp in bottom-right */
.logbook-pages::after {
  content: 'FLY WI';
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(108,179,217,0.25);
  border: 3px dashed rgba(108,179,217,0.25);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
  box-shadow: inset 0 0 8px rgba(108,179,217,0.08);
}

.logbook-page {
  display: none;
  padding: 0 12px;
}

.logbook-page.active {
  display: block;
  animation: fadeInPage 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Small decorative airplane sketch in top-left of active page */
.logbook-page.active::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 72px;
  width: 32px;
  height: 16px;
  background:
    /* Wings */
    linear-gradient(90deg, transparent 8px, rgba(108,179,217,0.2) 8px, rgba(108,179,217,0.2) 24px, transparent 24px),
    /* Fuselage */
    linear-gradient(90deg, transparent 14px, rgba(44,62,80,0.15) 14px, rgba(44,62,80,0.15) 18px, transparent 18px);
  background-size: 100% 6px, 100% 3px;
  background-position: center 6px, center 7px;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.6;
  transform: rotate(-5deg);
}

/* Small decorative cloud doodle */
.logbook-page.active::after {
  content: '';
  position: absolute;
  top: -18px;
  right: 80px;
  width: 40px;
  height: 14px;
  background:
    radial-gradient(circle at 12px 7px, rgba(108,179,217,0.12) 6px, transparent 6px),
    radial-gradient(circle at 22px 8px, rgba(108,179,217,0.12) 7px, transparent 7px),
    radial-gradient(circle at 32px 7px, rgba(108,179,217,0.12) 5px, transparent 5px);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Illustrated steps within logbook */
.logbook .steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}

.logbook .step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 20px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(108,179,217,0.02) 8px,
      rgba(108,179,217,0.02) 16px
    ),
    linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(245,240,230,0.4) 100%);
  border: 2px solid rgba(108,179,217,0.2);
  border-radius: 8px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.5);
  position: relative;
}

/* Small decorative corner in each step */
.logbook .step::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, rgba(108,179,217,0.15) 0%, transparent 50%);
  border-radius: 0 8px 0 0;
}

.logbook .step-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%),
    linear-gradient(135deg, var(--sky) 0%, #5a9ab8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow:
    0 4px 8px rgba(44,62,80,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    inset 0 1px 2px rgba(255,255,255,0.4);
  border: 3px solid #2C3E50;
  flex-shrink: 0;
}

.logbook .step-content h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.logbook .step-content p {
  margin: 0;
  line-height: 1.6;
}

/* Illustrated tips list */
.logbook .tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.logbook .tips-list li {
  padding: 14px 0 14px 32px;
  border-bottom: 1px dashed rgba(108,179,217,0.15);
  position: relative;
  line-height: 1.7;
}

.logbook .tips-list li:last-child {
  border-bottom: none;
}

/* Hand-drawn checkmark bullets */
.logbook .tips-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #F5C842 0%, #e0b830 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: rotate(-3deg);
}

/* Floating cheese decoration styling */
.logbook .deco-float {
  float: right;
  width: 80px;
  margin: 0 0 16px 20px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  transform: rotate(8deg);
}

/* Responsive logbook */
@media (max-width: 700px) {
  .logbook-tabs {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }

  .logbook-tab {
    border-radius: 0;
    border-bottom: 1px solid #c8b8a8;
    text-align: left;
    padding: 14px 20px;
  }

  .logbook-tab.active {
    transform: none;
    border-left: 4px solid var(--sky);
  }

  .logbook-pages {
    border-radius: 0 0 12px 12px;
    padding: 24px;
    min-height: 400px;
  }

  .logbook-pages::before {
    display: none;
  }

  .logbook .step {
    flex-direction: column;
    gap: 12px;
  }

  .logbook .deco-float {
    float: none;
    margin: 0 auto 16px;
  }
}

/* ─── Contact Form Modal ────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--navy);
}

/* ─── Form Styles ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e8e0d0;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.form-actions .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Mobile adjustments for modal */
@media (max-width: 640px) {
  .modal-content {
    padding: 32px 24px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
  }
}

/* ─── Destination Cards ────────────────────────────────────── */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dest-card {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 16px rgba(44,62,80,0.16);
}

.dest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.dest-card-header h3 {
  color: var(--sky);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.dest-location {
  font-size: 0.8rem;
  color: #7a8a9a;
  white-space: nowrap;
  flex-shrink: 0;
}

.dest-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0;
  color: #4a6274;
}
.dest-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 10px;
}
.dest-cat-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Destination Map ─────────────────────────────────────── */
.dest-map-wrap {
  position: relative;
  margin-bottom: 12px;
}
#dest-map {
  height: 450px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 1;
}
.dest-map-maximize-btn {
  position: absolute; top: 10px; right: 10px; z-index: 1000;
  background: rgba(30,30,40,0.82); color: #fff;
  border: none; border-radius: 6px; width: 36px; height: 36px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.dest-map-maximize-btn:hover { background: rgba(50,50,60,0.95); }
.dest-map-maximize-btn svg   { width: 18px; height: 18px; }

.dest-map-maximized {
  position: fixed; inset: 0; z-index: 9999;
  margin: 0; background: #fff;
}
.dest-map-maximized #dest-map {
  height: 100%; border-radius: 0; box-shadow: none;
}
.dest-map-maximized .dest-map-maximize-btn {
  position: fixed; top: 10px; right: 10px; z-index: 10000;
}
.dest-plane-icon { background: none !important; border: none !important; }
.dest-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 32px;
  font-size: 0.88rem;
  color: #4a6274;
}
.dest-legend-item { display: flex; align-items: center; gap: 6px; }
.dest-legend-dot  { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dest-card.highlighted {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(107,179,217,0.25), var(--shadow);
}
/* Leaflet popup overrides */
.dest-popup        { font-family: 'Nunito', sans-serif; min-width: 180px; }
.dest-popup-bar    { height: 4px; border-radius: 2px; margin: -2px -2px 8px; }
.dest-popup strong { font-family: 'Fredoka', sans-serif; font-size: 1rem; color: var(--navy); }
.dest-popup-loc    { font-size: 0.8rem; color: #7a8a9a; margin: 2px 0 6px; }
.dest-popup-desc   { font-size: 0.88rem; line-height: 1.45; color: #4a6274; margin-bottom: 6px; }
.dest-popup-cat    { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 700px) {
  .dest-grid { grid-template-columns: 1fr; }
  #dest-map  { height: 320px; }
}

/* ─── Carousel (shared — About & Mission) ─────────────────── */
.carousel { max-width: 1000px; margin: 0 auto; padding: 0 24px; position: relative; }
.carousel-viewport { overflow: hidden; border-radius: 16px; }
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%; box-sizing: border-box;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.carousel-slide .content-card {
  background: transparent; box-shadow: none; margin: 0; padding: 0;
}

/* Arrows */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: white; border: 2px solid var(--sky);
  color: var(--sky); font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(44,62,80,0.15);
  transition: all 0.2s; z-index: 5;
}
.carousel-arrow:hover { background: var(--sky); color: white; }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; background: white; color: var(--sky); }
.carousel-prev { left: -12px; }
.carousel-next { right: -12px; }

/* Dots */
.carousel-dots { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.carousel-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cream-dark); border: 2px solid #ccc;
  cursor: pointer; transition: all 0.3s; padding: 0;
}
.carousel-dot.active { background: var(--sky); border-color: var(--sky); transform: scale(1.2); }
.carousel-dot:hover:not(.active) { border-color: var(--sky); }

/* Labels */
.carousel-labels { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.carousel-label {
  padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 600;
  background: white; color: #4a6274; border: 2px solid #e8e0d0;
  cursor: pointer; transition: all 0.2s;
}
.carousel-label.active { background: var(--sky); color: white; border-color: var(--sky); }
.carousel-label:hover:not(.active) { border-color: var(--sky); color: var(--sky); }

@media (max-width: 700px) {
  .carousel { padding: 0 16px; }
  .carousel-slide { padding: 24px; }
  .carousel-slide .content-card { flex-direction: column !important; }
  .carousel-slide .content-card-illustration { width: 100% !important; max-width: 180px; margin: 0 auto; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
  .carousel-prev { left: -4px; }
  .carousel-next { right: -4px; }
  .carousel-label { padding: 6px 14px; font-size: 0.82rem; }
}

/* ─── Scroll Fade-In ───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Back to Top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(44,62,80,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
}
.back-to-top.show {
  opacity: 1; pointer-events: auto;
}
.back-to-top:hover {
  background: var(--sky);
  transform: translateY(-3px);
}

/* ─── Footer Social Links ─────────────────────────────────── */
.footer-social {
  display: flex; justify-content: center; gap: 16px;
  margin-bottom: 10px;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  transition: all 0.2s;
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--sky);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}
