/* ════════════════════════════════════════════════════════════════
   Itinerary page — additional styles on top of site.css
   Layout: slim sticky header → title strip → 420px builder | 1fr map.
   ════════════════════════════════════════════════════════════════ */

.itin-page { background: var(--cream-50); min-height: 100vh; }

/* ── Slim header ───────────────────────────────────────────── */
.itin-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 64, 63, 0.96);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(245,239,226,0.12);
}
.itin-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.itin-header .brand,
.itin-header .brand .brand__mark { color: var(--cream-50); }
.itin-header .brand { font-size: 20px; }
.itin-header .nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--cream-100);
  padding: 8px 14px; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.itin-header .nav a:hover { background: rgba(255,255,255,0.08); color: var(--cream-50); }
.itin-header .nav a.active { color: var(--gold-500); }

/* ── Title strip ──────────────────────────────────────────── */
.itin-title {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--cream-50);
}
.itin-title__inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: end;
}
.itin-title h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
}
.itin-title h1 em { font-style: italic; color: var(--gold-700); }
.itin-title__meta {
  text-align: right;
  font-size: 13px;
  color: var(--ink-500);
  max-width: 360px;
  line-height: 1.55;
}
.itin-title__meta strong { color: var(--gold-700); font-weight: 600; }

/* ── City tabs ────────────────────────────────────────────── */
.city-tabs {
  display: inline-flex; flex-wrap: wrap;
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  padding: 4px;
  margin-top: 18px;
}
.city-tabs button {
  font-family: inherit;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  padding: 8px 16px;
  border-radius: 999px;
  border: 0; background: transparent;
  cursor: pointer;
  transition: all 0.18s;
}
.city-tabs button.active {
  background: var(--teal-800);
  color: var(--cream-50);
}
.city-tabs button:not(.active):hover { color: var(--ink-900); }

/* ── Main layout: builder | map ───────────────────────────── */
.itin-main {
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: stretch;
  min-height: calc(100vh - 220px);
}

/* ── Builder panel (left) ─────────────────────────────────── */
.builder {
  background: var(--cream-100);
  border-right: 1px solid var(--line);
  padding: 24px 24px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.builder__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.builder__head h2 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  margin: 0;
}
.builder__head h2 em { color: var(--gold-700); font-style: italic; }
.builder__head .count {
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--ink-500);
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.stat .v {
  font-family: var(--serif);
  font-size: 20px; font-weight: 500;
  line-height: 1; color: var(--ink-900);
}
.stat .v em {
  font-style: italic; color: var(--gold-700);
  font-size: 13px; margin-left: 2px;
}
.stat .k {
  margin-top: 6px;
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500); font-weight: 600;
}

/* Day group */
.day { display: flex; flex-direction: column; }
.day__head {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0 10px;
}
.day__pill {
  background: var(--teal-800); color: var(--cream-50);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.day__label {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--ink-700);
}
.day__time {
  margin-left: auto;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500); font-weight: 600;
}

/* Stop card */
.stop {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 12px 10px;
  cursor: grab;
  transition: border-color 0.2s;
}
.stop:hover { border-color: var(--gold-600); }
.stop.dragging { opacity: 0.5; cursor: grabbing; }
.stop__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-800); color: var(--cream-50);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic;
  font-weight: 600; font-size: 14px;
}
.stop__body { min-width: 0; }
.stop__name {
  font-family: var(--serif);
  font-size: 15px; font-weight: 500;
  line-height: 1.2; color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stop__meta {
  margin-top: 3px;
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--ink-500);
  display: flex; align-items: center; gap: 6px;
}
.stop__meta .dot {
  width: 3px; height: 3px;
  background: currentColor; border-radius: 50%; opacity: 0.5;
}
.stop__meta .type {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; color: var(--gold-700);
}
.stop__remove {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-500); border: 0; background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.stop__remove:hover { background: rgba(140,62,42,0.12); color: var(--brick-700); }
.stop__remove svg { width: 13px; height: 13px; }

/* Walking connector */
.walk {
  margin: 4px 0 4px 26px;
  padding-left: 14px;
  border-left: 1px dashed var(--gold-600);
  font-size: 10px; color: var(--ink-500);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  height: 22px;
}
.walk svg { width: 12px; height: 12px; color: var(--gold-700); }
.walk em {
  font-style: italic; color: var(--gold-700);
  text-transform: none; letter-spacing: normal;
  font-family: var(--serif); font-size: 12px;
}

/* Empty state */
.empty {
  border: 1.5px dashed var(--gold-600);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,160,74,0.08), transparent 70%),
    var(--cream-50);
}
.empty__icon {
  width: 42px; height: 42px;
  margin: 0 auto 12px;
  color: var(--gold-700);
}
.empty h3 {
  font-family: var(--serif);
  font-size: 19px; font-weight: 500;
  margin: 0 0 6px;
}
.empty p {
  font-size: 13px; color: var(--ink-500);
  line-height: 1.5; margin: 0;
  max-width: 240px; margin-inline: auto;
}

/* Suggestions */
.suggest {
  margin-top: 4px;
  padding: 16px 16px 14px;
  background: var(--teal-800);
  border-radius: 14px;
  color: var(--cream-50);
}
.suggest__head {
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
  color: var(--gold-500);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.suggest h4 {
  font-family: var(--serif);
  font-size: 16px; font-weight: 500;
  margin: 0 0 10px; line-height: 1.3;
}
.suggest h4 em { font-style: italic; color: var(--gold-400); }
.suggest__list { display: flex; flex-direction: column; gap: 6px; }
.suggest__item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border: 0; width: 100%; text-align: left;
  font-family: inherit; color: inherit;
}
.suggest__item:hover { background: rgba(255,255,255,0.12); }
.suggest__item .name {
  font-size: 13px; font-weight: 500; color: var(--cream-50);
}
.suggest__item .near {
  font-size: 10px; color: var(--cream-200);
  margin-top: 2px;
  font-style: italic; font-family: var(--serif);
}
.suggest__add {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-500); color: var(--teal-900);
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
  flex: 0 0 auto;
}

/* Action bar */
.actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.builder .btn {
  font-family: inherit;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-radius: 10px;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.15s, color 0.15s;
}
.btn--primary { background: var(--teal-800); color: var(--cream-50); }
.btn--primary:hover { background: var(--teal-900); }
.btn--ghost { background: transparent; color: var(--ink-700); border: 1px solid var(--ink-300); }
.btn--ghost:hover { background: var(--cream-200); }
.builder .btn svg { width: 14px; height: 14px; }

/* ── Antique SVG map (right) ───────────────────────────────── */
.map-pane {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(168,128,46,0.08), transparent 75%),
    var(--cream-100);
  overflow: hidden;
}
#city-map {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
#city-map svg {
  width: 100%; height: 100%;
  display: block;
}

.map-toolbar {
  position: absolute; top: 16px; left: 16px;
  z-index: 10;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.map-chip {
  background: rgba(251,247,238,0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.map-chip strong {
  font-family: var(--serif); font-style: italic;
  font-weight: 600; color: var(--gold-700);
}

.compass {
  position: absolute; top: 16px; right: 16px;
  width: 56px; height: 56px;
  z-index: 10;
  opacity: 0.75;
  color: var(--gold-700);
  pointer-events: none;
}

.map-legend {
  position: absolute; bottom: 16px; left: 16px;
  z-index: 10;
  background: rgba(251,247,238,0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 11px;
  color: var(--ink-700);
}
.map-legend h5 {
  margin: 0 0 8px;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
  color: var(--gold-700);
}
.map-legend ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.map-legend li { display: flex; align-items: center; gap: 8px; }
.map-legend .swatch {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cream-200);
  border: 1.5px solid var(--gold-700);
  flex: 0 0 auto;
}
.map-legend .swatch.in    { background: var(--teal-800); border-color: var(--gold-500); }
.map-legend .swatch.next  { background: var(--cream-200); border: 1.5px dashed var(--gold-700); }
.map-legend .swatch.extra {
  width: 9px; height: 9px;
  background: var(--cream-100);
  border: 1px solid var(--gold-600);
}

/* ── SVG Pin styles ────────────────────────────────────────── */
.pin { cursor: pointer; transition: transform 0.2s; transform-origin: center; }
.pin:hover { transform: scale(1.08); }
.pin__circle {
  fill: var(--cream-50);
  stroke: var(--gold-700);
  stroke-width: 1.8;
}
.pin--in .pin__circle {
  fill: var(--teal-800);
  stroke: var(--gold-500);
  stroke-width: 2.2;
}
.pin__icon { color: var(--gold-700); }
.pin--in .pin__icon { color: var(--gold-400); }
.pin__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  fill: var(--ink-900);
  paint-order: stroke;
  stroke: var(--cream-100);
  stroke-width: 4;
  stroke-linejoin: round;
  pointer-events: none;
}
.pin--in .pin__label { fill: var(--teal-900); font-weight: 600; }
.pin__num {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  fill: var(--gold-400);
  font-size: 14px;
  pointer-events: none;
}

.route-seg {
  fill: none;
  stroke: var(--gold-700);
  stroke-width: 2.5;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  opacity: 0.75;
  pointer-events: none;
}

/* Extra (restaurant / hotel / other) pin — smaller, lighter than monument */
.extra-pin {
  cursor: pointer;
  transition: transform 0.2s;
  transform-origin: center;
}
.extra-pin:hover { transform: scale(1.12); }
.extra-pin__circle {
  fill: var(--cream-100);
  stroke: var(--gold-600);
  stroke-width: 1.4;
}
.extra-pin--in .extra-pin__circle {
  fill: var(--gold-500);
  stroke: var(--gold-700);
  stroke-width: 1.8;
}
.extra-pin__icon { color: var(--gold-700); }
.extra-pin--in .extra-pin__icon { color: var(--teal-900); }
.extra-pin__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  fill: var(--ink-700);
  paint-order: stroke;
  stroke: var(--cream-100);
  stroke-width: 3;
  stroke-linejoin: round;
  pointer-events: none;
}
.extra-pin--in .extra-pin__label {
  fill: var(--teal-900);
  font-weight: 600;
}

/* Faint dashed line from each extra back to its parent monument */
.extra-link {
  stroke: var(--gold-600);
  stroke-width: 0.8;
  stroke-dasharray: 2 4;
  opacity: 0.45;
  pointer-events: none;
}

/* ── Pin click popup (rendered inside the SVG via foreignObject) ───── */
.pin-popup-wrap { overflow: visible; }
.pin-popup {
  background: var(--cream-50);
  border: 1px solid var(--gold-600);
  border-radius: 12px;
  box-shadow: 0 14px 32px -12px rgba(15,31,31,0.45);
  padding: 12px 12px 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pin-popup__head {
  display: flex; align-items: flex-start; gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.pin-popup__title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  flex: 1 1 auto;
  color: var(--ink-900);
}
.pin-popup__close {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  flex: 0 0 auto;
  padding: 0;
}
.pin-popup__close:hover {
  background: rgba(140,62,42,0.12);
  color: var(--brick-700);
}
.pin-popup__btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pin-popup__btn--remove {
  background: transparent;
  color: var(--brick-700);
  border: 1px solid rgba(140,62,42,0.3);
}
.pin-popup__btn--remove:hover {
  background: var(--brick-700);
  color: var(--cream-50);
  border-color: var(--brick-700);
}
.pin-popup__kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-700);
  margin-top: 2px;
}
.pin-popup__list {
  display: flex; flex-direction: column;
  gap: 4px;
}
.pin-popup__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--cream-100);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.pin-popup__row:hover {
  background: var(--gold-500);
  border-color: var(--gold-600);
}
.pin-popup__row-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}
.pin-popup__row-mins {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--gold-700);
  flex: 0 0 auto;
}
.pin-popup__row:hover .pin-popup__row-mins {
  color: var(--teal-900);
}

/* ── Extras (restaurants, hotels, others) — below the route ─── */
.extras {
  margin-top: 8px;
  padding: 18px 4px 4px;
  border-top: 1px dashed var(--gold-600);
  display: flex; flex-direction: column;
  gap: 14px;
  /* Slightly muted compared with main route */
  opacity: 0.96;
}
.extras__head {
  padding: 0 4px;
}
.extras__kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-700);
  margin: 0 0 4px;
}
.extras h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  margin: 0 0 4px; line-height: 1.15;
}
.extras h3 em { font-style: italic; color: var(--gold-700); }
.extras__sub {
  font-size: 11px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.4;
}

/* "Your picks" pill list at the top of the extras section */
.extras-picked {
  background: rgba(168,128,46,0.06);
  border: 1px solid rgba(168,128,46,0.18);
  border-radius: 10px;
  padding: 10px 12px;
}
.extras-picked__head {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-700);
  margin: 0 0 6px;
}
.extras-picked ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.extras-picked li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px; align-items: center;
  padding: 4px 0;
  font-size: 12px;
}
.extras-picked__tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-700);
}
.extras-picked__name {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.extras-picked__loc {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(46,142,137,0.08);
  border: 1px solid rgba(46,142,137,0.18);
  color: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.extras-picked__loc svg { width: 11px; height: 11px; }
.extras-picked__loc:hover {
  background: var(--teal-700); color: var(--cream-50);
}
.extras-picked__x {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 0;
  color: var(--ink-500);
  font-size: 16px; cursor: pointer;
  line-height: 1;
}
.extras-picked__x:hover {
  background: rgba(140,62,42,0.12); color: var(--brick-700);
}

/* Each type group (Hotels / Restaurants / Others) */
.extras-group {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 4px;
}
.extras-group h4 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0 6px;
  color: var(--ink-700);
  display: flex; align-items: center; gap: 8px;
}
.extras-group__count {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--gold-700);
  background: rgba(168,128,46,0.10);
  padding: 1px 7px;
  border-radius: 999px;
}
.extras-list {
  display: flex; flex-direction: column; gap: 4px;
}
.extras-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px; align-items: center;
  padding: 8px 10px;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.extras-row:hover { border-color: var(--gold-600); }
.extras-row.is-in { background: rgba(46,142,137,0.06); border-color: rgba(46,142,137,0.25); }
.extras-row__body { min-width: 0; }
.extras-row__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.extras-row__meta {
  font-size: 10px;
  color: var(--ink-500);
  margin-top: 2px;
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.extras-row__loc {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(46,142,137,0.08);
  border: 1px solid rgba(46,142,137,0.18);
  color: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.extras-row__loc svg { width: 12px; height: 12px; }
.extras-row__loc:hover {
  background: var(--teal-700); color: var(--cream-50);
}
.extras-row__action {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold-700);
  color: var(--gold-700);
  font-weight: 700; font-size: 14px;
  background: transparent;
}
.extras-row.is-in .extras-row__action {
  background: var(--teal-800);
  border-color: var(--teal-800);
  color: var(--gold-400);
}

/* ── Stop card additions: "closest to" + Open-location button ── */
.stop {
  grid-template-columns: 32px 1fr auto;
  align-items: start;        /* allow multi-line stop with closest-to row */
}
.stop__nearest {
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
}
.stop__nearest .dot {
  width: 3px; height: 3px;
  background: currentColor; border-radius: 50%; opacity: 0.5;
}
.stop__nearest em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-700);
  font-size: 12px;
}
.stop__locate {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: rgba(46,142,137,0.08);
  border: 1px solid rgba(46,142,137,0.18);
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.stop__locate:hover {
  background: var(--teal-700);
  color: var(--cream-50);
}
.stop__locate svg { width: 12px; height: 12px; }

/* ── Subscription modal ──────────────────────────────────── */
.modal--wide { max-width: 880px; }
.sub-body { padding: 40px 36px; text-align: center; }
.sub-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500; line-height: 1.1;
  margin: 6px 0 14px;
}
.sub-title em { font-style: italic; color: var(--gold-700); }
.sub-lede {
  font-size: 14px; color: var(--ink-500);
  max-width: 540px; margin: 0 auto 30px;
  line-height: 1.55;
}
.sub-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
  text-align: left;
}
.sub-plan {
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.sub-plan--featured {
  background: var(--teal-800);
  color: var(--cream-50);
  border-color: var(--gold-600);
  transform: translateY(-6px);
}
.sub-plan--featured::after {
  content: "Most chosen";
  position: absolute; top: -10px; right: 16px;
  background: var(--gold-500);
  color: var(--teal-900);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.sub-plan__tag {
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  color: var(--gold-700);
  margin: 0;
}
.sub-plan--featured .sub-plan__tag { color: var(--gold-400); }
.sub-plan__price {
  font-family: var(--serif);
  font-size: 36px; font-weight: 500;
  line-height: 1; margin: 0;
}
.sub-plan__price span {
  font-size: 14px; font-style: italic;
  color: var(--ink-500); margin-left: 4px;
}
.sub-plan--featured .sub-plan__price span { color: var(--cream-200); }
.sub-plan ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 13px; line-height: 1.5;
  display: flex; flex-direction: column; gap: 8px;
}
.sub-plan li {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--ink-700);
}
.sub-plan--featured li { color: var(--cream-100); }
.sub-plan li::before {
  content: "◆";
  color: var(--gold-600);
  font-size: 8px; line-height: 1.8;
  flex: 0 0 auto;
}
.sub-plan li.muted { color: var(--ink-500); font-size: 12px; font-style: italic; }
.sub-plan__cta {
  margin-top: auto;
  font-family: inherit;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--ink-700);
  color: var(--ink-900);
  transition: background 0.15s, color 0.15s;
}
.sub-plan__cta:hover { background: var(--ink-900); color: var(--cream-50); }
.sub-plan--featured .sub-plan__cta {
  border-color: var(--gold-500);
  color: var(--gold-400);
}
.sub-plan--featured .sub-plan__cta--primary {
  background: var(--gold-500); color: var(--teal-900);
}
.sub-plan--featured .sub-plan__cta--primary:hover { background: var(--gold-400); }
.sub-foot {
  font-size: 11px; color: var(--ink-500);
  letter-spacing: 0.04em;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .itin-main { grid-template-columns: 1fr; min-height: auto; }
  .builder { border-right: none; border-bottom: 1px solid var(--line); max-height: none; }
  .map-pane { min-height: 60vh; }
  .actions { margin-top: 16px; }
  .sub-plans { grid-template-columns: 1fr; }
  .sub-plan--featured { transform: none; }
}
@media (max-width: 640px) {
  .itin-title__inner { grid-template-columns: 1fr; }
  .itin-title__meta { text-align: left; }
  .builder { padding: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: span 2; }
  .itin-header .nav a:not(.active) { display: none; }
  .sub-body { padding: 32px 22px; }
}

/* Hide helpers */
.hidden { display: none !important; }
