/* =================================================================
   ISG Desktop App — shell + stage layouts (on top of hotelmap.css)
   ================================================================= */

html, body { height: 100%; }
#app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* ---------------- Top bar ---------------- */
.app-topbar {
  height: 64px;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  z-index: 40;
}
.app-brand { display: flex; align-items: center; gap: 10px; }
.app-brand .logo-mark {
  font-size: var(--fs-md); font-weight: 700; letter-spacing: 0.16em; color: var(--text-heading);
}
.app-brand .logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.app-event-mini { text-align: center; }
.app-event-mini .ev { font-size: var(--fs-md); font-weight: 700; color: var(--text-heading); line-height: 1.1; }
.app-event-mini .ev-meta { font-size: var(--fs-xs); color: var(--text-muted); }

/* stage progress */
.app-progress { display: flex; align-items: center; gap: 6px; justify-self: end; }
.app-progress .step {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-sm); color: var(--text-faint); font-weight: 600;
}
.app-progress .step .pip {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-sunken-2); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 700; flex-shrink: 0;
}
.app-progress .step.done .pip { background: var(--accent); color: var(--neutral-0); }
.app-progress .step.active .pip { background: var(--accent); color: var(--neutral-0); box-shadow: 0 0 0 4px var(--accent-tint); }
.app-progress .step.active { color: var(--text-heading); }
.app-progress .step.done { color: var(--text-body); }
.app-progress .sep { width: 18px; height: 1px; background: var(--border); }
.app-progress .step .lbl { white-space: nowrap; }
@media (max-width: 1180px){ .app-progress .step .lbl { display:none; } }

/* ---------------- Stage host ---------------- */
.app-main { flex: 1; min-height: 0; position: relative; }
.stage { position: absolute; inset: 0; display: none; }
.stage.active { display: flex; }

/* ---------------- Rail (config) ---------------- */
.rail {
  width: clamp(380px, 50%, 560px); flex-shrink: 0; background: var(--surface);
  height: 100%; display: flex; flex-direction: column;
  box-shadow: 6px 0 28px rgba(var(--shadow-rgb), 0.05); z-index: 6;
}
.stage[data-stage="1"] .map-area { flex: 1 1 auto; width: auto; min-width: 0; }
.rail-scroll { flex: 1; overflow-y: auto; padding: var(--space-12) 30px 0; }
.rail-scroll > * { max-width: 480px; }
.rail-foot > * { max-width: 480px; margin-left:auto; margin-right:auto; }
.rail-foot {
  flex-shrink: 0; padding: 14px 30px 18px;
  border-top: 1px solid var(--border); background: var(--surface);
}
.rail-recap { font-size: var(--fs-xs); color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }
.rail-recap b { color: var(--text-body); font-weight: 600; }

/* Persistent running estimate (Apple-style anchor) */
.cfg-estimate { margin-bottom: 12px; }
.est-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; white-space: nowrap; }
.est-label { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.est-tax { font-size: var(--fs-xs); color: var(--text-faint); }
.est-figure { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.02em; color: var(--text-heading); line-height: 1.05; font-feature-settings: "tnum" 1; }
.est-meta { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; font-feature-settings: "tnum" 1; }
.est-meta b { color: var(--text-body); font-weight: 600; }

.cfg-head { margin-bottom: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cfg-head-main { min-width: 0; }
.cfg-edit-event { flex-shrink: 0; margin-top: 0; height: 32px; padding: 0 14px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius-pill); cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.cfg-edit-event:hover { border-color: var(--accent); color: var(--accent-strong); }
.cfg-edit-event[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cfg-event.is-editing, .cfg-dates.is-editing, .cfg-venue.is-editing { outline: 1px dashed var(--accent); outline-offset: 3px; }
.cfg-head .cfg-event { margin: var(--space-12) 0 0; line-height: 1.1; }
.cfg-head .cfg-meta { font-size: var(--fs-sm); color: var(--text-muted); margin: 8px 0 0; }
.cfg-head .cfg-meta b { color: var(--text-body); font-weight: 600; }
/* dates + venue are each unbreakable units → the line wraps only at the "·",
   never mid-name ("The Granary, San / Diego, CA") */
.cfg-head .cfg-dates, .cfg-head .cfg-venue { white-space: nowrap; }
.cfg-block { padding: 20px 0; border-top: 1px solid var(--border); }
.cfg-block:first-of-type { border-top: 0; }
.cfg-chips { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Sub-label inside a block ---- */
.cfg-sublabel { font-size: var(--fs-sm); font-weight: 600; color: var(--text-body); margin: 18px 0 10px; }
.cfg-sublabel:first-child { margin-top: 0; }
.cfg-sublabel .hint { font-weight: 400; color: var(--text-faint); }

/* ---- Radio option cards (who-pays, manage-rooms) ---- */
.opt-cards { display: flex; flex-direction: column; gap: 10px; }
.opt-card {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-row);
  padding: 14px 16px; cursor: pointer; background: var(--surface);
  transition: border-color .12s, background .12s;
}
.opt-card:hover { border-color: var(--accent-soft); }
.opt-card.sel { border-color: var(--accent); background: var(--accent-tint); }
.opt-card .oc-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text-faint);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color .12s;
}
.opt-card.sel .oc-radio { border-color: var(--accent); }
.opt-card.sel .oc-radio::after { content:''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.opt-card .oc-body { flex: 1; }
.opt-card .oc-title { font-size: var(--fs-md); font-weight: 600; color: var(--text-heading); }
.opt-card .oc-sub { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
.opt-card .oc-icon { color: var(--text-muted); flex-shrink: 0; display: flex; }
.opt-card.sel .oc-icon { color: var(--accent); }

.pay-extra { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.pay-extra input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Collapsible block (all config sections) ---- */
.cfg-collapse .cc-head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cfg-collapse .cc-head .hm-h2 { font-size: var(--fs-xl); }
.cfg-collapse .cc-head .cc-val {
  margin-left: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%;
  font-feature-settings: "tnum" 1; text-align: right;
}
.cfg-collapse .cc-chev { color: var(--text-muted); font-size: 18px; flex-shrink: 0; transition: transform .2s ease; }
.cfg-collapse:not(.collapsed) .cc-chev { transform: rotate(180deg); }
.cfg-collapse:not(.collapsed) .cc-val { visibility: hidden; }
.cfg-collapse .cc-head:hover .hm-h2 { color: var(--accent-strong); }
.cfg-collapse .cc-head:hover .cc-chev { color: var(--accent); }
/* whole row is a button → the number box flips to magenta on hover */
.cfg-collapse .cc-head:hover .hm-badge { background: var(--accent); color: var(--on-accent); }
.cfg-collapse .cc-body { margin-top: 18px; }
.cfg-collapse.collapsed .cc-body { display: none; }

/* ---- Filter chips with count badge ---- */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-body); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; user-select: none;
  transition: all .12s;
}
.filter-chip .fc-count { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 600; }
.filter-chip.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-strong); }
.filter-chip.on .fc-count { color: var(--accent-strong); }
.filter-chip.disabled { opacity: .42; cursor: not-allowed; }

/* ---------------- Map ---------------- */
.map-area { flex: 1; min-width: 0; position: relative; z-index: 0; }

/* ---------------- Floating journey pill (creative back-nav) ---------------- */
.journey { position: fixed; left: 20px; bottom: 20px; z-index: 150; display: none; align-items: center; gap: 0;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float); padding: 5px; }
.journey.show { display: inline-flex; }
.jr-back { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px 0 13px;
  border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--neutral-0);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: background .12s; white-space: nowrap; }
.jr-back:hover { background: var(--accent-hover); }
.jr-chev { font-size: var(--fs-lg); line-height: 1; margin-top: -1px; }
.jr-back-lbl { letter-spacing: .01em; }

/* the trail expands on hover */
.journey .jr-trail { display: inline-flex; align-items: center; max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width .3s ease, opacity .2s ease, padding .3s ease; padding: 0; }
.journey:hover .jr-trail { max-width: 520px; opacity: 1; padding: 0 8px 0 6px; }
.jr-dot { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; background: none;
  border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); cursor: default; white-space: nowrap; }
.jr-dot-pip { width: 19px; height: 19px; border-radius: 50%; background: var(--surface-sunken-2); color: var(--text-faint);
  display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 700; flex-shrink: 0; }
.jr-dot.done { color: var(--text-body); cursor: pointer; }
.jr-dot.done .jr-dot-pip { background: var(--accent); color: var(--neutral-0); }
.jr-dot.done:hover { background: var(--accent-tint); color: var(--accent-strong); }
.jr-dot.active { color: var(--text-heading); }
.jr-dot.active .jr-dot-pip { background: var(--text-heading); color: var(--neutral-0); }
.jr-dot.future { opacity: .55; }
.jr-line { width: 12px; height: 1.5px; background: var(--border); flex-shrink: 0; }
.journey.solo .jr-home { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border: 0; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--neutral-0); font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.journey.solo .jr-home:hover { background: var(--accent-hover); }
@media (max-width: 720px) { .journey:hover .jr-trail { max-width: 0; opacity: 0; padding: 0; } }
.map-area .map-el { width: 100%; height: 100%; background: var(--map-bg); }
.leaflet-container { font-family: var(--font-sans); }

/* =================================================================
   Map price pins — dot-anchored tags with corner placement.
   .hm-marker is a 0×0 box whose origin (0,0) is the TRUE location.
   The dot sits on the origin; the tag floats into a corner.
   ================================================================= */
.hm-marker { position: absolute; }
.hm-dot {
  position: absolute; left: 0; top: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2.5px solid var(--neutral-0);
  box-shadow: 0 1px 4px rgba(var(--shadow-rgb), .45);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.hm-dot.nofit { background: var(--text-faint); }
.hm-dot.sel   { background: var(--text-heading); width: 15px; height: 15px; box-shadow: 0 2px 8px rgba(var(--shadow-rgb), .5); }  /* your pick — ink stands clear of the teal £-tags */

.hm-tag {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 11px;
  background: var(--accent); color: var(--neutral-0);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1;
  font-feature-settings: "tnum" 1; letter-spacing: -0.01em;
  border-radius: 7px; border: 2px solid var(--neutral-0);
  box-shadow: 0 2px 8px rgba(var(--shadow-rgb), .28);
  white-space: nowrap; cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.hm-tag.nofit {
  background: var(--neutral-0); color: var(--text-muted);
  border: 1.5px dashed var(--text-faint); box-shadow: 0 1px 5px rgba(var(--shadow-rgb), .14);
  font-size: var(--fs-xs); letter-spacing: .04em;
}
.hm-tag.sel { background: var(--text-heading); box-shadow: 0 4px 14px rgba(var(--shadow-rgb), .4); }  /* your pick — ink, not teal, so it reads as locked-in among teal tags */
.hm-marker:hover .hm-tag:not(.nofit) { background: var(--accent-hover); transform: scale(1.04); box-shadow: 0 4px 14px rgba(var(--shadow-rgb), .34); }
.hm-marker.is-sel { z-index: 1000 !important; }

/* corner placement — the dot sits ~25% over the named corner of the tag */
.hm-marker.p-br .hm-tag { right: 1px;  bottom: 1px; }   /* tag up-left  */
.hm-marker.p-bl .hm-tag { left: 1px;   bottom: 1px; }   /* tag up-right */
.hm-marker.p-tr .hm-tag { right: 1px;  top: 1px; }      /* tag down-left*/
.hm-marker.p-tl .hm-tag { left: 1px;   top: 1px; }      /* tag down-right*/

/* venue star */
.hm-pin.venue { background: var(--status-danger); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0; font-size: var(--fs-sm); color: var(--neutral-0); border: 2px solid var(--neutral-0); box-shadow: 0 2px 8px rgba(var(--shadow-rgb), .3); }

/* map floating header (count) */
.map-hud {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float); padding: 10px 20px; z-index: 500;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-heading); white-space: nowrap;
}
.map-hud b { color: var(--accent); }

/* ---------------- Collapsed config summary (stage 2+) ---------------- */
.summary-col {
  width: 300px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border); height: 100%; overflow-y: auto;
  padding: 24px 24px 0;
}
.summary-card {
  background: var(--surface-sunken); border-radius: var(--radius-card); padding: 20px; margin-bottom: 16px;
}
.summary-card .sc-eyebrow { font-size: var(--fs-xs); font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color: var(--accent); margin-bottom: 8px; display:flex; justify-content:space-between; align-items:center; }
.summary-card .sc-eyebrow .edit { color: var(--link); cursor: pointer; font-size: var(--fs-xs); letter-spacing:0; text-transform:none; font-weight:600; }
.summary-card .sc-event { font-size: var(--fs-lg); font-weight: 700; color: var(--text-heading); margin-bottom: 4px; }
.summary-card .sc-line { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.summary-card .sc-line b { color: var(--text-body); font-weight: 600; }
.summary-stat { display:flex; justify-content:space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.summary-stat:last-child { border-bottom: 0; }
.summary-stat .k { color: var(--text-muted); }
.summary-stat .v { color: var(--text-heading); font-weight: 600; }

/* ---------------- Stage 2: Pick — 50:50 split, content left / map right ---------------- */
.pick-left { width: clamp(380px, 50%, 560px); flex-shrink: 0; height: 100%; overflow-y: auto; background: var(--bg-app); container-type: inline-size; container-name: picklist; }
.pick-left-pad { padding: 28px 32px 40px; }
.stage[data-stage="2"] .map-area { flex: 1 1 auto; width: auto; min-width: 0; }

/* container-query density — Group ladder: respond to the list column, not the viewport */
@container picklist (max-width: 400px) {
  .hotel-card .hc-body { padding: 12px 14px 14px; }
  .hotel-card .hc-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hotel-card .hc-rate { text-align: left; }
  .hc-actions { grid-template-columns: 1fr; }
}

.hc-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 14px; align-items: stretch; }
.hc-actions .hm-btn { height: 46px; padding: 0 16px; font-size: var(--fs-sm); width: 100%; margin: 0; }
.hc-actions .hc-lock { white-space: nowrap; order: -1; }
.hc-actions.selected { grid-template-columns: auto 1fr 1fr; }
.hc-back { width: 46px; height: 46px; flex-shrink: 0; border: 1px solid var(--border); background: transparent; color: var(--text-body); font-size: var(--fs-lg); line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-button); transition: border-color .12s, color .12s; }
.hc-back:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Book-now payment page (full width, no gantt) */
.bookpay { flex: 1; overflow: auto; background: var(--bg-app); display: flex; justify-content: center; }
.bookpay-inner { width: min(760px, 100%); padding: 48px 32px 64px; }
.bp-back { margin-bottom: 22px; }
.bp-head { margin-bottom: 28px; }
.bp-title { font-family: var(--font-sans); font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -.02em; margin: 8px 0 10px; color: var(--text-heading); }
.bp-sub { font-size: var(--fs-md); color: var(--text-muted); line-height: 1.5; max-width: 620px; margin: 0; }
.bp-sub b { color: var(--text-body); font-weight: 600; }
.bp-cards { display: flex; flex-direction: column; gap: 14px; }
.bp-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px 24px; transition: border-color .12s; }
.bp-card:hover { border-color: var(--accent); }
.bp-card-main { min-width: 0; }
.bp-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.bp-card-head .cm-name { font-size: var(--fs-lg); font-weight: 700; color: var(--text-heading); }
.bp-card-desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; margin: 0 0 12px; max-width: 460px; }
.bp-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.bp-feats li { font-size: var(--fs-xs); color: var(--text-body); position: relative; padding-left: 17px; }
.bp-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; }
.bp-card-action { flex-shrink: 0; }
.bp-card-action .hm-btn { white-space: nowrap; }
@media (max-width: 640px) { .bp-card { flex-direction: column; align-items: stretch; } }

/* lock-for-24h modal */
.lock-modal { width: 460px; }
.lm-quote { background: var(--surface-sunken); border-radius: var(--radius-row); padding: 14px 16px; margin-bottom: 18px; }
.lm-quote .qkv { display: flex; justify-content: space-between; padding: 4px 0; font-size: var(--fs-sm); color: var(--text-body); }
.lm-quote .qkv span:last-child { font-weight: 600; color: var(--text-heading); }
.lm-quote .qkv.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-size: var(--fs-md); }
.lm-quote .qkv.total span:last-child { color: var(--accent); font-weight: 700; }
.lm-share { margin-bottom: 16px; }
.lm-share-row { display: flex; gap: 8px; }
.lm-share-row input { flex: 1; height: 44px; border: 1.5px solid var(--border); border-radius: 8px; padding: 0 12px; font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-xs); color: var(--text-body); background: var(--surface-sunken); }
.lm-share-row .hm-btn { height: 44px; }
.lm-timer { text-align: center; font-size: var(--fs-sm); color: var(--text-muted); background: var(--accent-tint); border-radius: var(--radius-pill); padding: 9px; margin-bottom: 18px; }
.lm-timer b { color: var(--accent-strong); font-family: 'IBM Plex Mono', monospace; }
.lm-actions { display: flex; gap: 10px; }
.lm-actions .hm-btn { flex: 1; }

/* ---------------- Decide overlay (moment of decision) ---------------- */
.decide-overlay { position:absolute; inset:0; z-index:60; background:rgba(var(--scrim-light-rgb), .78); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); display:flex; align-items:center; justify-content:center; padding:40px; animation:dcfade .22s ease both; }
.decide-overlay.gone { opacity:0; transition:opacity .2s ease; }
@keyframes dcfade { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:none;} }
.decide-inner { width:min(1080px,100%); }
.decide-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:22px; }
.decide-eyebrow { font-size: var(--fs-xs); font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--accent); margin-bottom:8px; }
.decide-title { font-size: var(--fs-2xl); font-weight:700; color:var(--text-heading); line-height:1.2; margin:0; max-width:640px; }
.decide-browse { background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-pill); height:44px; padding:0 20px; font-size: var(--fs-sm); font-weight:600; color:var(--accent); cursor:pointer; white-space:nowrap; }
.decide-browse:hover { border-color:var(--accent); }
.decide-cards { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.decide-card { background:var(--surface); border-radius:var(--radius-card); box-shadow:var(--shadow-float); overflow:hidden; display:flex; flex-direction:column; }
.dc-photo { height:128px; position:relative; cursor:pointer; }
.dc-tag { position:absolute; top:12px; left:12px; background:var(--accent); color:var(--neutral-0); font-size: var(--fs-xs); font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:5px 11px; border-radius:var(--radius-pill); }
.dc-body { padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.dc-name { font-size: var(--fs-lg); font-weight:700; color:var(--text-heading); }
.dc-stats { font-size: var(--fs-sm); color:var(--text-muted); margin:8px 0 12px; line-height:1.5; }
.dc-stats b { color:var(--text-body); }
.dc-price { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.dc-price .amt { font-size: var(--fs-2xl); font-weight:700; color:var(--text-heading); }
.dc-price .per { font-size: var(--fs-xs); color:var(--text-muted); }
.dc-price .dc-tot { font-size: var(--fs-xs); color:var(--accent); font-weight:600; margin-left:auto; }
.dc-actions { display:grid; grid-template-columns:1fr auto; gap:8px; margin-top:auto; }
.dc-actions .hm-btn { height:44px; padding:0 16px; font-size: var(--fs-sm); }
.decide-foot { text-align:center; font-size: var(--fs-sm); color:var(--text-muted); margin-top:20px; }
@media (max-width:1180px){ .decide-cards { grid-template-columns:1fr; } .decide-overlay { overflow:auto; } }

/* itinerary header at top of the single column */
.pick-itin { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.pick-itin .pi-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.pick-itin .pi-event { font-size: var(--fs-2xl); font-weight: 700; color: var(--text-heading); line-height: 1.15; }
.pick-itin .pi-meta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; }
.pick-itin .pi-meta b { color: var(--text-body); font-weight: 600; }
.pick-itin .pi-stats { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 10px; }
.pick-itin .pi-stats b { color: var(--text-body); font-weight: 600; }
.pick-itin .pi-edit { color: var(--link); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

.pick-listhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.pick-listhead .hr-title { font-size: var(--fs-xl); font-weight: 700; color: var(--text-heading); }
.pick-listhead .hr-title b { color: var(--accent); }
.pick-listhead .hr-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 3px; font-feature-settings: "tnum" 1; }
.pick-listhead .hr-sub b { color: var(--text-body); font-weight: 600; }

/* hotel cards laid out in the left column — vertical list */
.pick-cards { display: flex; flex-direction: column; gap: 14px; }
.pick-cards .nofit-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin: 12px 4px 2px; }

/* ---------------- Hotel rail (legacy, stage 2) ---------------- */
.hotel-rail-head { padding: 22px 24px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.hotel-rail-head .hr-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text-heading); }
.hotel-rail-head .hr-title b { color: var(--accent); }
.hotel-rail-sort { display: flex; gap: 8px; margin-top: 12px; }
.sort-btn { height: 34px; padding: 0 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.sort-btn.active { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-strong); }
.hotel-rail-scroll { flex: 1; overflow-y: auto; padding: 16px; }

.hotel-card {
  background: var(--surface); border: 2px solid transparent; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 0; margin-bottom: 14px; cursor: pointer;
  overflow: hidden; transition: border-color .14s, box-shadow .14s, transform .1s;
}
.hotel-card:hover { box-shadow: var(--shadow-float); transform: translateY(-1px); }
.hotel-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint), 0 8px 30px rgba(var(--shadow-rgb), .18); }  /* selected = teal box + soft teal ring */
.hotel-card.nofit { opacity: 0.66; cursor: not-allowed; }
.hotel-card.nofit:hover { transform: none; box-shadow: var(--shadow-card); }
.hc-photo { height: 124px; background: var(--surface-sunken-2); position: relative; background-size: cover; background-position: center; }

/* 3-photo group card grid (spec §): one large + two stacked */
.hc-photos-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 150px; cursor: pointer; overflow: hidden; }
.hc-photos-grid .hc-photo { height: auto; }
.hc-photos-grid .hc-photo.lg { grid-row: 1 / 3; }
.hc-photo .hc-dist { position:absolute; top:10px; left:10px; white-space:nowrap; background:rgba(var(--scrim-rgb), .78); color:var(--neutral-0); font-size: var(--fs-xs); font-weight:600; padding:4px 9px; border-radius:var(--radius-pill); }
.hc-photos { position:absolute; bottom:8px; right:8px; background:rgba(var(--scrim-rgb), .7); color:var(--neutral-0); font-size: var(--fs-xs); font-weight:600; padding:3px 8px; border-radius:var(--radius-pill); }
.hs-photo { cursor:pointer; overflow:hidden; }
.hs-photos { position:absolute; bottom:10px; right:10px; background:rgba(var(--scrim-rgb), .7); color:var(--neutral-0); font-size: var(--fs-xs); font-weight:600; padding:4px 9px; border-radius:var(--radius-pill); }

/* ---------------- Gallery lightbox ---------------- */
.gallery-bg { position:fixed; inset:0; background:rgba(var(--scrim-rgb), .86); display:none; align-items:center; justify-content:center; z-index:300; }
.gallery-bg.show { display:flex; }
.gallery { width:min(900px,92vw); display:flex; flex-direction:column; }
.gx-close { position:absolute; top:22px; right:26px; width:42px; height:42px; border-radius:50%; border:0; background:rgba(var(--on-dark-rgb), .14); color:var(--neutral-0); font-size: var(--fs-lg); cursor:pointer; }
.gx-close:hover { background:rgba(var(--on-dark-rgb), .26); }
.gx-stage { display:flex; align-items:center; gap:14px; }
.gx-hero { flex:1; aspect-ratio:16/10; border-radius:var(--radius-card); position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.gx-watermark { display:flex; flex-direction:column; align-items:center; gap:10px; color:rgba(var(--on-dark-rgb), .9); font-size: var(--fs-md); font-weight:600; letter-spacing:.02em; }
.gx-nav { width:46px; height:46px; flex-shrink:0; border-radius:50%; border:0; background:rgba(var(--on-dark-rgb), .16); color:var(--neutral-0); font-size: var(--fs-2xl); line-height:1; cursor:pointer; }
.gx-nav:hover { background:rgba(var(--on-dark-rgb), .3); }
.gx-bar { display:flex; align-items:center; justify-content:space-between; margin:14px 60px 0; color:var(--neutral-0); }
.gx-cap { font-size: var(--fs-md); font-weight:600; }
.gx-count { font-size: var(--fs-sm); color:rgba(var(--on-dark-rgb), .7); font-family:'IBM Plex Mono',monospace; }
.gx-thumbs { display:flex; gap:8px; margin:14px 60px 0; overflow-x:auto; padding-bottom:4px; }
.gx-thumb { width:84px; height:54px; flex-shrink:0; border-radius:8px; border:2px solid transparent; cursor:pointer; }
.gx-thumb.on { border-color:var(--neutral-0); }
.hc-photo .hc-nofit { position:absolute; top:10px; right:10px; background:var(--neutral-0); color:var(--text-muted); font-size: var(--fs-xs); font-weight:700; letter-spacing:.05em; padding:4px 9px; border-radius:var(--radius-pill); border:1px dashed var(--text-faint); }
.hc-body { padding: 14px 16px 16px; }
.hc-namerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hc-name { font-size: var(--fs-lg); font-weight: 700; color: var(--text-heading); }
.hc-avail { flex-shrink: 0; margin-top: 2px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-tint); border: 1px solid var(--accent-soft); padding: 4px 9px; border-radius: var(--radius-pill); white-space: nowrap; font-feature-settings: "tnum" 1; }
.hc-stars { color: var(--star); font-size: var(--fs-sm); letter-spacing: 1px; margin: 4px 0 12px; }
.hc-amens { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hc-amens .hm-chip { cursor: default; }
.hs-amens { margin: 12px 0 16px; }
.hc-meta { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 12px; }
.hc-meta .reason { color: var(--status-danger); font-weight: 600; }
.hc-blurb { font-size: var(--fs-sm); color: var(--text-body); line-height: 1.5; margin: 0 0 12px; }

/* concierge affordance (foot of pick list) */
.concierge { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; background: var(--accent-tint); border: 1.5px solid var(--accent-tint-2); border-radius: var(--radius-card); }
.concierge .cc-ico { font-size: var(--fs-2xl); flex-shrink: 0; }
.concierge .cc-body { flex: 1; }
.concierge .cc-title { font-size: var(--fs-md); font-weight: 700; color: var(--text-heading); }
.concierge .cc-sub { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
.concierge .cc-btn { flex-shrink: 0; height: 40px; white-space: nowrap; }
@container picklist (max-width: 460px) { .concierge { flex-direction: column; align-items: flex-start; } .concierge .cc-btn { width: 100%; } }
.hc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hc-party .hc-party-amt { font-size: var(--fs-2xl); font-weight: 700; color: var(--text-heading); letter-spacing: -0.015em; font-feature-settings: "tnum" 1; line-height: 1.05; }
.hc-party .hc-party-lbl { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; font-feature-settings: "tnum" 1; }
.hc-rate { text-align: right; white-space: nowrap; }
.hc-rate .amt { font-size: var(--fs-sm); font-weight: 700; color: var(--accent); font-feature-settings: "tnum" 1; }
.hc-rate .per { font-size: var(--fs-xs); color: var(--text-muted); display: block; }
.hc-pick { margin-top: 12px; }

/* ---------------- Generic stage scaffolding for gantt/pay ---------------- */
.work-area { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg-app); }
.work-head { padding: 20px 28px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.work-head .wh-title { font-size: var(--fs-lg); font-weight: 600; color: var(--text-heading); letter-spacing: -.01em; }
.work-head .wh-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; }
.work-head .wh-edit { color: var(--link); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.work-head .wh-edit:hover { text-decoration: underline; }

/* itinerary block at top of the right summary panel */
.hs-itin { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.hs-itin-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.hs-itin-eyebrow { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
/* ---- Unified "reconfigure" link: one identical treatment everywhere it
   appears (gantt side panel, summary card, work head, pick itinerary).
   Distinct from the bordered in-place EDIT pill on purpose. ---- */
.hs-itin-edit, .summary-card .sc-eyebrow .edit, .work-head .wh-edit, .pick-itin .pi-edit {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--accent-strong); cursor: pointer; white-space: nowrap; flex-shrink: 0;
  background: none; border: 0; padding: 0;
}
.hs-itin-edit:hover, .summary-card .sc-eyebrow .edit:hover, .work-head .wh-edit:hover, .pick-itin .pi-edit:hover { text-decoration: underline; text-underline-offset: 2px; }
.hs-itin-event { font-size: var(--fs-lg); font-weight: 700; color: var(--text-heading); letter-spacing: -0.01em; }
.hs-itin-meta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 3px; }
.hs-itin-meta b { color: var(--text-body); font-weight: 600; }
.hs-itin-stats { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 6px; font-feature-settings: "tnum" 1; }
.work-scroll { flex: 1; overflow: auto; padding: 22px 28px; }

/* right panel (hotel summary / pay) */
.side-panel { width: 360px; flex-shrink: 0; background: var(--surface); border-left: 1px solid var(--border); height: 100%; overflow-y: auto; }

/* =================================================================
   Stage 0 — Entry choice (Single room vs Group booking)
   ================================================================= */
.choose-map { position: absolute; inset: 0; z-index: 0; background: var(--map-bg); }
.choose-map .leaflet-container { width: 100%; height: 100%; }
.choose-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 40px; }

.choose-card {
  width: min(840px, 100%);
  background: var(--surface);
  border-radius: var(--radius-float);
  box-shadow: var(--shadow-float);
  padding: 34px 36px 36px;
}
.choose-event { margin: 8px 0 4px; }
.choose-meta { font-size: var(--fs-md); color: var(--text-muted); margin: 0 0 24px; }
.choose-meta b { color: var(--text-body); font-weight: 600; }
/* eyebrow matches the front door — magenta accent */
.choose-card .hm-eyebrow:not(.cyan) { color: var(--accent); }

.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choose-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 2px solid transparent; border-radius: var(--radius-md);
  background: var(--surface-sunken); padding: 44px 24px 40px; cursor: pointer;
  font-family: var(--font-sans); text-align: center; gap: 0;
  transition: border-color .14s, background .14s, transform .08s, box-shadow .14s;
}
.choose-opt:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.choose-opt .co-illo { height: 168px; display: flex; align-items: center; justify-content: center; margin-bottom: 34px; color: var(--neutral-1000); }
.choose-opt .co-illo svg { height: 160px; width: auto; }
.choose-opt .co-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; line-height: 1; margin-bottom: 2px; }
.choose-opt .co-title { font-size: var(--fs-2xl); font-weight: 600; color: var(--text-heading); letter-spacing: -.01em; line-height: 1.1; }

/* At rest the cards are plain semantic-grey — the ONLY colour is the
   eyebrow ("Book a" / "Make a"). The accent stroke + tinted background
   only come in on hover. (single = secondary/cyan, group = accent/teal) */
.choose-opt.single .co-eyebrow { color: var(--secondary); }
.choose-opt.single:hover { border-color: var(--secondary); background: color-mix(in srgb, var(--secondary-tint) 40%, var(--surface-sunken)); }
.choose-opt.single:focus-visible { outline-color: var(--secondary); }

.choose-opt.group .co-eyebrow { color: var(--accent); }
.choose-opt.group:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent-tint) 40%, var(--surface-sunken)); }
.choose-opt.group:focus-visible { outline-color: var(--accent); }

/* return-to-choice link on the configure stage */
.cfg-back { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; margin: 0 0 var(--space-12); color: var(--neutral-1000); font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 1; cursor: pointer; }
.cfg-back { height: 32px; padding: 0 14px; gap: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius-pill); }
.cfg-back:hover { border-color: var(--accent); color: var(--accent-strong); text-decoration: none; }
.cfg-back .cb-ico { font-size: var(--fs-sm); }
.cfg-divider { max-width: none; height: 1px; background: var(--border); border: 0; margin: 0 -30px var(--space-24); }

/* single-room placeholder view */
.hm-eyebrow.cyan { color: var(--secondary); }
.single-copy { font-size: var(--fs-md); color: var(--text-body); line-height: 1.6; margin: 4px 0 24px; max-width: 540px; }
.single-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-btn.cyan { background: var(--secondary); color: var(--neutral-0); box-shadow: var(--shadow-btn); }
.hm-btn.cyan:hover { background: var(--secondary-hover); }
