/* ==========================================================
   Aegean Blueprint — style.css  v5.0
   Mediterranean summer palette: turquoise, coral, warm sand.
   Nunito rounded sans-serif throughout.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Nunito+Sans:wght@400;500;600;700&display=swap');

/* ----------------------------------------------------------
   MEDITERRANEAN SUMMER PALETTE
---------------------------------------------------------- */
:root {
  /* Primary — turquoise sea */
  --aegean:        #0B8FAC;
  --aegean-mid:    #14A8C8;
  --aegean-light:  #C8EEF5;
  --aegean-pale:   #E8F7FB;
  --aegean-dark:   #076880;

  /* Warm sand base */
  --marble:        #FFFBF5;
  --marble-2:      #FFF4E8;
  --marble-3:      #FFE8D0;

  /* Coral accent */
  --gold:          #FF6B6B;
  --gold-light:    #FFD4D4;
  --gold-pale:     #FFF0F0;

  /* Terracotta */
  --terracotta:    #E8522A;
  --terra-light:   #FCDDD3;
  --terra-pale:    #FEF2EE;

  /* Olive / sea grass */
  --olive:         #3D8B6F;
  --olive-light:   #C8EBE0;
  --olive-pale:    #E8F6F1;

  --ink:           #1A2332;
  --ink-2:         #2E3D50;
  --ink-3:         #637080;
  --ink-4:         #A0ADB8;

  --white:         #FFFFFF;
  --border:        #EAE4DC;
  --border-2:      #D8CEC2;

  /* Semantic score colors */
  --score-great:   #2E9E6A;
  --score-good:    var(--aegean);
  --score-mid:     #F0A500;
  --score-low:     var(--terracotta);

  /* Typography — Nunito rounded */
  --serif: 'Nunito', system-ui, sans-serif;
  --sans:  'Nunito Sans', system-ui, sans-serif;

  /* Sizing */
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(11,143,172,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow:    0 6px 20px rgba(11,143,172,0.12), 0 2px 6px rgba(0,0,0,0.06);
  --header-height: 64px;
}

/* ----------------------------------------------------------
   DARK MODE
---------------------------------------------------------- */
html.dark {
  --aegean:        #22C0E0;
  --aegean-mid:    #22C0E0;
  --aegean-light:  #0A2A35;
  --aegean-pale:   #071820;
  --aegean-dark:   #60D8F0;

  --marble:        #171C24;
  --marble-2:      #1F2530;
  --marble-3:      #283040;

  --gold:          #FF8F8F;
  --gold-light:    #2A1010;
  --gold-pale:     #1E0E0E;

  --terracotta:    #F07050;
  --terra-light:   #2A1510;
  --terra-pale:    #1E100E;

  --olive:         #50C090;
  --olive-light:   #0A2018;
  --olive-pale:    #071510;

  --ink:           #EEF2F5;
  --ink-2:         #C8D4DC;
  --ink-3:         #8898A8;
  --ink-4:         #556070;

  --white:         #1F2530;
  --border:        rgba(255,255,255,0.08);
  --border-2:      rgba(255,255,255,0.14);

  --score-great:   #40D090;
  --score-good:    #22C0E0;
  --score-mid:     #F0B020;
  --score-low:     #F07050;
}

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

body {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--marble);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.25;
}
h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }

p { color: var(--ink-3); line-height: 1.7; }
a { color: var(--aegean); }
a:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   LOADING OVERLAY
---------------------------------------------------------- */
#loading-overlay {
  position: fixed; inset: 0;
  background: var(--aegean);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
.loading-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* BIGGER LOGO in loading */
#loading-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 8px;
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-inner p { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------
   HEADER  — Aegean blue
---------------------------------------------------------- */
header {
  background: linear-gradient(135deg, var(--aegean) 0%, var(--aegean-dark) 100%);
  border-bottom: none;
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  box-shadow: 0 2px 12px rgba(11,143,172,0.25);
}
.header-content {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 16px;
}

/* BIGGER LOGO in header */
.logo-wrapper {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; text-decoration: none; flex-shrink: 0;
}
#site-logo {
  width: 48px;          /* was 36px — bigger logo (#1) */
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  padding: 4px;
  transition: background 0.2s;
}
.logo-wrapper:hover #site-logo { background: rgba(255,255,255,0.25); }
#brand-text {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Nav links on Aegean blue */
.top-nav {
  display: flex; align-items: center; gap: 2px; margin-left: auto;
}
.top-nav a {
  padding: 7px 13px;
  font-size: 13px; font-weight: 500; font-family: var(--sans);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.top-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.top-nav a.active { background: rgba(255,255,255,0.18); color: #fff; }

.dark-mode-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 15px;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
  transition: background 0.15s;
}
.dark-mode-toggle:hover { background: rgba(255,255,255,0.2); color: #fff; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; margin-left: auto;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.85); border-radius: 2px;
}

/* ----------------------------------------------------------
   SEARCH + CONTROLS BAR — marble tone
---------------------------------------------------------- */
.search-container {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  flex-shrink: 0;
}

.search-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#islandSearch {
  flex: 1;
  padding: 9px 16px;
  font-size: 14px; font-family: var(--sans);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--marble);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
}
#islandSearch:focus {
  outline: none;
  border-color: var(--aegean-mid);
  box-shadow: 0 0 0 3px var(--aegean-pale);
  background: var(--white);
}
#islandSearch::placeholder { color: var(--ink-4); }

.filter-select {
  padding: 9px 12px;
  font-size: 13px; font-family: var(--sans);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s;
  appearance: auto;
}
.filter-select:focus {
  outline: none;
  border-color: var(--aegean-mid);
}

@media (max-width: 600px) {
  .search-bar-row { flex-wrap: wrap; }
  #islandSearch { min-width: 100%; }
  .filter-select { flex: 1; font-size: 12px; }
}

/* ----------------------------------------------------------
   MAP  — constrained to Greece bounds
   script.js handles: map.setMaxBounds and fitBounds
   This just styles the container
---------------------------------------------------------- */
#view-home {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
}
#main-map {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: var(--aegean-pale);
  position: relative;
}
.custom-marker { background: none; border: none; }

/* ----------------------------------------------------------
   CONTENT PAGES
---------------------------------------------------------- */
.content-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.content-page > h1 { margin-bottom: 4px; }
.content-page > p:first-of-type { color: var(--ink-3); margin-bottom: 24px; }

/* ----------------------------------------------------------
   DATA TABLE
---------------------------------------------------------- */
.table-search-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.table-search-row input {
  flex: 1; padding: 9px 14px;
  font-size: 13px; font-family: var(--sans);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.table-search-row input:focus {
  outline: none;
  border-color: var(--aegean-mid);
  box-shadow: 0 0 0 3px var(--aegean-pale);
}
.table-count {
  font-size: 12px; color: var(--ink-4); white-space: nowrap;
}
.table-container {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
#islands-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); font-size: 13px;
}
#islands-table thead th {
  padding: 11px 14px; text-align: left;
  background: var(--marble);
  border-bottom: 1px solid var(--border-2);
  font-size: 11px; font-weight: 600; font-family: var(--sans);
  color: var(--ink-3); cursor: pointer; user-select: none;
  white-space: nowrap; letter-spacing: 0.3px; text-transform: uppercase;
}
#islands-table thead th:hover { color: var(--aegean); }
#islands-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
#islands-table tbody tr:last-child td { border-bottom: none; }
#islands-table tbody tr:hover td { background: var(--aegean-pale); cursor: pointer; }
.text-right { text-align: right !important; }
.group-tag {
  font-size: 11px; font-weight: 500;
  padding: 2px 9px;
  background: var(--marble-2);
  border-radius: 20px;
  color: var(--ink-3);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

@media (max-width: 600px) {
  .table-container { border: none; box-shadow: none; }
  #islands-table, #islands-table tbody, #islands-table tr, #islands-table td { display: block; }
  #islands-table thead { display: none; }
  #islands-table tbody tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
  }
  #islands-table tbody td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 16px;
    border-bottom: 1px solid var(--border);
  }
  #islands-table tbody td:last-child { border-bottom: none; }
  #islands-table tbody td::before {
    content: attr(data-label);
    font-weight: 600; font-size: 11px;
    color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.3px;
  }
}

/* ----------------------------------------------------------
   COMPARE VIEW
---------------------------------------------------------- */
.compare-intro { font-size: 14px; margin-bottom: 20px; }
.compare-selectors {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.compare-selectors select {
  flex: 1; min-width: 160px;
  padding: 10px 14px; font-size: 13px; font-family: var(--sans);
  border: 1.5px solid var(--border-2); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.vs-label { font-weight: 700; color: var(--ink-4); flex-shrink: 0; font-size: 13px; }
.secondary-btn {
  padding: 9px 16px; font-size: 13px; font-family: var(--sans); font-weight: 500;
  border: 1.5px solid var(--border-2); border-radius: var(--radius);
  background: var(--white); color: var(--ink-3); cursor: pointer; flex-shrink: 0;
  transition: all 0.15s;
}
.secondary-btn:hover { background: var(--marble-2); }
.compare-placeholder {
  text-align: center; padding: 64px 20px;
  color: var(--ink-4); font-size: 14px;
  border: 1.5px dashed var(--border-2); border-radius: var(--radius-lg);
  background: var(--marble);
}
.compare-radar-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 20px;
  height: 360px; position: relative;
  box-shadow: var(--shadow-sm);
}
#compare-radar-chart { width: 100% !important; height: 100% !important; }
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px; position: relative;
  box-shadow: var(--shadow-sm);
}
.compare-card.compare-winner { border: 2px solid var(--aegean-mid); }
.winner-label {
  font-size: 11px; font-weight: 600;
  color: var(--aegean); background: var(--aegean-pale);
  padding: 3px 10px; border-radius: 20px;
  display: inline-block; margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.compare-card h2 { font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.compare-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.compare-total { font-family: var(--serif); font-size: 34px; font-weight: 600; margin-bottom: 16px; }
.compare-total span { font-size: 15px; color: var(--ink-4); }
.cmp-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cmp-dim-label { font-size: 12px; font-weight: 500; color: var(--ink-3); width: 70px; flex-shrink: 0; }
.cmp-bar-track { flex: 1; height: 8px; background: var(--marble-2); border-radius: 4px; overflow: hidden; }
.cmp-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.cmp-dim-val { font-size: 12px; font-weight: 600; width: 28px; text-align: right; color: var(--ink-3); }
.cmp-dim-val.wins { color: var(--ink); }

.compare-add-btn {
  padding: 8px 16px; font-size: 13px; font-family: var(--sans); font-weight: 500;
  border: 1.5px solid var(--aegean-mid);
  color: var(--aegean); background: var(--aegean-pale);
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.15s;
}
.compare-add-btn:hover { background: var(--aegean); color: #fff; }

/* ----------------------------------------------------------
   ISLAND HOPPING
---------------------------------------------------------- */
.hopping-intro { margin-bottom: 24px; font-size: 14px; }
.hopping-pair {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}
.hopping-pair:hover { border-color: var(--aegean-light); }
.hopping-pair-title {
  font-family: var(--serif);
  font-size: 17px; font-weight: 600;
  margin-bottom: 4px; color: var(--ink);
}
.hopping-pair-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.hopping-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hopping-tag {
  font-size: 11px; font-weight: 500;
  padding: 3px 10px;
  background: var(--aegean-pale);
  border-radius: 20px;
  color: var(--aegean);
  letter-spacing: 0.2px;
}

/* ----------------------------------------------------------
   MATCH ME QUIZ
---------------------------------------------------------- */
.match-intro { margin-bottom: 24px; font-size: 14px; }
.quiz-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.quiz-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--marble-3); border: 1px solid var(--border-2);
  transition: background 0.2s;
}
.quiz-dot.done  { background: var(--aegean); border-color: var(--aegean); }
.quiz-dot.current { background: var(--aegean-mid); border-color: var(--aegean-mid); }
.quiz-step-label { font-size: 12px; color: var(--ink-4); margin-left: 6px; }

.quiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px; max-width: 560px;
  box-shadow: var(--shadow-sm);
}
.quiz-question {
  font-family: var(--serif);
  font-size: 18px; font-weight: 600;
  margin-bottom: 20px; color: var(--ink);
  line-height: 1.35;
}
.quiz-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 24px;
}
.quiz-option {
  padding: 13px 16px; font-size: 13px; font-family: var(--sans);
  text-align: left;
  border: 1.5px solid var(--border-2); border-radius: var(--radius);
  background: var(--marble); color: var(--ink);
  cursor: pointer; transition: all 0.15s;
  line-height: 1.4;
}
.quiz-option:hover { background: var(--aegean-pale); border-color: var(--aegean-light); }
.quiz-option.selected {
  background: var(--aegean-pale);
  border-color: var(--aegean); color: var(--aegean); font-weight: 600;
}
.quiz-nav { display: flex; justify-content: space-between; align-items: center; }
.quiz-back-btn, .quiz-next-btn {
  padding: 10px 20px; font-size: 13px; font-family: var(--sans); font-weight: 600;
  border-radius: var(--radius); cursor: pointer; transition: all 0.15s;
}
.quiz-back-btn {
  background: none; border: 1.5px solid var(--border-2); color: var(--ink-3);
}
.quiz-back-btn:hover { background: var(--marble-2); }
.quiz-next-btn { background: var(--aegean); border: none; color: #fff; }
.quiz-next-btn:hover { background: var(--aegean-dark); }
.quiz-next-btn.disabled, .quiz-next-btn:disabled {
  background: var(--marble-3); color: var(--ink-4); cursor: not-allowed;
}
.quiz-results-header { margin-bottom: 20px; }
.quiz-results-title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.quiz-results-sub { font-size: 13px; color: var(--ink-3); }
.result-island-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px; margin-bottom: 10px;
  cursor: pointer; transition: border-color 0.15s;
  box-shadow: var(--shadow-sm);
}
.result-island-card:hover { border-color: var(--aegean-mid); }
.result-rank {
  font-family: var(--serif);
  font-size: 24px; font-weight: 600;
  color: var(--aegean); width: 32px; flex-shrink: 0;
}
.result-info { flex: 1; }
.result-name {
  font-family: var(--serif);
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.result-why { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.result-score { font-family: var(--serif); font-size: 24px; font-weight: 600; flex-shrink: 0; }
.quiz-retake-row { margin-top: 24px; text-align: center; }
.quiz-retake-btn {
  padding: 10px 24px; font-size: 13px; font-family: var(--sans); font-weight: 500;
  border: 1.5px solid var(--border-2); border-radius: var(--radius);
  background: var(--white); color: var(--ink-3); cursor: pointer;
}
.quiz-retake-btn:hover { background: var(--marble-2); }

/* ----------------------------------------------------------
   ISLAND DETAIL
---------------------------------------------------------- */
.detail-container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.detail-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.detail-header h1 { font-family: var(--serif); margin: 0; }
.back-btn {
  padding: 8px 16px; font-size: 13px; font-family: var(--sans); font-weight: 500;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--white); color: var(--ink-3); cursor: pointer; flex-shrink: 0;
  transition: all 0.15s;
}
.back-btn:hover { background: var(--marble-2); }
.island-meta-pill {
  font-size: 12px; font-weight: 500;
  padding: 4px 12px; background: var(--marble-2);
  border-radius: 20px; color: var(--ink-3);
  letter-spacing: 0.2px;
}
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
#island-mini-map {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.island-guide-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.island-guide-box h3 { font-family: var(--serif); margin-bottom: 10px; }
.sidebar-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h3 {
  font-family: var(--serif); font-size: 13px;
  margin-bottom: 14px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rating-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rating-label { font-size: 12px; font-weight: 500; color: var(--ink-3); width: 110px; flex-shrink: 0; }
.stars-outer { flex: 1; height: 8px; background: var(--marble-2); border-radius: 4px; overflow: hidden; }
.stars-inner { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.rating-val { font-size: 12px; font-weight: 600; width: 28px; text-align: right; }
.stat-line {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.stat-line:last-child { border-bottom: none; }
.stat-line span { color: var(--ink-3); }

/* ----------------------------------------------------------
   ★  WHY THIS EXISTS PAGE  (full redesign)
---------------------------------------------------------- */

/* Hero — deep Aegean with geometric decoration */
.why-hero {
  background: var(--aegean);
  padding: 56px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.why-hero-geometry {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0.06;
}
.why-hero-logo-wrap {
  width: 96px;        /* big logo on Why page */
  height: 96px;
  margin: 0 auto 24px;
  position: relative;
}
.why-hero-logo-wrap img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  padding: 8px;
  display: block;
}
.why-hero h1 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 600;
  color: #fff; margin-bottom: 12px;
}
.why-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  max-width: 500px; margin: 0 auto;
  line-height: 1.65;
}

/* Body */
.why-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.why-lead {
  font-family: var(--serif);
  font-size: 18px; color: var(--ink-2);
  text-align: center; margin-bottom: 36px;
  line-height: 1.65;
}

/* Stats strip */
.why-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 40px;
}
.why-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px; text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.why-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.why-stat-card.accent-aegean::before { background: var(--aegean); }
.why-stat-card.accent-gold::before   { background: var(--gold); }
.why-stat-card.accent-terra::before  { background: var(--terracotta); }
.why-stat-num {
  font-family: var(--serif);
  font-size: 36px; font-weight: 600;
  color: var(--aegean); line-height: 1; margin-bottom: 6px;
}
.why-stat-lbl {
  font-size: 12px; font-weight: 600;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.5px;
}

/* Section divider */
.why-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 36px 0 28px; color: var(--ink-4);
}
.why-divider::before, .why-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.why-divider span {
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}

/* Philosophy row */
.why-philosophy {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.phil-step {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.phil-step:last-child { border-right: none; }
.phil-icon-line {
  width: 36px; height: 3px;
  border-radius: 2px; margin: 0 auto 14px;
}
.phil-label {
  font-family: var(--serif);
  font-size: 15px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.phil-desc { font-size: 12px; color: var(--ink-3); line-height: 1.55; }

/* Feature cards */
.why-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 36px;
}
.why-feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.why-feat-card:hover {
  border-color: var(--aegean-light);
  box-shadow: var(--shadow);
}
.why-feat-num {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--serif); font-size: 40px; font-weight: 600;
  color: var(--marble-2); line-height: 1; pointer-events: none;
}
html.dark .why-feat-num { color: var(--marble-3); }
.why-feat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 14px;
}
.why-feat-icon.i-aegean { background: var(--aegean-pale); }
.why-feat-icon.i-gold   { background: var(--gold-pale); }
.why-feat-icon.i-terra  { background: var(--terra-pale); }
.why-feat-icon.i-olive  { background: var(--olive-pale); }
.why-feat-card h3 {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  margin-bottom: 8px; color: var(--ink);
}
.why-feat-card p { font-size: 13px; color: var(--ink-3); line-height: 1.65; margin: 0; }

/* Manifesto block */
.why-manifesto {
  background: var(--aegean);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  position: relative; overflow: hidden;
}
.why-manifesto h2 {
  font-family: var(--serif); font-size: 22px;
  color: #fff; margin-bottom: 12px;
}
.why-manifesto p {
  font-size: 14px; color: rgba(255,255,255,0.8);
  line-height: 1.7; margin: 0 auto 6px; max-width: 520px;
}
.why-manifesto .why-kicker {
  font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--gold-light);
  margin-top: 14px; display: block;
}

/* ----------------------------------------------------------
   MISSION PAGE (old layout — keep working)
---------------------------------------------------------- */
.mission-wrapper { max-width: 700px; margin: 0 auto; }
.mission-big-logo { width: 80px; display: block; margin-bottom: 16px; }
.mission-lead { font-family: var(--serif); font-size: 17px; color: var(--ink-2); margin-bottom: 8px; font-weight: 600; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.mission-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
}
.mission-card h3 { font-family: var(--serif); margin-bottom: 6px; }
.mission-card p  { font-size: 13px; margin: 0; }
.the-point-highlight {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.the-point-highlight h2 { font-family: var(--serif); margin-bottom: 10px; }
.final-word { font-style: italic; font-weight: 600; color: var(--aegean); }

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
#site-footer {
  text-align: center; padding: 20px;
  font-size: 12px; color: var(--ink-4);
  border-top: 1px solid var(--border);
  background: var(--white); margin-top: 48px;
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */
@media (max-width: 860px) {
  .top-nav { display: none; }
  .top-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: var(--aegean); border-bottom: 1px solid var(--aegean-dark);
    padding: 12px; gap: 4px; z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .top-nav.open a { padding: 11px 16px; font-size: 14px; color: rgba(255,255,255,0.8); }
  .top-nav.open a:hover, .top-nav.open a.active { background: rgba(255,255,255,0.15); color: #fff; }
  .menu-toggle { display: flex; }
  .detail-grid     { grid-template-columns: 1fr; }
  .compare-cards   { grid-template-columns: 1fr; }
  .why-features    { grid-template-columns: 1fr; }
  .why-philosophy  { grid-template-columns: 1fr 1fr; }
  .phil-step       { border-right: none; border-bottom: 1px solid var(--border); }
  .phil-step:nth-child(odd) { border-right: 1px solid var(--border); }
  .quiz-options    { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  #main-map { min-height: 300px; }
  .compare-selectors { flex-direction: column; }
  .compare-selectors select { width: 100%; }
  .why-stats       { grid-template-columns: 1fr; }
  .why-philosophy  { grid-template-columns: 1fr; }
  .phil-step       { border-right: none; }
  .phil-step:nth-child(odd) { border-right: none; }
  #brand-text { font-size: 16px; }
  #site-logo { width: 40px; height: 40px; }
  .why-hero h1 { font-size: 24px; }
  .mission-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ITINERARY PAGE — Lesvos (and future island pages)
============================================================ */
.itin-wrapper { max-width: 1000px; margin: 0 auto; padding: 0 0 60px; }

.itin-hero {
  background: var(--aegean);
  padding: 36px 28px 40px;
  margin-bottom: 0;
}
.itin-title {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600;
  color: #fff; margin-bottom: 8px;
}
.itin-subtitle {
  font-size: 14px; color: rgba(255,255,255,0.78);
  max-width: 580px; line-height: 1.65; margin: 0;
}

.itin-map-wrap {
  position: relative;
  margin-bottom: 28px;
}
#itin-map {
  height: 480px;
  width: 100%;
  background: var(--aegean-pale);
}
.itin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
}
.itin-legend-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
}
.itin-legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%; flex-shrink: 0;
}

.itin-days { padding: 0 24px; }

.itin-day-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.itin-day-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--marble);
  border-bottom: 1px solid var(--border);
}
.itin-day-label {
  font-family: var(--serif);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  flex-shrink: 0;
}
.itin-day-title {
  font-family: var(--serif);
  font-size: 16px; font-weight: 600;
  color: var(--ink);
}
.itin-stops { padding: 8px 0; }
.itin-stop {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.itin-stop:last-child { border-bottom: none; }
.itin-stop:hover { background: var(--marble); }
.itin-stop-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0; margin-top: 1px;
}
.itin-stop-content { flex: 1; }
.itin-stop-name {
  font-family: var(--serif);
  font-size: 15px; font-weight: 600;
  color: var(--ink); margin-bottom: 3px;
}
.itin-stop-desc {
  font-size: 13px; color: var(--ink-3); line-height: 1.55;
}

@media (max-width: 600px) {
  #itin-map { height: 320px; }
  .itin-hero { padding: 24px 16px 28px; }
  .itin-days { padding: 0 12px; }
  .itin-title { font-size: 20px; }
}

.itin-day-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.itin-day-btn {
  padding: 6px 14px;
  font-size: 12px; font-weight: 600; font-family: var(--sans);
  border: 1.5px solid;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  opacity: 0.6;
}
.itin-day-btn.active {
  opacity: 1;
  color: #fff !important;
  filter: none;
}
.itin-day-btn:hover { opacity: 1; }

.itin-stop-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.25);
  text-underline-offset: 2px;
}
.itin-stop-link:hover { text-decoration-color: currentColor; }

.itin-beaches-section {
  margin: 32px 24px 0;
}
.itin-beaches-header {
  margin-bottom: 20px;
}
.itin-beaches-title {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.itin-beaches-sub {
  font-size: 13px; color: var(--ink-3); margin: 0;
}
.itin-beaches-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.beach-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}
.beach-card:hover { border-color: var(--aegean-light); }
.beach-photo-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--marble-2);
}
.beach-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.beach-card:hover .beach-photo { transform: scale(1.03); }
.beach-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--border-2);
  background: var(--marble-2);
}
.beach-card-body {
  padding: 16px 20px 18px;
}
.beach-rank-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.beach-rank {
  font-family: var(--serif);
  font-size: 28px; font-weight: 600;
  color: var(--aegean-light);
  flex-shrink: 0; width: 32px;
}
.beach-name-stars { flex: 1; }
.beach-stars {
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-top: 2px;
}
.beach-name {
  font-family: var(--serif);
  font-size: 17px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.beach-name-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.2);
  text-underline-offset: 2px;
}
.beach-name-link:hover { color: var(--aegean); text-decoration-color: var(--aegean); }
.beach-desc {
  font-size: 13px; color: var(--ink-3);
  line-height: 1.65; margin: 0 0 12px;
}
.beach-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.beach-spec {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.beach-spec-full {
  grid-column: 1 / -1;
}
.beach-spec-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--ink-4);
}
.beach-spec-val {
  font-size: 12px; color: var(--ink-2);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .beach-card { flex-direction: column; gap: 8px; }
  .beach-rank { font-size: 20px; }
  .beach-specs { grid-template-columns: 1fr; }
  .itin-beaches-section { margin: 24px 12px 0; }
  .itin-day-filter { padding: 10px 12px; gap: 6px; }
  .itin-day-btn { font-size: 11px; padding: 5px 10px; }
}

/* Itinerary day header extras */
.itin-day-header {
  flex-wrap: wrap;
  gap: 8px;
}
.itin-day-header-main {
  display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap;
}
.itin-day-meta {
  font-size: 11px; font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.2px;
  margin-left: auto;
}
.itin-overnight {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border: 1.5px solid;
  border-radius: 20px;
  background: var(--white);
  white-space: nowrap;
}
.itin-stop-name-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 3px; flex-wrap: wrap;
}
.itin-stop-time {
  font-size: 11px; font-weight: 600;
  color: var(--ink-4);
  background: var(--marble-2);
  padding: 1px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ============================================================
   HERO BANNER
============================================================ */
.hero-banner {
  background: linear-gradient(135deg, #0B8FAC 0%, #076880 60%, #E8522A 100%);
  padding: 18px 24px;
  border-bottom: none;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  overflow: hidden;
  max-height: 120px;
  flex-shrink: 0;
}
.hero-banner.dismissed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 200px; }
.hero-title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  color: #fff; margin: 0 0 4px;
  line-height: 1.2;
}
.hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin: 0; line-height: 1.5;
}
.hero-stats {
  display: flex; gap: 20px; flex-shrink: 0;
}
.hero-stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 1px;
}
.hero-stat-num {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  color: #fff; line-height: 1;
}
.hero-stat-lbl {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap;
}
.hero-dismiss {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600; font-family: var(--sans);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.hero-dismiss:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* MAP LEGEND */
.map-legend {
  position: absolute;
  bottom: 28px; right: 10px;
  z-index: 400;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  min-width: 160px;
}
.map-legend-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.map-legend-row:last-of-type { margin-bottom: 8px; }
.map-legend-dot {
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.map-legend-hint {
  font-size: 11px; color: var(--ink-4);
  border-top: 1px solid var(--border);
  padding-top: 7px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .hero-banner { padding: 12px 16px; max-height: 160px; }
  .hero-title { font-size: 16px; }
  .hero-stats { gap: 14px; }
  .hero-stat-num { font-size: 18px; }
  .map-legend { bottom: 20px; right: 8px; min-width: 140px; }
}

/* Mobile filter and hero fixes */
@media (max-width: 600px) {
  .search-container { padding: 8px 12px 10px; }
  .filter-section { gap: 6px; margin-bottom: 7px; }
  .filter-label { min-width: 75px; font-size: 10px; }
  .hero-banner {
    background: #0B8FAC !important;
    max-height: 180px;
  }
  .hero-content { gap: 10px; }
  .hero-stats { display: none; }
  .hero-text { min-width: 0; }
  .hero-title { font-size: 15px; }
  .hero-sub { font-size: 12px; }
  .map-legend { display: none; }
}

/* Share button */
.share-btn {
  padding: 8px 16px; font-size: 13px; font-family: var(--sans); font-weight: 600;
  border: 1.5px solid var(--aegean-mid);
  color: var(--aegean); background: var(--aegean-pale);
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.15s;
}
.share-btn:hover { background: var(--aegean); color: #fff; }

/* Table stars & bars */
.star-rating {
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.table-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}
.table-bar-fill {
  height: 6px;
  border-radius: 3px;
  flex-shrink: 0;
  opacity: 0.75;
}
.table-bar-label {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Beach community voting */
.beach-ratings-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 4px;
}
.beach-rating-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.beach-rating-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-4);
}
.beach-vote-count {
  font-weight: 400;
  font-size: 10px;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
}
.beach-vote-stars {
  display: flex;
  gap: 2px;
  cursor: pointer;
}
.vote-star {
  font-size: 16px;
  color: var(--border-2);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  user-select: none;
}
.vote-star:hover {
  transform: scale(1.2);
  color: var(--gold);
}
.vote-star.voted {
  color: var(--aegean);
}
@media (max-width: 600px) {
  .beach-ratings-row { gap: 10px; }
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 4px;
}

/* Island hover tooltip */
.island-tooltip {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 10px 14px !important;
  font-family: var(--sans) !important;
}
.island-tooltip::before {
  display: none !important;
}
.leaflet-tooltip-bottom.island-tooltip::before,
.leaflet-tooltip-top.island-tooltip::before {
  border-bottom-color: var(--white) !important;
  border-top-color: var(--white) !important;
}
