/* ──────────────────────────────────────────────────────────
   Parker Family Trip · v2 — Region-tabbed travel guide
   Fonts: Lora (serif headlines) + DM Sans (body)
   ────────────────────────────────────────────────────────── */

:root {
  --cream: #f9f7f3;
  --cream-deep: #f1ede4;
  --paper: #ffffff;
  --ink: #1a1814;
  --ink-2: #2e2823;
  --muted: #6b6459;
  --muted-2: #948c80;
  --rule: #e8e4dd;
  --rule-strong: #d8d3c8;
  --love: #c14a3a;
  --signed-r: #2a5f8f;
  --signed-m: #8b4a8b;

  /* Region accents */
  --accent-cph: #2a5f8f;       /* Copenhagen — Nyhavn blue */
  --accent-aero: #4a7c59;      /* Skåne — meadow green */
  --accent-visby: #8b4a3c;     /* Gotland — limestone rust */
  --accent-sthlm: #5a4a8a;     /* Stockholm — twilight purple */
  --accent-bklyn: #c17d2a;     /* Brooklyn — brick / brownstone */
  --accent-transit: #8a847a;   /* Travel days — slate */

  /* Region tints (background washes) */
  --tint-cph: #eef3f8;
  --tint-aero: #eef4ee;
  --tint-visby: #f6ece7;
  --tint-sthlm: #f0edf5;
  --tint-bklyn: #faf2e6;
  --tint-transit: #f0eeea;

  --hover-bg: #f3f0ea;
  --drop-shadow: 0 1px 3px rgba(0,0,0,0.05);
  --card-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}

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

html, body { height: 100%; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ── Top brand bar ──────────────────────────────── */
.brandbar {
  background: var(--ink);
  color: var(--cream);
  padding: 22px 32px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}
.brandbar .crest {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.brandbar .crest em { font-style: italic; color: rgba(249,247,243,0.65); font-weight: 400; }
.brandbar .crest-meta {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249,247,243,0.45);
  font-weight: 500;
  margin-top: 4px;
}
.brandbar .spacer { flex: 1; }

/* Toolbar buttons live on brandbar now */
.brandbar .who {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  transition: background 0.15s, border-color 0.15s;
}
.brandbar .who:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); }
.brandbar button.tb-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(249,247,243,0.7);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.brandbar button.tb-btn:hover { background: rgba(255,255,255,0.08); color: var(--cream); }
.brandbar button.tb-btn .icn { margin-right: 4px; opacity: 0.85; }
.brandbar .activity-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--love);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
}
.avatar.raphael { background: var(--signed-r); }
.avatar.morgan { background: var(--signed-m); }
.who-name { color: var(--cream); }
.who-caret { color: rgba(249,247,243,0.5); font-size: 10px; margin-left: 2px; }

/* User popover */
.user-popover {
  position: absolute;
  top: 100%;
  right: 32px;
  margin-top: 8px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 6px;
  min-width: 220px;
  z-index: 100;
}
.user-popover .opt {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  text-align: left;
  color: var(--ink);
}
.user-popover .opt:hover { background: var(--hover-bg); }
.user-popover .opt.active { background: var(--cream); }
.user-popover .opt .check { margin-left: auto; color: var(--accent-aero); font-weight: 600; }
.user-popover .divider { height: 1px; background: var(--rule); margin: 4px 2px; }
.user-popover .meta {
  padding: 8px 10px 6px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Region tabs ─────────────────────────────── */
.tabs {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 1 0;
  min-width: 150px;
  padding: 18px 20px 14px;
  text-align: left;
  border-bottom: 3px solid transparent;
  transition: background 0.15s, border-color 0.2s, color 0.15s;
  position: relative;
  color: var(--muted);
  cursor: pointer;
  display: block;
}
.tab:hover { background: var(--cream); color: var(--ink); }
.tab.active { color: var(--ink); background: var(--cream); }
.tab.active .tab-name { color: var(--ink); }
.tab-edit, .tab-delete {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 4px; width: 18px; height: 18px; border-radius: 50%;
  font-size: 13px; line-height: 1; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.tab-edit:hover   { background: #e8f1f7; color: var(--ink); }
.tab-delete:hover { background: #fee2e2; color: #b91c1c; }
.tab-name {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
  display: flex; align-items: center; gap: 8px;
}
.tab-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.45;
  transition: opacity 0.15s, transform 0.15s;
}
.tab.active .tab-dot { opacity: 1; transform: scale(1.2); }
.tab-meta {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-top: 3px;
  font-weight: 400;
}
.tab.active .tab-meta { color: var(--muted); }
.tab.cph   { color: var(--accent-cph);     background: #e8f1f7; }
.tab.aero  { color: var(--accent-aero);    background: #e8f2ec; }
.tab.visby { color: var(--accent-visby);   background: #f3ece9; }
.tab.sthlm { color: var(--accent-sthlm);   background: #eeebf5; }
.tab.bklyn { color: var(--accent-bklyn);   background: #f7f0e4; }
.tab.transit { color: var(--accent-transit); background: #f0efee; }
.tab.active.cph   { border-bottom-color: var(--accent-cph);     background: #d4e6f2; }
.tab.active.aero  { border-bottom-color: var(--accent-aero);    background: #d4e9dc; }
.tab.active.visby { border-bottom-color: var(--accent-visby);   background: #ead9d5; }
.tab.active.sthlm { border-bottom-color: var(--accent-sthlm);   background: #dfd9ef; }
.tab.active.bklyn { border-bottom-color: var(--accent-bklyn);   background: #f0dfc3; }
.tab.active.transit { border-bottom-color: var(--accent-transit); background: #e3e2e0; }

/* ── Region hero ─────────────────────────────────── */
.region {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 32px 100px;
}
.region-hero {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.region-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.region-eyebrow .stripe {
  display: inline-block;
  width: 32px;
  height: 2px;
}
.region-eyebrow.cph .stripe { background: var(--accent-cph); }
.region-eyebrow.aero .stripe { background: var(--accent-aero); }
.region-eyebrow.visby .stripe { background: var(--accent-visby); }
.region-eyebrow.sthlm .stripe { background: var(--accent-sthlm); }
.region-eyebrow.bklyn .stripe { background: var(--accent-bklyn); }

.region-title {
  font-family: 'Lora', serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 10px;
}
.region-subtitle-line {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.region-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 26px;
  max-width: 620px;
}
.region-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 4px;
}
.region-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.region-stat .stat-num {
  font-family: 'Lora', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.region-stat .stat-num .love-glyph { color: var(--love); }
.region-stat .stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ── Stay cards ───────────────────────────────────── */
.stays {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stay-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative;
}
.stay-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent-transit);
}
.stay-card.color-cph::before { background: var(--accent-cph); }
.stay-card.color-aero::before { background: var(--accent-aero); }
.stay-card.color-visby::before { background: var(--accent-visby); }
.stay-card.color-sthlm::before { background: var(--accent-sthlm); }
.stay-card.color-bklyn::before { background: var(--accent-bklyn); }
.stay-card.color-transit::before { background: var(--accent-transit); }

.stay-header {
  padding: 22px 28px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.stay-header-main { flex: 1; min-width: 200px; }
.stay-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.stay-flag .country-glyph { font-size: 14px; letter-spacing: 0; }
.stay-name {
  font-family: 'Lora', serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.stay-tagline {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 480px;
}
.stay-dates {
  text-align: right;
  flex-shrink: 0;
  padding-top: 2px;
}
.stay-dates .nights {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
}
.stay-dates .nights-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-top: 3px;
}
.stay-dates .daterange {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.stay-body {
  padding: 16px 28px 24px;
  background: var(--paper);
}

/* Transit / travel-day card variant (smaller, less visual weight) */
.stay-card.is-transit .stay-header {
  background: var(--tint-transit);
}
.stay-card.is-transit .stay-name {
  font-size: 20px;
}
.stay-card.is-transit .stay-flag {
  color: var(--accent-transit);
}

/* ── Section details inside stay cards ─────────────── */
details.section {
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--cream);
  transition: box-shadow 0.15s;
}
details.section[open] {
  background: var(--paper);
  box-shadow: var(--drop-shadow);
  border-color: var(--rule-strong);
}
details.section summary {
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 14px;
  user-select: none;
  outline: none;
}
details.section summary::-webkit-details-marker { display: none; }
details.section summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s;
  flex-shrink: 0;
  margin-left: auto;
}
details.section[open] summary::after {
  transform: rotate(-135deg) translate(-2px,-2px);
}
details.section summary:hover { background: rgba(0,0,0,0.02); }
.section-icon { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; }
.section-label { font-weight: 500; }
.section-count {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  background: var(--cream-deep);
  border-radius: 100px;
}
details.section[open] .section-count { background: var(--cream); }

.detail-body {
  padding: 6px 18px 18px 50px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}
.detail-body p { margin-bottom: 8px; }
.detail-body p:last-child { margin-bottom: 0; }
.detail-body strong { color: var(--ink); font-weight: 500; }

/* ── Basic travel details — merged subsections ───────── */
.basic-details-body {
  padding: 16px 24px 20px 50px;
}
.subsection {
  padding: 6px 0 4px;
}
.subsection-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}
.subsection-icon {
  font-size: 14px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  text-align: center;
}
.subsection-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  padding-left: 30px;
}
.subsection-body p { margin-bottom: 6px; }
.subsection-body p:last-child { margin-bottom: 0; }
.subsection-divider {
  height: 1px;
  background: var(--rule);
  margin: 14px 0 14px 30px;
}

/* ── Ideas view toggle (List / Map) ──────────────────── */
.ideas-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.toolbar-spacer { flex: 1; min-width: 0; }
.ideas-view-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--cream-deep);
  border-radius: 100px;
  border: 1px solid var(--rule);
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.view-btn .icn { font-size: 13px; line-height: 1; }
.view-btn:hover:not(.active) { color: var(--ink); }
.view-btn.active {
  background: var(--ink);
  color: var(--cream);
}

/* Refresh-ideas hint inside Ideas section */
.ideas-hint {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.45;
}
.ideas-hint .hint-icon {
  color: var(--love);
  font-size: 14px;
  flex-shrink: 0;
}
.ideas-hint a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color 0.15s;
}
.ideas-hint a:hover { text-decoration-color: var(--ink); }

/* Composer label inside Notes */
.composer-label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2px;
}

/* Stack composers in notes */
.note-composer + .refresh-panel { margin-top: 14px; }

/* Refresh ideas button + panel */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream-deep);
  border: 1px solid var(--rule-strong);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.refresh-btn .spark { color: var(--love); font-size: 13px; line-height: 1; }
.refresh-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.refresh-btn:hover .spark { color: var(--cream); }

.refresh-panel {
  background: #fdfbf4;
  border: 1px solid #ead9a3;
  border-radius: 12px;
  padding: 16px 18px 14px;
  margin-bottom: 16px;
  position: relative;
}
.refresh-panel[hidden] { display: none; }
.refresh-panel::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--love);
  border-radius: 12px 0 0 12px;
  opacity: 0.7;
}
.refresh-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.refresh-eyebrow-icon {
  color: var(--love);
  font-size: 14px;
  letter-spacing: 0;
}
.refresh-meta {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 12px;
}
.refresh-meta strong { color: var(--ink); font-weight: 600; }
.refresh-input {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  outline: none;
  font-size: 14px;
  line-height: 1.5;
  min-height: 68px;
  resize: vertical;
  transition: border-color 0.15s;
}
.refresh-input:focus { border-color: var(--ink); }
.refresh-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
.refresh-actions .btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.refresh-actions .btn-primary:disabled {
  opacity: 0.65;
  cursor: default;
}
.refresh-status {
  margin-top: 12px;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.refresh-status[hidden] { display: none; }
.spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--rule-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Map view ───────────────────────────────────────── */
.map-view {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.leaflet-map {
  width: 100%;
  height: 420px;
  border-radius: 10px;
  border: 1px solid var(--rule-strong);
  background: var(--cream-deep);
  overflow: hidden;
}
.map-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.map-legend-header {
  padding: 4px 4px 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.legend-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.legend-eyebrow strong {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.distance-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  transition: background 0.12s;
  border: none;
  font-family: inherit;
}
.distance-row:hover {
  background: var(--cream);
}
.distance-row.loved {
  background: rgba(193, 74, 58, 0.04);
}
.distance-icon {
  font-size: 17px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.distance-body { flex: 1; min-width: 0; }
.distance-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.distance-tbd {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.distance-value {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ── Leaflet markers — custom pin styling ────────────── */
.map-pin-wrap { background: transparent; border: none; }
.map-pin {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  position: relative;
  cursor: pointer;
  transition: transform 0.15s;
}
.map-pin:hover { transform: scale(1.1); }
.map-pin.pin-hotel {
  width: 40px; height: 40px;
  background: var(--ink);
  color: var(--cream);
  border-color: var(--cream);
  font-size: 19px;
  font-weight: 600;
  z-index: 1000;
}
.map-pin.pin-idea.accent-cph { border-color: var(--accent-cph); }
.map-pin.pin-idea.accent-aero { border-color: var(--accent-aero); }
.map-pin.pin-idea.accent-visby { border-color: var(--accent-visby); }
.map-pin.pin-idea.accent-sthlm { border-color: var(--accent-sthlm); }
.map-pin.pin-idea.accent-bklyn { border-color: var(--accent-bklyn); }
.map-pin.pin-loved {
  background: var(--love);
  border-color: white;
  color: white;
}
.map-pin.pin-loved::after {
  content: '♥';
  position: absolute;
  top: -6px; right: -6px;
  background: var(--love);
  color: white;
  font-size: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
  display: flex; align-items: center; justify-content: center;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border: 1px solid var(--rule-strong);
}
.leaflet-popup-content {
  margin: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.45;
}
.map-popup-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.map-popup-title {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.25;
}
.map-popup-desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 4px;
}
.map-popup-meta {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 760px) {
  .map-view { grid-template-columns: 1fr; }
  .leaflet-map { height: 320px; }
  .map-legend { max-height: 280px; }
  .basic-details-body { padding: 14px 16px 16px 38px; }
  .subsection-body { padding-left: 24px; }
  .subsection-divider { margin-left: 24px; }
}

.conf-chip {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 12.5px;
  background: var(--cream-deep);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.alert-box {
  background: #fff8ec;
  border: 1px solid #f0d89a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #7a5a0a;
  margin: 12px 0 4px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}
.alert-box .alert-icon { flex-shrink: 0; font-size: 14px; line-height: 1.4; }

/* ── Ideas list ───────────────────────────────────── */
.idea-list { list-style: none; padding: 0; margin: 0; }
.idea-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}
.idea-item:last-of-type { border-bottom: none; }
.idea-icon {
  flex-shrink: 0;
  font-size: 17px;
  margin-top: 1px;
  width: 22px;
  text-align: center;
}
.idea-body { flex: 1; min-width: 0; }
.idea-title {
  display: block;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 1px;
}
.idea-desc { color: var(--muted); font-size: 13.5px; }
.idea-attribution {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.idea-attribution .dot { color: var(--rule-strong); }
.added-pill {
  display: inline-block;
  background: var(--cream-deep);
  border: 1px solid var(--rule-strong);
  padding: 1px 8px;
  border-radius: 100px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.idea-actions {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.idea-item:hover .idea-actions { opacity: 1; }
.idea-item.has-love .idea-actions,
.idea-item.is-editing .idea-actions { opacity: 1; }
.action-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.action-btn:hover { background: var(--hover-bg); color: var(--ink); }
.action-btn.love-btn.loved { color: var(--love); }
.action-btn.del:hover { color: var(--love); }
.action-btn.dismiss-btn { color: var(--muted-2); font-size: 11px; }
.action-btn.dismiss-btn:hover { color: var(--love); background: #fef0f0; }

.idea-item { position: relative; overflow: visible; }
.swipe-hint-right,
.swipe-hint-left {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.1s; border-radius: 20px; padding: 4px 10px;
  white-space: nowrap;
}
.swipe-hint-right { left: 10px;  color: #2E7D5B; background: rgba(46,125,91,0.12); }
.swipe-hint-left  { right: 10px; color: #b53a3a; background: rgba(181,68,58,0.12); }

.add-idea-btn {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px dashed var(--rule-strong);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.add-idea-btn:hover {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--muted);
}

/* Inline edit form */
.idea-edit-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.idea-edit-form .row { display: flex; gap: 6px; }
.idea-edit-form input.icon-in {
  width: 44px;
  text-align: center;
  font-size: 17px;
  padding: 6px 4px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--cream);
}
.idea-edit-form input.title-in,
.idea-edit-form textarea.desc-in {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: white;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.idea-edit-form input.title-in { font-weight: 500; }
.idea-edit-form textarea.desc-in {
  font-size: 13.5px;
  min-height: 60px;
  line-height: 1.5;
}
.idea-edit-form input:focus,
.idea-edit-form textarea:focus { border-color: var(--ink); }
.idea-edit-form .form-actions {
  display: flex; gap: 6px; justify-content: flex-end; margin-top: 2px;
}
.btn-primary, .btn-secondary {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #000; }
.btn-secondary { color: var(--muted); }
.btn-secondary:hover { background: var(--hover-bg); color: var(--ink); }

/* ── Notes section ──────────────────────────────── */
.note-item {
  border-left: 3px solid var(--rule);
  padding: 10px 0 10px 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.note-item.by-raphael { border-left-color: var(--signed-r); }
.note-item.by-morgan { border-left-color: var(--signed-m); }
.note-item .avatar-sm {
  width: 22px; height: 22px;
  border-radius: 50%;
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.note-item.by-raphael .avatar-sm { background: var(--signed-r); }
.note-item.by-morgan .avatar-sm { background: var(--signed-m); }
.note-body { flex: 1; min-width: 0; }
.note-meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.note-text { font-size: 14px; color: var(--ink); line-height: 1.55; white-space: pre-wrap; }
.note-del {
  color: var(--muted); font-size: 12px;
  opacity: 0; transition: opacity 0.15s;
}
.note-item:hover .note-del { opacity: 1; }
.note-del:hover { color: var(--love); }

.note-composer {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--rule);
}
.note-composer textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 9px 12px;
  background: white;
  outline: none;
  font-size: 14px;
  line-height: 1.5;
  min-height: 60px;
  resize: vertical;
  transition: border-color 0.15s;
}
.note-composer textarea:focus { border-color: var(--ink); }
.note-composer .row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.note-composer .composer-hint { font-size: 11.5px; color: var(--muted); }

/* ── Activity panel ─────────────────────────── */
.activity-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  box-shadow: -8px 0 28px rgba(0,0,0,0.08);
  transform: translateX(110%);
  transition: transform 0.25s ease;
  z-index: 200;
  display: flex; flex-direction: column;
}
.activity-panel.open { transform: translateX(0); }
.activity-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.activity-header h3 {
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 500;
}
.activity-list { flex: 1; overflow-y: auto; padding: 8px 16px 24px; }
.activity-row {
  display: flex; gap: 10px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  align-items: flex-start;
}
.activity-row:last-child { border-bottom: none; }
.activity-row .avatar-sm {
  width: 22px; height: 22px; border-radius: 50%;
  color: white; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.activity-row.raphael .avatar-sm { background: var(--signed-r); }
.activity-row.morgan .avatar-sm { background: var(--signed-m); }
.activity-body { flex: 1; min-width: 0; }
.activity-msg { color: var(--ink); line-height: 1.45; }
.activity-msg .it { font-style: italic; color: var(--muted); }
.activity-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
.activity-empty {
  text-align: center; color: var(--muted);
  padding: 40px 20px; font-size: 13.5px;
}

/* ── Floating Claude button ─────────────────── */
.claude-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--ink);
  color: var(--cream);
  padding: 13px 20px 13px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 150;
}
.claude-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22), 0 2px 4px rgba(0,0,0,0.1);
}
.claude-fab .spark { font-size: 16px; }
.claude-fab.hidden { display: none; }

/* ── Claude chat panel ─────────────────── */
.chat-panel {
  position: fixed;
  bottom: 0; right: 0;
  width: 440px;
  height: min(720px, 92vh);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px 16px 0 0;
  box-shadow: -8px -4px 36px rgba(0,0,0,0.14);
  margin-right: 24px;
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.2,0.8,0.2,1);
  z-index: 250;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { transform: translateY(0); }
.chat-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #fdfcf9, var(--paper));
}
.chat-header .claude-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.chat-header h3 {
  font-family: 'Lora', serif;
  font-size: 17px; font-weight: 500; margin: 0; line-height: 1.1;
}
.chat-header .sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.chat-header .spacer { flex: 1; }
.chat-header button {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--muted); font-size: 18px;
}
.chat-header button:hover { background: var(--hover-bg); color: var(--ink); }

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 18px 18px 8px;
  display: flex; flex-direction: column; gap: 14px;
}
.chat-msg { font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; }
.chat-msg.user { align-items: flex-end; }
.chat-msg.user .bubble {
  background: var(--ink); color: var(--cream);
  padding: 9px 14px;
  border-radius: 18px 18px 4px 18px;
  max-width: 80%; white-space: pre-wrap;
}
.chat-msg.assistant .bubble {
  background: var(--cream); border: 1px solid var(--rule); color: var(--ink);
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  max-width: 92%; white-space: pre-wrap;
}
.chat-msg.assistant .bubble p { margin-bottom: 8px; }
.chat-msg.assistant .bubble p:last-child { margin-bottom: 0; }
.chat-msg .who-label { font-size: 11px; color: var(--muted); margin: 0 8px 3px; }

.chat-msg .actions-stack {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 8px; max-width: 92%;
}
.chat-action-card {
  background: white;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.45;
}
.chat-action-card .a-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; width: 18px; text-align: center; }
.chat-action-card .a-body { flex: 1; min-width: 0; }
.chat-action-card .a-verb {
  font-size: 10.5px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px;
}
.chat-action-card .a-verb.add { color: var(--accent-aero); }
.chat-action-card .a-verb.remove { color: var(--love); }
.chat-action-card .a-verb.edit { color: var(--accent-cph); }
.chat-action-card .a-verb.note { color: var(--accent-sthlm); }
.chat-action-card .a-title { font-weight: 500; color: var(--ink); margin-bottom: 1px; }
.chat-action-card .a-where { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.chat-action-card .a-buttons {
  display: flex; gap: 4px; flex-shrink: 0; margin-left: auto; align-self: center;
}
.chat-action-card .a-buttons button {
  padding: 5px 12px; font-size: 12px; border-radius: 5px; font-weight: 500;
  transition: background 0.15s;
}
.chat-action-card .a-apply { background: var(--ink); color: var(--cream); }
.chat-action-card .a-apply:hover { background: #000; }
.chat-action-card .a-dismiss { color: var(--muted); }
.chat-action-card .a-dismiss:hover { background: var(--hover-bg); }
.chat-action-card.applied { background: #f0f5ee; border-color: #b8d4b0; }
.chat-action-card.applied .a-buttons {
  font-size: 11.5px; color: var(--accent-aero);
  letter-spacing: 0.04em; padding: 4px 6px; font-weight: 500;
}

.chat-typing {
  color: var(--muted); font-size: 13px; font-style: italic;
  padding: 4px 14px;
}
.chat-typing .dots span {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%; background: var(--muted);
  margin: 0 1px;
  animation: pulse 1.2s infinite;
}
.chat-typing .dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 18px 8px;
}
.chat-suggestion {
  background: var(--cream); border: 1px solid var(--rule-strong);
  padding: 6px 11px;
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chat-suggestion:hover {
  background: var(--ink); border-color: var(--ink); color: var(--cream);
}

.chat-input-row {
  border-top: 1px solid var(--rule);
  padding: 12px 14px;
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--paper);
}
.chat-input-row textarea {
  flex: 1;
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  padding: 10px 14px;
  background: var(--cream);
  outline: none; font-size: 14px; line-height: 1.45;
  resize: none; max-height: 120px;
  transition: border-color 0.15s;
}
.chat-input-row textarea:focus { border-color: var(--ink); background: white; }
.chat-input-row button.send-btn {
  width: 38px; height: 38px;
  background: var(--ink); color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: background 0.15s, opacity 0.15s;
}
.chat-input-row button.send-btn:hover { background: #000; }
.chat-input-row button.send-btn:disabled { opacity: 0.4; cursor: default; }

.chat-empty {
  padding: 32px 24px; text-align: center;
  color: var(--muted); font-size: 13.5px; line-height: 1.6;
}
.chat-empty .glyph { font-size: 22px; margin-bottom: 8px; }
.chat-empty strong { display: block; font-weight: 500; color: var(--ink); font-size: 14px; margin-bottom: 4px; }

/* ── Toast ───────────────────────── */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 400;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Scrim ──────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 90; background: transparent; }
.scrim.dim { background: rgba(20,18,15,0.18); z-index: 199; }

/* ── Mobile ──────────────────────── */
@media (max-width: 760px) {
  .brandbar { padding: 16px 18px 14px; flex-wrap: wrap; gap: 12px; }
  .brandbar .crest { font-size: 16px; }
  .tabs { gap: 0; }
  .tab { min-width: 130px; padding: 14px 14px 12px; }
  .tab-name { font-size: 15px; }
  .region { padding: 36px 18px 100px; }
  .region-title { font-size: 40px; }
  .region-subtitle { font-size: 17px; }
  .region-stats { gap: 20px; }
  .stay-header { padding: 18px 20px 14px; }
  .stay-name { font-size: 22px; }
  .stay-body { padding: 14px 20px 22px; }
  .detail-body { padding: 6px 14px 16px 38px; }
  .chat-panel { width: 100%; margin-right: 0; border-radius: 14px 14px 0 0; height: 88vh; }
  .activity-panel { width: 86%; }
  .claude-fab { right: 16px; bottom: 16px; padding: 11px 16px 11px 14px; font-size: 13px; }
  .user-popover { right: 12px; }
}

/* ── Daily Itinerary section ─────────────────────────────── */
.itin-body {
  padding: 0 !important;
  overflow: hidden;
}
.itin-map-wrap {
  height: 260px;
  border-bottom: 1px solid var(--rule);
}
.itin-map-wrap .itinerary-map {
  width: 100%;
  height: 100%;
}
.itin-marker {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.itin-days {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.itin-day {
  border-left: 3px solid var(--itin-c, var(--rule-strong));
  padding-left: 12px;
}
.itin-day-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 5px;
}
.itin-day-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--itin-c, var(--rule-strong));
  padding: 2px 8px;
  border-radius: 5px;
  flex: none;
}
.itin-day-name {
  font-weight: 600;
  font-size: 0.93rem;
}
.itin-day-note {
  font-size: 0.79rem;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.itin-stop {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 8px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.14s, border-color 0.14s;
  width: 100%;
  text-align: left;
}
.itin-stop:hover {
  background: var(--cream-deep);
  border-color: var(--rule);
}
.itin-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--itin-c, var(--rule-strong));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.76rem;
  margin-top: 1px;
}
.itin-stop-body { min-width: 0; }
.itin-stop-name {
  font-weight: 600;
  font-size: 0.87rem;
  line-height: 1.25;
}
.itin-stop-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .itin-map-wrap { height: 220px; }
  .itin-days { padding: 12px 12px 16px; }
}

/* ── Stockholm Plan Map (inside Claude's Plan) ─────────────── */
.sthlm-plan-map-wrap {
  margin: -6px -14px 0 -38px;
  border-bottom: 1px solid var(--rule);
}
.sthlm-plan-pills {
  display: flex;
  gap: 7px;
  padding: 10px 14px 8px;
  flex-wrap: wrap;
  background: var(--cream-deep);
}
.spm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rule);
  background: var(--cream);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  opacity: 0.45;
  transition: opacity 0.14s, box-shadow 0.14s;
}
.spm-pill.active {
  background: #fff;
  color: var(--ink);
  opacity: 1;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.spm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.sthlm-plan-map {
  width: 100%;
  height: 310px;
}
.spm-marker {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spm-marker span {
  transform: rotate(-45deg);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  display: block;
}
@media (max-width: 600px) {
  .sthlm-plan-map { height: 240px; }
  .sthlm-plan-map-wrap { margin: -6px -14px 0 -14px; }
}

/* ── Daily Itinerary (tabbed markdown) ─────────────────────── */
.dm-body {
  padding: 0 !important;
  overflow: hidden;
}
.dm-tabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.dm-tabs::-webkit-scrollbar { display: none; }
.dm-tab {
  flex: 1 0 auto;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  text-align: center;
}
.dm-tab:hover { color: var(--ink); }
.dm-tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent-sthlm);
}
.dm-panel {
  display: none;
  padding: 14px 16px 18px;
}
.dm-panel.active { display: block; }
.dm-intro, .dm-note {
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 12px;
  color: var(--ink);
}
.dm-note { color: var(--muted); font-style: italic; }
.dm-section-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.dm-stops {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dm-stops li {
  font-size: 13.5px;
  line-height: 1.55;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.dm-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 6px;
  white-space: nowrap;
}
.dm-badge.time { background: var(--cream-deep); color: var(--muted); }
.dm-badge.anchor { background: var(--accent-sthlm); color: #fff; }
.dm-badge.opt { background: var(--cream-deep); color: var(--muted); }
.dm-badge.dinner { background: #7a3232; color: #fff; }
.dm-badge.num {
  background: var(--accent-sthlm);
  color: #fff;
  min-width: 20px;
  text-align: center;
}
.dm-callout {
  background: var(--cream-deep);
  border-left: 3px solid var(--accent-sthlm);
  border-radius: 0 8px 8px 0;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}
.dm-callout.alt { border-left-color: #7a3232; }
.dm-para {
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 10px;
  color: var(--ink);
}
.dm-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dm-contacts li {
  font-size: 13px;
  line-height: 1.5;
}

/* ── Reservation entries ─────────────────────────────────── */
.res-entry {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
}
.res-entry + .res-entry { margin-top: 10px; }
.res-occasion {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.res-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--serif, Georgia, serif);
}
.res-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
}
.res-address {
  font-size: 13px;
  color: var(--muted);
}

/* ── v2 additions ──────────────────────────────────────────── */

/* Brandbar v2 */
.brandbar {
  padding: 16px 20px;
  padding-top: max(16px, calc(env(safe-area-inset-top) + 8px));
}
.hamburger-btn {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 6px; flex-shrink: 0;
  border-radius: 8px; transition: background 0.15s;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.1); }
.hamburger-btn span {
  display: block; height: 2px; background: var(--cream);
  border-radius: 2px; transition: opacity 0.2s;
}
.brandbar-center { flex: 1; min-width: 0; text-align: center; }
.brandbar-title {
  font-family: 'Lora', serif; font-size: 17px; font-weight: 500;
  color: var(--cream); line-height: 1.1;
}
.brandbar-sub {
  font-size: 11px; letter-spacing: 0.08em; color: rgba(249,247,243,0.5);
  margin-top: 2px;
}
.brandbar-user {
  font-size: 12.5px; font-weight: 500; color: rgba(249,247,243,0.7);
  padding: 5px 12px; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px; flex-shrink: 0;
}

/* Location page */
.region { padding: 40px 20px 120px; }
.location-page { max-width: 680px; margin: 0 auto; }
.location-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: var(--muted); display: flex; align-items: center;
  gap: 10px; margin-bottom: 10px;
}
.location-eyebrow .stripe { display: inline-block; width: 28px; height: 2px; background: currentColor; }
.location-eyebrow.cph    { color: var(--accent-cph); }
.location-eyebrow.aero   { color: var(--accent-aero); }
.location-eyebrow.visby  { color: var(--accent-visby); }
.location-eyebrow.sthlm  { color: var(--accent-sthlm); }
.location-eyebrow.bklyn  { color: var(--accent-bklyn); }
.location-h1 {
  font-family: 'Lora', serif; font-size: 48px; font-weight: 500;
  line-height: 1.05; letter-spacing: -0.012em; color: var(--ink);
  margin-bottom: 40px;
}

/* Section structure */
.location-section {
  margin-bottom: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.section-h2 {
  font-family: 'Lora', serif; font-size: 24px; font-weight: 500;
  color: var(--ink); margin-bottom: 20px; letter-spacing: -0.008em;
}

/* Basic Travel Details */
.res-groups { display: flex; flex-direction: column; gap: 8px; }
.res-group { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.res-group-hdr {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--cream); text-align: left; transition: background 0.15s;
}
.res-group-hdr:hover { background: var(--cream-deep); }
.res-chevron { color: var(--muted); font-size: 12px; margin-left: 8px; }
.res-group-body { padding: 0 16px 12px; }
.res-card { position: relative; padding: 12px 0 12px 0; border-bottom: 1px solid var(--rule); }
.res-card:last-child { border-bottom: none; }
.res-card-pin-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.res-pin-set    { font-size: 12px; color: #2E7D5B; }
.res-pin-missing { font-size: 12px; color: var(--muted); }
.res-set-pin {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: var(--cream); border: 1px solid var(--rule); cursor: pointer;
  color: var(--ink); transition: background 0.15s;
}
.res-set-pin:hover { background: #e8f1f7; }
.res-delete {
  position: absolute; top: 10px; right: 0;
  background: none; border: none; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--muted);
  padding: 2px 6px; border-radius: 4px;
  opacity: 0; transition: opacity 0.15s, background 0.15s;
}
.res-card:hover .res-delete { opacity: 0.5; }
.res-delete:hover { opacity: 1 !important; background: #fee2e2; color: #b91c1c; }
.res-card-title { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.res-card-title a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); }
.res-card-title a:hover { text-decoration-color: var(--ink); }
.res-card-date { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.res-card-row  { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.res-pdf-link  { font-size: 13px; color: var(--ink); text-decoration: none; opacity: .7; }
.res-pdf-link:hover { opacity: 1; text-decoration: underline; }
.res-card-notes {
  font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5;
  background: var(--cream); border-radius: 6px; padding: 8px 10px;
}

/* Daily Itinerary */
.itin-entries { display: flex; flex-direction: column; gap: 24px; margin-bottom: 16px; }
.itin-entry { border-left: 3px solid var(--rule-strong); padding-left: 16px; }
.itin-entry-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.itin-entry-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.itin-date { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; font-weight: 500; }
.itin-title-label {
  font-family: 'Lora', serif; font-size: 16px; font-weight: 500; color: var(--ink);
}
.itin-entry-btns { display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
.itin-entry:hover .itin-entry-btns { opacity: 1; }
.itin-btn {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 14px; color: var(--muted); transition: background 0.15s, color 0.15s;
}
.itin-btn:hover { background: var(--hover-bg); color: var(--ink); }
.itin-del:hover { color: var(--love); }
.itin-body { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.itin-body .md-p { margin: 0 0 10px; }
.itin-body .md-h4 { font-family: 'Lora', serif; font-size: 15px; font-weight: 500; margin: 16px 0 6px; color: var(--ink); }
.itin-body ul { margin: 0 0 10px 18px; padding: 0; }
.itin-body li { margin-bottom: 4px; }
.itin-body strong { font-weight: 600; }
.itin-body a { color: var(--accent-cph); }
.itin-toolbar {
  display: flex; gap: 10px; align-items: center; padding-top: 4px;
}
.itin-add-btn, .itin-upload-btn {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--rule-strong);
  border-radius: 8px; background: var(--cream); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.itin-add-btn:hover, .itin-upload-btn:hover {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}

/* Location map */
.location-map {
  height: 340px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--rule);
  isolation: isolate;
}

/* Modal (itinerary editor) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,18,15,0.5);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; }
.modal-box {
  background: var(--paper); border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  width: 100%; max-width: 600px; display: flex; flex-direction: column;
  max-height: 90vh; overflow: hidden;
}
.modal-head {
  padding: 18px 20px 16px; border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-family: 'Lora', serif; font-size: 18px; font-weight: 500; }
.modal-x {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 20px; color: var(--muted);
}
.modal-x:hover { background: var(--hover-bg); color: var(--ink); }
.modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; }
.modal-field {
  width: 100%; padding: 9px 12px; border: 1px solid var(--rule-strong);
  border-radius: 8px; font-size: 14px; background: var(--cream);
  font-family: 'DM Sans', sans-serif; color: var(--ink);
  transition: border-color 0.15s;
}
.modal-field:focus { outline: none; border-color: var(--ink); background: white; }
.modal-area {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule-strong);
  border-radius: 8px; font-size: 13.5px; line-height: 1.6;
  background: var(--cream); font-family: 'DM Sans', sans-serif; color: var(--ink);
  resize: vertical; min-height: 200px; transition: border-color 0.15s;
}
.modal-area:focus { outline: none; border-color: var(--ink); background: white; }
.modal-foot {
  padding: 12px 20px 16px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.modal-cancel { font-size: 13.5px; color: var(--muted); padding: 8px 14px; border-radius: 8px; }
.modal-cancel:hover { background: var(--hover-bg); }
.modal-save {
  font-size: 13.5px; font-weight: 500; padding: 8px 18px;
  background: var(--ink); color: var(--cream); border-radius: 8px;
  transition: background 0.15s;
}
.modal-save:hover { background: #000; }

/* Hamburger drawer */
#app-drawer { position: fixed; inset: 0; z-index: 280; pointer-events: none; }
#app-drawer.open { pointer-events: all; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(20,18,15,0.4);
  opacity: 0; transition: opacity 0.25s;
}
#app-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 280px;
  background: var(--paper); box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  transform: translateX(-100%); transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1);
  display: flex; flex-direction: column; padding-top: 60px;
}
#app-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 20px; color: var(--muted);
}
.drawer-close:hover { background: var(--hover-bg); color: var(--ink); }
.drawer-menu { list-style: none; padding: 8px 12px; margin: 0; }
.drawer-menu li { margin-bottom: 4px; }
.drawer-divider { height: 1px; background: var(--rule); margin: 8px 4px 10px; }
.drawer-item {
  width: 100%; text-align: left; padding: 12px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background 0.15s;
}
.drawer-item:hover { background: var(--cream); }

/* Page overlays (Previous Trips, Family Profile, Import) */
.page-overlay {
  position: fixed; inset: 0; background: var(--paper); z-index: 270;
  transform: translateX(100%); transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1);
  overflow-y: auto;
}
.page-overlay.open { transform: translateX(0); }
.page-overlay-inner { max-width: 680px; margin: 0 auto; padding: 20px 20px 80px; }
.overlay-header {
  display: flex; align-items: center; gap: 14px; padding: 16px 0 24px;
  border-bottom: 1px solid var(--rule); margin-bottom: 28px;
}
.overlay-hamburger { margin-left: auto; font-size: 20px; padding: 6px 10px; border-radius: 8px; }
.overlay-back {
  font-size: 14px; color: var(--muted); padding: 6px 10px;
  border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.overlay-back:hover { background: var(--hover-bg); color: var(--ink); }
.overlay-title {
  font-family: 'Lora', serif; font-size: 22px; font-weight: 500; color: var(--ink);
}
.overlay-intro { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.overlay-body { padding-bottom: 40px; }

/* Family Profile */
.profile-editor {
  width: 100%; min-height: 320px; padding: 12px 14px;
  border: 1px solid var(--rule-strong); border-radius: 10px;
  font-size: 14px; line-height: 1.65; font-family: 'DM Sans', sans-serif;
  color: var(--ink); background: var(--cream); resize: vertical;
  margin-bottom: 14px; transition: border-color 0.15s;
}
.profile-editor:focus { outline: none; border-color: var(--ink); background: white; }
.profile-foot { display: flex; gap: 10px; align-items: center; }
.profile-note {
  flex: 1; padding: 9px 12px; border: 1px solid var(--rule-strong); border-radius: 8px;
  font-size: 13.5px; color: var(--ink); background: var(--cream);
  font-family: 'DM Sans', sans-serif;
}
.profile-note:focus { outline: none; border-color: var(--ink); background: white; }
.btn-save {
  padding: 9px 20px; background: var(--ink); color: var(--cream);
  border-radius: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background 0.15s; white-space: nowrap;
}
.btn-save:hover { background: #000; }

/* Import page */
.import-type-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.import-type-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.import-type-sel {
  padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px;
  font-size: 14px; background: white; color: var(--ink); cursor: pointer;
  appearance: auto;
}
.import-type-sel:focus { outline: 2px solid var(--ink); }

.import-zone {
  border: 2px dashed var(--rule-strong); border-radius: 14px;
  padding: 40px 20px; text-align: center; margin-bottom: 20px;
  transition: border-color 0.2s, background 0.2s; cursor: default;
}
.import-zone.drag-over { border-color: var(--ink); background: var(--cream); }
.import-zone.import-zone-disabled { opacity: .35; pointer-events: none; }
.import-up-icon { font-size: 28px; color: var(--muted-2); margin-bottom: 8px; }
.import-prompt { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.import-or { font-size: 13px; color: var(--muted); margin: 8px 0; }
.import-browse { cursor: pointer; }
.import-preview { margin-top: 12px; }
.import-parsing { color: var(--muted); font-size: 14px; font-style: italic; padding: 12px 0; }
.import-found { font-size: 14px; margin-bottom: 12px; color: var(--ink); }
.import-loc { color: var(--muted); font-style: normal; }
.import-none { font-size: 13.5px; color: var(--muted); padding: 8px 0; }
.import-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 0;
  border-bottom: 1px solid var(--rule); font-size: 13.5px; cursor: pointer;
}
.import-row:last-of-type { border-bottom: none; }
.import-chk { margin-top: 3px; flex-shrink: 0; }
.import-confirm { margin-top: 16px; width: 100%; text-align: center; }

/* ── New Trip form ────────────────────────────────────── */
.nt-form { display: flex; flex-direction: column; gap: 16px; }
.nt-field { display: flex; flex-direction: column; gap: 5px; }
.nt-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.nt-req { color: var(--love); }
.nt-hint { font-weight: 400; color: var(--muted); margin-left: 6px; }
.nt-row { display: flex; gap: 10px; }
.nt-row > * { flex: 1; min-width: 0; }
.nt-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rule);
}
.nt-section-title { font-family: 'Lora', serif; font-size: 16px; font-weight: 500; }
.nt-add-btn {
  font-size: 13px; color: var(--muted); padding: 5px 12px;
  border: 1px solid var(--rule-strong); border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.nt-add-btn:hover { background: var(--hover-bg); color: var(--ink); }
.nt-location {
  background: var(--cream); border: 1px solid var(--rule);
  border-radius: 10px; padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 10px; margin-top: 10px;
}
.nt-location-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.nt-location-name { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nt-remove {
  font-size: 18px; color: var(--muted-2); width: 26px; height: 26px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.nt-remove:hover { background: var(--rule-strong); color: var(--ink); }
.nt-foot { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.nt-foot .btn-save { width: 100%; text-align: center; }

/* Previous Trips */
.prev-trips { display: flex; flex-direction: column; gap: 10px; }
.prev-trip-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--rule); border-radius: 10px;
  transition: background 0.15s;
}
.prev-trip-card:hover { background: var(--cream); }
.prev-trip-info { flex: 1; cursor: pointer; min-width: 0; }
.prev-trip-name { font-family: 'Lora', serif; font-size: 17px; font-weight: 500; color: var(--ink); }
.prev-trip-meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.prev-trip-action { font-size: 13px; color: var(--muted-2); margin-top: 8px; transition: color 0.15s; }
.prev-trip-card:hover .prev-trip-action { color: var(--ink); }
.prev-trip-card.loading { opacity: 0.5; pointer-events: none; }
.prev-trip-delete {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  font-size: 18px; padding: 6px; border-radius: 6px; line-height: 1;
  opacity: 0; transition: opacity 0.15s, background 0.15s;
}
.prev-trip-card:hover .prev-trip-delete { opacity: 0.5; }
.prev-trip-delete:hover { opacity: 1 !important; background: #fee2e2; }

/* Utilities */
.empty-state { font-size: 14px; color: var(--muted); padding: 16px 0; font-style: italic; }

/* ── Section toggle (collapsible h2) ────────────────────── */
.section-toggle {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0; text-align: left; color: inherit;
  font-family: 'Lora', serif; font-size: 24px; font-weight: 500;
  margin-bottom: 20px;
}
.section-toggle:hover { opacity: .8; }
.section-chevron {
  font-size: 65px; color: var(--muted); font-family: 'DM Sans', sans-serif;
  font-weight: 400; transition: transform .2s; flex-shrink: 0; margin-left: 10px;
}
.section-toggle[aria-expanded="false"] .section-chevron { transform: rotate(-90deg); }

/* ── Itinerary day groups ────────────────────────────────── */
.itin-day { margin-bottom: 4px; }
.itin-day-hdr {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 10px 0 8px;
  border-top: 1px solid var(--border); text-align: left;
}
.itin-day-hdr:first-child { border-top: none; }
.itin-day-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.itin-day-label {
  font-family: 'Lora', serif; font-size: 16px; font-weight: 500;
  color: var(--ink); flex: 1;
}
.itin-day-chevron { font-size: 12px; color: var(--muted); transition: transform .2s; }
.itin-day-hdr[aria-expanded="false"] .itin-day-chevron { transform: rotate(-90deg); }
.itin-day-body { padding-bottom: 8px; }
.itin-pin { font-size: 11px; margin-right: 4px; }

/* ── Itinerary map pills ─────────────────────────────────── */
.itin-map-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.itin-map-pill {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  color: var(--ink); transition: .15s;
}
.itin-map-pill[aria-pressed="false"] { opacity: .42; background: var(--cream); }
.itin-map-pill:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.itin-map-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── Explore toolbar + view toggle ──────────────────────── */
.explore-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.explore-view-toggle { display: flex; gap: 4px; }
.explore-view-btn {
  background: var(--cream); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--ink-soft); transition: .15s;
}
.explore-view-btn.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.explore-claude-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--accent-aero); border-radius: 20px;
  padding: 6px 16px; font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--accent-aero); transition: .15s; white-space: nowrap;
}
.explore-claude-btn:hover { background: var(--accent-aero); color: #fff; }

/* ── Explore map view ────────────────────────────────────── */
.explore-map-view { margin-top: 4px; }
.ideas-map {
  height: 380px; border-radius: 10px;
  border: 1px solid var(--border); background: #d9edf8;
  isolation: isolate;
}

/* ── Explore & Ideate overlay ────────────────────────────── */
.explore-overlay .page-overlay-inner { display: flex; flex-direction: column; }
.explore-overlay .overlay-body { flex: 1; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.ex-body { display: flex; flex-direction: column; height: 100%; }
.ex-results {
  flex: 1; overflow-y: auto;
  padding: 20px 24px 12px;
}
.ex-starters { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ex-starter {
  background: var(--cream); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; text-align: left; cursor: pointer;
  color: var(--ink-soft); transition: .15s;
}
.ex-starter:hover { background: #fff; color: var(--ink); border-color: var(--accent-aero); }
.ex-input-row {
  flex-shrink: 0; display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 16px 16px; border-top: 1px solid var(--border);
  background: var(--bg);
}
.ex-input {
  flex: 1; background: var(--cream); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; font-size: 15px;
  font-family: 'DM Sans', sans-serif; resize: none; outline: none;
  color: var(--ink); min-height: 42px; line-height: 1.4;
}
.ex-input:focus { border-color: var(--accent-aero); }
.ex-user-msg {
  background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px;
  padding: 10px 14px; font-size: 14px; margin-bottom: 16px;
  align-self: flex-end; max-width: 80%;
}
.ex-thinking {
  font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
}
.ex-cards { display: flex; flex-direction: column; gap: 2px; }
.ex-cards .idea-item { border-radius: 10px; }
.ex-loc-badge {
  font-size: 11.5px; color: var(--muted); display: block; margin: 2px 0 2px;
}
.ex-commentary {
  font-size: 13px; color: var(--ink-soft); margin: 12px 0 4px;
  line-height: 1.6; font-style: italic;
}
.ex-fresh-btn {
  display: block; margin: 10px auto 0; background: none; border: none;
  font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: underline;
}
.ex-fresh-btn:hover { color: var(--ink); }
.ex-results .ideas-map {
  height: 280px; border-radius: 10px; margin-bottom: 16px;
}

/* ── Modal coord row ─────────────────────────────────────── */
.modal-coords { display: flex; gap: 8px; }
.modal-coords .modal-field { flex: 1; }

/* ── Traveler Info & Preferences page ──────────────────────── */
.ti-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px;
}
.ti-sidebar { display: flex; flex-direction: column; gap: 10px; }
.ti-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.ti-sidebar-head h3 { font-family: 'Lora', serif; font-size: 16px; font-weight: 500; }
.ti-add-btn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 18px; color: var(--muted); transition: background 0.15s;
}
.ti-add-btn:hover { background: var(--cream); color: var(--ink); }
.ti-traveler-list { display: flex; flex-direction: column; gap: 6px; }
.ti-empty { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ti-traveler {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--cream); cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.ti-traveler:hover { background: #fff; border-color: var(--rule-strong); }
.ti-traveler-main { min-width: 0; }
.ti-traveler-name { font-weight: 500; font-size: 14px; color: var(--ink); }
.ti-traveler-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ti-traveler-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.ti-traveler:hover .ti-traveler-actions { opacity: 1; }
.ti-btn {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 13px; color: var(--muted);
}
.ti-btn:hover { background: var(--rule); color: var(--ink); }
.ti-delete:hover { background: #fee2e2; color: #b91c1c; }
.ti-modal .modal-box { max-width: 520px; }

/* ── New Trip travelers checkboxes ─────────────────────────── */
.nt-travelers {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.nt-traveler-chk {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--cream); cursor: pointer; font-size: 14px;
}
.nt-traveler-chk input { accent-color: var(--ink); }
.nt-traveler-chk em { color: var(--muted); font-style: normal; font-size: 12px; }

/* ── Itinerary Builder overlay ─────────────────────────────── */
.builder-overlay .page-overlay-inner { max-width: 1100px; height: 100%; padding-bottom: 0; }
.builder-overlay .overlay-body { flex: 1; overflow: hidden; }
.builder-layout {
  display: grid; grid-template-columns: 260px 1fr; height: calc(100vh - 90px);
  border-top: 1px solid var(--rule);
}
.builder-sidebar {
  display: flex; flex-direction: column; border-right: 1px solid var(--rule);
  background: var(--cream); overflow: hidden;
}
.builder-sidebar-head {
  padding: 14px; border-bottom: 1px solid var(--rule);
}
.builder-new-btn {
  width: 100%; text-align: left; padding: 8px 10px;
  border: 1px dashed var(--rule-strong); border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); transition: .15s;
}
.builder-new-btn:hover { background: #fff; border-style: solid; }
.builder-conv-list { flex: 1; overflow-y: auto; padding: 8px; }
.builder-conv {
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  transition: background 0.15s; position: relative; margin-bottom: 4px;
}
.builder-conv:hover { background: #fff; }
.builder-conv.active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.builder-conv-title { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.builder-conv-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.builder-conv-delete {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; font-size: 14px; color: var(--muted); opacity: 0; transition: .15s;
}
.builder-conv:hover .builder-conv-delete { opacity: 1; }
.builder-conv-delete:hover { background: #fee2e2; color: #b91c1c; }
.builder-empty { font-size: 13px; color: var(--muted); padding: 12px 4px; }
.builder-main {
  display: flex; flex-direction: column; overflow: hidden;
}
.builder-intro { padding: 24px; flex-shrink: 0; }
.builder-starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.builder-starter {
  background: var(--cream); border: 1px solid var(--rule); border-radius: 12px;
  padding: 8px 12px; font-size: 13px; text-align: left; cursor: pointer; color: var(--ink-soft);
  transition: .15s;
}
.builder-starter:hover { background: #fff; color: var(--ink); border-color: var(--accent-aero); }
.builder-messages {
  flex: 1; overflow-y: auto; padding: 0 24px;
  display: flex; flex-direction: column;
}
.builder-msg { display: flex; flex-direction: column; max-width: 85%; margin-bottom: 18px; }
.builder-msg.user { align-self: flex-end; }
.builder-msg-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 4px;
}
.builder-msg.user .builder-msg-label { text-align: right; }
.builder-msg-body {
  background: var(--cream); border: 1px solid var(--rule); border-radius: 14px;
  padding: 12px 16px; font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
.builder-msg.user .builder-msg-body {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.builder-msg-body p { margin: 0 0 10px; }
.builder-msg-body p:last-child { margin-bottom: 0; }
.builder-input-row {
  flex-shrink: 0; display: flex; gap: 8px; align-items: flex-end;
  padding: 14px 24px 20px; border-top: 1px solid var(--rule); background: var(--paper);
}
#builder-input {
  flex: 1; background: var(--cream); border: 1px solid var(--rule);
  border-radius: 14px; padding: 10px 14px; font-size: 15px;
  font-family: 'DM Sans', sans-serif; resize: none; outline: none;
  color: var(--ink); min-height: 44px; line-height: 1.4;
}
#builder-input:focus { border-color: var(--ink); background: #fff; }
.builder-preview {
  flex-shrink: 0; border-top: 1px solid var(--rule);
  background: var(--cream); max-height: 45vh; overflow-y: auto;
}
.builder-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 1;
}
.builder-preview-map { height: 240px; margin: 14px 24px; border-radius: 10px; border: 1px solid var(--rule); }
.builder-preview-days { padding: 0 24px 20px; }
.builder-preview-day { margin-bottom: 18px; }
.builder-preview-day-hdr {
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
  margin-bottom: 8px; color: var(--ink);
}
.builder-preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.builder-preview-stop {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule);
}
.builder-preview-stop:last-child { border-bottom: none; }
.builder-preview-num {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.builder-preview-stop-body { font-size: 13.5px; line-height: 1.5; }
.builder-preview-stop-note { color: var(--muted); margin-top: 2px; font-size: 12.5px; }
.builder-import-btn {
  padding: 7px 14px; background: var(--ink); color: var(--cream); border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.builder-import-btn:hover { background: #000; }

@media (max-width: 720px) {
  .ti-layout { grid-template-columns: 1fr; }
  .builder-layout { grid-template-columns: 1fr; }
  .builder-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 280; transform: translateX(-100%); transition: transform 0.25s; }
  .builder-sidebar.open { transform: translateX(0); }
  .builder-main { padding-left: 0; }
}

/* iPhone — maximize horizontal space */
@media (max-width: 480px) {
  .region { padding: 24px 12px 100px; }
  .location-h1 { font-size: 36px; margin-bottom: 28px; }
  .section-toggle { font-size: 20px; }
  .location-section { padding-top: 24px; margin-bottom: 40px; }
  .location-map { height: 260px; }
  .ideas-map { height: 280px; }
  .drawer-panel { width: 86%; }
  .page-overlay-inner { padding: 16px 12px 80px; }
  .modal-box { border-radius: 14px 14px 0 0; max-height: 96vh; }
  .modal-coords { flex-direction: column; gap: 6px; }
}
