/* ═══════════════════════════════════════════════════════════════════════════
   The Living Estate (src/living-estate.php, script src/living/ → /ve/living.js)
   Desktop: the model fills the screen, chambers on the right, the moment along the bottom.
   Phones (≤ 900px): the model on top, the controls below it.
═══════════════════════════════════════════════════════════════════════════ */
.ve-le { background: var(--ve-forest-deep); }

.le-stage {
  --panel: 340px;
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 10%, #22394a 0%, var(--ve-forest-deep) 70%);
  color: var(--ve-cream);
}
.le-view { position: absolute; inset: 0; }
.le-canvas, .le-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.le-canvas canvas { cursor: grab; touch-action: none; outline: none; }
.le-canvas canvas:active { cursor: grabbing; }
.le-canvas canvas:focus-visible { outline: 1px solid var(--ve-gold); outline-offset: -6px; }
.le-stage .le-still { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.le-stage.le-nogl .le-still { display: block; }
.le-nogl .le-pins { display: none; }

/* Soft shade so the type reads over a bright sky */
.le-view::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 19, 14, .55) 0%, rgba(7, 19, 14, 0) 34%, rgba(7, 19, 14, 0) 62%, rgba(7, 19, 14, .7) 100%);
}

.le-intro {
  position: absolute; z-index: 3; left: var(--ve-gutter); top: calc(var(--ve-header-h) + 18px);
  max-width: min(560px, calc(100% - var(--panel) - var(--ve-gutter) * 3)); pointer-events: none;
}
.le-intro .ve-label { color: var(--ve-gold-light); display: flex; align-items: center; gap: 12px; }
.le-badge { font-size: 12px; letter-spacing: .2em; padding: 3px 8px; border: 1px solid rgba(199, 168, 94, .5); border-radius: 999px; }
.le-title { font-family: var(--ve-display); font-weight: 400; font-size: clamp(30px, 4.2vw, 62px); line-height: 1.04; margin: 14px 0 12px; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.le-title em { font-family: var(--ve-serif); font-style: italic; color: var(--ve-gold-light); }
.le-sub { margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; max-width: 46ch; color: rgba(245, 241, 233, .88); text-shadow: 0 1px 16px rgba(0, 0, 0, .4); }

.le-note { grid-area: note; margin: 0; font-size: 12px; line-height: 1.5; color: rgba(245, 241, 233, .6); }

/* Pins on the model */
.le-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.le-pin {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; margin: -14px 0 0 -14px;
  border: 1px solid rgba(199, 168, 94, .55); border-radius: 999px; background: rgba(7, 19, 14, .62); color: var(--ve-cream);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--ve-display); font-size: 12px; letter-spacing: .12em; white-space: nowrap;
  transition: opacity .35s, background-color .25s, border-color .25s;
}
.le-pin span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ve-gold); color: var(--ve-forest-deep); font-size: 12px; letter-spacing: 0; }
.le-pin b { font-weight: 500; display: none; }
.le-pin:hover b, .le-pin:focus-visible b { display: inline; }
.le-pin { padding-right: 5px; }
.le-pin:hover, .le-pin:focus-visible { padding-right: 10px; z-index: 1; }
.le-pin:hover { background: rgba(7, 19, 14, .85); border-color: var(--ve-gold); }
.le-pin.is-back { opacity: .45; }
.le-pin.is-hidden { opacity: 0; pointer-events: none; }
.le-pin.is-current { border-color: var(--ve-gold); padding-right: 10px; }
.le-pin.is-current b { display: inline; }
.le-pin.is-current span { box-shadow: 0 0 0 6px rgba(199, 168, 94, .25); }

/* The chambers panel */
.le-side {
  position: absolute; z-index: 4; right: var(--ve-gutter); top: calc(var(--ve-header-h) + 18px); bottom: calc(var(--bar-h, 210px) + 40px); width: var(--panel);
  display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: rgba(7, 19, 14, .58); border: 1px solid var(--ve-line-light);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.le-side__list { padding: 18px 18px 10px; }
.le-side__list .ve-label { color: var(--ve-gold-light); margin-bottom: 10px; }
.le-in-room .le-side__list { display: none; }
.le-rooms { list-style: none; margin: 0; padding: 0; }
.le-room {
  display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 11px 4px; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--ve-line-light); color: var(--ve-cream);
  font-family: var(--ve-serif); font-size: 18px; line-height: 1.25; transition: color .2s, padding .3s var(--ve-ease);
}
.le-room:hover, .le-room[aria-pressed="true"] { color: var(--ve-gold-light); padding-left: 10px; }
.le-room .ve-num { color: var(--ve-gold); flex: none; width: 24px; }

.le-card { padding: 16px 18px 20px; }
.le-back {
  background: none; border: 0; color: var(--ve-gold-light); cursor: pointer; padding: 4px 0 14px;
  font-family: var(--ve-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.le-back:hover { color: var(--ve-cream); }
.le-stage .le-card__img { display: block; width: 100%; height: 170px; object-fit: cover; }
.le-card__name { font-family: var(--ve-display); font-weight: 400; font-size: 22px; line-height: 1.15; margin: 12px 0 4px; }
.le-card__facts { margin: 0 0 10px; font-size: 14px; color: var(--ve-gold-light); }
.le-card__line { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: rgba(245, 241, 233, .85); }
.le-card__label { color: var(--ve-gold-light); margin-bottom: 8px; }
.le-card__morning { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 18px; }
.le-card__morning dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 241, 233, .6); }
.le-card__morning dd { margin: 2px 0 0; font-size: 17px; }
.le-card__reserve { width: 100%; margin-bottom: 18px; }

/* The moment: dates, time of day, weather */
.le-bar {
  position: absolute; z-index: 4; left: var(--ve-gutter); right: var(--ve-gutter); bottom: 22px;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "stay time modes" "mornings mornings mornings" "note note note"; gap: 12px 26px; align-items: end;
  padding: 18px 22px; background: rgba(7, 19, 14, .66); border: 1px solid var(--ve-line-light);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.le-stay { grid-area: stay; display: flex; align-items: end; gap: 12px; }
.le-field { display: grid; gap: 6px; }
.le-field .ve-label { color: var(--ve-gold-light); }
.le-field input {
  font: 16px var(--ve-serif); color: var(--ve-cream); background: rgba(245, 241, 233, .06); color-scheme: dark;
  border: 1px solid var(--ve-line-light); padding: 9px 10px; min-width: 150px;
}
.le-field input:focus-visible { outline: 1px solid var(--ve-gold); outline-offset: 2px; }
.le-wake { white-space: nowrap; }
.le-mornings { grid-area: mornings; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.le-mornings[hidden] { display: none; }
.le-mornings .ve-label { color: var(--ve-gold-light); margin-right: 6px; }
.le-time { grid-area: time; min-width: 0; }
.le-readout { margin: 0 0 8px; font-size: 16px; line-height: 1.35; color: rgba(245, 241, 233, .82); }
.le-readout strong { font-family: var(--ve-display); font-weight: 500; font-size: 22px; color: var(--ve-cream); margin: 0 8px; letter-spacing: .06em; }
.le-track { position: relative; padding-bottom: 20px; }
.le-track input { width: 100%; margin: 0; accent-color: var(--ve-gold); cursor: pointer; height: 26px; background: transparent; }
.le-tick { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 12px; color: var(--ve-gold-light); white-space: nowrap; pointer-events: none; }
.le-tick::before { content: ''; position: absolute; left: 50%; bottom: 18px; width: 1px; height: 8px; background: var(--ve-gold); }
.le-time__btns { display: flex; gap: 8px; }
.le-modes { grid-area: modes; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 290px; }
.le-modes .ve-label { width: 100%; color: var(--ve-gold-light); }
.le-chip {
  font-family: var(--ve-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; cursor: pointer; background: transparent;
  color: rgba(245, 241, 233, .82); border: 1px solid rgba(199, 168, 94, .38); transition: background-color .2s, color .2s, border-color .2s;
}
.le-chip:hover { border-color: var(--ve-gold); color: var(--ve-cream); }
.le-chip[aria-pressed="true"] { background: var(--ve-gold); border-color: var(--ve-gold); color: var(--ve-forest-deep); }
.le-chip[hidden] { display: none; }

/* How it works */
.le-about { background: var(--ve-cream); color: var(--ve-text); padding: clamp(80px, 11vw, 150px) 0; }
.le-about .ve-kicker { color: var(--ve-gold-deep); margin-bottom: 18px; }
.le-about .ve-h2 em { font-family: var(--ve-serif); font-style: italic; color: var(--ve-forest); }
.le-points { list-style: none; margin: clamp(40px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.le-points h3 { font-family: var(--ve-display); font-weight: 400; font-size: 22px; margin: 12px 0 10px; }
.le-points p { margin: 0; color: var(--ve-muted); }

/* ── Tablets and phones: the model on top, the controls under it ─────────── */
@media (max-width: 1100px) { .le-stage { --panel: 300px; } .le-modes { max-width: 200px; } .le-points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .le-stage { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  .le-view { position: relative; height: 72svh; min-height: 480px; }
  .le-intro { max-width: none; right: var(--ve-gutter); top: calc(var(--ve-header-h) + 6px); }
  .le-title { font-size: clamp(28px, 8vw, 40px); }
  .le-sub { font-size: 16px; }
  .le-pin b { display: none; }
  .le-side, .le-bar { position: static; width: auto; margin: 0; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ve-forest-deep); border: 0; border-top: 1px solid var(--ve-line-light); }
  .le-side { order: 3; overflow: visible; }
  .le-bar { order: 2; grid-template-columns: 1fr; grid-template-areas: "stay" "mornings" "time" "modes" "note"; padding: 18px var(--ve-gutter) 22px; }
  .le-side__list, .le-card { padding: 20px var(--ve-gutter) 26px; }
  .le-stay { flex-wrap: wrap; }
  .le-field { flex: 1 1 140px; }
  .le-field input { min-width: 0; width: 100%; }
  .le-wake { flex: 1 1 100%; }
  .le-modes { max-width: none; }
  .le-readout { white-space: normal; }
  .le-points { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .le-room, .le-pin, .le-chip { transition: none; } }

/* ── Phase 2: Your day ─────────────────────────────────────────────────── */
.le-tabs { display: flex; border-bottom: 1px solid var(--ve-line-light); flex: none; }
.le-tab {
  flex: 1; padding: 14px 10px 12px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  color: rgba(245, 241, 233, .7); font-family: var(--ve-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.le-tab:hover { color: var(--ve-cream); }
.le-tab[aria-selected="true"] { color: var(--ve-gold-light); border-bottom-color: var(--ve-gold); }
.le-tab__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--ve-gold); color: var(--ve-forest-deep); font-size: 12px; letter-spacing: 0; }
.le-tab__count[hidden] { display: none; }
.le-panel[hidden] { display: none; }

.le-day { padding: 16px 18px 20px; }
.le-day__intro { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: rgba(245, 241, 233, .85); }
.le-day__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.le-day__actions .ve-btn { padding-left: 10px; padding-right: 10px; letter-spacing: .16em; }
.le-day__walk[disabled] { opacity: .45; cursor: not-allowed; }
.le-day__send { color: var(--ve-cream); }
.le-day__empty { margin: 0 0 6px; font-size: 14px; color: rgba(245, 241, 233, .6); }
.le-day__empty[hidden] { display: none; }
.le-day__list, .le-day__list ul { list-style: none; margin: 0; padding: 0; }
.le-day__group .ve-label { color: var(--ve-gold-light); margin: 16px 0 6px; }
.le-exp { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ve-line-light); }
.le-stage .le-exp img { width: 52px; height: 52px; object-fit: cover; }
.le-exp__text { display: grid; gap: 2px; min-width: 0; }
.le-exp__text b { font-weight: 500; font-size: 16px; line-height: 1.25; }
.le-exp__text span { font-size: 13px; color: rgba(245, 241, 233, .62); }
.le-exp__add {
  font-family: var(--ve-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; background: transparent; color: var(--ve-cream); border: 1px solid rgba(199, 168, 94, .45);
  transition: background-color .2s, color .2s;
}
.le-exp__add:hover { border-color: var(--ve-gold); }
.le-exp__add[aria-pressed="true"] { background: var(--ve-gold); border-color: var(--ve-gold); color: var(--ve-forest-deep); }

/* Gold marks on the time of day for each chosen experience */
.le-mark {
  position: absolute; top: 6px; width: 14px; height: 14px; margin-left: -7px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--ve-forest-deep); border: 2px solid var(--ve-gold-light); z-index: 1; transition: transform .2s;
}
.le-mark:hover, .le-mark:focus-visible { transform: scale(1.25); }

/* Experience pins on the model, and the "happening now" caption */
.le-epin {
  position: absolute; left: 0; top: 0; margin: -13px 0 0 -13px; display: flex; align-items: center; gap: 7px; pointer-events: none;
  padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(245, 241, 233, .92); color: var(--ve-forest-deep);
  font-family: var(--ve-display); font-size: 12px; letter-spacing: .08em; white-space: nowrap; transition: opacity .35s, box-shadow .3s;
}
.le-epin i { width: 18px; height: 18px; border-radius: 50% 0; background: var(--ve-forest); transform: rotate(45deg); flex: none; }
.le-epin em { font-style: normal; display: none; }
.le-epin.is-now { box-shadow: 0 0 0 6px rgba(199, 168, 94, .45); }
.le-epin.is-now em { display: inline; }
.le-epin.is-hidden { opacity: 0; }
.le-caption {
  position: absolute; z-index: 3; left: 50%; bottom: calc(var(--bar-h, 210px) + 40px); transform: translateX(-50%); margin: 0; max-width: calc(100% - 2 * var(--ve-gutter));
  padding: 10px 18px; border: 1px solid rgba(199, 168, 94, .6); border-radius: 999px; background: rgba(7, 19, 14, .7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--ve-display); font-size: 14px; letter-spacing: .08em; text-align: center;
}
.le-caption[hidden] { display: none; }
.le-day-open .le-intro .le-sub { display: none; }
@media (min-width: 901px) { .le-caption { left: calc(50% - var(--panel) / 2); } }
@media (max-width: 900px) {
  .le-caption { bottom: 46px; left: var(--ve-gutter); right: var(--ve-gutter); transform: none; max-width: none; font-size: 13px; border-radius: 22px; }
  .le-epin.is-now em { display: none; }
  .le-day { padding: 20px var(--ve-gutter) 26px; }
}
@media (prefers-reduced-motion: reduce) { .le-tab, .le-exp__add, .le-mark, .le-epin { transition: none; } }

/* ── Phase 4: the Restoration Ledger ───────────────────────────────────── */
.le-stage .le-sub--ledger, .le-stage.le-ledger .le-sub--galaha { display: none; }
.le-stage.le-ledger .le-sub--ledger { display: block; }
.le-stage.le-ledger.le-day-open .le-sub--ledger { display: block; }
.le-fade { position: absolute; inset: 0; z-index: 2; background: var(--ve-forest-deep); opacity: 0; pointer-events: none; transition: opacity .32s ease; }
.le-fading .le-fade { opacity: 1; }
.le-ledger .le-mark, .le-ledger .le-epin { display: none; }

.le-ledger-panel { padding: 16px 18px 22px; }
.le-ledger-panel > .ve-label { color: var(--ve-gold-light); margin-bottom: 10px; }
.le-ledger__total { position: relative; display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; }
.le-ledger__total b { font-family: var(--ve-display); font-weight: 500; font-size: 34px; line-height: 1; color: var(--ve-gold-light); }
.le-ledger__total span { font-size: 14px; color: rgba(245, 241, 233, .75); }
.le-ledger__total i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--ve-gold) var(--done, 0%), rgba(245, 241, 233, .14) var(--done, 0%)); }
.le-ledger__sample { margin: 0 0 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--ve-cream); border: 1px dashed rgba(199, 168, 94, .55); }
.le-ledger__sample[hidden] { display: none; }
.le-ledger__parts { list-style: none; margin: 0 0 8px; padding: 0; }
.le-part { padding: 10px 0; border-bottom: 1px solid var(--ve-line-light); }
.le-part__go { display: grid; grid-template-columns: 26px 1fr auto; align-items: baseline; gap: 10px; width: 100%; padding: 0; background: none; border: 0; color: var(--ve-cream); cursor: pointer; text-align: left; font-family: var(--ve-serif); font-size: 17px; }
.le-part__go:hover b, .le-part__go[aria-pressed="true"] b { color: var(--ve-gold-light); }
.le-part__go b { font-weight: 500; }
.le-part__go .ve-num { color: var(--ve-gold); }
.le-part__stage { font-family: var(--ve-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(245, 241, 233, .3); white-space: nowrap; }
.le-stage--surveyed { border-color: var(--ve-gold-light); color: var(--ve-gold-light); }
.le-stage--under-way { background: rgba(199, 168, 94, .2); border-color: var(--ve-gold); color: var(--ve-cream); }
.le-stage--restored { background: var(--ve-gold); border-color: var(--ve-gold); color: var(--ve-forest-deep); }
.le-part__bar { display: block; height: 3px; margin: 8px 0 0 36px; background: rgba(245, 241, 233, .14); }
.le-part__bar i { display: block; height: 100%; background: var(--ve-gold); }
.le-part__note { margin: 6px 0 0 36px; font-size: 13px; line-height: 1.45; color: rgba(245, 241, 233, .62); }
.le-ppin span { background: var(--ve-cream); }

.le-patron { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ve-line-light); display: grid; gap: 10px; }
.le-patron[hidden] { display: none; }
.le-patron > .ve-label { color: var(--ve-gold-light); }
.le-patron__title { font-family: var(--ve-display); font-weight: 400; font-size: 20px; line-height: 1.2; margin: 0; }
.le-patron__text { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(245, 241, 233, .85); }
.le-patron__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.le-patron .le-field input, .le-patron select, .le-patron textarea { width: 100%; min-width: 0; box-sizing: border-box; font: 16px var(--ve-serif); color: var(--ve-cream); background: rgba(245, 241, 233, .06); border: 1px solid var(--ve-line-light); padding: 9px 10px; color-scheme: dark; }
.le-patron select option { color: #1a1510; }
.le-patron [aria-invalid="true"] { border-color: #e0806a; }
.le-patron__error { margin: 0; min-height: 0; font-size: 14px; color: #f0a08c; }
.le-patron__error:empty { display: none; }
.le-patron__small { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(245, 241, 233, .6); }
.le-patron__small a { color: var(--ve-gold-light); }
.le-patron__done { margin: 18px 0 0; padding: 14px; border: 1px solid var(--ve-gold); font-size: 15px; line-height: 1.5; }
.le-patron__done[hidden] { display: none; }
.le-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) { .le-ledger-panel { padding: 20px var(--ve-gutter) 26px; } .le-tab { letter-spacing: .14em; padding-left: 6px; padding-right: 6px; } }
@media (prefers-reduced-motion: reduce) { .le-fade { transition: none; } }
@media (max-width: 900px) { .le-stage.le-ledger .le-sub--ledger { display: none; } }

/* ═══ Minimal pass: a quiet frame round the estate ═════════════════════════
   One title, a slim rail on the right that opens a drawer, one compact strip of controls. */
.le-intro { max-width: 520px; }
.le-title { font-size: clamp(26px, 3.3vw, 46px); margin: 10px 0 8px; }
.le-sub { font-size: 16px; max-width: 40ch; transition: opacity .6s var(--ve-ease), transform .6s var(--ve-ease); }
.le-engaged .le-sub { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.le-pin { padding: 3px; opacity: .88; }
.le-pin span { width: 18px; height: 18px; font-size: 12px; }
.le-pin.is-back { opacity: .3; }

/* Pop-overs (stay dates, about this model) */
.le-pop { position: relative; }
.le-pop > summary { list-style: none; cursor: pointer; }
.le-pop > summary::-webkit-details-marker { display: none; }
.le-pop[open] > summary { border-color: var(--ve-gold); color: var(--ve-cream); }
.le-pop__body { margin-top: 10px; }
.le-pop__row { display: flex; gap: 10px; }
.le-pop__row .le-field { flex: 1; min-width: 0; }
.le-pop__row .le-field input { min-width: 0; width: 100%; box-sizing: border-box; }
.le-pop .le-mornings { margin-top: 12px; }
.le-chip--round { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; font: italic 17px var(--ve-serif); letter-spacing: 0; text-transform: none; }
.le-close { display: none; }

@media (min-width: 901px) {
  /* The rail and its drawer */
  .le-side {
    top: 50%; bottom: auto; transform: translateY(-50%); width: auto; overflow: visible; display: block;
    background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .le-tabs { flex-direction: column; align-items: flex-end; gap: 8px; border: 0; }
  .le-tab {
    flex: none; padding: 10px 16px; border: 1px solid rgba(245, 241, 233, .22); border-radius: 999px;
    background: rgba(7, 19, 14, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .le-stage:not(.le-open) .le-tab[aria-selected="true"] { color: rgba(245, 241, 233, .85); border-color: rgba(245, 241, 233, .22); }
  .le-open .le-tab[aria-selected="true"] { border-color: var(--ve-gold); background: rgba(7, 19, 14, .72); }
  .le-stage:not(.le-open) .le-panel { display: none !important; }
  .le-panel {
    position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%); width: 340px;
    max-height: calc(100svh - var(--ve-header-h) - var(--bar-h, 80px) - 70px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
    background: rgba(7, 19, 14, .74); border: 1px solid var(--ve-line-light); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    animation: le-drawer .45s var(--ve-ease);
  }
  @keyframes le-drawer { from { opacity: 0; transform: translate(12px, -50%); } }
  .le-close {
    display: none; position: absolute; right: 0; bottom: calc(100% + 10px); width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    background: rgba(7, 19, 14, .6); border: 1px solid rgba(245, 241, 233, .25); color: var(--ve-cream); font-size: 20px; line-height: 1;
  }
  .le-open .le-close { display: grid; place-items: center; }
  .le-close:hover { border-color: var(--ve-gold); }

  /* One compact strip of controls */
  .le-bar {
    left: 50%; right: auto; transform: translateX(-50%); width: min(1100px, calc(100% - 2 * var(--ve-gutter))); box-sizing: border-box; bottom: 18px;
    grid-template-columns: auto minmax(200px, 1fr) auto auto auto; grid-template-areas: "stay time btns modes info";
    gap: 10px 16px; padding: 10px 14px; align-items: center; border-radius: 18px; background: rgba(7, 19, 14, .58);
  }
  .le-stay { align-items: center; gap: 8px; }
  .le-wake { padding: 11px 16px; }
  .le-time__btns { grid-area: btns; }
  .le-modes { max-width: none; flex-wrap: nowrap; gap: 4px; }
  .le-info { grid-area: info; }
  .le-chip { padding: 7px 11px; }
  .le-readout { margin: 0; font-size: 13px; line-height: 1.3; color: rgba(245, 241, 233, .7); }
  /* The weather facts get their own line rather than being cut off with an ellipsis */
  .le-readout__facts { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .le-readout strong { font-size: 18px; margin: 0 6px 0 0; }
  .le-track { padding-bottom: 16px; }
  .le-track input { height: 22px; }
  .le-pop__body {
    position: absolute; bottom: calc(100% + 16px); left: 0; z-index: 6; width: 330px; margin: 0; padding: 14px 16px;
    background: rgba(7, 19, 14, .92); border: 1px solid var(--ve-line-light); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .le-info .le-pop__body { left: auto; right: 0; width: 300px; }
  .le-caption { left: 50%; }
}
@media (max-width: 1180px) and (min-width: 901px) { .le-modes .le-chip { padding: 7px 8px; letter-spacing: .08em; } .le-time__btns #lePlay { padding: 7px 9px; } }
@media (max-width: 900px) {
  .le-bar { grid-template-areas: "stay" "time" "btns" "modes" "info"; }
  .le-info, .le-time__btns { justify-self: start; }
  .le-dates { flex: 1 1 100%; }
}

/* Minimal pass, round two: one-line title, one-line chips, pins only with their own drawer */
.le-intro { max-width: 720px; }
.le-title { font-size: clamp(26px, 3vw, 42px); }
.le-chip, .le-wake { white-space: nowrap; }
@media (min-width: 901px) {
  .le-pin:not(.le-ppin), .le-epin { transition: opacity .35s; }
  .le-stage:not(.le-open) .le-pin:not(.le-ppin),
  .le-stage[data-tab]:not([data-tab="leTabRooms"]) .le-pin:not(.le-ppin) { opacity: 0 !important; pointer-events: none; }
  .le-stage:not(.le-open) .le-epin,
  .le-stage[data-tab]:not([data-tab="leTabDay"]) .le-epin { opacity: 0 !important; }
}
@media (max-width: 900px) { .le-pin:not(.le-ppin):not(.is-current) { display: none; } }

/* ── Navigation: where you are, and the way back ─────────────────────────── */
.le-focus {
  position: absolute; z-index: 4; left: 50%; top: calc(var(--ve-header-h) + 14px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 4px; border-radius: 999px; max-width: calc(100% - 2 * var(--ve-gutter));
  background: rgba(7, 19, 14, .72); border: 1px solid rgba(199, 168, 94, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: le-focus-in .4s var(--ve-ease);
}
.le-focus[hidden] { display: none; }
@keyframes le-focus-in { from { opacity: 0; transform: translate(-50%, -8px); } }
.le-focus__back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--ve-gold); color: var(--ve-forest-deep); font-family: var(--ve-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.le-focus__back:hover { background: var(--ve-gold-light); }
.le-focus__name { padding: 0 10px; font-size: 16px; color: var(--ve-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.le-focused .le-intro { opacity: 0; pointer-events: none; transition: opacity .4s; }
.le-card__nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.le-card__nav .le-chip { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The visitor guide */
.le-guide { margin: 8px 0 10px; padding-left: 1.2em; font-size: 15px; line-height: 1.45; color: rgba(245, 241, 233, .88); }
.le-guide li { margin-bottom: 7px; }
.le-guide b { color: var(--ve-cream); font-weight: 500; }
.le-guide em { color: var(--ve-gold-light); font-style: normal; }
.le-guide__back { margin: 0; padding-top: 10px; border-top: 1px solid var(--ve-line-light); font-size: 14px; line-height: 1.45; color: rgba(245, 241, 233, .78); }
.le-guide__back kbd { font: 12px var(--ve-display); padding: 1px 6px; border: 1px solid rgba(245, 241, 233, .35); border-radius: 4px; }
.le-help .le-pop__body { width: 340px; }
.le-hint {
  position: absolute; bottom: calc(100% + 12px); right: -6px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: var(--ve-gold); color: var(--ve-forest-deep); font-family: var(--ve-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  animation: le-hint 2.4s var(--ve-ease) infinite;
}
.le-hint::after { content: ''; position: absolute; right: 18px; top: 100%; border: 6px solid transparent; border-top-color: var(--ve-gold); }
.le-hint[hidden] { display: none; }
@keyframes le-hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (min-width: 901px) {
  .le-bar { grid-template-columns: auto minmax(200px, 1fr) auto auto auto auto; grid-template-areas: "stay time btns modes help info"; }
  .le-help { grid-area: help; }
  .le-help .le-pop__body { left: auto; right: -50px; }
}
@media (max-width: 900px) {
  .le-bar { grid-template-areas: "stay" "time" "btns" "modes" "help" "info"; }
  .le-help { justify-self: start; }
  .le-focus { top: auto; bottom: 14px; }
  .le-hint { right: auto; left: -4px; }
  .le-hint::after { right: auto; left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .le-focus, .le-hint { animation: none; } }

.le-card__nav .le-chip { text-transform: none; letter-spacing: .02em; font-family: var(--ve-serif); font-size: 15px; }
@media (min-width: 901px) { .le-open .le-caption { left: calc(50% - 200px); } }
.le-ledger .le-caption { display: none; }
