/* ChillSchedule — sky blue + soft mint & lavender (calm “chill” palette).
   Alternatives you can try in :root: dusty rose end #fce7f3, soft peach #ffedd5,
   sea-glass mint #ccfbf1, warm gray-lilac #f3e8ff. */

:root {
  --bg-start: #a8d4ef;
  --bg-mid: #d1e9f8;
  --bg-end: #eef6ff;
  --bg-chill-mint: rgba(204, 251, 241, 0.55);
  --bg-chill-lilac: rgba(237, 233, 254, 0.45);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-2: #0d9488;
  --text: #0f172a;
  --text-muted: #475569;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(120% 80% at 85% -10%, var(--bg-chill-lilac), transparent 50%),
    radial-gradient(90% 70% at -5% 60%, var(--bg-chill-mint), transparent 45%),
    linear-gradient(155deg, var(--bg-start) 0%, var(--bg-mid) 42%, var(--bg-end) 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 1.75rem);
  max-width: 1220px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  height: 3rem;
  width: auto;
  max-width: min(11rem, 46vw);
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  vertical-align: middle;
}

.logo-text {
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tier-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tier-badge[data-tier="member"] {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.25);
}

.btn {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: var(--surface-solid);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}

.btn-wide {
  width: 100%;
  padding: 0.85rem 1.25rem;
}

.btn-inline {
  margin-top: 0.5rem;
  width: auto;
}

.hidden {
  display: none !important;
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 1.5rem;
}

/* Hero / landing */
.hero {
  padding: 1rem clamp(1rem, 4vw, 2rem) clamp(1.25rem, 3.6vw, 2rem);
  max-width: 1220px;
  margin: 0 auto;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-inner h1 {
  font-size: clamp(1.35rem, 2.8vw + 0.3rem, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  line-height: 1.1;
}

.lede {
  font-size: clamp(0.9rem, 1.1vw + 0.72rem, 1.02rem);
  color: var(--text-muted);
  max-width: none;
  margin: 0 0 1rem;
  line-height: 1.52;
  white-space: nowrap;
}

 .hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
 }

.hero-actions--inline {
  margin-top: 0.35rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  max-width: min(92vw, 520px);
  text-align: center;
}

.toast.is-showing {
  display: block;
}

.toast[hidden] {
  display: none !important;
}

 

/* Planner */
.planner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.planner-inner {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.planner-inner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.planner-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}


.plan-form .field {
  display: block;
  margin-bottom: 1.25rem;
}

 .place-picker {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.6rem 0.85rem;
  align-items: start;
 }

 @media (max-width: 720px) {
  .place-picker {
    grid-template-columns: 1fr;
  }
  .lede {
    white-space: normal;
  }
 }

 .place-suggestions {
  margin-top: 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-solid);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
 }

 .place-suggestion {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
 }

 .place-suggestion:last-child {
  border-bottom: 0;
 }

 .place-suggestion:hover,
 .place-suggestion.is-active {
  background: rgba(37, 99, 235, 0.08);
 }

 .place-suggestion-title {
  font-weight: 650;
  color: var(--text);
 }

 .place-suggestion-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
 }

 .place-globe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
 }

.place-globe-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 70% 78%, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0) 58%);
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

.map::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    inset -22px -30px 70px rgba(15, 23, 42, 0.24),
    0 18px 40px rgba(2, 6, 23, 0.14);
}

.map .maplibregl-canvas,
.map .maplibregl-map {
  border-radius: 999px;
}

.place-picker--landing .map {
  min-height: 200px;
  max-width: min(42vw, 420px);
  justify-self: end;
}

@media (max-width: 720px) {
  .place-picker--landing .map {
    max-width: 100%;
    justify-self: stretch;
  }
}

.map .maplibregl-control-container .maplibregl-ctrl {
  font-family: var(--font);
}

.destination-picked {
  margin: 0.4rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
}

.destination-picked-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.plan-form .subfield {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}


.plan-form .sub-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.field-calendar {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
}

.calendar-intro {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.date-pick-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.date-pick-tab {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.date-pick-tab:hover {
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--text);
}

.date-pick-tab.is-active {
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn-cal-nav {
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
}

.calendar-month-label {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.cal-cell.cal-cell--pad {
  min-height: 2.25rem;
}

.cal-day {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 2.25rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.cal-day:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.22);
}

.cal-day--past,
.cal-day:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.35);
}

.cal-day--max {
  cursor: not-allowed;
  opacity: 0.38;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.35);
}

.cal-day--past:hover,
.cal-day:disabled:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: transparent;
}

.cal-day--range {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
}

.cal-day--start,
.cal-day--end {
  background: var(--accent);
  color: #fff;
  border-color: rgba(37, 99, 235, 0.5);
}

.cal-day--start.cal-day--end {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.calendar-summary {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--surface-solid);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}


.form-error {
  color: #b91c1c;
  font-size: 0.875rem;
  margin: -0.5rem 0 1rem;
}

.member-upsell {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.9rem;
  color: var(--text);
}

/* Results */
.results {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.results-inner h2 {
  margin: 0 0 0.5rem;
}

.results-intro {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.weather-strip {
  margin-bottom: 2rem;
}

.weather-loc-note {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.weather-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.weather-strip-head h3 {
  margin: 0;
}

.weather-strip h3 {
  font-size: 1rem;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
}

.weather-source {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.weather-source a {
  color: var(--accent);
  font-weight: 600;
}

.weather-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.weather-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.weather-card--nodata .weather-snapshot-svg {
  color: var(--text-muted);
}

.weather-snapshot-icon {
  flex-shrink: 0;
  line-height: 0;
}

.weather-snapshot-svg {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

.weather-card-body {
  min-width: 0;
  flex: 1;
}

.weather-card .date {
  font-weight: 600;
  font-size: 0.85rem;
}

.weather-card .temp {
  font-size: 1.1rem;
  color: var(--accent);
}

.weather-card .cond {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Shown once under the results weather strip, before the first day card */
.schedule-top-picks {
  width: 100%;
  max-width: 100%;
}

.schedule-top-picks .day-top-picks {
  margin-bottom: 0;
}

.day-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.day-card > .day-card-weather-snapshot,
.day-card > .day-card-schedule {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

.day-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.day-card-head h3 {
  margin: 0 0 0.25rem;
  flex: 1;
  min-width: min(100%, 12rem);
}

.activity-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.activity-title-block {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.activity-time-slot {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  line-height: 1.2;
  margin-top: 0.1rem;
}

.activity-item-head .activity-title {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.activity-regenerate-btn {
  flex-shrink: 0;
  max-width: 100%;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
}

.activity-item--updated {
  animation: activity-item-updated 1.5s ease-out;
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@keyframes activity-item-updated {
  0% {
    background: rgba(37, 99, 235, 0.14);
  }
  100% {
    background: transparent;
  }
}

.day-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.day-festival {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
  white-space: normal;
}

.day-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.15);
  color: var(--accent-2);
}

.reason {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.day-card-weather-snapshot {
  margin-bottom: 1rem;
}

.day-weather-snapshot {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.day-weather-snapshot--muted {
  background: rgba(248, 250, 252, 0.85);
  border-style: dashed;
}

.day-weather-snapshot--muted .day-inline-forecast {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.day-weather-snapshot-body {
  min-width: 0;
  flex: 1;
}

.day-weather-snapshot-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
}

.day-weather-snapshot-temp {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.day-weather-snapshot-cond {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.day-inline-forecast {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.day-inline-forecast--muted {
  color: var(--text-muted);
  font-style: italic;
}

.day-inline-forecast-label {
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  margin-right: 0.35rem;
}

.day-suggestions-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.day-suggestions-intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.day-card-schedule {
  min-width: 0;
}

.day-top-picks {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(165deg, rgba(241, 245, 249, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.day-top-picks-heading {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.day-top-picks-lede {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.day-top-picks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.day-top-pick-body {
  min-width: 0;
}

.day-top-pick-title {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.day-top-pick-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.activity-item:first-child {
  border-top: none;
  padding-top: 0;
}

.activity-title {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.activity-place-block {
  margin: 0 0 0.5rem;
}

.activity-location {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.activity-location-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0.25rem 0 0;
  line-height: 1.35;
}

.activity-location-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.activity-location-text {
  flex: 1 1 14rem;
  color: var(--text);
  min-width: 0;
}

.activity-map-link {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}

.activity-map-link:hover {
  text-decoration: underline;
}

.activity-what {
  margin: 0 0 0.65rem;
}

.activity-what-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.activity-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.activity-visitor-meta {
  margin: 0.5rem 0 0.65rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.activity-visitor-meta__block {
  display: block;
}

.activity-visitor-meta__block + .activity-visitor-meta__block {
  margin-top: 0.35rem;
}

.activity-visitor-meta__label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
}

.activity-visitor-meta__value {
  color: var(--text-muted);
}

.activity-visitor-meta__hours-stack {
  display: block;
}

.activity-visitor-meta__hours-base {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.activity-visitor-meta__hours-date-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-style: italic;
}

.activity-visitor-meta__block--tickets .activity-visitor-meta__label {
  display: block;
  margin-bottom: 0.35rem;
}

.activity-visitor-meta__ticket-rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.activity-visitor-meta__ticket-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.activity-visitor-meta__sublabel {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.72rem;
  min-width: 3.25rem;
}

.activity-restaurant-rec {
  margin: 0.65rem 0 0.75rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.45) 0%, rgba(255, 251, 235, 0.9) 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius-sm);
}

.activity-restaurant-rec__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b45309;
}

.activity-restaurant-rec__name {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.activity-restaurant-rec__blurb {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.activity-restaurant-rec__map {
  margin: 0 0 0.35rem;
}

.activity-restaurant-rec__note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.35;
}

.activity-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.activity-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
}

.activity-links a:hover {
  text-decoration: underline;
}

.locked-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.15rem 0.85rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
  max-width: 32rem;
  margin-inline: auto;
}

.tailor-cta {
  position: relative;
  margin: 1.2rem auto 0;
  max-width: min(56rem, calc(100% - 1.5rem));
  text-align: left;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.38), rgba(13, 148, 136, 0.34), rgba(167, 139, 250, 0.28));
  box-shadow:
    0 10px 32px rgba(37, 99, 235, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

/* FormSubmit iframe lives outside .tailor-cta-inner so it never steals a grid column. */
.tailor-cta > .tailor-formsubmit-frame {
  z-index: 0;
}

.tailor-cta-inner {
  position: relative;
  z-index: 1;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.96));
  border-radius: calc(var(--radius) - 1px);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  display: grid;
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: clip;
}

.tailor-cta-intro {
  min-width: 0;
}

.tailor-cta-heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.tailor-cta-lede {
  margin: 0;
  font-size: clamp(0.86rem, 1.15vw, 0.94rem);
  line-height: 1.58;
  color: var(--text-muted);
}

@media (min-width: 840px) {
  .tailor-cta-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .tailor-cta-intro {
    padding: clamp(1.15rem, 2.8vw, 1.75rem) clamp(1.1rem, 2.5vw, 1.6rem);
    border-right: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }

  .tailor-form {
    padding: clamp(1.15rem, 2.8vw, 1.75rem) clamp(1.1rem, 2.5vw, 1.6rem);
    background: rgba(241, 245, 249, 0.72);
    border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0;
  }
}

/* Hidden target for FormSubmit — avoid display:none (some browsers skip POST to target). */
.tailor-formsubmit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tailor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem 0.85rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tailor-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  min-width: 0;
  max-width: 100%;
}

.tailor-field--full {
  grid-column: 1 / -1;
}

.tailor-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.tailor-field input,
.tailor-field textarea {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tailor-field textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.42;
}

.tailor-field input:focus,
.tailor-field textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tailor-submit {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 14rem;
  justify-self: start;
}

@media (min-width: 840px) {
  .tailor-submit {
    max-width: 12.5rem;
  }
}

.tailor-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.4;
}

.tailor-cta-glow {
  position: absolute;
  inset: -25% -10% -20%;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 45% at 95% 100%, rgba(13, 148, 136, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 839px) {
  .tailor-form {
    padding: clamp(0.85rem, 2vw, 1.1rem);
    background: rgba(241, 245, 249, 0.55);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.2);
  }
}

@media (max-width: 560px) {
  .tailor-cta {
    margin-top: 1rem;
  }

  .tailor-cta-inner {
    grid-template-columns: 1fr;
  }

  .tailor-form {
    grid-template-columns: 1fr;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  background: var(--surface-solid);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 8px;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

/* —— PDF / print export (Export PDF → browser print → Save as PDF) —— */
.results-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.results-top-bar .back-link {
  margin-bottom: 0;
}

.results-top-bar .results-export-actions {
  margin-left: auto;
  justify-content: flex-end;
}

@media (max-width: 520px) {
  .results-top-bar .results-export-actions {
    width: 100%;
    flex-basis: 100%;
    justify-content: flex-end;
  }
}

.results-export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.print-watermark {
  display: none;
}

@media print {
  body.print-results-only .print-watermark {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  body.print-results-only .print-watermark__grid {
    position: absolute;
    width: 140%;
    height: 140%;
    left: -20%;
    top: -20%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    gap: 1rem;
    transform: rotate(-38deg);
    transform-origin: center center;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    color: rgba(37, 99, 235, 0.14);
    letter-spacing: 0.04em;
    user-select: none;
  }

  body.print-results-only .bg-noise,
  body.print-results-only .site-header,
  body.print-results-only .site-footer {
    display: none !important;
  }

  body.print-results-only #section-landing,
  body.print-results-only #section-planner {
    display: none !important;
  }

  body.print-results-only #section-results {
    display: block !important;
    position: relative;
    z-index: 1;
  }

  body.print-results-only #section-results.hidden {
    display: block !important;
  }

  body.print-results-only main {
    padding: 0 !important;
    max-width: none !important;
  }

  body.print-results-only .results-inner {
    padding: 0 0.5rem !important;
  }

  body.print-results-only .results-top-bar,
  body.print-results-only .activity-regenerate-btn,
  body.print-results-only #btn-refresh-weather {
    display: none !important;
  }

  body.print-results-only .weather-strip-head {
    justify-content: flex-start;
  }

  body.print-results-only .schedule-top-picks,
  body.print-results-only .schedule-top-picks .day-top-picks {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-results-only .day-card,
  body.print-results-only .spotlight-card,
  body.print-results-only .activity-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-results-only a[href]::after {
    content: none !important;
  }

  body.print-results-only {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
