/* ─── Variables — Aegean Summer ─────────────────────────────────── */
:root {
  --bg:           #eef5fc;
  --surface:      #ffffff;
  --surface2:     #ddeeff;
  --surface3:     #ccddf5;
  --border:       rgba(30, 136, 229, 0.18);
  --border-hover: rgba(30, 136, 229, 0.40);
  --text:         #0d1b3e;
  --text-sec:     #1a5276;
  --text-muted:   #607d8b;

  /* Mediterranean palette */
  --blue:         #1e88e5;
  --blue-dim:     rgba(30, 136, 229, 0.12);
  --blue-hover:   #1565c0;
  --cyan:         #00acc1;
  --cyan-dim:     rgba(0, 172, 193, 0.14);
  --gold:         #f9a825;
  --gold-dim:     rgba(249, 168, 37, 0.15);
  --olive:        #558b2f;
  --olive-dim:    rgba(85, 139, 47, 0.13);
  --red:          #e53935;

  /* Backward-compat aliases so existing selectors keep working */
  --orange:       #1e88e5;
  --orange-dim:   rgba(30, 136, 229, 0.12);
  --orange-hover: #1565c0;
  --amber:        #f9a825;
  --amber-dim:    rgba(249, 168, 37, 0.15);
  --lime:         #558b2f;
  --lime-dim:     rgba(85, 139, 47, 0.13);
  --yellow:       #f9a825;
  --yellow-dim:   rgba(249, 168, 37, 0.15);
  --teal:         #00acc1;
  --teal-dim:     rgba(0, 172, 193, 0.14);

  /* Semantic aliases */
  --accent:       var(--blue);
  --accent-dim:   var(--blue-dim);
  --accent-hover: var(--blue-hover);
  --success:      var(--olive);
  --success-dim:  var(--olive-dim);
  --warning:      var(--gold);
  --danger:       var(--red);
  --danger-dim:   rgba(229, 57, 53, 0.12);

  /* Layout */
  --radius:       16px;
  --radius-sm:    10px;
  --sidebar-w:    480px;
  --header-h:     64px;
  --geo-strip-h:  44px;
  --steps-h:      52px;
  --footer-h:     44px;
  --transition:   0.15s ease;
  --cshadow:      3px 3px 0 rgba(30, 136, 229, 0.13);
}

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

/* ─── Settings Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 50, 100, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.modal-box {
  background: var(--surface);
  border: 2px solid var(--border-hover);
  border-radius: 24px;
  width: 440px;
  max-width: 95vw;
  box-shadow: 0 24px 60px rgba(30, 136, 229, 0.18), 0 6px 20px rgba(0, 0, 0, 0.12);
}

.modal-header {
  padding: 30px 30px 22px;
  text-align: center;
  border-bottom: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(30, 136, 229, 0.08) 0%, transparent 100%);
  border-radius: 22px 22px 0 0;
}

.modal-logo {
  font-size: 52px;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(74, 159, 226, 0.55));
}

.modal-header h2 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-header p { color: var(--text-sec); font-size: 13px; font-weight: 600; }

.modal-body {
  padding: 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer { padding: 14px 30px 26px; }

/* ─── T&C Modal ─────────────────────────────────────────────────── */
.tc-modal-box {
  width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.tc-modal-header {
  position: relative;
}

.tc-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface3);
  border: 2px solid var(--border);
  color: var(--text-sec);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.tc-close-btn:hover { background: var(--surface); border-color: var(--border-hover); color: var(--text); }

.tc-modal-body {
  padding: 20px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.tc-modal-body::-webkit-scrollbar { width: 5px; }
.tc-modal-body::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

.tc-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.tc-section:last-child { border-bottom: none; }

.tc-section h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.tc-section p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 6px;
}
.tc-section p:last-child { margin-bottom: 0; }
.tc-section strong { color: var(--text); }

.tc-section-highlight {
  background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, rgba(74,159,226,0.04) 100%);
  border-radius: 10px;
  padding: 14px 14px;
  border: 1px solid rgba(245,166,35,0.2) !important;
  margin: 4px 0;
}

.tc-partners-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tc-partners-list li {
  font-size: 13px;
  color: var(--text-sec);
  padding: 5px 10px;
  background: rgba(30, 136, 229, 0.04);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}
.tc-partners-list li strong { color: var(--text); }

.tc-modal-footer { padding: 14px 28px 24px; }

/* ─── Header actions group ──────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; }

.model-list {
  margin-top: 6px;
  min-height: 18px;
  font-size: 12px;
  color: var(--text-sec);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.model-tag {
  background: var(--surface3);
  border: 2px solid var(--border-hover);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: all var(--transition);
}
.model-tag:hover { background: var(--blue-dim); border-color: var(--blue); color: var(--blue); }

/* ─── App Layout ────────────────────────────────────────────────── */
.hidden { display: none !important; }

.app-header {
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(30, 136, 229, 0.08);
}

.header-left { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-title-group { display: flex; flex-direction: column; gap: 1px; }
.header-tagline {
  font-size: 10px;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1.2;
}

/* ─── Language Picker ───────────────────────────────────────────── */
.lang-picker {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
}

.lang-btn:hover:not(.active) {
  background: var(--surface2);
  color: var(--text);
}

.header-logo {
  font-size: 30px;
  animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.app-header h1 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: unset;
}

.header-badge {
  background: linear-gradient(90deg, var(--blue), var(--gold));
  color: #fff;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.app-body {
  display: flex;
  height: calc(100vh - var(--header-h) - var(--geo-strip-h) - var(--steps-h) - var(--footer-h));
}

/* ─── Steps Bar ─────────────────────────────────────────────────── */
.steps-bar {
  height: var(--steps-h);
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.08);
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid transparent;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: default;
  transition: all var(--transition);
  user-select: none;
}
.step-pill.active {
  background: linear-gradient(90deg, var(--blue-dim), var(--gold-dim));
  border-color: var(--blue);
  color: var(--blue);
}
.step-pill.done {
  color: var(--olive);
  cursor: default;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e3f2fd;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.step-pill.active .step-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-pill.done   .step-num { background: var(--olive); border-color: var(--olive); color: #fff; }

.step-label { font-size: 12px; font-weight: 800; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 16px;
  max-width: 50px;
  transition: background 0.3s;
}
.step-line.done { background: var(--olive); }

/* ─── Wizard Panel ──────────────────────────────────────────────── */
.wiz-panel {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg);
  border-right: 3px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wiz-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}

.wiz-scroll::-webkit-scrollbar { width: 6px; }
.wiz-scroll::-webkit-scrollbar-track { background: transparent; }
.wiz-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue), var(--gold));
  border-radius: 3px;
}

/* ─── Step Content ──────────────────────────────────────────────── */
.step-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Wizard Nav ────────────────────────────────────────────────── */
.wiz-nav {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.wiz-nav .btn-secondary { flex-shrink: 0; padding: 10px 14px; }
.wiz-nav .btn-primary   { flex: 1; }

/* ─── Review Step ───────────────────────────────────────────────── */
.review-section { margin-bottom: 12px; }
.review-section:last-child { margin-bottom: 0; }

.slabel {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-sec);
  margin-bottom: 2px;
}

.review-chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sec);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  font-family: inherit;
}

.review-route {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.review-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.review-via {
  font-size: 10px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 6px;
}

.review-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sec);
}
.review-item.full { grid-column: span 2; }
.review-icon { font-size: 14px; flex-shrink: 0; }

/* ─── New Trip row ──────────────────────────────────────────────── */
.new-trip-row {
  flex-shrink: 0;
  padding: 10px 12px;
  border-top: 2px solid var(--border);
  background: #f4f9ff;
  display: flex;
  gap: 8px;
}

/* ─── Results Mode (step 4 fills the panel, no outer scroll) ────── */
.wiz-scroll.results-mode {
  overflow: hidden;
  padding: 0;
}
.wiz-scroll.results-mode #step-4 {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ─── Result Tabs ───────────────────────────────────────────────── */
#result-tabs-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
#result-tabs-wrap.hidden { display: none !important; }

.res-tabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 2px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.res-tabs::-webkit-scrollbar { display: none; }

.res-tab {
  flex: 1;
  min-width: 52px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 4px 7px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all var(--transition);
  user-select: none;
}
.res-tab:hover { color: var(--text-sec); background: rgba(30,136,229,0.06); }
.res-tab.on {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: linear-gradient(180deg, var(--blue-dim) 0%, transparent 100%);
}

.res-ico { font-size: 17px; line-height: 1; }
.res-lbl { line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.res-panels {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.res-panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.res-panel::-webkit-scrollbar { width: 5px; }
.res-panel::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
.res-panel.active { display: flex; }

/* ─── Discover panel (merged Must See + Excursions) ────────────── */
.discover-panel {
  overflow: hidden;
  padding: 0;
  gap: 0;
}

.discover-subtabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
  padding: 0 14px;
  gap: 4px;
}

.discover-subtab {
  position: relative;
  padding: 10px 16px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all var(--transition);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.discover-subtab:hover { color: var(--text-sec); }
.plans-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  background: var(--gold);
  color: #000;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  margin-left: 3px;
}
.plans-badge.hidden { display: none; }

.discover-subpanel {
  display: none;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.discover-subpanel::-webkit-scrollbar { width: 5px; }
.discover-subpanel::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
.discover-subpanel.active { display: flex; }

/* ─── Panel Cards ───────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--cshadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.panel:hover { box-shadow: 5px 5px 0 rgba(30, 136, 229, 0.18); }

.panel-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #1565c0;
  margin-bottom: 14px;
}

.tab-total-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.tab-total-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.tab-total-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

/* ─── From / home-city toggle ───────────────────────────────────── */
.from-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}

.home-toggle-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: color var(--transition);
}

.home-toggle input[type="checkbox"] { display: none; }

.home-toggle-dot {
  width: 28px;
  height: 15px;
  border-radius: 8px;
  background: var(--surface3);
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.home-toggle-dot::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: left var(--transition), background var(--transition);
}

.home-toggle:has(input:checked) .home-toggle-text { color: #1565c0; }
.home-toggle:has(input:checked) .home-toggle-dot  { background: var(--blue-dim); border-color: #1565c0; }
.home-toggle:has(input:checked) .home-toggle-dot::after { left: 15px; background: #1565c0; }

/* ─── Form Elements ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.form-group:last-child { margin-bottom: 0; }

label {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.required { color: var(--danger); }

input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
select {
  background: var(--surface3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

input:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim), 3px 3px 0 rgba(0, 0, 0, 0.3);
}

input::placeholder { color: var(--text-muted); font-weight: 400; }
select option { background: var(--surface3); }

small { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
small a { color: var(--gold); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

/* ─── Location Inputs ───────────────────────────────────────────── */
.loc-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.loc-dot {
  position: absolute;
  left: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.dot-green {
  background: #1565c0;
  box-shadow: 0 0 8px #1565c0, 0 0 16px rgba(21, 101, 192, 0.35);
}
.dot-red {
  background: #1565c0;
  box-shadow: 0 0 8px #1565c0, 0 0 16px rgba(21, 101, 192, 0.35);
}

.loc-input { padding-left: 30px !important; }

/* ─── Stops ─────────────────────────────────────────────────────── */
.stops-section { margin-bottom: 12px; }
.stops-section > label { display: block; margin-bottom: 7px; }

#stops-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.stop-item { display: flex; flex-direction: column; gap: 4px; }
.stop-main-row { display: flex; align-items: center; gap: 6px; }
.stop-main-row .loc-wrap { flex: 1; }
.stop-include-toggle { padding-left: 2px; }

.stop-number {
  position: absolute;
  left: 8px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  z-index: 1;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.btn-remove-stop {
  background: var(--surface3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sec);
  width: 32px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.btn-remove-stop:hover {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1a4bbf);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #0f2d7a, 0 7px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
  letter-spacing: 0.3px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #0f2d7a, 0 9px 0 rgba(0, 0, 0, 0.3);
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #0f2d7a, 0 2px 0 rgba(0, 0, 0, 0.3);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 3px 0 #0a1e5a;
}

.btn-secondary {
  background: var(--surface3);
  color: var(--text);
  border: 2px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}
.btn-secondary:hover {
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  background: none;
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--blue);
  padding: 8px 12px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
}
.btn-ghost:hover {
  background: var(--blue-dim);
  border-color: var(--blue);
  border-style: solid;
  transform: translateY(-1px);
}

.btn-full { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 12px; white-space: nowrap; }

.btn-popular-trips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: none;
  border-radius: 100px;
  padding: 8px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.btn-popular-trips:hover {
  opacity: 0.87;
}

.btn-icon-round {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-icon-round:hover {
  background: var(--surface2);
  border-color: rgba(30, 136, 229, 0.35);
  transform: rotate(20deg) translateY(-1px);
}

/* ─── Loading ───────────────────────────────────────────────────── */
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.loading-content p {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sec);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddeeff;
  border-top-color: var(--blue);
  border-right-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.text-muted { color: var(--text-muted) !important; font-style: italic; }

/* ─── Vignette Cards ────────────────────────────────────────────── */
.vignette-list { display: flex; flex-direction: column; gap: 8px; }

.vignette-card {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 2px solid var(--border);
  box-shadow: var(--cshadow);
}

.vignette-card.required {
  border-color: rgba(168, 204, 68, 0.30);
  background: rgba(168, 204, 68, 0.04);
}

.vignette-card.not-required { background: var(--surface3); opacity: 0.65; }

.vignette-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.vignette-country { font-weight: 800; font-size: 13px; flex: 1; }

.vignette-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--olive-dim);
  color: var(--olive);
  border: 2px solid rgba(168, 204, 68, 0.30);
}

.vignette-card.not-required .vignette-badge {
  background: var(--surface3);
  color: var(--text-muted);
  border-color: var(--border);
}

.vignette-price { font-weight: 900; color: var(--gold); font-size: 13px; }
.vignette-detail { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ─── Toll Sections (multi-leg) ─────────────────────────────────── */
.toll-section { margin-bottom: 14px; }
.toll-section:last-child { margin-bottom: 0; }
.toll-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  background: var(--blue-dim, #e8f1fb);
  border-left: 3px solid var(--blue, #1e88e5);
  border-radius: 4px;
}
.toll-section-label { font-size: 11px; font-weight: 800; color: var(--blue, #1e88e5); flex: 1; }
.toll-section-total { font-size: 12px; font-weight: 900; color: var(--gold, #f9a825); white-space: nowrap; }
.toll-rt-note { font-size: 10px; font-weight: 600; color: var(--text-sec); }

/* ─── Road Cost Items ───────────────────────────────────────────── */
.road-cost-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(30, 136, 229, 0.08);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.road-cost-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30, 136, 229, 0.14); }
.road-cost-item.selected { border-color: var(--blue); background: var(--blue-dim); box-shadow: 0 4px 16px rgba(30, 136, 229, 0.18); }
.road-cost-item.selected .road-cost-price { color: var(--gold); }
.road-cost-item:last-child { margin-bottom: 0; }

.road-cost-header { display: flex; align-items: center; gap: 8px; }
.road-cost-country { font-weight: 800; font-size: 13px; flex: 1; }
.road-cost-badge { font-size: 11px; font-weight: 700; color: var(--text-sec); white-space: nowrap; }
.road-cost-price { font-weight: 900; color: var(--gold); font-size: 14px; white-space: nowrap; }
.road-cost-detail { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }

.no-costs-msg {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 0;
}

/* ─── Ferry Items ────────────────────────────────────────────────── */
.ferry-item {
  background: white;
  border: 2px solid rgba(0, 200, 232, 0.20);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(30, 136, 229, 0.08);
  transition: box-shadow var(--transition), transform var(--transition);
}
.ferry-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30, 136, 229, 0.14); }
.ferry-item:last-child { margin-bottom: 0; }

.ferry-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ferry-route { font-weight: 800; font-size: 13px; flex: 1; color: var(--text); }
.ferry-price { font-weight: 900; color: var(--cyan); font-size: 14px; white-space: nowrap; }

.ferry-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.ferry-price-from { font-size: 12px; font-weight: 800; color: var(--cyan); }
.ferry-duration   { font-size: 11px; font-weight: 700; color: var(--text-muted); }

.ferry-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding: 7px 12px;
  background: var(--cyan-dim);
  border: 2px solid rgba(0, 200, 232, 0.30);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background var(--transition), border-color var(--transition);
}
.ferry-book-btn:hover {
  background: rgba(0, 200, 232, 0.25);
  border-color: rgba(0, 200, 232, 0.55);
}

/* ─── Day Trip Excursions ────────────────────────────────────────── */
.nearby-excursion {
  background: white;
  border: 2px solid rgba(30, 136, 229, 0.20);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(30, 136, 229, 0.10);
}
.nearby-excursion:last-child { margin-bottom: 0; }

.nearby-exc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.nearby-exc-name   { font-weight: 800; font-size: 13px; flex: 1; color: var(--text); }
.nearby-exc-from   { font-size: 11px; font-weight: 700; color: var(--text-muted); }

.btn-remove-exc {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.btn-remove-exc:hover { color: var(--danger); }

.nearby-exc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.nearby-exc-calc   { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }

.exc-fee {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sec);
  margin-bottom: 8px;
}
.exc-fee.free { color: var(--olive); }
.exc-fee-pp    { color: var(--gold); font-weight: 800; }
.exc-fee-total { color: var(--gold); font-weight: 900; }

.nearby-exc-distances {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}
.exc-leg { display: flex; flex-direction: column; gap: 2px; }
.exc-leg-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.exc-leg-dist  { font-size: 13px; font-weight: 800; color: var(--blue); }
.exc-leg-off .exc-leg-label,
.exc-leg-off .exc-leg-dist { color: var(--text-muted); text-decoration: line-through; opacity: 0.5; }

.exc-return-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sec);
  cursor: pointer;
  margin-bottom: 7px;
  user-select: none;
}
.exc-return-toggle input[type="checkbox"] { accent-color: var(--blue); width: 13px; height: 13px; cursor: pointer; }

.nearby-exc-fuel { font-size: 11px; font-weight: 700; color: var(--text-sec); margin-bottom: 8px; }

.btn-day-route {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: var(--blue-dim);
  border: 2px solid rgba(30, 136, 229, 0.30);
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background var(--transition), border-color var(--transition);
}
.btn-day-route:hover   { background: rgba(30, 136, 229, 0.20); border-color: rgba(30, 136, 229, 0.55); }
.btn-day-route.active  { background: rgba(30, 136, 229, 0.25); border-color: var(--blue); }

/* ─── Date input ─────────────────────────────────────────────────── */
input[type="date"] { color-scheme: light; }

.label-muted {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ─── Fuel Section Separator ────────────────────────────────────── */
.fuel-section-sep {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 10px 0 6px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.fuel-seg-note {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ─── Fuel Breakdown ────────────────────────────────────────────── */
.fuel-row {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  margin-bottom: 7px;
  box-shadow: 0 2px 10px rgba(30, 136, 229, 0.08);
}
.fuel-row:last-child { margin-bottom: 0; }

.fuel-segment {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 7px;
}

.fuel-stats {
  display: flex;
  gap: 6px;
}

.fuel-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  background: var(--surface2);
  border-radius: 6px;
  padding: 5px 4px;
}

.fs-label {
  font-size: 9px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.fs-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-sec);
}

.fs-cost { color: var(--gold) !important; }

/* ─── AI Suggestion Cards ───────────────────────────────────────── */
#must-see-list, #must-try-list, #events-main-list { display: flex; flex-direction: column; gap: 12px; }

.stop-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(30, 136, 229, 0.08);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stop-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30, 136, 229, 0.14); }

.stop-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: linear-gradient(90deg, rgba(30, 136, 229, 0.10), rgba(249, 168, 37, 0.08));
  border-bottom: 2px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.stop-card.collapsed .stop-card-header { border-bottom: none; }

.stop-card-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stop-chevron {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}
.stop-card.collapsed .stop-chevron { transform: rotate(-90deg); }

.stop-card-body { overflow: hidden; }
.stop-card.collapsed .stop-card-body { display: none; }

.stop-card-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.days-badge {
  background: linear-gradient(90deg, var(--gold), #b07800);
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.stop-section { padding: 10px 14px 0; }
.stop-section:last-of-type { padding-bottom: 10px; }

.section-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.section-hint {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-style: italic;
}

.attraction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.attraction-list li {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  display: flex;
  gap: 7px;
  align-items: center;
}

.item-name { flex: 1; min-width: 0; }

.item-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 2px;
}

.item-rating {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.item-cost {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

.item-cost.free {
  color: var(--olive);
  background: var(--olive-dim);
  border-color: rgba(168, 204, 68, 0.25);
}

.item-cost.unknown {
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

a.item-cost-link {
  text-decoration: none;
  cursor: pointer;
}
a.item-cost-link:hover {
  background: rgba(245, 166, 35, 0.25);
  border-color: rgba(245, 166, 35, 0.5);
  text-decoration: underline;
}

.stop-tips {
  margin: 8px 14px 10px;
  padding: 9px 11px;
  background: rgba(245, 166, 35, 0.07);
  border: 2px solid rgba(245, 166, 35, 0.22);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sec);
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.gyg-row {
  padding: 8px 14px 12px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

.gyg-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 85, 51, 0.10);
  border: 2px solid rgba(255, 85, 51, 0.30);
  border-radius: var(--radius-sm);
  color: #ff7055;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background var(--transition), border-color var(--transition);
}
.gyg-btn:hover {
  background: rgba(255, 85, 51, 0.20);
  border-color: rgba(255, 85, 51, 0.55);
}
.hh-ticket-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(249, 168, 37, 0.08), rgba(30, 136, 229, 0.06));
  border: 2px solid rgba(249, 168, 37, 0.30);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sec);
}
.hh-ticket-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(245, 166, 35, 0.12);
  border: 2px solid rgba(245, 166, 35, 0.32);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background var(--transition), border-color var(--transition);
}
.hh-ticket-btn:hover {
  background: rgba(249, 168, 37, 0.22);
  border-color: rgba(249, 168, 37, 0.55);
}
.nearby-exc-ferry {
  font-size: 11px;
  color: #1565c0;
  margin-top: 2px;
}

.nearby-exc-tolls {
  font-size: 11px;
  color: #6a3f00;
  margin-top: 2px;
}

.general-tips-card,
.accommodation-card {
  margin-top: 12px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.07);
}

.general-tips-card p {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  line-height: 1.6;
  margin-top: 6px;
}

.step-error {
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 8px 0 4px;
  padding: 8px 12px;
  background: rgba(192, 57, 43, 0.08);
  border-left: 3px solid #c0392b;
  border-radius: 4px;
}
.step-error.hidden { display: none; }

.error-card {
  background: var(--danger-dim);
  border: 2px solid rgba(231, 76, 60, 0.30);
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  line-height: 1.6;
}
.error-card p + p { margin-top: 6px; color: var(--text-muted); }

/* ─── Local Products ────────────────────────────────────────────── */
.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
}

.product-badge {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.product-badge.pdo {
  background: rgba(168, 204, 68, 0.18);
  color: var(--olive);
  border: 1px solid rgba(168, 204, 68, 0.35);
}

.product-badge.pgi {
  background: rgba(0, 200, 232, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 200, 232, 0.30);
}

.product-badge.local {
  background: rgba(245, 166, 35, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 166, 35, 0.30);
}

.product-name {
  font-weight: 800;
  color: var(--text);
}

.product-desc {
  font-size: 11px;
  color: var(--text-muted);
  width: 100%;
  margin-top: 1px;
  line-height: 1.3;
}

/* ─── Events & Festivals ────────────────────────────────────────── */
.events-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 6px;
  padding: 7px 9px;
  background: rgba(30, 136, 229, 0.05);
  border-radius: 7px;
  border: 1px solid rgba(30, 136, 229, 0.14);
}

.event-emoji { font-size: 14px; line-height: 1.3; padding-top: 1px; }
.event-name { font-size: 12px; font-weight: 800; color: var(--text); line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.event-date {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.12);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  align-self: start;
}
.event-desc {
  grid-column: 2 / -1;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ─── Counter Control (people) ──────────────────────────────────── */
.counter-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.counter-btn {
  background: var(--surface2);
  border: 2px solid var(--border-hover);
  border-radius: 6px;
  color: var(--text-sec);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}
.counter-btn:hover {
  background: var(--blue-dim);
  color: var(--blue);
  border-color: var(--blue);
}

.counter-display {
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  color: var(--text-sec);
  min-width: 28px;
  text-align: center;
  flex: 1;
}

/* ─── Vehicle Toggle ────────────────────────────────────────────── */
.vehicle-toggle {
  display: flex;
  gap: 6px;
}

.vehicle-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  background: var(--surface3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sec);
  transition: all var(--transition);
  user-select: none;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  text-align: center;
}

.vehicle-chip input[type="radio"] { display: none; }

.vehicle-chip:has(input:checked) {
  background: linear-gradient(90deg, var(--blue-dim), var(--gold-dim));
  border-color: var(--blue);
  color: var(--text);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.vehicle-chip:hover { border-color: var(--border-hover); background: var(--surface2); }
.vehicle-chip:has(input:checked):hover { background: linear-gradient(90deg, var(--blue-dim), var(--gold-dim)); }

/* ─── Map Area ──────────────────────────────────────────────────── */
.map-area { flex: 1; position: relative; overflow: hidden; }

#map { width: 100%; height: 100%; }

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(196, 226, 248, 0.55) 0%,
    rgba(144, 202, 232, 0.65) 55%,
    rgba(100, 181, 216, 0.72) 100%
  );
  backdrop-filter: blur(3px);
  pointer-events: none;
  overflow: hidden;
}

.map-welcome {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.map-welcome-icon {
  font-size: 68px;
  filter: drop-shadow(0 6px 18px rgba(30, 136, 229, 0.40));
  animation: float 3s ease-in-out infinite;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.map-welcome-card p {
  font-size: 15px;
  font-weight: 700;
  color: #1565c0;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  line-height: 1.55;
  margin: 0 0 10px;
}

.map-error {
  background: white;
  border: 2px solid var(--danger-dim);
  border-radius: var(--radius);
  padding: 22px 30px;
  text-align: center;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 4px 4px 0 rgba(229, 57, 53, 0.15);
}

/* ─── Map Route Badge ───────────────────────────────────────────── */
.map-route-badge {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid var(--border-hover);
  border-radius: 20px;
  padding: 7px 16px;
  z-index: 5;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.22);
  white-space: nowrap;
}
.mrb-label { font-size: 11px; color: var(--text-muted); }
.mrb-stats  { font-size: 13px; font-weight: 700; color: #1565c0; }
.mrb-note   { font-size: 10px; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 10px; }

/* ─── Trip Dates Display ────────────────────────────────────────── */
.trip-dates-display {
  margin: 0 0 10px;
}

/* ─── Fuel Type Badge ───────────────────────────────────────────── */
.fuel-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
  margin: 0 0 12px;
}

/* ─── Stats AI Note ─────────────────────────────────────────────── */
.stats-ai-note {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  font-style: italic;
  text-align: left;
  margin: -10px 0 12px;
  letter-spacing: 0.2px;
}

/* ─── Map Legend ────────────────────────────────────────────────── */
.map-legend {
  position: absolute;
  bottom: 28px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid var(--border-hover);
  border-radius: 14px;
  padding: 10px 14px;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.18);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legend-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sec);
}

.legend-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.legend-border { background: #e74c3c; color: #fff; }
.legend-toll   { background: #f5a623; color: #333; }

/* ─── Google Maps Autocomplete ──────────────────────────────────── */
.pac-container {
  background: white !important;
  border: 2px solid var(--border-hover) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.18) !important;
  margin-top: 2px;
  font-family: 'Nunito', sans-serif !important;
  z-index: 9999 !important;
}

.pac-item {
  color: #1a5276 !important;
  border-top: 1px solid var(--border) !important;
  padding: 7px 12px !important;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.pac-item:hover, .pac-item-selected { background: #e3f2fd !important; }

.pac-item-query {
  color: #0d1b3e !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin-right: 4px;
}

.pac-icon { display: none !important; }

/* ─── Days Control ──────────────────────────────────────────────── */
.days-control { display: flex; align-items: center; gap: 4px; }

.days-btn {
  background: var(--surface2);
  border: 2px solid var(--border-hover);
  border-radius: 6px;
  color: var(--text-sec);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}
.days-btn:hover {
  background: var(--blue-dim);
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.days-input {
  width: 38px !important;
  padding: 2px 4px !important;
  text-align: center;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: var(--gold) !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
.days-input::-webkit-outer-spin-button,
.days-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.days-label { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-left: 1px; }

/* ─── Selectable Place Items ────────────────────────────────────── */
.selectable-item {
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 6px;
  margin: 1px -6px;
  user-select: none;
  transition: all var(--transition);
}

.selectable-item:hover { background: rgba(30, 136, 229, 0.07); }
.selectable-item.item-selected span:last-child { color: var(--gold); }

.item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition);
}

.selectable-item.item-selected .item-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

/* ─── Food Items (Must Try) ─────────────────────────────────────── */
.food-item-plain {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  color: var(--text-sec);
  font-size: 0.88rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(30, 136, 229, 0.10);
}
.food-item-plain:last-child { border-bottom: none; }
.food-item-plain::before {
  content: '•';
  color: var(--gold);
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ─── Panel Title Row (title + inline button) ───────────────────── */
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.panel-title-row .panel-title { margin-bottom: 0; }

.btn-toggle-markers {
  background: var(--surface3);
  border: 2px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  padding: 5px 12px;
  font-size: 11px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}
.btn-toggle-markers:hover {
  border-color: var(--border-hover);
  background: var(--surface2);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}
.btn-toggle-markers.markers-on {
  background: linear-gradient(90deg, var(--blue-dim), var(--gold-dim));
  border-color: var(--blue);
  color: var(--text);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

/* ─── Regenerate Button ─────────────────────────────────────────── */
.regen-btn { margin-top: 12px; }

/* ─── Fullscreen Button ─────────────────────────────────────────── */
.btn-map-fullscreen {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid var(--border-hover);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.20);
  color: #1565c0;
  transition: all var(--transition);
  padding: 0;
}
.btn-map-fullscreen:hover { background: rgba(30, 136, 229, 0.10); border-color: var(--blue); transform: translateY(-1px); }
.btn-map-fullscreen .icon-compress { display: none; }
.btn-map-fullscreen.is-fullscreen .icon-expand { display: none; }
.btn-map-fullscreen.is-fullscreen .icon-compress { display: flex; }

/* ─── Toggle Route Button ───────────────────────────────────────── */
.btn-toggle-route {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid var(--border-hover);
  border-radius: 20px;
  padding: 8px 14px;
  color: #1565c0;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.20);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-toggle-route:hover {
  background: rgba(30, 136, 229, 0.10);
  border-color: var(--blue);
  transform: translateY(-1px);
}
.btn-toggle-route.route-hidden {
  background: var(--blue-dim);
  border-color: var(--blue);
  color: var(--blue-hover);
}

/* ─── Debug: all-tolls button ────────────────────────────────────── */
.btn-debug-tolls { display: none; }

/* ─── Google Maps InfoWindow (toll tooltips) ────────────────────── */
.gm-style-iw-c {
  background: #fff !important;
  padding: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}
.gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}
.gm-style-iw-t::after { background: #fff !important; }
.gm-style-iw-ch,
button.gm-ui-hover-effect { display: none !important; }

/* ─── Accommodation Tier Selector ──────────────────────────────── */
.accom-tier-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.accom-tier-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface3);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.accom-tier-btn:hover { border-color: var(--border-hover); color: var(--text-sec); background: var(--surface2); }

.accom-tier-btn.budget.active { background: rgba(168,204,68,0.12); border-color: var(--olive); color: var(--olive); box-shadow: 3px 3px 0 rgba(0,0,0,0.4); }
.accom-tier-btn.medium.active { background: rgba(74,159,226,0.12); border-color: var(--blue);  color: var(--blue);  box-shadow: 3px 3px 0 rgba(0,0,0,0.4); }
.accom-tier-btn.luxury.active { background: rgba(245,166,35,0.12); border-color: var(--gold);  color: var(--gold);  box-shadow: 3px 3px 0 rgba(0,0,0,0.4); }

.accom-sel-total {
  font-size: 11px;
  font-weight: 900;
  opacity: 0.85;
}

/* ─── Accommodation Cards ───────────────────────────────────────── */
.accom-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(30, 136, 229, 0.08);
}
.accom-card:last-child { margin-bottom: 0; }

.accom-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.accom-city {
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  flex: 1;
}
.accom-nights {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 20px;
  padding: 2px 10px;
}

.accom-tiers {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.accom-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 12px;
}
.accom-tier.budget  { background: rgba(168, 204, 68, 0.06);  border: 1px solid rgba(168, 204, 68, 0.18); }
.accom-tier.medium  { background: rgba(74, 159, 226, 0.06);  border: 1px solid rgba(74, 159, 226, 0.18); }
.accom-tier.luxury  { background: rgba(245, 166, 35, 0.06);  border: 1px solid rgba(245, 166, 35, 0.18); }

.accom-tier.budget:hover { background: rgba(168, 204, 68, 0.12); border-color: rgba(168, 204, 68, 0.40); }
.accom-tier.medium:hover { background: rgba(74, 159, 226, 0.12); border-color: rgba(74, 159, 226, 0.40); }
.accom-tier.luxury:hover { background: rgba(245, 166, 35, 0.12); border-color: rgba(245, 166, 35, 0.40); }

.accom-tier.budget.selected { background: rgba(168, 204, 68, 0.16); border: 2px solid var(--olive); }
.accom-tier.medium.selected { background: rgba(74, 159, 226, 0.16); border: 2px solid var(--blue);  }
.accom-tier.luxury.selected { background: rgba(245, 166, 35, 0.16); border: 2px solid var(--gold);  }

.accom-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 7px 12px;
  background: rgba(30, 136, 229, 0.08);
  border: 2px solid rgba(30, 136, 229, 0.25);
  border-radius: var(--radius-sm);
  color: #1565c0;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background var(--transition), border-color var(--transition);
}
.accom-book-btn:hover {
  background: rgba(30, 136, 229, 0.16);
  border-color: rgba(30, 136, 229, 0.50);
}

.accom-tier-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.accom-tier-label {
  font-weight: 800;
  color: var(--text-sec);
  white-space: nowrap;
}
.accom-tier.budget  .accom-tier-label { color: var(--olive); }
.accom-tier.medium  .accom-tier-label { color: var(--blue);  }
.accom-tier.luxury  .accom-tier-label { color: var(--gold);  }

.accom-tier-type {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accom-tier-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.accom-night-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.accom-total {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.accom-tier.budget  .accom-total { color: var(--olive); }
.accom-tier.medium  .accom-total { color: var(--blue);  }
.accom-tier.luxury  .accom-total { color: var(--gold);  }

.accom-summary {
  margin-top: 12px;
  padding: 11px 13px;
  background: linear-gradient(90deg, #e3f2fd, #fff8e1);
  border: 2px solid rgba(30, 136, 229, 0.22);
  border-radius: 14px;
}
.accom-summary-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.accom-summary-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.accom-summary-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.accom-summary-tier-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.accom-summary-tier.budget .accom-summary-tier-label { color: var(--olive); }
.accom-summary-tier.medium .accom-summary-tier-label { color: var(--blue);  }
.accom-summary-tier.luxury .accom-summary-tier-label { color: var(--gold);  }
.accom-summary-tier-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  font-weight: 400;
}
.accom-summary-tier.budget .accom-summary-tier-val { color: var(--olive); }
.accom-summary-tier.medium .accom-summary-tier-val { color: var(--blue);  }
.accom-summary-tier.luxury .accom-summary-tier-val { color: var(--gold);  }

/* ─── Rent-a-Car Banner ─────────────────────────────────────────── */
.rent-car-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(249, 168, 37, 0.08), rgba(30, 136, 229, 0.06));
  border: 2px solid rgba(249, 168, 37, 0.30);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sec);
}
.rent-car-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(245, 166, 35, 0.12);
  border: 2px solid rgba(245, 166, 35, 0.32);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background var(--transition), border-color var(--transition);
}
.rent-car-btn:hover {
  background: rgba(249, 168, 37, 0.22);
  border-color: rgba(249, 168, 37, 0.55);
}

/* ─── Geo Facts Strip ───────────────────────────────────────────── */
.geo-strip {
  height: var(--geo-strip-h);
  background: linear-gradient(90deg, #1565c0, #1e88e5);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 9;
  gap: 4px;
}

.geo-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.gs-ico { font-size: 15px; }

.gs-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 17px;
  color: #ffd54f;
  font-weight: 400;
}

.gs-lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.geo-strip-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   IMPROVEMENT 1 — MAP WELCOME MAKEOVER
════════════════════════════════════════════════════════════════ */

.map-overlay::before {
  content: '';
  position: absolute;
  bottom: -10px; left: -5%; right: -5%;
  height: 70px;
  background: rgba(0, 140, 200, 0.14);
  clip-path: ellipse(55% 100% at 50% 100%);
  border-radius: 50%;
}

.map-overlay::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 10%; right: -15%;
  height: 50px;
  background: rgba(0, 120, 180, 0.10);
  clip-path: ellipse(60% 100% at 60% 100%);
  border-radius: 50%;
}

.map-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco-isle {
  position: absolute;
  opacity: 0.28;
  animation: float 4s ease-in-out infinite;
  user-select: none;
}

.di-1 { font-size: 52px; top: 12%; left:  6%; animation-delay: 0.0s; }
.di-2 { font-size: 36px; top: 60%; left: 78%; animation-delay: 0.8s; }
.di-3 { font-size: 44px; top: 16%; left: 72%; animation-delay: 1.6s; }
.di-4 { font-size: 38px; top: 70%; left: 10%; animation-delay: 0.4s; }
.di-5 { font-size: 30px; top: 45%; left: 88%; animation-delay: 2.2s; }
.di-6 { font-size: 44px; top:  8%; left: 42%; animation-delay: 1.2s; opacity: 0.20; }

.map-welcome-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(30, 136, 229, 0.28);
  border-radius: 20px;
  padding: 20px 28px 16px;
  max-width: 310px;
  box-shadow: 0 12px 32px rgba(30, 136, 229, 0.20), 0 4px 0 rgba(30, 136, 229, 0.14);
  overflow: hidden;
  position: relative;
}

.map-welcome-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd54f, #ff7043, #ce93d8, #4dd0e1, #a5d6a7, #ffd54f);
}

.map-welcome-card p strong { color: #0d47a1; }

.map-welcome-hint {
  font-size: 11px;
  font-weight: 700;
  color: #607d8b;
  border-top: 1px solid rgba(30, 136, 229, 0.14);
  padding-top: 10px;
  letter-spacing: 0.2px;
}

/* ════════════════════════════════════════════════════════════════
   IMPROVEMENT 2 — VISUAL ACTIVITY CHIPS
════════════════════════════════════════════════════════════════ */

.activity-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--surface3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sec);
  text-align: center;
  transition: all var(--transition);
  user-select: none;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  text-transform: none;
  letter-spacing: 0;
}

.filter-chip input[type="checkbox"] { display: none; }

.filter-chip:hover { border-color: var(--border-hover); background: var(--surface2); }

.filter-chip:has(input:checked) {
  background: linear-gradient(90deg, var(--blue-dim), var(--gold-dim));
  border-color: var(--blue);
  color: var(--text);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.filter-chip:has(input:checked):hover { background: linear-gradient(90deg, var(--blue-dim), var(--gold-dim)); }

/* ════════════════════════════════════════════════════════════════
   IMPROVEMENT 3 — COLORED SECTION ACCENTS
════════════════════════════════════════════════════════════════ */

/* Step panels: consistent blue accent */
#step-1 .panel,
#step-2 .panel,
#step-3 .panel {
  border-left: 4px solid var(--blue);
}

/* Step panel titles */
#step-1 .panel-title,
#step-2 .panel-title,
#step-3 .panel-title { color: #1565c0; }

/* Result panels: consistent blue accent */
#cost-panel,
#fuel-panel,
#road-costs-panel,
#ferries-panel,
#accommodation-panel,
#discover-panel,
#plans-panel        { border-left: 4px solid var(--blue); }

/* Sub-tab active */
.discover-subtab.on {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Loading panel accent */
#loading-panel { border-left: 4px solid var(--blue); }

/* Review items get a subtle highlight */
.review-route {
  border-left: 4px solid var(--blue);
  background: #f4f9ff;
}
.review-item {
  background: #f4f9ff;
}

/* ════════════════════════════════════════════════════════════════
   IMPROVEMENT 4 — POSTCARD RESULT SUMMARY
════════════════════════════════════════════════════════════════ */

/* Stat cards — bigger bubbles with lift on hover */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: white;
  border: 2px solid rgba(30, 136, 229, 0.16);
  border-radius: 16px;
  padding: 16px 12px 14px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(30, 136, 229, 0.10);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--cyan), #00e5ff); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--blue-hover), var(--blue)); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #42a5f5, #90caf9); }

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(30, 136, 229, 0.18);
}

.stat-value {
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px;
  font-weight: 400;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 10px;
  font-weight: 900;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Cost table — visual card rows */
.cost-table {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid rgba(30, 136, 229, 0.13);
  background: white;
  transition: background var(--transition), border-color var(--transition);
}

.cost-row:hover {
  border-color: rgba(30, 136, 229, 0.28);
  background: #f4f9ff;
}

.cost-row-link { cursor: pointer; }
.cost-row-link:hover span:first-child { color: var(--blue); }

.cost-row span:first-child { color: var(--text-sec); }
.cost-row span:last-child  { font-weight: 900; color: var(--text); }
.cost-sub-note { font-size: 0.72em; color: var(--text-sec); opacity: 0.75; margin-left: 4px; font-weight: 400; }

.total-row {
  background: linear-gradient(90deg, #e3f2fd, #fff8e1) !important;
  border: 2px solid var(--blue) !important;
  border-radius: 14px !important;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.16);
  padding: 13px 16px !important;
}

.total-row span:first-child {
  color: #0d47a1;
  font-weight: 900;
  font-size: 14px;
}

.total-row span:last-child {
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}

/* Trip dates badge — more vibrant */
.trip-dates-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  box-shadow: 0 3px 10px rgba(30, 136, 229, 0.25);
}

/* ════════════════════════════════════════════════════════════════
   MOBILE — Option D (≤ 768 px)
   Desktop layout is completely untouched above this line.
   Map is hidden during steps 1-3; appears above results in step 4.
════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Allow the full page to scroll naturally */
  body {
    height: auto;
    overflow-y: auto;
  }

  /* Stack wizard + map vertically instead of side-by-side */
  .app-body {
    flex-direction: column;
    height: auto;
  }

  /* Wizard panel: full width, grows to fit content */
  .wiz-panel {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 2px solid var(--border);
    overflow: visible;
    height: auto;
  }

  /* Wiz scroll: page scrolls instead of the sidebar */
  .wiz-scroll {
    overflow: visible;
    flex: none;
    height: auto;
    padding: 10px 10px 28px;
  }

  /* Map: always visible above the wizard on all steps */
  .map-area {
    display: block;
    order: -1;
    flex: 0 0 220px; /* override desktop flex:1; explicit 220px height */
  }
  #app[data-step="4"] .map-area { flex-basis: 260px; }

  /* Map overlay/badge: tighten for smaller height */
  .map-route-badge { bottom: 6px; left: 8px; right: 8px; font-size: 11px; }
  .btn-toggle-route { top: 8px; right: 8px; font-size: 11px; padding: 5px 10px; }

  /* Map welcome overlay: scale down for 220px strip */
  .map-welcome { gap: 6px; }
  .map-welcome-icon { font-size: 32px; filter: drop-shadow(0 3px 8px rgba(30,136,229,0.35)); }
  .map-welcome-card { padding: 10px 16px 8px; max-width: 240px; border-radius: 14px; }
  .map-welcome-card p { font-size: 12px; margin-bottom: 5px; }
  .map-welcome-hint { font-size: 10px; padding-top: 6px; }
  .deco-isle { opacity: 0.18; }
  .di-1 { font-size: 26px; }
  .di-2 { font-size: 18px; }
  .di-3 { font-size: 22px; }
  .di-4 { font-size: 20px; }
  .di-5 { font-size: 16px; }
  .di-6 { font-size: 22px; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }

  /* Geo strip: scroll horizontally so nothing is cut off */
  .geo-strip {
    height: auto;
    min-height: var(--geo-strip-h);
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 12px;
    gap: 0;
    scrollbar-width: none;
  }
  .geo-strip::-webkit-scrollbar { display: none; }
  .geo-stat { flex-shrink: 0; padding: 0 10px; }

  /* Steps bar: drop text labels, keep numbers */
  .step-label { display: none; }
  .step-pill  { padding: 6px 6px; }
  .step-line  { min-width: 8px; max-width: none; flex: 1; }
  .steps-bar  { padding: 0 12px; }

  /* Header: compact */
  .app-header { padding: 0 12px; }
  .app-header h1 { font-size: 18px; }
  .header-tagline { display: none; }
  .header-logo { font-size: 22px; }

  /* Results mode: override the desktop fixed-height / absolute-panel approach */
  .wiz-scroll.results-mode {
    overflow: visible;
    padding: 0;
  }
  .wiz-scroll.results-mode #step-4 {
    flex: none;
    overflow: visible;
    min-height: unset;
    display: flex;
  }
  #result-tabs-wrap {
    overflow: visible;
    min-height: unset;
  }

  /* Stick the tab bar to the top while scrolling results */
  .res-tabs {
    position: sticky;
    top: 0;
    z-index: 6;
  }

  /* Panels: static flow so the page scrolls */
  .res-panels {
    position: static;
    overflow: visible;
    height: auto;
    min-height: unset;
    flex: none;
  }
  .res-panel {
    position: static;
    height: auto;
    overflow: visible;
    min-height: unset;
  }

  /* Discover sub-panels */
  .discover-panel { overflow: visible; }
  .discover-subpanel {
    overflow: visible;
    min-height: unset;
    flex: none;
    height: auto;
  }

  /* New trip / export row: no longer pinned to panel bottom */
  .new-trip-row { position: static; }

  /* Modals: nearly full screen */
  .modal-box,
  .tc-modal-box {
    width: 96vw;
    max-height: 92vh;
  }
}

/* ── Page Footer ── */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-h);
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  padding: 0 24px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 50;
}
.page-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.page-footer .btn-tc-footer {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.page-footer .btn-tc-footer:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ─── Static about / SEO section (moved from index.html) ─────────── */
.static-about {
  background: #f0f6ff;
  border-top: 1.5px solid rgba(30,136,229,0.15);
  padding: 48px 24px 56px;
}
.static-about-inner {
  max-width: 960px;
  margin: 0 auto;
}
.static-about h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0d1b3e;
  margin-bottom: 14px;
  line-height: 1.3;
}
.static-about > .static-about-inner > p {
  font-size: 15px;
  color: #1a5276;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 32px;
}
.static-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.static-feature {
  background: #fff;
  border: 1.5px solid rgba(30,136,229,0.15);
  border-radius: 12px;
  padding: 18px 20px;
}
.static-feature h3 {
  font-size: 14px;
  font-weight: 800;
  color: #1e88e5;
  margin-bottom: 6px;
}
.static-feature p {
  font-size: 13px;
  color: #607d8b;
  line-height: 1.6;
}
.static-about h3.trips-heading {
  font-size: 17px;
  font-weight: 800;
  color: #0d1b3e;
  margin-bottom: 12px;
}
.static-trips-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.static-trips-list li {
  font-size: 14px;
  color: #1a5276;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid rgba(30,136,229,0.15);
  border-radius: 8px;
}
.static-trips-list a {
  color: #1e88e5;
  font-weight: 700;
  text-decoration: none;
}
.static-trips-list a:hover { text-decoration: underline; }
