/* ============================================================
   Islands of India Explorer — Magazine-style design
   Palette: deep ocean · coral · sand · seafoam
   ============================================================ */

:root {
  --ocean: #0a4d68;
  --ocean-deep: #062c3d;
  --coral: #ff7e6b;
  --coral-deep: #e45c48;
  --sand: #f4e4c1;
  --seafoam: #7ed7c1;
  --sunset: #ffb347;
  --bg: #0b1a26;
  --bg-2: #0d2538;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(8, 18, 28, 0.78);
  --line: rgba(126, 215, 193, 0.18);
  --text: #f1eee5;
  --muted: #9fb0be;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --g-anc: linear-gradient(135deg, #ff7e6b, #e45c48);
  --g-lkd: linear-gradient(135deg, #7ed7c1, #4aa8a3);
  --g-riv: linear-gradient(135deg, #b88a4d, #7a5d33);
  --g-del: linear-gradient(135deg, #6ba368, #3e6b3c);
  --g-coa: linear-gradient(135deg, #7fb4ff, #4277c7);
}

[data-theme="light"].islands-body {
  --bg: #f5efe1;
  --bg-2: #ebe2ce;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 253, 247, 0.92);
  --line: rgba(10, 77, 104, 0.18);
  --text: #1a2934;
  --muted: #5f6b76;
  --shadow: 0 18px 44px rgba(10, 77, 104, 0.16);
}

.islands-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(126, 215, 193, 0.12), transparent 38%),
    radial-gradient(circle at 90% 88%, rgba(255, 126, 107, 0.1), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

.islands-page h1, .islands-page h2, .islands-page h3, .islands-page h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== HERO ========== */
.islands-hero {
  position: relative; min-height: 92vh; display: grid; place-items: center;
  padding: 140px 20px 180px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 126, 107, 0.22), transparent 45%),
    radial-gradient(circle at 82% 68%, rgba(126, 215, 193, 0.22), transparent 42%),
    linear-gradient(160deg, #083a52 0%, #0a4d68 48%, #16677f 100%);
}
[data-theme="light"] .hero-gradient { background: radial-gradient(circle at 22% 28%, rgba(255, 179, 71, 0.32), transparent 45%), radial-gradient(circle at 82% 68%, rgba(126, 215, 193, 0.32), transparent 42%), linear-gradient(160deg, #fbe9bf 0%, #f6dfae 48%, #e8c98a 100%); }

.wave { position: absolute; left: 0; right: 0; width: 100%; pointer-events: none; }
.wave path { fill: var(--bg); }
[data-theme="light"] .wave path { fill: var(--bg-2); }
.wave-back  { bottom: 80px; opacity: 0.4; animation: wave-drift 18s ease-in-out infinite alternate; }
.wave-mid   { bottom: 30px; opacity: 0.65; animation: wave-drift 13s ease-in-out infinite alternate-reverse; }
.wave-front { bottom: -1px; opacity: 0.95; animation: wave-drift 9s ease-in-out infinite alternate; }
@keyframes wave-drift { from { transform: translateX(-20px); } to { transform: translateX(20px); } }

.hero-silhouette { position: absolute; right: 3%; bottom: 25%; width: min(420px, 38vw); color: rgba(244, 228, 193, 0.18); }

.hero-content {
  position: relative; z-index: 1; text-align: center;
  width: min(1080px, 92%); color: #fff;
}
[data-theme="light"] .hero-content { color: #1a2934; }

.hero-stamp {
  display: inline-block; padding: 8px 18px; border-radius: 6px;
  border: 1.5px solid rgba(244, 228, 193, 0.55); color: var(--sand);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  transform: rotate(-1.6deg); background: rgba(0,0,0,0.25);
  margin-bottom: 20px;
}
[data-theme="light"] .hero-stamp { background: rgba(255,255,255,0.5); color: var(--ocean); border-color: var(--ocean); }

.islands-hero h1 {
  font-size: clamp(2.6rem, 6.8vw, 5.4rem); line-height: 1;
  margin: 0 0 18px; letter-spacing: 0.01em;
}
.islands-hero h1 em {
  display: block; font-style: italic; font-weight: 500;
  background: linear-gradient(135deg, var(--coral), var(--sunset), var(--seafoam));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { max-width: 760px; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; opacity: 0.9; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px auto 28px; width: min(820px, 100%); }
.stat-pill {
  padding: 16px 10px; border-radius: 16px; text-align: center;
  border: 1px solid rgba(244, 228, 193, 0.3); background: rgba(0,0,0,0.22); backdrop-filter: blur(8px);
}
[data-theme="light"] .stat-pill { background: rgba(255,255,255,0.6); border-color: rgba(10,77,104,0.25); }
.stat-pill strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--sand); line-height: 1.1; font-variant-numeric: tabular-nums; }
[data-theme="light"] .stat-pill strong { color: var(--ocean-deep); }
.stat-pill span { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.75); }
[data-theme="light"] .stat-pill span { color: var(--muted); }

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: all 0.3s;
}
.btn-primary { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); color: #fff; box-shadow: 0 14px 30px rgba(255, 126, 107, 0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(255, 126, 107, 0.5); }
.btn-ghost { border: 1.5px solid rgba(244, 228, 193, 0.55); color: var(--sand); }
[data-theme="light"] .btn-ghost { color: var(--ocean-deep); border-color: var(--ocean); }
.btn-ghost:hover { background: rgba(244, 228, 193, 0.18); }
[data-theme="light"] .btn-ghost:hover { background: rgba(10, 77, 104, 0.08); }

/* ========== SECTIONS ========== */
.islands-section { padding: 84px 0; position: relative; z-index: 1; }
.islands-container { width: min(1240px, 92%); margin: 0 auto; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 126, 107, 0.18), rgba(126, 215, 193, 0.18));
  border: 1px solid var(--line); color: var(--coral);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px;
}
.section-heading h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 10px; line-height: 1.1; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }

.intro-text { max-width: 900px; font-size: 1.08rem; line-height: 1.85; color: var(--text); opacity: 0.88; }
.intro-text strong { color: var(--coral); font-weight: 700; }

/* group cards */
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.group-card {
  padding: 28px 22px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); backdrop-filter: blur(10px);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  position: relative; overflow: hidden;
}
.group-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gc, var(--g-anc));
}
.group-card:hover { transform: translateY(-6px); border-color: rgba(255,126,107,0.4); box-shadow: var(--shadow); }
.group-card i { font-style: normal; font-size: 2rem; display: block; margin-bottom: 12px; }
.group-card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.group-card p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.group-card b { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); }
.group-anc { --gc: var(--g-anc); }
.group-lkd { --gc: var(--g-lkd); }
.group-riv { --gc: var(--g-riv); }
.group-del { --gc: var(--g-del); }

/* ========== MAP ========== */
.map-wrap { position: relative; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
#islands-map { height: 620px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.legend-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.legend-chip i { font-style: normal; }

.leaflet-popup-content-wrapper { border-radius: 14px; }
.island-popup { font-family: var(--font-body); }
.island-popup strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.island-popup small { color: #666; font-size: 0.75rem; }
.island-popup button { margin-top: 8px; border: 0; background: var(--ocean); color: #fff; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; }

/* ========== EXPLORER ========== */
.explorer-controls { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.search-box {
  flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); padding: 11px 18px;
  transition: border-color 0.25s;
}
.search-box:focus-within { border-color: var(--coral); }
.search-box input { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.search-box input::placeholder { color: var(--muted); }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  background: var(--surface); color: var(--muted);
  font: inherit; font-weight: 700; font-size: 0.82rem; cursor: pointer;
  transition: all 0.25s;
}
.chip:hover { color: var(--text); border-color: var(--coral); }
.chip.active { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(255,126,107,0.3); }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.results-bar p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.results-actions { display: flex; gap: 10px; align-items: center; }
.results-actions button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.results-actions button:hover { border-color: var(--coral); color: var(--text); }
.compare-indicator { display: inline-flex; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--coral); font-weight: 700; }
.compare-indicator button { background: var(--coral); color: #fff; border: 0 !important; }

/* Island cards */
.islands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }

.island-card {
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  display: flex; flex-direction: column;
}
.island-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(255,126,107,0.4); }

.card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-image-inner { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s; }
.island-card:hover .card-image-inner { transform: scale(1.08); }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55)); }

.card-group-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gb, var(--g-anc));
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.card-compare {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,0.55); color: #fff; backdrop-filter: blur(6px);
  cursor: pointer; font-size: 0.9rem; transition: all 0.25s;
  display: grid; place-items: center;
}
.card-compare:hover { background: var(--coral); transform: scale(1.1); }
.card-compare.ticked { background: var(--coral); }
.card-compare.ticked::before { content: "✓"; }

.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-body h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.card-location { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.card-desc { font-size: 0.88rem; line-height: 1.55; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.card-stat { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--text); }
[data-theme="light"] .card-stat { background: rgba(10,77,104,0.06); }
.card-stat strong { color: var(--coral); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 3rem; margin-bottom: 10px; }

/* ========== COMPARE ========== */
.compare-section { background: linear-gradient(180deg, transparent, rgba(126,215,193,0.04), transparent); }
.compare-pickers { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.picker { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
.picker span { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.picker select {
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.vs-badge { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; color: var(--coral); padding: 0 8px; }

.compare-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--surface-2); font-family: var(--font-display); font-size: 1.05rem; }
.compare-table tbody td:first-child { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.08em; }
.compare-table tbody td { vertical-align: top; line-height: 1.55; font-size: 0.92rem; }
.compare-table tbody tr:hover td { background: rgba(255,126,107,0.04); }

/* ========== ITINERARIES ========== */
.iti-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.iti-card {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--surface); backdrop-filter: blur(8px);
  transition: transform 0.35s, box-shadow 0.35s;
  display: flex; flex-direction: column;
}
.iti-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.iti-head { padding: 22px 22px 18px; position: relative; background: linear-gradient(135deg, var(--itc, var(--g-anc)), rgba(0,0,0,0.2)); color: #fff; }
.iti-days { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.4); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.iti-head h3 { margin: 0 0 6px; font-size: 1.4rem; }
.iti-head p { margin: 0; opacity: 0.9; font-size: 0.9rem; }
.iti-stops { padding: 18px 22px 22px; list-style: none; margin: 0; display: grid; gap: 10px; }
.iti-stop { display: flex; gap: 12px; align-items: center; }
.iti-stop-num {
  flex: 0 0 32px; height: 32px; border-radius: 50%;
  background: var(--itc, var(--g-anc)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
}
.iti-stop strong { display: block; font-size: 0.92rem; }
.iti-stop small { color: var(--muted); font-size: 0.78rem; }

/* ========== QUIZ ========== */
.quiz-section { background: linear-gradient(180deg, transparent, rgba(255,126,107,0.05), transparent); }
.quiz-panel {
  max-width: 780px; margin: 0 auto; padding: 30px;
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface); backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.quiz-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 24px; }
[data-theme="light"] .quiz-progress { background: rgba(10,77,104,0.08); }
.quiz-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--seafoam)); transition: width 0.4s; }

.quiz-stage h3 { font-size: 1.5rem; margin: 0 0 20px; line-height: 1.25; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option {
  padding: 16px 20px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface-2); color: var(--text);
  text-align: left; font: inherit; font-size: 0.98rem; cursor: pointer;
  transition: all 0.25s;
}
.quiz-option:hover { border-color: var(--coral); transform: translateX(4px); background: rgba(255,126,107,0.08); }

.quiz-result { text-align: center; }
.quiz-result .match-emoji { font-size: 4rem; margin-bottom: 10px; }
.quiz-result h3 { font-size: 2rem; margin: 0 0 8px; }
.quiz-result .match-island { font-family: var(--font-display); font-size: 1.6rem; color: var(--coral); font-style: italic; margin: 6px 0 18px; }
.quiz-result p { color: var(--muted); line-height: 1.65; max-width: 560px; margin: 0 auto 22px; }
.quiz-result button { margin: 6px; }

/* ========== FACTS CAROUSEL ========== */
.facts-carousel { display: flex; align-items: center; gap: 16px; max-width: 860px; margin: 0 auto; }
.fact-card {
  flex: 1; padding: 36px 30px; text-align: center;
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface); backdrop-filter: blur(8px); min-height: 180px;
  display: grid; gap: 10px; place-items: center;
  animation: fade 0.4s;
}
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.fact-icon { font-size: 2.4rem; }
.fact-card p { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; font-style: italic; max-width: 600px; }
.fact-source { font-size: 0.76rem; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.facts-nav {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1.4rem; cursor: pointer;
  transition: all 0.25s; flex-shrink: 0;
}
.facts-nav:hover { border-color: var(--coral); color: var(--coral); transform: scale(1.08); }

.facts-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.facts-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.25s; }
[data-theme="light"] .facts-dots i { background: rgba(10,77,104,0.2); }
.facts-dots i.active { background: var(--coral); width: 24px; border-radius: 999px; }

/* ========== MODAL ========== */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 20, 0.75); backdrop-filter: blur(6px); animation: modal-fade 0.25s; }
@keyframes modal-fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(860px, 100%); max-height: 90vh; overflow: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); animation: modal-pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes modal-pop { from { opacity: 0; transform: translateY(26px) scale(0.96); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.5); color: #fff;
  cursor: pointer; font-size: 1rem; transition: all 0.25s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--coral); }

.modal-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 240px; }
.modal-hero-img { background-size: cover; background-position: center; min-height: 240px; }
.modal-hero-content { padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.modal-group { display: inline-block; width: fit-content; padding: 5px 12px; border-radius: 999px; color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.modal-hero h2 { margin: 0; font-size: 2rem; line-height: 1.1; }
.modal-location { margin: 0; color: var(--muted); font-size: 0.88rem; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.modal-tags span { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.modal-tabs { display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tab {
  flex: 1; padding: 14px; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer; transition: all 0.25s;
  position: relative;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--coral); }
.tab.active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; background: var(--coral); border-radius: 3px; }

.modal-pane { padding: 28px 30px; }
.modal-pane p { line-height: 1.75; margin: 0 0 14px; }
.modal-pane h4 { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.modal-pane ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.modal-pane li { line-height: 1.6; }
.modal-pane li::marker { color: var(--coral); }

.climate-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.climate-card { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.climate-card .cc-icon { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.climate-card b { display: block; font-size: 0.8rem; }
.climate-card small { font-size: 0.7rem; color: var(--muted); }

/* ========== FOOTER & TOP ========== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 20px 24px; color: var(--muted); text-align: center; position: relative; z-index: 1; background: transparent; }
.footer-container { width: min(1240px, 92%); margin: 0 auto 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 30px; text-align: left; }
.footer-brand p { margin: 10px 0 0; font-size: 0.9rem; }
.footer-links h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin: 0 0 10px; }
.footer-links a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 0.9rem; }
.footer-links a:hover { color: var(--coral); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.82rem; }

.btn-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--coral);
  font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.btn-top.show { opacity: 1; pointer-events: auto; }
.btn-top:hover { transform: translateY(-3px); }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .modal-hero { grid-template-columns: 1fr; }
  .modal-hero-img { min-height: 180px; }
}
@media (max-width: 640px) {
  .islands-hero { padding: 120px 16px 120px; min-height: 80vh; }
  .group-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-pill { padding: 12px 8px; }
  .stat-pill strong { font-size: 1.4rem; }
  .facts-carousel { flex-direction: column; }
  .compare-pickers { flex-direction: column; }
  .vs-badge { align-self: center; }
  .footer-container { grid-template-columns: 1fr; text-align: center; }
  #islands-map { height: 440px; }
  .modal-tabs { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wave, .hero-silhouette, .island-popup { animation: none !important; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}