/* ============================================================
   PROTO TRAVEL — PLAN PAGE (hero only; trip section reuses route.css)
   ============================================================ */

/* Hide the shared site-header / default layout; plan page uses its own */
.plan-body .site-header { display: none; }

/* ---------- PLAN TOP BAR (dark, sticky) ---------- */
.plan-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 40px);
  background: rgba(11,11,12,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #F5F3EE;
}
.plan-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #F5F3EE; text-decoration: none;
  font-weight: 700; letter-spacing: 0.14em; font-size: 13px;
}
.plan-brand-mark {
  width: 26px; height: 26px;
  display: inline-grid; place-items: center;
  background: #F5F3EE; color: #0B0B0C;
  border-radius: 6px; font-weight: 900; font-size: 14px;
  font-family: 'Gambarino', serif;
}
.plan-brand-word { font-family: 'Satoshi', sans-serif; }
.plan-nav {
  display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 28px);
}
.plan-nav a {
  color: rgba(245,243,238,0.72); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 160ms ease;
}
.plan-nav a.is-active { color: #E8A13A; }
.plan-nav a:hover { color: #F5F3EE; }
.plan-nav .theme-toggle {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-grid; place-items: center;
  color: rgba(245,243,238,0.7);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

/* ---------- HERO ---------- */
.plan-hero {
  position: relative;
  min-height: 78vh;
  display: grid; place-items: center;
  padding: clamp(48px, 9vw, 120px) clamp(16px, 4vw, 40px) clamp(32px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background: #0B0B0C;
  color: #F5F3EE;
}
.plan-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(234, 140, 60, 0.22), transparent 60%),
    radial-gradient(800px 500px at 50% 80%, rgba(63, 28, 12, 0.55), transparent 70%),
    linear-gradient(180deg, #0B0B0C 0%, #141210 50%, #0B0B0C 100%);
  z-index: -2;
}
.plan-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 40%, rgba(255, 180, 90, 0.10), transparent 70%);
  z-index: -1; pointer-events: none;
}
.plan-hero-inner {
  width: 100%; max-width: 640px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
}
.plan-hero-title {
  font-family: 'Gambarino', 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #F5F3EE;
  text-wrap: balance;
}
.plan-hero-sub {
  font-size: 15px; line-height: 1.55;
  color: rgba(245,243,238,0.62);
  max-width: 420px; margin: 0 auto;
}

/* ---------- SEARCH ---------- */
.plan-search {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-top: 8px;
}
.plan-input-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  transition: border-color 180ms ease, background 180ms ease;
}
.plan-input-wrap:focus-within {
  border-color: rgba(232, 161, 58, 0.55);
  background: rgba(255,255,255,0.06);
}
.p-chip {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  background: #F5F3EE; color: #0B0B0C;
  border-radius: 999px;
  font-weight: 900; font-family: 'Gambarino', serif; font-size: 16px;
  user-select: none;
}
.plan-input-wrap input {
  background: transparent; border: none; outline: none;
  color: #F5F3EE; font-size: 15px; height: 32px;
  padding: 0 4px;
  font-family: 'Satoshi', sans-serif;
}
.plan-input-wrap input::placeholder { color: rgba(245,243,238,0.42); }
.mic-btn {
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: transparent; color: rgba(245,243,238,0.6);
  border: none; cursor: pointer;
}
.mic-btn:hover { color: #F5F3EE; }

.plan-location-row {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
}
.plan-loc-wrap {
  display: grid; grid-template-columns: auto 1fr;
  align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: rgba(245,243,238,0.6);
}
.plan-loc-wrap:focus-within { border-color: rgba(232,161,58,0.55); }
.plan-loc-wrap input {
  background: transparent; border: none; outline: none;
  color: #F5F3EE; font-size: 14px;
  width: 100%;
  font-family: 'Satoshi', sans-serif;
}
.plan-use-loc {
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #F5F3EE;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  cursor: pointer; font-family: 'Satoshi', sans-serif;
}
.plan-use-loc:hover { background: rgba(255,255,255,0.08); }

.plan-cta {
  width: 100%;
  padding: 16px 24px; border-radius: 999px; border: none;
  background: linear-gradient(180deg, #F2A23B 0%, #E4851A 100%);
  color: #1A0F04;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(228, 133, 26, 0.28);
  cursor: pointer; font-family: 'Satoshi', sans-serif;
  transition: transform 120ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.plan-cta:hover { filter: brightness(1.05); box-shadow: 0 10px 28px rgba(228, 133, 26, 0.38); }
.plan-cta:active { transform: translateY(1px); }
.plan-cta[disabled] { opacity: 0.7; cursor: wait; }

.plan-chips {
  width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 8px;
}
.biochip {
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(245,243,238,0.85);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  cursor: pointer; font-family: 'Satoshi', sans-serif;
  transition: all 160ms ease;
}
.biochip:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,161,58,0.4);
  color: #F5F3EE;
}
.biochip.is-active {
  background: rgba(232,161,58,0.14);
  border-color: rgba(232,161,58,0.65);
  color: #F5D9AD;
}
.plan-footnote {
  margin-top: 20px; font-size: 12px; line-height: 1.5;
  color: rgba(245,243,238,0.42);
}

/* ---------- STATUS BAR ---------- */
.trip-status {
  position: sticky; top: 72px; z-index: 25;
  margin: 12px auto;
  max-width: 360px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(1, 105, 111, 0.1);
  border: 1px solid rgba(1, 105, 111, 0.25);
  color: #01696F;
  font-size: 13px; font-weight: 500;
  font-family: 'Satoshi', sans-serif;
  backdrop-filter: blur(6px);
}
.trip-status[hidden] { display: none; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(1,105,111,0.2);
  border-top-color: #01696F;
  animation: plan-spin 0.8s linear infinite;
}
@keyframes plan-spin { to { transform: rotate(360deg); } }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {
  .plan-input-wrap { padding: 10px 14px; }
  .plan-cta { width: auto; min-width: 320px; padding: 18px 40px; font-size: 16px; }
}
@media (max-width: 560px) {
  .plan-location-row { grid-template-columns: 1fr; }
  .plan-use-loc { width: 100%; }
  .plan-hero-title { font-size: 44px; }
}

/* ---------- HERITAGE BLOCK (day card) ---------- */
.day-heritage {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border, #D4D1CA);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.heritage-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B07A00;
  font-family: 'Gambarino', serif;
}
.heritage-card {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1C1612 0%, #0F0B08 100%);
  border: 1px solid rgba(208, 160, 50, 0.25);
  color: #F3E6C4;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}
.heritage-card:hover {
  border-color: rgba(208, 160, 50, 0.55);
  transform: translateY(-1px);
}
.heritage-name {
  font-family: 'Gambarino', 'Instrument Serif', Georgia, serif;
  font-size: 16px;
  color: #F3E6C4;
  margin-bottom: 4px;
}
.heritage-note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(243, 230, 196, 0.72);
  margin-bottom: 6px;
}
.heritage-link {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #D4A94A;
  text-transform: lowercase;
  font-family: 'Satoshi', sans-serif;
}
