/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  /* Primary palette - sophisticated blue */
  --primary-900: #0c1f3a;
  --primary-800: #152d52;
  --primary-700: #1e3d6b;
  --primary-600: #274d85;
  --primary-500: #3b6aa0;
  --primary-400: #5a86bb;
  --primary-300: #8ab0d6;
  --primary-200: #b9cde6;
  --primary-100: #dce6f2;
  --primary-50: #eff4f9;

  /* Accent - warm coral */
  --accent-500: #e85d4c;
  --accent-400: #ef7a6a;
  --accent-300: #f5a194;

  /* Success - refined green */
  --success-500: #10b981;
  --success-400: #34d399;
  --success-100: #d1fae5;

  /* Warning - amber */
  --warning-500: #f59e0b;
  --warning-100: #fef3c7;

  /* Neutral palette */
  --neutral-950: #0a0a0a;
  --neutral-900: #171717;
  --neutral-800: #262626;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;

  /* Semantic */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-muted: var(--neutral-400);
  --text-inverse: #ffffff;

  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;

  --border-light: var(--neutral-200);
  --border-medium: var(--neutral-300);

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-600); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-800); }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.navbar-inner {
  width: 100%;
  max-width: 900px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-800);
  letter-spacing: -0.02em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.navbar-links a:hover {
  color: var(--primary-700);
  background: var(--primary-50);
  text-decoration: none;
}

.navbar-links a.active {
  color: var(--primary-700);
  background: var(--primary-100);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
  color: var(--text-inverse);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 106, 160, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(232, 93, 76, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto;
  font-weight: 400;
}

/* ── Wizard container ───────────────────────────────────────────────────── */
.wizard-wrap {
  max-width: 900px;
  margin: -1.5rem auto 3rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.wizard-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

/* ── Steps bar ──────────────────────────────────────────────────────────── */
.steps-bar {
  background: var(--bg-secondary);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light);
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0.4;
  transition: all var(--transition-base);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
}

.step-dot:hover {
  opacity: 0.7;
  background: var(--bg-tertiary);
}

.step-dot.active, .step-dot.done {
  opacity: 1;
}

.step-dot .num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--neutral-200);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition-base);
}

.step-dot.active .num {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 77, 133, 0.3);
}

.step-dot.done .num {
  background: var(--success-500);
  color: #fff;
}

.step-dot .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: none;
}

@media (min-width: 640px) {
  .step-dot .label {
    display: block;
  }
}

.step-sep {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  min-width: 6px;
  max-width: 32px;
}

/* ── Step content ───────────────────────────────────────────────────────── */
.step-content {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.step-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}

.step-title .icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: var(--radius-md);
}

/* ── Form elements ──────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  outline: none;
  font-family: inherit;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(59, 106, 160, 0.1);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Traveler rows ──────────────────────────────────────────────────────── */
.traveler-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.traveler-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.traveler-row .badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-700);
  min-width: 65px;
}

.traveler-row .form-control {
  flex: 1;
}

.btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-remove:hover {
  color: #dc2626;
  background: #fee2e2;
}

/* ── Sliders ────────────────────────────────────────────────────────────── */
.slider-group {
  margin-bottom: 1.25rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.slider-val {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

input[type=range] {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--neutral-200);
  appearance: none;
  cursor: pointer;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 77, 133, 0.3);
  transition: transform var(--transition-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(37, 77, 133, 0.3);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ── Checkbox grid ──────────────────────────────────────────────────────── */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.check-item:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
}

.check-item input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-600);
}

.check-item.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-700);
}

/* ── Comfort selector ───────────────────────────────────────────────────── */
.comfort-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.comfort-btn {
  flex: 1;
  min-width: 100px;
  padding: 0.85rem 0.6rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  background: var(--bg-secondary);
  transition: all var(--transition-base);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.comfort-btn .stars {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.comfort-btn:hover {
  border-color: var(--primary-300);
  transform: translateY(-2px);
}

.comfort-btn.selected {
  border-color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary-800);
  box-shadow: var(--shadow-sm);
}

/* ── Destination toggle ─────────────────────────────────────────────────── */
.dest-type-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dest-type-btn {
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  background: var(--bg-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.dest-type-btn:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
}

.dest-type-btn.active {
  border-color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* ── Suggestion cards ───────────────────────────────────────────────────── */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.suggestion-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-secondary);
}

.suggestion-card:hover {
  border-color: var(--primary-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.suggestion-card.selected {
  border-color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}

.suggestion-card .dest-name {
  font-weight: 800;
  color: var(--primary-800);
  font-size: 1.05rem;
}

.suggestion-card .dest-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0.7rem;
  font-style: italic;
}

.suggestion-card .dest-why {
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.suggestion-card .dest-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge-pill {
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pill.green {
  background: var(--success-100);
  color: var(--success-500);
}

.badge-pill.orange {
  background: var(--warning-100);
  color: var(--warning-500);
}

/* ── Wizard nav ─────────────────────────────────────────────────────────── */
.wizard-nav {
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  background: var(--bg-tertiary);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-600);
  color: var(--primary-700);
}

.btn-outline:hover {
  background: var(--primary-50);
  color: var(--primary-800);
}

.btn-sky {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
}

.btn-sky:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Loading page ───────────────────────────────────────────────────────── */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 2rem;
  text-align: center;
  background: var(--bg-primary);
}

/* Error state */
.error-wrap {
  text-align: center;
  max-width: 480px;
}

.error-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.error-title {
  color: #dc2626;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.error-message {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.loading-globe {
  width: 100px;
  height: 100px;
  animation: spin 3s linear infinite;
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.loading-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-800);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.loading-msg {
  color: var(--text-muted);
  font-size: 1rem;
  min-height: 1.5em;
}

.loading-eta {
  font-size: .82rem;
  color: var(--neutral-400);
  margin-top: .3rem;
}

.progress-bar-wrap {
  width: 100%;
  max-width: 420px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  height: 10px;
  margin: 1.75rem auto;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.loading-steps {
  list-style: none;
  text-align: left;
  margin-top: 1.25rem;
  min-width: 280px;
}

.loading-steps li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: color var(--transition-base);
}

.loading-steps li.done {
  color: var(--success-500);
}

.loading-steps li.active {
  color: var(--primary-700);
  font-weight: 600;
}

.loading-steps li .step-icon {
  font-size: 1rem;
  min-width: 22px;
}

/* ── Result page ────────────────────────────────────────────────────────── */
.result-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Destination header */
.dest-header {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 50%, var(--primary-700) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.75rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.dest-header::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.dest-header::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(232, 93, 76, 0.1);
}

.dest-header > * {
  position: relative;
  z-index: 1;
}

.dest-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.dest-header .tagline {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.score-badges {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.score-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.score-badge .val {
  font-size: 1rem;
  font-weight: 800;
}

/* Warnings */
.warning-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.warning-box .w-title {
  font-weight: 700;
  color: #b45309;
  margin-bottom: 0.45rem;
}

/* Alternatives */
.alt-cards {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.alt-card {
  flex: 1;
  min-width: 190px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  background: var(--bg-secondary);
  transition: all var(--transition-base);
}

.alt-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-sm);
}

.alt-card .alt-name {
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 0.35rem;
}

.alt-card .alt-why {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

/* Summary grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.summary-card .s-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-card .s-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-800);
  margin: 0.25rem 0;
  letter-spacing: -0.02em;
}

.summary-card .s-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Cost breakdown */
.cost-breakdown {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

.cost-breakdown h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.cost-row:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--primary-800);
  font-size: 1rem;
  padding-top: 0.75rem;
}

.cost-bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--neutral-200);
  margin-top: 4px;
  overflow: hidden;
}

.cost-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
}

/* Tabs */
.tabs-wrap {
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 2px solid var(--border-light);
  overflow-x: auto;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--primary-600);
}

.tab-btn.active {
  color: var(--primary-700);
  border-bottom-color: var(--primary-600);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

/* Map */
#trip-map {
  height: 450px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

/* Day timeline */
.day-timeline {
  position: relative;
}

.day-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.day-card:hover {
  box-shadow: var(--shadow-lg);
}

.day-card.open {
  border-color: var(--primary-300);
}

.day-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  user-select: none;
  transition: background var(--transition-fast);
}

.day-header:hover {
  background: var(--bg-tertiary);
}

.day-num {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.day-header-info {
  flex: 1;
}

.day-header-info .day-title {
  font-weight: 700;
  color: var(--primary-800);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.day-header-info .day-loc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.day-cost-badge {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.day-chevron {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: transform var(--transition-base);
}

.day-card.open .day-chevron {
  transform: rotate(180deg);
}

.day-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
}

.day-card.open .day-body {
  display: block;
  animation: fadeIn 0.3s ease;
}

.day-body-date {
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 0.55rem;
}

.day-date-note {
  font-size: 0.82rem;
  color: var(--warning-500);
  background: var(--warning-100);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.55rem;
}

/* Activities */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.activity-item {
  display: flex;
  gap: 0.85rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-left: 3px solid var(--primary-400);
}

.activity-time {
  color: var(--primary-600);
  font-weight: 700;
  min-width: 55px;
  font-size: 0.82rem;
}

.activity-info {
  flex: 1;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.activity-content {
  flex: 3;
  min-width: 0;
}

.activity-photo {
  flex: 1;
  min-width: 0;
  display: none;
  align-items: flex-start;
}

.activity-photo.has-photo {
  display: flex;
}

.activity-photo-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: none;
}

.activity-name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.activity-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.activity-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.tag {
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tag.cost {
  background: #fff7ed;
  color: #ea580c;
}

.tag.free {
  background: var(--success-100);
  color: var(--success-500);
}

.tag.book {
  background: #fce7f3;
  color: #db2777;
}

/* Meals */
.meals-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0.85rem 0;
}

.meal-card {
  flex: 1;
  min-width: 150px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-base);
}

.meal-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-sm);
}

.meal-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.meal-name {
  font-weight: 700;
  color: var(--primary-800);
  margin: 0.25rem 0;
}

.meal-price {
  color: #ea580c;
  font-weight: 700;
}

/* Transport segments */
.transport-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.85rem 0;
}

.transport-seg {
  background: var(--primary-50);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--primary-200);
}

.transport-arrow {
  color: var(--text-muted);
}

/* Accommodation */
.accommodation-box {
  background: linear-gradient(135deg, var(--primary-50), var(--bg-secondary));
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin: 0.85rem 0;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.acc-icon {
  font-size: 2rem;
}

.acc-info .acc-name {
  font-weight: 700;
  color: var(--primary-800);
}

.acc-info .acc-stars {
  color: #f59e0b;
  font-size: 0.9rem;
}

.acc-info .acc-price {
  color: #ea580c;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Passes / Practical */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.info-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.info-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.info-card .ic-title {
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.info-card .ic-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.info-card .ic-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-700);
  margin-bottom: 0.45rem;
}

/* Flights / Cars section */
.flight-card, .car-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

.flight-route {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.flight-city {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-800);
}

.flight-iata {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.flight-arrow {
  font-size: 1.5rem;
  color: var(--primary-400);
}

/* Tips box */
.tips-box {
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border-left: 4px solid #eab308;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.75rem 1rem;
  margin: 0.65rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Print button */
.print-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  z-index: 50;
}

.print-fab:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  transform: scale(1.05);
}

/* Trips list page */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.trip-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.trip-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.trip-card .tc-dest {
  font-weight: 800;
  color: var(--primary-800);
  font-size: 1.1rem;
}

.trip-card .tc-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trip-card .tc-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.status-done {
  color: var(--success-500);
}

.status-error {
  color: #dc2626;
}

.status-pend {
  color: var(--warning-500);
}

/* Section title */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-800);
  margin: 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-light), transparent);
}

/* ── Utilities ───────────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); font-size: 0.88rem; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }

/* ── Day date badge ──────────────────────────────────────────────────────── */
.day-date-badge {
  margin-left: 0.65rem;
  color: var(--primary-600);
  font-weight: 600;
  font-size: 0.8rem;
}

/* ── Compact route summary (solo stampa) ─────────────────────────────────── */
.route-summary {
  display: none;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.route-summary-title {
  font-weight: 700;
  color: var(--primary-800);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.route-summary-stops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.route-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.route-km {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.route-stop-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  min-width: 85px;
  text-align: center;
  border: 1px solid var(--primary-200);
}

.route-stop-days {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.route-stop-name {
  font-size: 0.85rem;
  color: var(--primary-800);
  font-weight: 700;
}

.route-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0 0.25rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.app-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.footer-sep {
  margin: 0 0.45rem;
}

/* ── Print cover (hidden on screen) ─────────────────────────────────────── */
.print-cover {
  display: none;
}
.print-cover-dest,
.print-cover-tagline,
.print-cover-meta {
  display: none;
}

/* ── Print ───────────────────────────────────────────────────────────────── */
@media print {
  @page {
    size: A4;
    margin: 12mm 14mm 16mm;
    @bottom-left {
      content: "Flayla Travels";
      font-family: Arial, sans-serif;
      font-size: 7pt;
      color: #aaa;
    }
    @bottom-right {
      content: counter(page) " / " counter(pages);
      font-family: Arial, sans-serif;
      font-size: 7pt;
      color: #aaa;
    }
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .navbar,
  .print-fab,
  .tabs,
  .wizard-nav,
  .app-footer,
  .score-badge[href],
  .day-chevron,
  .result-actions,
  .alternatives-section,
  #trip-map,
  .btn,
  a.btn {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 8.5pt;
    color: #222;
    line-height: 1.45;
  }

  .result-wrap {
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  .print-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10mm 0 6mm;
    text-align: center;
    border-bottom: 2pt solid #1e3d6b;
    margin-bottom: 5mm;
  }

  .print-cover-logo {
    width: 54px;
    height: auto;
    margin-bottom: 3mm;
  }

  .print-cover-brand {
    font-size: 8.5pt;
    font-weight: 700;
    color: #1e3d6b;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 4mm;
  }

  .print-cover-dest {
    display: block;
    font-size: 22pt;
    font-weight: 800;
    color: #1e3d6b;
    line-height: 1.15;
    margin-bottom: 2mm;
  }

  .print-cover-tagline {
    display: block;
    font-size: 10pt;
    color: #555;
    font-style: italic;
    margin-bottom: 4mm;
  }

  .print-cover-meta {
    display: flex;
    gap: 3mm;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 8.5pt;
    color: #444;
  }

  .dest-header {
    background: transparent !important;
    color: #1e3d6b !important;
    padding: 0 0 4mm !important;
    width: 100% !important;
    overflow: visible !important;
    box-shadow: none !important;
  }

  .dest-header h1 {
    display: none !important;
  }

  .dest-header .tagline {
    display: none !important;
  }

  .score-badges {
    gap: 2mm !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
  }

  .score-badge {
    background: #eef2f7 !important;
    color: #333 !important;
    font-size: 7.5pt !important;
    padding: 0.8mm 2.5mm !important;
    border-radius: 2pt !important;
  }

  .summary-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2mm !important;
    margin: 3mm 0 0 !important;
    break-inside: avoid;
    break-after: page;
  }

  .summary-card {
    padding: 2.5mm 3mm !important;
    box-shadow: none !important;
    border: 0.75pt solid #dde;
    border-radius: 3pt !important;
  }

  .s-label {
    font-size: 6.5pt !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #777 !important;
  }

  .s-value {
    font-size: 11pt !important;
    font-weight: 700;
    color: #1e3d6b !important;
  }

  .s-sub {
    font-size: 6.5pt !important;
    color: #888 !important;
  }

  .route-summary {
    display: block !important;
    box-shadow: none;
    border: none;
    border-bottom: 0.75pt solid #dde;
    padding: 0 0 3mm;
    margin: 0 0 5mm;
    break-inside: avoid;
  }

  .route-summary-title {
    font-size: 7pt;
    font-weight: 700;
    color: #1e3d6b;
    margin-bottom: 2mm;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .route-stop-box {
    padding: 0.8mm 2.5mm;
  }

  .route-stop-days {
    font-size: 6.5pt;
    color: #888;
  }

  .route-stop-name {
    font-size: 8pt;
    font-weight: 700;
    color: #1e3d6b;
  }

  .route-km {
    font-size: 6.5pt;
    color: #bbb;
  }

  .route-arrow {
    font-size: 9pt;
    color: #1e3d6b;
  }

  .tab-pane {
    display: block !important;
  }

  .day-body {
    display: block !important;
  }

  .day-card {
    box-shadow: none !important;
    border: none !important;
    border-top: 2pt solid #1e3d6b;
    margin-bottom: 6mm !important;
    padding-top: 2.5mm !important;
    overflow: visible !important;
    break-inside: auto;
  }

  .day-header {
    background: transparent !important;
    padding: 0 0 2mm !important;
    break-inside: avoid;
    break-after: avoid;
  }

  .day-num-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8mm;
  }

  .day-num {
    width: 24px !important;
    height: 24px !important;
    font-size: 8.5pt !important;
    background: #1e3d6b !important;
    color: #fff !important;
  }

  .day-date-inline {
    display: block !important;
    font-size: 6.5pt !important;
    color: #888 !important;
    white-space: nowrap;
  }

  .day-header-info .day-title {
    font-size: 10.5pt !important;
    font-weight: 800;
    color: #1e3d6b !important;
    line-height: 1.2;
  }

  .day-header-info .day-loc {
    font-size: 7.5pt !important;
    color: #666 !important;
  }

  .day-cost-badge {
    font-size: 7.5pt !important;
    padding: 0.6mm 2mm !important;
  }

  .day-body-date {
    display: none !important;
  }

  .day-body > p {
    font-size: 7.5pt !important;
    color: #555 !important;
    font-style: italic;
    margin: 1mm 0 2mm !important;
  }

  .section-title {
    font-size: 6.5pt !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e3d6b !important;
    font-weight: 700 !important;
    margin: 2.5mm 0 1mm !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
  }

  .section-title::after {
    display: none !important;
  }

  .transport-chain {
    gap: 1mm !important;
    margin: 1mm 0 2mm !important;
    flex-wrap: wrap;
  }

  .transport-seg {
    padding: 0.8mm 2mm !important;
    font-size: 7.5pt !important;
    background: #f5f8fc !important;
    border-radius: 2pt !important;
    break-inside: avoid;
  }

  .activity-list {
    gap: 1.5mm !important;
    margin: 1mm 0 2mm !important;
  }

  .activity-item {
    padding: 1.5mm 2.5mm !important;
    font-size: 7.5pt !important;
    background: #f9fafc !important;
    border: none !important;
    border-left: 2pt solid #b3e5fc !important;
    border-radius: 0 2pt 2pt 0 !important;
    break-inside: avoid;
  }

  .activity-time {
    font-size: 7pt !important;
    min-width: 32px !important;
    font-weight: 700;
    color: #1e3d6b !important;
  }

  .activity-name {
    font-size: 8pt !important;
    font-weight: 700;
    margin-bottom: 0 !important;
  }

  .activity-desc {
    font-size: 7pt !important;
    color: #666 !important;
  }

  .activity-meta {
    gap: 1mm !important;
    margin-top: 1mm !important;
  }

  .tag {
    font-size: 6pt !important;
    padding: 0 1.5mm !important;
    border-radius: 2pt !important;
  }

  .tips-box {
    padding: 1.5mm 3mm !important;
    font-size: 7pt !important;
    margin: 1.5mm 0 !important;
    break-inside: avoid;
  }

  .meals-row {
    display: flex !important;
    gap: 2mm !important;
    margin: 1mm 0 2mm !important;
    flex-wrap: nowrap;
  }

  .meal-card {
    flex: 1;
    padding: 1.5mm 2.5mm !important;
    font-size: 7.5pt !important;
    box-shadow: none !important;
    border: 0.75pt solid #dde !important;
    border-radius: 2pt !important;
    break-inside: avoid;
    min-width: 0;
  }

  .meal-type {
    font-size: 6pt !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #aaa !important;
  }

  .meal-name {
    font-size: 7.5pt !important;
    font-weight: 700;
    line-height: 1.3;
  }

  .meal-price {
    font-size: 7pt !important;
    color: #1e3d6b !important;
  }

  .accommodation-box {
    padding: 1.5mm 2.5mm !important;
    margin: 1mm 0 2mm !important;
    break-inside: avoid;
    display: flex;
    gap: 2mm;
    align-items: flex-start;
  }

  .acc-icon {
    font-size: 11pt;
    flex-shrink: 0;
  }

  .acc-name {
    font-size: 8pt !important;
    font-weight: 700;
  }

  .acc-stars {
    font-size: 7pt !important;
  }

  .acc-price {
    font-size: 7.5pt !important;
    color: #1e3d6b !important;
  }

  .warning-box {
    padding: 2mm 3mm !important;
    font-size: 7.5pt !important;
    break-inside: avoid;
  }

  #tab-flights,
  #tab-car,
  #tab-passes,
  #tab-practical {
    display: block !important;
    break-before: auto;
    box-shadow: none !important;
    border: none !important;
    border-top: 1pt solid #dde;
    padding: 4mm 0 !important;
    margin: 0 !important;
  }

  .flight-card {
    box-shadow: none !important;
    border: 0.75pt solid #dde !important;
    padding: 3mm !important;
    border-radius: 3pt !important;
    margin-bottom: 2mm;
    break-inside: avoid;
  }

  .car-card {
    box-shadow: none !important;
    border: 0.75pt solid #dde !important;
    padding: 3mm !important;
    border-radius: 3pt !important;
    break-inside: avoid;
  }

  .info-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2mm !important;
    margin-top: 2mm;
  }

  .info-card {
    padding: 2mm 2.5mm !important;
    box-shadow: none !important;
    border: 0.75pt solid #dde !important;
    border-radius: 2pt !important;
    break-inside: avoid;
  }

  .ic-title {
    font-size: 6.5pt !important;
    color: #1e3d6b !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .ic-price {
    font-size: 9.5pt !important;
    font-weight: 700;
  }

  .text-muted,
  .activity-desc,
  .meal-type,
  .s-sub,
  .route-km,
  .route-stop-days {
    color: #777 !important;
  }

  h3 {
    font-size: 9pt !important;
    color: #1e3d6b !important;
  }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .dest-header h1 {
    font-size: 1.6rem;
  }

  .wizard-wrap {
    margin-top: 0;
  }

  .step-content {
    padding: 1.5rem 1.25rem;
  }

  .wizard-nav {
    padding: 1rem 1.25rem;
  }

  .steps-bar {
    padding: 1rem 1rem;
    justify-content: center;
  }

  .step-dot .num {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .step-sep {
    display: none;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  #trip-map {
    height: 320px;
  }

  .day-header {
    padding: 1rem 1.1rem;
    gap: 0.85rem;
  }

  .day-num {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .navbar-inner {
    padding: 0 1rem;
  }

  .navbar-title {
    font-size: 1rem;
  }

  .navbar-links a {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  .print-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
}

/* ── Calendar Widget ─────────────────────────────────────────────────────── */
.cal-widget { margin-top: 0.5rem; }

.cal-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.cal-header select {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day-name {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted, #94a3b8);
  padding: 4px 0;
  text-transform: uppercase;
}
.cal-day {
  text-align: center;
  padding: 6px 2px;
  border-radius: 6px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.cal-day:hover { background: var(--primary-light, #ede9fe); }
.cal-day.empty { cursor: default; }
.cal-day.empty:hover { background: none; }
.cal-day.holiday {
  color: #e11d48;
  font-weight: 600;
}
.cal-day .cal-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #e11d48;
  margin-top: 2px;
}
.cal-day.selected {
  background: var(--primary, #7c3aed);
  color: #fff;
}
.cal-day.selected.holiday { color: #fca5a5; }
.cal-day.today {
  border: 1.5px solid var(--primary, #7c3aed);
}

.cal-selected-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  min-height: 1.4rem;
}
.cal-selected-label {
  font-size: 0.85rem;
  color: var(--primary-600);
  font-weight: 600;
}
.cal-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  color: var(--neutral-500);
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  line-height: 1;
}
.cal-clear-btn:hover {
  background: var(--neutral-200);
  color: var(--accent-500);
}
.cal-period-note {
  margin-top: 0.75rem;
}

/* ── Preferences Summary ──────────────────────────────────────── */
.prefs-summary-wrap {
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.prefs-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--neutral-700);
  text-align: left;
}
.prefs-toggle:hover { background: var(--neutral-100); }
.prefs-toggle-chevron {
  transition: transform .2s;
  font-size: .75rem;
  color: var(--neutral-400);
}
.prefs-summary-wrap.open .prefs-toggle-chevron { transform: rotate(180deg); }
.prefs-body {
  display: none;
  padding: 0 1.2rem 1rem;
  border-top: 1px solid var(--neutral-200);
}
.prefs-summary-wrap.open .prefs-body { display: block; }
.prefs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding-top: .9rem;
}
.pref-item {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem;
  min-width: 110px;
}
.pref-item.pref-wide { flex: 1 1 100%; }
.pref-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--neutral-400);
  margin-bottom: .25rem;
}
.pref-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--neutral-800);
}
.pref-dots { display: flex; gap: 3px; align-items: center; padding-top: 2px; }
.pref-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--neutral-200);
}
.pref-dot.filled { background: var(--primary-500); }
.pref-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.pref-chip {
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  padding: .18rem .55rem;
  font-size: .74rem;
  font-weight: 500;
}
.pref-balance {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--neutral-100);
}
.pref-bars { margin-top: .4rem; display: flex; flex-direction: column; gap: .35rem; }
.pref-bar-row { display: flex; align-items: center; gap: .6rem; }
.pref-bar-label {
  width: 135px;
  font-size: .78rem;
  color: var(--neutral-600);
  flex-shrink: 0;
}
.pref-bar-track {
  flex: 1;
  height: 6px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.pref-bar-fill {
  height: 100%;
  background: var(--primary-400);
  border-radius: var(--radius-full);
}
.pref-bar-num {
  font-size: .73rem;
  color: var(--neutral-400);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}
.pref-text {
  margin-top: .55rem;
  font-size: .85rem;
  color: var(--neutral-600);
  line-height: 1.5;
}
.pref-label-inline {
  font-size: .78rem;
  font-weight: 700;
  color: var(--neutral-500);
}
