:root {
  --bg: #f5f9ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(15, 33, 58, 0.12);
  --text: #0f1724;
  --muted: #5f7390;
  --accent: #2f80ff;
  --success: #2b6de0;
  --shadow: 0 24px 80px rgba(27, 56, 96, 0.12);
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
  --font-heading: "Iowan Old Style", "Palatino Linotype", serif;
  --font-mono: "SFMono-Regular", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(92, 164, 255, 0.22), transparent 26%),
    radial-gradient(circle at bottom right, rgba(110, 180, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #e7f0fb 0%, #eef4fb 30%, #f4f7fc 100%);
  font-family: var(--font-body);
}

a {
  color: inherit;
}

.app-shell,
.plan-shell {
  padding: 20px 24px 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.brand-lockup {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f80ff, #19b0ff);
  color: white;
  font-weight: 800;
}

.brand-name {
  font-weight: 700;
  color: #10243f;
}

.brand-subtitle {
  color: #667e9f;
  font-size: 0.88rem;
}

.ghost-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(16, 36, 63, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: #163153;
  text-decoration: none;
  font-weight: 600;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(380px, 520px) minmax(0, 1fr);
  gap: 20px;
  min-height: calc(100vh - 110px);
}

.planner-panel,
.preview-panel,
.plan-shell {
  border: 1px solid rgba(21, 43, 78, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 80px rgba(37, 61, 100, 0.12);
  backdrop-filter: blur(18px);
}

.planner-panel {
  padding: 28px;
}

.preview-panel {
  position: relative;
  overflow: hidden;
  min-height: 720px;
}

.preview-map {
  position: relative;
  height: 100%;
  min-height: 720px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1)),
    radial-gradient(circle at 20% 30%, rgba(47, 128, 255, 0.16), transparent 18%),
    radial-gradient(circle at 75% 55%, rgba(110, 180, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #dfeaf7 0%, #eef4fb 45%, #e7edf5 100%);
}

.preview-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.toolbar-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #476687;
  font-size: 0.84rem;
  font-weight: 700;
}

.toolbar-pill.is-active {
  background: linear-gradient(135deg, #2f80ff, #19b0ff);
  color: white;
}

.preview-map::before,
.preview-map::after {
  content: "";
  position: absolute;
  inset: 0;
}

.preview-map::before {
  background-image:
    linear-gradient(rgba(140, 166, 198, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 166, 198, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
}

.preview-map::after {
  background:
    radial-gradient(circle at 18% 32%, rgba(34, 122, 255, 0.9) 0 8px, transparent 9px),
    radial-gradient(circle at 48% 56%, rgba(34, 122, 255, 0.9) 0 8px, transparent 9px),
    radial-gradient(circle at 72% 70%, rgba(34, 122, 255, 0.9) 0 8px, transparent 9px);
}

.map-route {
  position: absolute;
  border-top: 3px dashed rgba(39, 117, 255, 0.6);
  transform-origin: left center;
}

.route-a {
  top: 33%;
  left: 18%;
  width: 34%;
  transform: rotate(20deg);
}

.route-b {
  top: 60%;
  left: 48%;
  width: 26%;
  transform: rotate(16deg);
}

.map-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
}

.map-glow-one {
  top: 18%;
  left: 12%;
  width: 180px;
  height: 180px;
  background: rgba(44, 127, 255, 0.14);
}

.map-glow-two {
  bottom: 14%;
  right: 16%;
  width: 220px;
  height: 220px;
  background: rgba(84, 155, 255, 0.14);
}

.panel-header {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  font-family: var(--font-heading);
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.2rem, 4.2vw, 4.7rem);
  line-height: 0.98;
  color: #10243f;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

p {
  margin: 0;
}

.hero-copy {
  margin-top: 18px;
  max-width: 60ch;
  color: #637998;
  font-size: 1.05rem;
  line-height: 1.65;
}

.content-grid {
  margin-top: 28px;
}

.section-title {
  display: grid;
  gap: 10px;
}

.section-title p:last-child {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.6;
}

.planner-form,
.stop-panel,
.transport-panel,
.budget-row,
.listing-row,
.warning-row,
.route-row,
.meal-row,
.timeline-row,
.empty-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.planner-form {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.trip-form {
  gap: 14px;
}

.trip-row {
  display: grid;
  gap: 14px;
}

.dual-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label,
.field-card {
  display: grid;
  gap: 8px;
}

.field-card {
  padding: 16px 18px;
  border: 1px solid rgba(16, 36, 63, 0.08);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.86);
}

.field-label,
label span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #6a809d;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #13253f;
  font-size: 1.02rem;
  outline: none;
}

.compact-card {
  min-height: 96px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.pref-chip {
  padding: 10px 14px;
  border: 1px solid rgba(34, 99, 198, 0.14);
  border-radius: 999px;
  background: white;
  color: #29507e;
  cursor: pointer;
}

.pref-chip.is-active {
  background: linear-gradient(135deg, #2f80ff, #19b0ff);
  color: white;
  border-color: transparent;
}

.mode-text {
  color: #0f315e;
  font-weight: 700;
}

.cta-strip {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.primary-button {
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f80ff, #19b0ff);
  color: #fff7f0;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
  text-decoration: none;
  min-width: 220px;
}

.secondary-button {
  min-width: 180px;
}

.ai-button {
  gap: 10px;
}

.ai-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.subtle-copy,
.warning-row,
.timeline-row p,
.route-row p,
.meal-row p,
.transport-panel p,
.listing-row p,
.stop-panel p,
.empty-card p:last-of-type {
  color: var(--muted);
  line-height: 1.55;
}

.error-text {
  color: #1f5fd1;
  font-weight: 700;
}

.form-note {
  color: #7890af;
  font-size: 0.92rem;
}

.floating-card {
  position: absolute;
  min-width: 220px;
  max-width: 280px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 36, 63, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 40px rgba(46, 69, 111, 0.14);
}

.preview-footer-strip {
  position: absolute;
  right: 18px;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-footer-strip div {
  padding: 14px 16px;
  border: 1px solid rgba(16, 36, 63, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.preview-footer-strip span {
  display: block;
  color: #6d87a8;
  font-size: 0.82rem;
}

.preview-footer-strip strong {
  display: block;
  margin-top: 6px;
  color: #143257;
  font-size: 1.18rem;
}

.floating-label {
  margin-bottom: 8px;
  color: #6e85a3;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-top {
  top: 7%;
  right: 6%;
}

.card-middle {
  top: 38%;
  left: 7%;
}

.card-bottom {
  right: 8%;
  bottom: 8%;
}

.mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding-left: 18px;
  color: #214268;
}

.plan-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: end;
  min-height: min(50vh, 520px);
  max-height: 50vh;
  padding: 28px 32px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(133, 190, 255, 0.28), transparent 22%),
    linear-gradient(135deg, #22569f, #4e94ef);
  overflow: hidden;
}

.plan-hero > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  min-width: 0;
}

.plan-hero .eyebrow,
.plan-hero h1,
.plan-hero .hero-copy,
.plan-hero .plan-tab {
  color: #ffffff;
}

.plan-hero h1 {
  max-width: 22ch;
  font-size: clamp(1rem, 1.35vw, 24px);
  line-height: 1.12;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.plan-hero .hero-copy {
  margin-top: 12px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  line-height: 1.35;
}

.plan-hero-copywrap {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 100%;
}

.summary-rail {
  display: grid;
  gap: 8px;
  align-content: end;
}

.summary-rail div {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.summary-rail span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
}

.summary-rail strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 1rem;
}

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.plan-tab {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 700;
}

.plan-stage {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid rgba(20, 50, 87, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 32%, rgba(60, 137, 255, 0.16), transparent 18%),
    radial-gradient(circle at 76% 68%, rgba(255, 164, 93, 0.14), transparent 22%),
    linear-gradient(135deg, #f3f8fe, #edf4fb 55%, #e6edf6);
  box-shadow: 0 24px 60px rgba(52, 82, 123, 0.12);
}

.budget-selector {
  display: grid;
  gap: 18px;
}

.budget-tab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.budget-tab {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(16, 36, 63, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  color: #18345a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(52, 82, 123, 0.08);
}

.budget-tab.is-selected {
  border-color: rgba(47, 128, 255, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 255, 0.98));
  box-shadow: 0 22px 42px rgba(47, 128, 255, 0.14);
}

.budget-tab-label {
  color: #10243f;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-transform: lowercase;
}

.budget-tab strong {
  color: #10243f;
  font-size: 1.35rem;
}

.budget-tab p {
  color: #617894;
  line-height: 1.5;
}

.budget-focus {
  border-color: rgba(47, 128, 255, 0.2);
}

.plan-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 166, 198, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 166, 198, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
}

.plan-stage-line {
  position: absolute;
  top: 50%;
  left: 18%;
  width: 58%;
  border-top: 4px dashed rgba(52, 122, 244, 0.55);
  transform: rotate(7deg);
}

.plan-stage-pin {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #2578ff;
  box-shadow: 0 0 0 8px rgba(37, 120, 255, 0.12);
}

.pin-one {
  top: 28%;
  left: 18%;
}

.pin-two {
  top: 50%;
  left: 46%;
}

.pin-three {
  top: 69%;
  left: 73%;
}

.stage-card {
  position: absolute;
  z-index: 2;
  padding: 14px 16px;
  border: 1px solid rgba(16, 36, 63, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 30px rgba(52, 82, 123, 0.12);
}

.stage-card-left {
  top: 18px;
  left: 18px;
}

.stage-card-right {
  right: 18px;
  bottom: 18px;
}

.stage-card p {
  color: #66809f;
  font-size: 0.84rem;
}

.content-flow,
.stack-list,
.timeline,
.transport-grid,
.stop-grid {
  display: grid;
  gap: 18px;
}

.content-flow {
  margin-top: 28px;
}

.route-row,
.meal-row,
.timeline-row,
.budget-row,
.listing-row,
.warning-row {
  padding: 18px;
  border-radius: 22px;
}

.route-row,
.meal-row,
.timeline-row,
.budget-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.route-meta {
  display: grid;
  gap: 6px;
  min-width: 140px;
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
}

.stop-panel,
.transport-panel {
  padding: 20px;
  border-radius: 24px;
}

.stop-panel,
.transport-row,
.listing-row,
.warning-row,
.budget-focus,
.route-row,
.meal-row {
  max-width: 100%;
}

.stop-panel ul,
.transport-panel ul {
  margin: 14px 0;
  padding-left: 18px;
  color: var(--text);
}

.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr 110px;
  align-items: start;
}

.timeline-day {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verification-badge {
  align-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.verification-verified_open {
  background: rgba(43, 109, 224, 0.13);
  color: var(--success);
}

.verification-temporarily_closed {
  background: rgba(83, 133, 214, 0.14);
  color: #2e63b5;
}

.verification-permanently_closed {
  background: rgba(25, 52, 88, 0.12);
  color: #18345a;
}

.verification-status_unclear {
  background: rgba(121, 145, 176, 0.16);
  color: #435a78;
}

.compact {
  gap: 14px;
}

.empty-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.empty-card {
  display: grid;
  gap: 16px;
  max-width: 620px;
  padding: 28px;
  border-radius: 28px;
}

@media (max-width: 980px) {
  .workspace,
  .plan-hero,
  .timeline-row,
  .route-row,
  .meal-row,
  .budget-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .app-shell,
  .plan-shell {
    padding: 18px;
  }

  .plan-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .preview-panel {
    min-height: 420px;
  }

  .preview-map {
    min-height: 420px;
  }

  .preview-footer-strip {
    grid-template-columns: 1fr;
  }

  .budget-tab-grid {
    grid-template-columns: 1fr;
  }

  .cta-strip,
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    max-width: 100%;
  }

  .floating-card {
    position: static;
    margin: 16px;
  }

  .plan-tabs {
    margin-top: 14px;
  }

  .plan-hero {
    min-height: auto;
    max-height: none;
    padding: 24px;
  }

  .plan-hero h1 {
    font-size: min(24px, 6vw);
  }
}
