/* ─── Design System ─────────────────────────────────────────────────────────
   Romantic consumer product. One family: Outfit (weights carry hierarchy).
   ONE accent: pink. --accent (#e91e8c) for decoration/borders/tints,
   --accent-ink (#c01374, 5.8:1 on white) for text & links,
   --accent-btn (#cf1477 core, 5.2:1 under white label) for filled buttons.
   Neutrals are plum-tinted grays. Gold & lavender retired.
   SHAPE RULE: buttons + badges = pill · cards + modals = 16px · inputs + chips = 10px. */
:root {
  --bg: #fdf8fa;
  --bg-elev: #ffffff;
  --ink: #2b2230;
  --ink-2: rgba(43,34,48,0.72);
  --ink-3: rgba(43,34,48,0.55);
  --accent: #e91e8c;
  --accent-ink: #c01374;
  --accent-deep: #b8106e;
  --green: #10b981;
  --radius: 16px;      /* cards, modals */
  --radius-sm: 10px;   /* inputs, chips, small surfaces */
  --shadow:
    0 1px 2px rgba(60,20,60,.05),
    0 4px 12px rgba(60,20,60,.05),
    0 16px 40px rgba(120,40,110,.08);
  --shadow-sm: 0 1px 2px rgba(60,20,60,.06), 0 3px 10px rgba(60,20,60,.05);
  --shadow-lift:
    0 2px 4px rgba(60,20,60,.06),
    0 12px 28px rgba(120,40,110,.12),
    0 28px 64px rgba(233,30,140,.10);
  --glass-border: 1px solid rgba(233,30,140,.10);
  --sf: "Outfit", -apple-system, system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

::selection { background: rgba(233,30,140,.18); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

body {
  font-family: var(--sf);
  background:
    radial-gradient(1000px 520px at 0% 10%, rgba(233,30,140,.05), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, .hero-title, .section-title, .plan-hero-title, .wizard-header h1, .loading-card h2, .empty-state h3 {
  font-family: var(--sf);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(253,248,250,.8);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(233,30,140,.10);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 62px;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav-logo-icon { font-size: 1.5rem; }
.nav-logo-text {
  font-family: var(--sf); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 500; transition: color .18s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--accent-ink); }

/* ─── Buttons (pill) ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.3rem; border-radius: 50px; font-family: var(--sf);
  font-size: .875rem; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; transition: all .2s var(--ease);
  border: none; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.btn-lg { padding: .9rem 2.1rem; font-size: 1rem; }
.btn-sm { padding: .45rem .95rem; font-size: .8rem; }
.btn-accent {
  background: linear-gradient(135deg, #e0187f 0%, #cf1477 50%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(184,16,110,.3), 0 6px 18px rgba(233,30,140,.24), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-accent:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 2px 4px rgba(184,16,110,.3), 0 10px 30px rgba(233,30,140,.38), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-outline { background: rgba(255,255,255,.65); border: 1.5px solid rgba(43,34,48,.18); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent-ink); color: var(--accent-ink); background: rgba(233,30,140,.05); box-shadow: 0 4px 14px rgba(233,30,140,.12); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(233,30,140,.07); color: var(--ink); }
.btn-danger-ghost { background: transparent; color: #d92626; }
.btn-danger-ghost:hover { background: rgba(217,38,38,.08); }

/* ─── Main Content ─────────────────────────────────────────────────────────── */
.main-content { min-height: calc(100vh - 62px); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 5.5rem 2rem 4.5rem;
  background: linear-gradient(150deg, #fdeef6 0%, #fdf6f9 55%, #fffdfe 100%);
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(233,30,140,.10), transparent),
    radial-gradient(ellipse 40% 40% at 12% 70%, rgba(233,30,140,.05), transparent);
}
/* floating hearts / sparkles */
.hero-bg::before, .hero-bg::after {
  position: absolute; font-size: 1.4rem; opacity: .5; pointer-events: none;
  animation: floaty 7s ease-in-out infinite;
}
.hero-bg::before { content: '💗'; left: 12%; top: 26%; animation-delay: -2s; }
.hero-bg::after { content: '✨'; right: 13%; top: 20%; animation-duration: 9s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; animation: riseIn .6s var(--ease) both; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.7); color: var(--accent-ink);
  border: 1px solid rgba(233,30,140,.28); border-radius: 50px;
  padding: .38rem 1.05rem; font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(233,30,140,.10), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.25rem); font-weight: 700; line-height: 1.08;
  color: var(--ink); margin-bottom: 1.35rem; letter-spacing: -0.03em;
  padding-bottom: .1em; /* italic descender clearance */
}
.hero-title em {
  font-style: italic; font-weight: 700;
  color: var(--accent-ink);
}
.hero-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.7; font-weight: 400; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.25rem; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 2.25rem; }
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block; font-family: var(--sf); font-size: 2.1rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.hero-stat-label { font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
.hero-stat-div { width: 1px; height: 42px; background: linear-gradient(to bottom, transparent, rgba(233,30,140,.25), transparent); }

/* ─── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section-dark {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(233,30,140,.14), transparent 60%),
    linear-gradient(180deg, #251a2b, #1d1522);
  color: white;
}
.section-dark .section-title { color: white; }
.section-dark .feature-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }
.section-dark .feature-card h3, .section-dark .feature-card p { color: rgba(255,255,255,.85); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.25rem; gap: 1rem; }
.section-title { font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -0.025em; }
.section-sub { color: var(--ink-2); margin-top: .35rem; font-size: .95rem; font-family: var(--sf); }

/* ─── Vibe Grid ─────────────────────────────────────────────────────────────── */
.vibe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 640px) { .vibe-grid { grid-template-columns: repeat(2, 1fr); } }
.vibe-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.65rem 1rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: all .22s var(--ease); border: 1.5px solid rgba(233,30,140,.08); gap: .4rem;
  animation: riseIn .5s var(--ease) both;
}
.vibe-card::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .22s var(--ease);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--vc, var(--accent)) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.vibe-card:hover {
  border-color: color-mix(in srgb, var(--vc, var(--accent)) 55%, transparent);
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-lift);
}
.vibe-card:hover::after { opacity: 1; }
.vibe-card:active { transform: translateY(-2px) scale(1); }
.vibe-emoji { font-size: 2.5rem; transition: transform .22s var(--ease); }
.vibe-card:hover .vibe-emoji { transform: scale(1.12) rotate(-4deg); }
.vibe-name { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.vibe-desc { font-size: .8rem; color: var(--ink-2); text-align: center; }

/* ─── Plans Grid ─────────────────────────────────────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.35rem; }
.plan-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; padding: 1.6rem;
  background: linear-gradient(180deg, #ffffff, #fffbfd);
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: all .22s var(--ease);
  border: var(--glass-border);
  animation: riseIn .5s var(--ease) both;
}
.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--pc, var(--accent)) 35%, transparent);
}
.plan-card:active { transform: translateY(-2px); }
.plan-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  mask-image: linear-gradient(to right, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 70%, transparent 100%);
}
.plan-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.plan-vibe-badge { font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border-radius: 50px; }
.plan-status { font-size: .7rem; font-weight: 650; padding: .22rem .62rem; border-radius: 50px; text-transform: uppercase; letter-spacing: .05em; }
.plan-status-draft { background: rgba(43,34,48,.08); color: var(--ink-2); }
.plan-status-confirmed { background: rgba(16,185,129,.12); color: #06774f; }
.plan-status-done { background: rgba(233,30,140,.10); color: var(--accent-ink); }
.plan-card-title { font-family: var(--sf); font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.3; letter-spacing: -0.02em; }
.plan-card-meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--ink-2); margin-bottom: auto; flex-wrap: wrap; }
.plan-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; padding-top: .8rem; border-top: 1px dashed rgba(233,30,140,.16); font-size: .82rem; }
.plan-activity-count { color: var(--ink-2); }
.plan-cost { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ─── Features Grid ─────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); padding: 1.65rem;
  transition: all .22s var(--ease);
}
.feature-card:hover { background: rgba(255,255,255,.08); border-color: rgba(233,30,140,.35); transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0,0,0,.28); }
.feature-icon { font-size: 2rem; margin-bottom: .8rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: .45rem; font-family: var(--sf); letter-spacing: -0.01em; }
.feature-card p { font-size: .875rem; color: rgba(255,255,255,.68); line-height: 1.65; }

/* ─── Plan Hero ─────────────────────────────────────────────────────────────── */
.plan-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, #fdeef6 0%, #fdf6f9 60%, #fffdfe 100%);
  border-bottom: 1px solid rgba(233,30,140,.10);
  padding: 2.25rem 0 1.75rem;
}
.plan-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 0% 50%, color-mix(in srgb, var(--ph-color, var(--accent)) 9%, transparent), transparent); pointer-events: none; }
.plan-hero-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; position: relative; animation: riseIn .5s var(--ease) both; }
.plan-breadcrumb { font-size: .82rem; color: var(--ink-3); margin-bottom: .8rem; letter-spacing: .01em; }
.plan-breadcrumb a { text-decoration: none; color: var(--ink-2); transition: color .18s; }
.plan-breadcrumb a:hover { color: var(--accent-ink); }
.plan-vibe-pill {
  display: inline-block; padding: .32rem .95rem; border-radius: 50px;
  font-size: .84rem; font-weight: 600; margin-bottom: .85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.4);
}
.plan-hero-title { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; color: var(--ink); margin-bottom: 1.1rem; line-height: 1.15; letter-spacing: -0.025em; }
.plan-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.meta-chip {
  background: rgba(255,255,255,.78); backdrop-filter: blur(8px);
  border: 1px solid rgba(233,30,140,.12); border-radius: var(--radius-sm);
  padding: .32rem .85rem; font-size: .82rem; color: var(--ink-2);
  box-shadow: 0 1px 5px rgba(120,40,110,.07), inset 0 1px 0 rgba(255,255,255,.9);
}

/* Budget bar as progress indicator */
.plan-budget-bar {
  display: flex; gap: .65rem 1rem; align-items: center; flex-wrap: wrap;
  background: rgba(255,255,255,.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(233,30,140,.18); border-radius: var(--radius-sm);
  padding: .6rem .95rem; max-width: 560px;
  box-shadow: 0 2px 10px rgba(120,40,110,.07), inset 0 1px 0 rgba(255,255,255,.9);
  position: relative; overflow: hidden;
}
.plan-budget-bar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--budget-pct, 55%);
  background: rgba(233,30,140,.08);
  pointer-events: none;
  border-right: 2px solid rgba(233,30,140,.30);
}
.budget-label { font-size: .85rem; color: var(--ink-2); position: relative; font-weight: 500; }
.budget-spent { font-size: .85rem; color: var(--accent-ink); position: relative; font-variant-numeric: tabular-nums; font-weight: 600; }
.plan-hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; padding-top: 2rem; }

/* ─── Plan Layout ─────────────────────────────────────────────────────────────── */
.plan-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 2.25rem;
  padding-top: 2.25rem; padding-bottom: 3.5rem; align-items: start;
}
@media (max-width: 900px) { .plan-layout { grid-template-columns: 1fr; } }

/* ─── Timeline ─────────────────────────────────────────────────────────────── */
.timeline-panel {}
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.timeline-title { font-family: var(--sf); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: .875rem; top: 6px; bottom: 6px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom,
    var(--accent) 0%,
    rgba(233,30,140,.45) 55%,
    rgba(233,30,140,.10) 100%);
}

.timeline-item { position: relative; margin-bottom: 1.6rem; transition: all .25s var(--ease); animation: riseIn .5s var(--ease) both; }
.timeline-item.pinned .activity-card { border-left-color: var(--ac) !important; background: linear-gradient(to right, rgba(233,30,140,.035), #ffffff 40%); }
.timeline-item.dragging { opacity: .5; }
.timeline-item.drag-over .activity-card { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(233,30,140,.16), var(--shadow); }
.timeline-dot {
  position: absolute; left: -1.875rem; top: 1.375rem; width: 13px; height: 13px;
  border-radius: 50%; border: 2.5px solid white;
  box-shadow: 0 0 0 2px currentColor;
  transition: box-shadow .25s var(--ease);
}
.timeline-item:hover .timeline-dot { box-shadow: 0 0 0 2.5px currentColor, 0 0 14px 2px currentColor; }

.activity-card {
  background: linear-gradient(180deg, #ffffff, #fffcfd);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.35rem; border: var(--glass-border);
  border-left: 4px solid var(--ac, var(--accent));
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.activity-card:hover { transform: translateX(3px) translateY(-1px); box-shadow: var(--shadow-lift); }
.activity-card-top { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.time-badge {
  background: color-mix(in srgb, var(--ac, var(--accent)) 13%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--ac, var(--accent)) 38%, transparent);
  color: var(--ink); font-size: .78rem; font-weight: 700;
  padding: .24rem .75rem; border-radius: 50px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.category-badge { font-size: .78rem; background: rgba(43,34,48,.07); padding: .25rem .7rem; border-radius: 50px; color: var(--ink-2); font-weight: 500; }
.activity-actions { display: flex; gap: .25rem; margin-left: auto; }
.act-btn { background: none; border: none; cursor: pointer; padding: .35rem; border-radius: 50px; font-size: .9rem; transition: background .15s var(--ease), transform .15s var(--ease); line-height: 1; }
.act-btn:hover { background: rgba(233,30,140,.09); transform: scale(1.08); }
.act-btn:active { transform: scale(.95); }
.act-btn:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 1px; }
.pin-btn.pinned { }
.drag-handle { cursor: grab; font-size: 1.1rem; opacity: .4; }
.drag-handle:hover { opacity: 1; }
.drag-handle:active { cursor: grabbing; }
.delete-btn:hover { background: rgba(217,38,38,.1); }
.activity-name { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; letter-spacing: -0.015em; }
.activity-desc { font-size: .875rem; color: var(--ink-2); line-height: 1.68; margin-bottom: .75rem; }
.activity-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .82rem; color: var(--ink-2); }
.activity-location { }
.activity-cost { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.activity-dur { color: var(--ink-3); }
.activity-tip {
  background: rgba(233,30,140,.05);
  border: 1px solid rgba(233,30,140,.16); border-radius: var(--radius-sm);
  padding: .55rem .8rem; font-size: .82rem; color: var(--ink-2); margin-top: .8rem;
}
.activity-book { display: inline-block; margin-top: .75rem; font-size: .82rem; color: var(--accent-ink); text-decoration: none; font-weight: 600; transition: color .18s; }
.activity-book:hover { text-decoration: underline; color: var(--accent-deep); }

.travel-connector { display: flex; align-items: center; gap: .75rem; margin: .45rem 0; padding-left: .25rem; }
.travel-line { flex: 1; height: 1px; background: rgba(233,30,140,.18); }
.travel-time { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }

.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--ink-2); }
.empty-state h3 { font-size: 1.4rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }

/* ─── Recommendations ─────────────────────────────────────────────────────────── */
.recs-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px dashed rgba(233,30,140,.18); }
.recs-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.recs-header h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.recs-carousel { display: flex; gap: 1rem; overflow-x: auto; padding: .25rem .25rem .75rem; scroll-snap-type: x proximity; }
.rec-card {
  flex: 0 0 220px; scroll-snap-align: start;
  background: linear-gradient(180deg, #ffffff, #fffbfd);
  border-radius: var(--radius); padding: 1.1rem;
  box-shadow: var(--shadow-sm); border: var(--glass-border);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rec-emoji { font-size: 1.75rem; margin-bottom: .5rem; }
.rec-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.rec-card p { font-size: .8rem; color: var(--ink-2); line-height: 1.55; }
.rec-cost { display: inline-block; margin-top: .5rem; font-size: .75rem; color: var(--accent-ink); font-weight: 600; }

/* ─── Map Panel ─────────────────────────────────────────────────────────────── */
.map-panel { position: sticky; top: 82px; }
#map { width: 100%; height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: var(--glass-border); }
.map-legend { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.map-legend-item { display: flex; align-items: center; gap: .75rem; cursor: pointer; padding: .5rem .75rem; border-radius: var(--radius-sm); transition: background .16s var(--ease), transform .16s var(--ease); }
.map-legend-item:hover { background: rgba(233,30,140,.06); transform: translateX(2px); }
.map-legend-item:active { transform: translateX(0); }
.map-legend-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .72rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.3);
}
.map-legend-name { font-size: .85rem; color: var(--ink-2); }

/* ─── Modals ─────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(36,20,44,.45); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .2s var(--ease) both;
}
.modal {
  background: linear-gradient(180deg, #ffffff, #fffafd);
  border-radius: var(--radius); padding: 2rem; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  border: var(--glass-border);
  box-shadow: 0 8px 24px rgba(60,20,60,.14), 0 32px 90px rgba(60,20,60,.28);
  animation: modalIn .25s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h3 { font-family: var(--sf); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--ink-2); padding: .3rem .5rem; border-radius: 50px; transition: all .15s var(--ease); }
.modal-close:hover { background: rgba(233,30,140,.08); color: var(--ink); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-2); margin-bottom: .38rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .72rem .95rem; border: 1.5px solid rgba(43,34,48,.16);
  border-radius: var(--radius-sm); font-family: var(--sf); font-size: .9rem;
  background: rgba(253,248,250,.7); color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent-ink); background: #fff;
  box-shadow: 0 0 0 4px rgba(233,30,140,.12);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ─── Loading Overlay ─────────────────────────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  background: linear-gradient(135deg, #fdeef6, #fdf6f9, #ffeef6);
  background-size: 300% 300%;
  animation: gradientDrift 9s ease infinite;
  backdrop-filter: blur(20px);
}
@keyframes gradientDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.loading-card {
  text-align: center; max-width: 460px; width: 100%;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  box-shadow: 0 8px 24px rgba(120,40,110,.10), 0 32px 80px rgba(120,40,110,.16), inset 0 1px 0 rgba(255,255,255,.9);
  animation: riseIn .45s var(--ease) both;
}
.loading-spinner {
  position: relative;
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.75rem;
  border: 3px solid rgba(233,30,140,.14);
  border-top-color: var(--accent);
  animation: spin 1.1s linear infinite;
}
.loading-spinner::after {
  content: '💗';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  animation: heartbeat 1.3s ease-in-out infinite, counterspin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counterspin { to { transform: rotate(-360deg); } }
@keyframes heartbeat {
  0%, 100% { scale: 1; }
  25% { scale: 1.18; }
  40% { scale: .96; }
  55% { scale: 1.12; }
}
.loading-card h2 { font-size: 1.55rem; font-weight: 700; color: var(--ink); margin-bottom: 1.5rem; }
.loading-steps { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; text-align: left; }
.loading-step {
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  background: rgba(43,34,48,.045); color: var(--ink-2); font-size: .9rem;
  border: 1px solid transparent;
  transition: all .35s var(--ease);
}
.loading-step.active {
  background: rgba(233,30,140,.09);
  border-color: rgba(233,30,140,.22);
  color: var(--accent-ink); font-weight: 600;
  box-shadow: 0 2px 12px rgba(233,30,140,.12);
  transform: translateX(4px);
}
.loading-sub { font-size: .85rem; color: var(--ink-3); }

/* ─── Wizard polish (higher specificity to override page styles) ───────────── */
.wizard .step-tabs {
  background: rgba(255,255,255,.8); backdrop-filter: blur(10px);
  border: var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.wizard .step-tab { transition: all .2s var(--ease); border-radius: var(--radius-sm); }
.wizard .step-tab:hover { color: var(--accent-ink); }
.wizard .step-tab.active {
  background: linear-gradient(135deg, #e0187f, #cf1477 60%, var(--accent-deep));
  color: white;
  box-shadow: 0 3px 12px rgba(233,30,140,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.wizard .step-tab.active:hover { color: white; }
.wizard .form-card {
  background: linear-gradient(180deg, #ffffff, #fffbfd);
  border: var(--glass-border);
  box-shadow: var(--shadow);
}
.wizard .vibe-label {
  border: 2px solid rgba(43,34,48,.09);
  background: rgba(255,255,255,.85);
  transition: all .2s var(--ease);
}
.wizard .vibe-label:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--vibe-c, var(--accent)) 22%, transparent);
}
.wizard .vibe-opt:checked + .vibe-label {
  background: linear-gradient(150deg, var(--vibe-c), color-mix(in srgb, var(--vibe-c) 80%, #2b2230));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--vibe-c, var(--accent)) 40%, transparent);
}
.wizard .vibe-opt:focus-visible + .vibe-label { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.wizard .autocomplete-list {
  border: var(--glass-border);
  box-shadow: 0 12px 40px rgba(60,20,60,.16);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.96);
}
.wizard .autocomplete-item { transition: background .12s var(--ease); }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer { text-align: center; padding: 2.25rem 2rem; font-size: .85rem; color: var(--ink-3); border-top: 1px solid rgba(233,30,140,.09); }
.footer a { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ─── Shared animations ─────────────────────────────────────────────────────── */
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Gentle stagger for grids */
.plans-grid > :nth-child(2), .vibe-grid > :nth-child(2) { animation-delay: .05s; }
.plans-grid > :nth-child(3), .vibe-grid > :nth-child(3) { animation-delay: .1s; }
.plans-grid > :nth-child(4), .vibe-grid > :nth-child(4) { animation-delay: .15s; }
.plans-grid > :nth-child(5), .vibe-grid > :nth-child(5) { animation-delay: .2s; }
.plans-grid > :nth-child(6), .vibe-grid > :nth-child(6) { animation-delay: .25s; }
.timeline-item:nth-child(2) { animation-delay: .06s; }
.timeline-item:nth-child(3) { animation-delay: .12s; }
.timeline-item:nth-child(4) { animation-delay: .18s; }
.timeline-item:nth-child(5) { animation-delay: .24s; }
.timeline-item:nth-child(n+6) { animation-delay: .3s; }

/* ─── Reduced motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 1rem; }
  .container { padding: 0 1rem; }
  .hero { padding: 3.25rem 1rem 2.75rem; }
  .hero-title { font-size: 2.35rem; }
  .plan-hero-actions { display: none; }
  .plan-layout { grid-template-columns: 1fr; }
  .map-panel { position: relative; top: 0; }
  #map { height: 280px; }
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(233,30,140,.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(233,30,140,.38); }
