﻿:root {
  --bg: #f4efe8;
  --surface: rgba(255, 250, 244, 0.8);
  --surface-strong: #fff7ed;
  --ink: #1e1c1a;
  --muted: #6f655d;
  --line: rgba(68, 55, 45, 0.12);
  --accent: #e4693f;
  --accent-deep: #9f4d2f;
  --ocean: #2f7f8d;
  --glow: #ffd5a3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 208, 144, 0.85), transparent 35%),
    radial-gradient(circle at top right, rgba(63, 138, 154, 0.28), transparent 28%),
    linear-gradient(180deg, #f8f1e6 0%, #efe6db 100%);
}
.page-shell { max-width: 1320px; margin: 0 auto; padding: 28px; }
.back-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 92px;
  padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.55); backdrop-filter: blur(14px);
}
.hero-card, .planner-panel {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.5); backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(78, 53, 34, 0.08); border-radius: 32px;
}
.hero-card {
  margin-top: 18px; padding: 36px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; overflow: hidden;
}
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--accent-deep); font-weight: 800; }
.hero-copy h1, .panel-heading h2 { margin: 0; font-family: "Outfit", sans-serif; }
.hero-copy h1 { font-size: clamp(3rem, 5vw, 5.4rem); line-height: 0.95; }
.hero-text { max-width: 620px; color: var(--muted); line-height: 1.8; font-size: 1.05rem; }
.hero-tags, .summary-stats, .budget-breakdown { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags span, .budget-chip, .stat-card {
  border-radius: 18px; padding: 12px 16px; background: rgba(255,255,255,0.55); border: 1px solid rgba(68,55,45,0.08);
}
.hero-preview {
  position: relative; min-height: 280px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, rgba(47,127,141,0.95), rgba(14,42,54,0.9));
}
.preview-orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: 0.8; }
.orb-a { width: 180px; height: 180px; background: rgba(255, 209, 136, 0.9); top: -30px; right: -20px; }
.orb-b { width: 220px; height: 220px; background: rgba(255,255,255,0.16); bottom: -70px; left: -60px; }
.mini-trip-card {
  position: absolute; border-radius: 22px; padding: 18px; color: white; backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); min-width: 180px;
}
.mini-trip-card strong { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.card-main { top: 34px; left: 32px; }
.card-side { right: 26px; bottom: 26px; }
.planner-layout { margin-top: 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.planner-panel { padding: 28px; }
.controls-panel, .summary-panel { min-height: 100%; }
.timeline-panel, .budget-panel { grid-column: span 1; }
.panel-heading.compact { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label span { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 800; color: var(--muted); }
select, input[type="date"] {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.7); font: inherit; color: var(--ink);
}
.generate-btn {
  width: 100%; margin-top: 16px; border: none; border-radius: 18px; padding: 16px 18px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #f39d52); color: white; font: inherit; font-weight: 800;
  box-shadow: 0 16px 28px rgba(228, 105, 63, 0.26);
}
.logic-note { margin-top: 14px; color: var(--muted); line-height: 1.7; font-size: 0.92rem; }
.summary-pill {
  padding: 10px 14px; border-radius: 999px; background: rgba(47,127,141,0.12); color: var(--ocean); font-weight: 800;
}
.stat-card { min-width: 140px; flex: 1; }
.stat-card strong { display: block; font-family: "Outfit", sans-serif; font-size: 1.5rem; margin-bottom: 4px; }
.stat-card span { color: var(--muted); font-size: 0.92rem; }
.map-card { margin-top: 18px; padding: 18px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,246,236,0.88)); border: 1px solid rgba(68,55,45,0.08); }
.map-topline { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.map-topline span { color: var(--muted); }
.map-stage {
  position: relative; min-height: 280px; border-radius: 22px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47,127,141,0.08), rgba(255,255,255,0.4)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(47,127,141,0.08) 48px 49px),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(47,127,141,0.08) 48px 49px),
    #fffaf4;
}
.map-stage::after {
  content: ""; position: absolute; inset: 24px; border-radius: 22px; border: 2px dashed rgba(47,127,141,0.16);
}
.map-pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px rgba(228, 105, 63, 0.16);
}
.map-pin-label {
  position: absolute; transform: translate(-50%, 18px); z-index: 1; padding: 8px 10px; border-radius: 12px; font-size: 0.8rem;
  background: rgba(255,255,255,0.88); border: 1px solid rgba(68,55,45,0.08); white-space: nowrap;
}
.timeline-list { display: grid; gap: 14px; }
.day-card { border-radius: 24px; padding: 20px; background: rgba(255,255,255,0.62); border: 1px solid rgba(68,55,45,0.08); }
.day-card header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.day-card h3 { margin: 0; font-family: "Outfit", sans-serif; font-size: 1.45rem; }
.day-date { color: var(--muted); font-weight: 700; }
.slot-list { display: grid; gap: 10px; }
.slot-item { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.slot-tag { color: var(--accent-deep); font-size: 0.84rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.slot-card { padding: 14px; border-radius: 18px; background: var(--surface-strong); border: 1px solid rgba(68,55,45,0.08); }
.slot-card strong { display: block; margin-bottom: 6px; }
.slot-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.92rem; }
.budget-total {
  padding: 18px 20px; border-radius: 22px; background: linear-gradient(135deg, #173d52, #2f7f8d); color: white; margin-bottom: 16px;
}
.budget-total strong { display: block; font-family: "Outfit", sans-serif; font-size: 2rem; }
.budget-breakdown, .checklist { display: grid; gap: 12px; }
.budget-chip { display: flex; justify-content: space-between; gap: 16px; }
.budget-chip span { color: var(--muted); }
.check-item {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(68,55,45,0.08);
}
.check-item small { color: var(--muted); display: block; }
.check-status { font-weight: 800; color: var(--ocean); }
@media (max-width: 1080px) {
  .hero-card, .planner-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-shell { padding: 18px; }
  .hero-card, .planner-panel { padding: 22px; }
  .control-grid { grid-template-columns: 1fr; }
  .slot-item { grid-template-columns: 1fr; }
}

textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font: inherit;
  color: var(--ink);
  resize: vertical;
  min-height: 110px;
}

.wide-field {
  grid-column: 1 / -1;
}

.generate-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.planner-feedback {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(68,55,45,0.08);
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.93rem;
}

.planner-feedback[data-tone="success"] {
  background: rgba(47, 127, 141, 0.12);
  color: var(--ocean);
}

.planner-feedback[data-tone="warn"] {
  background: rgba(228, 105, 63, 0.12);
  color: var(--accent-deep);
}

.trip-narrative {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.day-focus {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.slot-card small,
.budget-chip small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}
