/* ── Variables ──────────────────────────────────────────────────────── */
:root {
  --blue:    #2563EB;
  --blue-lt: #EFF6FF;
  --violet:  #7C3AED;
  --violet-lt: #F5F3FF;
  --amber:   #D97706;
  --amber-lt: #FFFBEB;
  --emerald: #059669;
  --emerald-lt: #ECFDF5;
  --rose:    #E11D48;
  --rose-lt: #FFF1F2;
  --slate:   #64748B;
  --slate-lt: #F8FAFC;

  --bg:      #F1F5F9;
  --surface: #FFFFFF;
  --border:  #E2E8F0;
  --text:    #0F172A;
  --muted:   #64748B;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.08);
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea { font: inherit; }
svg { display: inline-block; vertical-align: middle; }

/* ── Header ─────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue);
}
.brand svg { width: 22px; height: 22px; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #1D4ED8; }
.btn-primary:active { transform: scale(.98); }

.btn-ghost {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-ghost svg { width: 15px; height: 15px; }
.btn-sm { padding: 7px 12px; }

.btn-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background .15s;
}
.btn-icon:hover { background: var(--border); }
.btn-icon svg { width: 16px; height: 16px; }

.btn-generate {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .4);
}
.btn-generate:hover { background: #1D4ED8; box-shadow: 0 6px 20px rgba(37, 99, 235, .5); }
.btn-generate:active { transform: scale(.98); }
.btn-generate svg { width: 16px; height: 16px; }
.btn-generate:disabled { opacity: .6; cursor: not-allowed; }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 0;
  margin-bottom: 20px;
  transition: color .15s;
}
.btn-back:hover { color: var(--text); }
.btn-back svg { width: 16px; height: 16px; }

/* ── Views ──────────────────────────────────────────────────────────── */
.view { min-height: 100vh; padding-top: 60px; }

/* ── Hero View ──────────────────────────────────────────────────────── */
.hero-view {
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F2A3F 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-badge svg { width: 13px; height: 13px; color: #FBBF24; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Prompt card */
.prompt-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.prompt-examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.examples-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 4px;
}
.chip {
  background: var(--blue-lt);
  color: var(--blue);
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, transform .1s;
}
.chip:hover { background: #DBEAFE; border-color: #93C5FD; transform: translateY(-1px); }
.chip:active { transform: scale(.97); }

.prompt-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .95rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 90px;
  transition: border-color .15s, box-shadow .15s;
  color: var(--text);
  background: var(--surface);
}
.prompt-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.prompt-textarea::placeholder { color: #94A3B8; }

.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.prompt-hint {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.prompt-hint svg { width: 13px; height: 13px; }

/* Background blobs */
.hero-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .15; }
.blob-1 { width: 600px; height: 600px; background: #3B82F6; top: -200px; right: -100px; animation: float1 8s ease-in-out infinite; }
.blob-2 { width: 400px; height: 400px; background: #8B5CF6; bottom: -100px; left: -100px; animation: float2 10s ease-in-out infinite; }
.blob-3 { width: 300px; height: 300px; background: #F59E0B; top: 50%; left: 50%; animation: float3 7s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,20px) scale(1.05); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-30px) scale(1.08); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.15); } }

/* ── Loading View ───────────────────────────────────────────────────── */
.loading-view {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.loading-content { text-align: center; padding: 40px 24px; }
.loading-orbit {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 32px;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.orbit-plane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  animation: pulse-icon 1.2s ease-in-out infinite;
}
.orbit-plane svg { width: 28px; height: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-icon { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(.9); } }

.loading-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  min-height: 1.8em;
}
.loading-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.loading-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #CBD5E1;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  transition: color .3s, border-color .3s, background .3s;
}
.loading-step svg { width: 14px; height: 14px; }
.loading-step.done { color: var(--emerald); border-color: #A7F3D0; background: var(--emerald-lt); }
.loading-step.active { color: var(--blue); border-color: #93C5FD; background: var(--blue-lt); }

/* ── Results View ───────────────────────────────────────────────────── */
.results-view { background: var(--bg); }
.results-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Summary */
.summary-card {
  background: linear-gradient(135deg, #1E3A5F 0%, #1E40AF 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.summary-left { flex: 1; min-width: 0; }
.summary-dest { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.dest-flag { font-size: 2.5rem; line-height: 1; }
.dest-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.dest-sub { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 3px; }
.summary-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
}
.pill svg { width: 13px; height: 13px; }
.summary-budget { text-align: right; }
.budget-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.budget-value { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; color: #FBBF24; }
.budget-note { display: block; font-size: .75rem; color: rgba(255,255,255,.55); margin-top: 2px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background .15s, color .15s;
  min-width: max-content;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.tab svg { width: 15px; height: 15px; }
.tab-panel { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Flights ────────────────────────────────────────────────────────── */
.flights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.flight-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.flight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.flight-dir {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .95rem;
}
.flight-dir svg { width: 16px; height: 16px; color: var(--blue); }
.flight-date { font-size: .8rem; color: var(--muted); }
.flight-price { font-weight: 800; color: var(--blue); font-size: 1rem; margin-left: auto; }
.flight-route { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.route-end { text-align: center; min-width: 80px; }
.route-end-right { text-align: right; }
.route-time { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.route-airport { font-size: .72rem; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.route-middle { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.route-line-wrap { width: 100%; position: relative; display: flex; align-items: center; }
.route-line { flex: 1; height: 2px; background: linear-gradient(to right, var(--border), #93C5FD, var(--border)); }
.route-plane-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--blue);
  background: var(--surface);
  padding: 0 4px;
  line-height: 0;
}
.route-plane-icon svg { width: 18px; height: 18px; }
.route-dur { font-size: .78rem; font-weight: 600; color: var(--muted); }
.flight-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.flight-footer span { font-size: .82rem; color: var(--muted); }
.flight-num { font-family: monospace; }
.flight-class-badge {
  margin-left: auto;
  background: var(--blue-lt);
  color: var(--blue);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 700;
}

/* ── Hotel ──────────────────────────────────────────────────────────── */
.hotel-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.hotel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hotel-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.hotel-stars { color: #FBBF24; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 8px; }
.hotel-location { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.hotel-location svg { width: 13px; height: 13px; }
.hotel-price-box { text-align: right; white-space: nowrap; }
.h-price-val { font-size: 2rem; font-weight: 800; color: var(--blue); }
.h-price-unit { font-size: .85rem; color: var(--muted); margin-left: 4px; }
.hotel-desc { font-size: .92rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.hotel-amenities { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-chip {
  background: var(--slate-lt);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .8rem;
  font-weight: 500;
}

/* ── Activities ─────────────────────────────────────────────────────── */
.activities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.activity-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 3px solid var(--act-color, var(--blue));
  transition: transform .15s, box-shadow .15s;
}
.activity-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.activity-card.type-visite      { --act-color: var(--blue);    }
.activity-card.type-musee       { --act-color: var(--violet);  }
.activity-card.type-gastronomie { --act-color: var(--amber);   }
.activity-card.type-sport       { --act-color: var(--emerald); }

.act-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.act-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--act-color);
  background: color-mix(in srgb, var(--act-color) 12%, transparent);
}
.act-type-badge svg { width: 12px; height: 12px; }
.act-price { font-size: .82rem; font-weight: 700; color: var(--act-color); }
.act-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.act-location { display: flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.act-location svg { width: 12px; height: 12px; }
.act-desc { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.act-duration { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.act-duration svg { width: 12px; height: 12px; }

/* ── Program ────────────────────────────────────────────────────────── */
.program-timeline { display: flex; flex-direction: column; gap: 20px; }
.program-day {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.prog-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1E3A5F 0%, #1E40AF 100%);
  color: #fff;
  flex-wrap: wrap;
  gap: 8px;
}
.prog-day-label { font-size: 1rem; font-weight: 700; }
.prog-day-date { font-size: .82rem; color: rgba(255,255,255,.65); }
.prog-items { padding: 4px 0; }
.prog-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 24px;
}
.prog-item + .prog-item { border-top: 1px dashed var(--border); }
.prog-time { font-size: .82rem; font-weight: 700; color: var(--muted); min-width: 44px; padding-top: 6px; font-family: monospace; }
.prog-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--dot-bg, var(--blue-lt));
  color: var(--dot-color, var(--blue));
}
.prog-dot svg { width: 14px; height: 14px; }
.prog-dot.dot-visite      { --dot-bg: var(--blue-lt);    --dot-color: var(--blue);    }
.prog-dot.dot-musee       { --dot-bg: var(--violet-lt);  --dot-color: var(--violet);  }
.prog-dot.dot-gastronomie { --dot-bg: var(--amber-lt);   --dot-color: var(--amber);   }
.prog-dot.dot-sport       { --dot-bg: var(--emerald-lt); --dot-color: var(--emerald); }
.prog-dot.dot-transport   { --dot-bg: #F0F9FF;           --dot-color: #0284C7;        }
.prog-dot.dot-hotel       { --dot-bg: var(--violet-lt);  --dot-color: var(--violet);  }
.prog-content { flex: 1; min-width: 0; }
.prog-name { font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prog-price { font-size: .72rem; font-weight: 700; color: var(--amber); background: var(--amber-lt); padding: 2px 8px; border-radius: 999px; }
.prog-desc { font-size: .82rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ── Modal ──────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 700; }
.modal-header h3 svg { width: 18px; height: 18px; color: var(--blue); }
.modal-text { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.api-key-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .88rem;
  font-family: monospace;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 12px;
  background: var(--surface);
  color: var(--text);
}
.api-key-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.api-key-status { font-size: .82rem; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 12px; }
.api-key-status.ok  { background: var(--emerald-lt); color: var(--emerald); }
.api-key-status.err { background: var(--rose-lt);    color: var(--rose);    }
.modal-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.modal-footnote { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.modal-footnote svg { width: 12px; height: 12px; }

/* ── Header actions ─────────────────────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 6px; }
.saved-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}

/* ── Results topbar ──────────────────────────────────────────────────── */
.results-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.btn-save {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  transition: background .15s, color .15s, transform .1s;
}
.btn-save:hover { background: var(--blue-lt); }
.btn-save:active { transform: scale(.98); }
.btn-save.saved {
  color: var(--emerald);
  border-color: var(--emerald);
  background: var(--emerald-lt);
}
.btn-save svg { width: 15px; height: 15px; }

/* ── Saved trips view ───────────────────────────────────────────────── */
.saved-view { background: var(--bg); }
.saved-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.saved-header { margin-bottom: 28px; }
.saved-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.saved-title svg { width: 24px; height: 24px; color: var(--blue); }

.saved-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.saved-empty-icon {
  display: block;
  margin: 0 auto 20px;
  width: 48px; height: 48px;
  color: #CBD5E1;
}
.saved-empty p { font-size: .95rem; line-height: 1.7; }

.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.saved-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s, box-shadow .15s;
}
.saved-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.saved-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.saved-card-flag { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.saved-card-dest { flex: 1; min-width: 0; }
.saved-card-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 3px; }
.saved-card-date { font-size: .75rem; color: var(--muted); }
.saved-card-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--slate-lt);
  border: 1px solid var(--border);
  color: var(--muted);
}
.saved-pill svg { width: 11px; height: 11px; }
.saved-budget { font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.saved-card-actions { display: flex; gap: 8px; margin-top: 4px; }
.btn-view {
  flex: 1;
  padding: 9px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  transition: background .15s;
}
.btn-view:hover { background: #1D4ED8; }
.btn-delete {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--rose);
  border: 1.5px solid #FECDD3;
  background: var(--rose-lt);
  font-size: .85rem;
  font-weight: 700;
  transition: background .15s, border-color .15s;
}
.btn-delete:hover { background: #FFE4E6; border-color: #FDA4AF; }
.btn-delete svg { width: 14px; height: 14px; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .summary-card { padding: 20px; }
  .dest-name { font-size: 1.3rem; }
  .budget-value { font-size: 1.6rem; }
  .hotel-top { flex-direction: column; }
  .hotel-price-box { text-align: left; }
  .prog-item { padding: 12px 16px; }
  .prog-day-header { padding: 14px 16px; }
  .flight-card { padding: 16px; }
  .tabs { gap: 2px; }
  .tab { padding: 9px 10px; font-size: .82rem; }
  .results-inner { padding: 24px 16px 60px; }
}
