/* ============================================================
   EXTRAS — WhatsApp quick picker, live status, scroll progress,
   mobile action bar. Built by js/extras.js and js/wa.js.
   ============================================================ */

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: calc(var(--z-nav) + 1);
  pointer-events: none;
  background: transparent;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-gold);
  box-shadow: 0 0 12px var(--c-gold-glow);
  transform-origin: left;
  transition: width 90ms linear;
}

/* ---------- Live open / closed pill in the nav ---------- */
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.75rem 0.34rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--edge);
  box-shadow: var(--inner-light);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-ink-2);
  white-space: nowrap;
}
.live__dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c-ink-4);
}
.live.is-open .live__dot { background: #35c777; }
.live.is-open .live__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #35c777;
  animation: livePulse 2.4s var(--ease-silk) infinite;
}
@keyframes livePulse { 0% { transform: scale(0.7); opacity: 0.9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.live__when { color: var(--c-ink-4); font-weight: 600; }
/* [hidden] is a user-agent rule and loses to any author display,
   so it is spelled out rather than assumed. */
.live__when[hidden] { display: none; }
/* the pill is the first thing to go — six nav links plus it overflow the
   floating island well before the links themselves need to collapse */
@media (max-width: 1400px) { .live { display: none; } }

/* ============================================================
   WHATSAPP QUICK PICKER
   ============================================================ */
.wq {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(0.8rem, 0.5rem + 1.5vw, 2rem);
  background: var(--veil);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-mid) var(--ease-silk), visibility var(--d-mid);
}
.wq.is-open { opacity: 1; visibility: visible; }

.wq__panel {
  width: min(100%, 470px);
  max-height: calc(100dvh - 1.6rem);
  padding: 0.4rem;
  border-radius: var(--r-xl);
  background: var(--c-shell);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-float);
  transform: translateY(18px) scale(0.98);
  transition: transform var(--d-mid) var(--ease-spring);
  display: flex;
  overflow: hidden;
}
.wq.is-open .wq__panel { transform: none; }

.wq__core {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: calc(var(--r-xl) - 0.4rem);
  background: var(--grad-panel);
  border: 1px solid var(--edge);
  box-shadow: var(--inner-light);
  padding: clamp(0.9rem, 0.6rem + 0.8vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.wq__head { display: grid; gap: 0.3rem; flex: 0 0 auto; }
.wq__head-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.wq__brand { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.58rem; letter-spacing: 0.18em; color: var(--c-ink-4); }
.wq__brand svg { width: 1rem; height: 1rem; color: #25d366; }
.wq__head h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.72rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
html[lang="th"] .wq__head h3 { font-family: var(--font-display-th); }
.wq__head p { margin: 0; font-size: 0.72rem; color: var(--c-ink-4); line-height: 1.5; }
.wq__x {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 1px solid var(--edge);
  color: var(--c-ink-2);
  transition: transform var(--d-fast) var(--ease-spring), color var(--d-fast) var(--ease-silk);
}
.wq__x:hover { transform: rotate(90deg); color: var(--c-gold); }
.wq__x svg { width: 1rem; height: 1rem; }

/* The list is the only thing that scrolls, and its scrollbar is hidden —
   a soft fade at top and bottom shows there is more, instead of a bar. */
.wq__list {
  display: grid;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.45rem 0.1rem;
  margin: -0.45rem - 0.1rem;
  mask-image: linear-gradient(180deg, transparent 0, #000 0.55rem, #000 calc(100% - 0.75rem), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 0.55rem, #000 calc(100% - 0.75rem), transparent 100%);
}
.wq__list::-webkit-scrollbar { width: 0; height: 0; display: none; }

.wq__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  border: 1px solid var(--c-hair-strong);
  color: var(--c-ink);
  transition: transform var(--d-fast) var(--ease-silk), border-color var(--d-fast) var(--ease-silk), background-color var(--d-fast) var(--ease-silk);
}
/* No translateX on the card itself. It shifted the whole row 3px to
   the right inside a panel that clips its overflow, so the right-hand
   edge — where the arrow sits — was shaved off on hover. The arrow
   already slides on its own below, which reads as the same gesture
   without moving the card into the clip edge. */
.wq__opt:hover { border-color: var(--edge-hi); background: var(--c-surface-2); box-shadow: var(--glow); }
.wq__ico {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c-surface-2);
  color: var(--c-gold);
  border: 1px solid var(--edge);
}
.wq__ico svg { width: 0.98rem; height: 0.98rem; }
.wq__txt { display: grid; gap: 0.05rem; min-width: 0; }
.wq__txt b { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.wq__txt span {
  font-size: 0.66rem;
  color: var(--c-ink-4);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wq__go { margin-left: auto; flex: 0 0 auto; color: var(--c-ink-4); transition: transform var(--d-fast) var(--ease-spring), color var(--d-fast) var(--ease-silk); }
.wq__go svg { width: 1rem; height: 1rem; }
.wq__opt:hover .wq__go { transform: translateX(3px); color: var(--c-gold); }

.wq__opt--hot { border-color: var(--c-gold); background: linear-gradient(135deg, var(--c-gold-glow), transparent 70%); }
/* inline badge, not a floating ribbon — a ribbon gets clipped by the
   scrolling list and costs a row of height */
.wq__tag {
  display: inline-block;
  vertical-align: 0.1em;
  margin-left: 0.45rem;
  padding: 0.15em 0.5em;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: #1a1206;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
:root[data-theme="light"] .wq__tag { color: #fdf8ef; }

.wq__opt--own { background: linear-gradient(135deg, rgba(56, 210, 107, 0.14), transparent 70%); border-color: rgba(56, 210, 107, 0.35); }
.wq__opt--line { background: linear-gradient(135deg, rgba(6, 199, 85, 0.14), transparent 70%); border-color: rgba(6, 199, 85, 0.35); text-decoration: none; }
.wq__opt--own .wq__ico { color: #25d366; }
.wq__foot { font-size: 0.62rem; color: var(--c-ink-4); text-align: center; line-height: 1.45; flex: 0 0 auto; margin: 0; }
.wq__go { align-self: center; }

/* ============================================================
   MOBILE ACTION BAR
   ============================================================ */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-nav);
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--grad-glass);
  border-top: 1px solid var(--edge);
  box-shadow: 0 -14px 40px -22px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  transform: translateY(110%);
  transition: transform var(--d-slow) var(--ease-spring);
}
.actionbar.is-in { transform: none; }
.actionbar__price { display: grid; line-height: 1.2; padding-left: 0.25rem; }
.actionbar__price b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.actionbar__price span { font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink-4); }
.actionbar__cta { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.actionbar__wa {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #13873f, #0a5c31);
  box-shadow: var(--inner-light), 0 10px 24px -12px rgba(22, 149, 74, 0.8);
}
.actionbar__wa svg { width: 1.65rem; height: 1.65rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }

@media (max-width: 620px) {
  .actionbar { display: flex; }
  .fab { display: none; }
  body { padding-bottom: 4.4rem; }
  .wq__panel { align-self: end; }
}

/* ============================================================
   LANGUAGE PICKER (five languages)
   ============================================================ */
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 2.15rem;
  padding-inline: 0.6rem;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--edge);
  box-shadow: var(--inner-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-ink-2);
  white-space: nowrap;
  transition: color var(--d-fast) var(--ease-silk), border-color var(--d-fast) var(--ease-silk);
}
.lang-chip:hover, .lang-chip[aria-expanded="true"] { color: var(--c-gold); border-color: var(--c-gold); }
.lang-chip__globe { width: 0.95rem; height: 0.95rem; flex: 0 0 auto; }
.lang-chip__chev { width: 0.7rem; height: 0.7rem; flex: 0 0 auto; opacity: 0.6; transition: transform var(--d-fast) var(--ease-silk); }
.lang-chip[aria-expanded="true"] .lang-chip__chev { transform: rotate(180deg); }
.lang-chip__code { font-variant-numeric: tabular-nums; }

.langmenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: calc(var(--z-nav) + 2);
  min-width: 11rem;
  padding: 0.3rem;
  border-radius: var(--r-md);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  display: grid;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--d-fast) var(--ease-silk), transform var(--d-fast) var(--ease-spring), visibility var(--d-fast);
}
.langmenu.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__tools { position: relative; }
.langmenu__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-xs);
  font-size: var(--t-body-s);
  font-weight: 600;
  color: var(--c-ink-2);
  text-align: left;
  transition: background-color var(--d-fast) var(--ease-silk), color var(--d-fast) var(--ease-silk);
}
.langmenu__opt:hover { background: var(--c-surface-2); color: var(--c-ink); }
.langmenu__opt.is-on { color: var(--c-gold); }
.langmenu__opt svg { width: 0.85rem; height: 0.85rem; flex: 0 0 auto; }

/* ============================================================
   LINE BUTTON
   ============================================================ */
.btn--line {
  color: #ffffff;
  background: linear-gradient(135deg, #3ddc63 0%, #06c755 50%, #04a648 100%);
  background-size: 180% 180%;
  box-shadow: var(--inner-light), 0 16px 40px -18px rgba(6, 199, 85, 0.55);
}
.btn--line:hover { background-position: 100% 50%; }
.btn--line .btn__ico { background: rgba(255, 255, 255, 0.2); }

.connect-row, #connectRow { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ============================================================
   COOKIE / ANALYTICS CONSENT
   ============================================================ */
.cc {
  position: fixed;
  left: 50%;
  bottom: clamp(0.8rem, 2vw, 1.6rem);
  translate: -50% 0;
  z-index: var(--z-toast);
  width: min(94vw, 640px);
  padding: 0.4rem;
  border-radius: var(--r-xl);
  background: var(--c-shell);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity var(--d-slow) var(--ease-silk), transform var(--d-slow) var(--ease-spring);
}
.cc.is-in { opacity: 1; transform: none; }
.cc__core {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  border-radius: calc(var(--r-xl) - 0.4rem);
  background: var(--grad-panel);
  box-shadow: var(--inner-light);
}
.cc__txt { flex: 1 1 16rem; display: grid; gap: 0.2rem; }
.cc__txt b { font-size: var(--t-body-s); font-weight: 700; }
.cc__txt p { margin: 0; font-size: var(--t-micro); color: var(--c-ink-3); line-height: 1.5; }
.cc__row { display: flex; gap: 0.5rem; margin-left: auto; }
@media (max-width: 620px) { .cc { bottom: 5rem; } }

/* ============================================================
   PROMPTPAY DEPOSIT
   ============================================================ */
.pp {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--r-md);
  background: linear-gradient(170deg, var(--c-gold-glow), transparent 72%);
  border: 1px solid var(--c-gold);
}
.pp__head { display: grid; gap: 0.25rem; }
.pp__head b { font-family: var(--font-display); font-size: var(--t-h4); font-weight: 400; }
html[lang="th"] .pp__head b { font-family: var(--font-display-th); }
.pp__head p { margin: 0; font-size: var(--t-micro); color: var(--c-ink-3); line-height: 1.55; }
.pp__grid { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.pp__qr {
  width: clamp(140px, 38vw, 178px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  padding: 0.6rem;
  border-radius: var(--r-sm);
  background: #ffffff;
  box-shadow: var(--sh-soft);
  display: grid;
  place-items: center;
}
.pp__qr svg { width: 100%; height: 100%; }
.pp__qr svg rect:first-child { fill: #ffffff; }
.pp__facts { display: grid; gap: 0.55rem; min-width: 11rem; flex: 1 1 11rem; }
.pp__row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-size: var(--t-body-s); }
.pp__row dt { color: var(--c-ink-4); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; }
.pp__row dd { margin: 0; font-weight: 700; }
.pp__big { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 400; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp__scan { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-gold); text-align: center; }
.pp__note { font-size: var(--t-micro); color: var(--c-ink-4); line-height: 1.5; }

/* ============================================================
   GIFT VOUCHER PAGE
   ============================================================ */
.gift-grid { display: grid; gap: clamp(0.7rem, 0.4rem + 1vw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.gift-card { position: relative; padding: 0.35rem; border-radius: var(--r-lg); background: var(--c-shell); border: 1px solid var(--c-hair-strong); text-align: left; transition: transform var(--d-fast) var(--ease-silk), border-color var(--d-mid) var(--ease-silk), box-shadow var(--d-mid) var(--ease-silk); }
.gift-card:hover { transform: translateY(-4px); box-shadow: var(--glow), var(--sh-soft); border-color: color-mix(in srgb, var(--c-gold) 70%, transparent); }
.gift-card.is-on { border-color: var(--c-gold); box-shadow: 0 0 0 3px var(--c-gold-glow), var(--sh-soft); }
.gift-card__core { display: grid; gap: 0.4rem; padding: 1.3rem 1.3rem 1.15rem; border-radius: calc(var(--r-lg) - 0.35rem); background: var(--grad-panel); box-shadow: var(--inner-light); }
.gift-card__amt { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 400; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gift-card__bonus { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-jade); }
.gift-card__worth { font-size: var(--t-micro); color: var(--c-ink-4); }
.gift-form { display: grid; gap: 0.95rem; margin-top: var(--sp-6); }

@media (prefers-reduced-motion: reduce) {
  .live.is-open .live__dot::after { animation: none; }
}

/* ============================================================
   WALK IN NOW
   The pill only exists when a bed actually is free, so it can
   afford to be loud.
   ============================================================ */
.walknow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 0.95rem;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  background: var(--c-bg-raise);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--t-body-s);
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: border-color var(--d-mid) var(--ease-silk), transform var(--d-mid) var(--ease-silk);
}
.walknow[hidden] { display: none; }
.walknow:hover { border-color: rgba(74, 222, 128, 0.7); }
.walknow:active { transform: scale(0.985); }
.walknow:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.walknow__pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4ade80;
}
.walknow__pulse::after {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.6);
  animation: walkPing 2.4s var(--ease-silk) infinite;
}
@keyframes walkPing {
  0% { transform: scale(0.6); opacity: 0.9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
.walknow__txt { white-space: nowrap; }
.walknow__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold));
  color: #1a1206;
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.walknow__go svg { width: 0.7rem; height: 0.7rem; }
@media (prefers-reduced-motion: reduce) { .walknow__pulse::after { animation: none; } }

/* ============================================================
   THE TEAM
   ============================================================ */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(0.8rem, 0.5rem + 1vw, 1.3rem);
}
.mate__core { display: grid; gap: 0.75rem; padding: 1.3rem 1.35rem; align-content: start; }
.mate__top { display: flex; align-items: center; gap: 0.8rem; }
.mate__face {
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
}
.mate__face--mono {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold));
  color: #1a1206;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.mate__name { margin: 0; font-size: var(--t-body); font-family: var(--font-display); }
.mate__years { font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-4); }
.mate__note { margin: 0; font-size: var(--t-body-s); line-height: 1.65; color: var(--c-ink-2); }
.mate__tags, .mate__langs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.mate__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--edge);
}

/* ============================================================
   FINDING THE DOOR
   ============================================================ */
.wayf:empty { display: none; }
.wayf { margin-top: 1.4rem; }
.wayf__h {
  margin: 0 0 0.7rem;
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-4);
}
/* a single step was stretching to the full column width, so one 4:3
   photo became 334px tall and made the panel twice the height it
   needed. The columns are capped so the strip stays a strip. */
.wayf__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 9rem));
  gap: 0.6rem;
}
.wayf__step { margin: 0; display: grid; gap: 0.5rem; position: relative; }
/* The frame holds the picture's drift. motion.js scales .wayf__img to
   1.12 so it moves inside its border as you scroll; with nothing to
   clip against, that scale made it wider than its own figure and the
   caption underneath looked indented by 8.6px on each side. */
.wayf__frame {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  border: 1px solid var(--edge);
  overflow: hidden;
}
.wayf__img {
  position: absolute;
  inset: 0;
  display: block;
  background-size: cover;
  background-position: center;
}
/* The caption runs the full width. It used to share its first line
   with the step number, which squeezed a four-line sentence into a
   narrow column beside a circle and read as overlapping the photo. */
.wayf__step figcaption {
  display: block;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--c-ink-2);
}
/* the number goes on the photograph, where a numbered step belongs */
.wayf__step figcaption b {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--c-gold);
  color: #1a1206;
  font-size: 0.6rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.65);
}

/* --- a price in the guest's own money, said quietly --- */
.fx {
  text-decoration: none;
  margin-left: 0.3rem;
  font-size: 0.86em;
  color: var(--c-ink-4);
}
.ft-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* ============================================================
   SHOW YOUR DRIVER

   Held up to a stranger through a car window, often at night. So:
   maximum contrast, the largest type that fits, and nothing else
   competing for attention. Light background even in dark mode —
   a phone showing white is readable from further away, and the
   driver is not the one who chose the theme.
   ============================================================ */
/* [hidden] is a user-agent rule; `display: grid` below is an author
   rule and beats it, so the panel stayed on screen when hide() set
   .hidden. Any component that sets .hidden AND a display needs this
   written out explicitly. */
.drv[hidden] { display: none !important; }

.drv {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(0.6rem, 2vw, 1.4rem);
  background: rgba(0, 0, 0, 0.82);
  animation: drvIn 240ms var(--ease-silk);
}
@keyframes drvIn { from { opacity: 0; } to { opacity: 1; } }

.drv__card {
  position: relative;
  width: min(100%, 44rem);
  max-height: 100%;
  overflow: auto;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: var(--r-lg);
  background: #fbf7ef;
  color: #15110a;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.drv__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(21, 17, 10, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #15110a;
  cursor: pointer;
}
.drv__close svg { width: 1.1rem; height: 1.1rem; }

.drv__lead {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a6a2c;
}

/* the one thing on the card that matters */
.drv__th {
  margin: 0 0 0.9rem;
  font-family: var(--font-body-th), var(--font-body), sans-serif;
  font-size: clamp(1.6rem, 6.2vw, 3rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.drv__name {
  margin: 0 0 1.1rem;
  font-family: var(--font-body-th), var(--font-body), sans-serif;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  font-weight: 600;
  color: #6a5120;
}
.drv__en {
  margin: 0 0 1.4rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(21, 17, 10, 0.62);
}
.drv__row { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.drv__row .btn--ghost { border-color: rgba(21, 17, 10, 0.3); color: #15110a; }
.drv__hint {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(21, 17, 10, 0.5);
}

/* the trigger, wherever it appears */
.drv-btn { cursor: pointer; }

/* ============================================================
   ADD TO HOME SCREEN
   ============================================================
   A card, not a banner. A strip across the top is what every
   cookie notice looks like and gets dismissed the same way; a card
   that sits up from the bottom edge reads as an offer rather than
   an interruption, and on a phone it lands where the thumb is.
   ============================================================ */
.a2hs {
  position: fixed;
  z-index: 70;
  left: 0; right: 0; bottom: 0;
  padding: 0 0.9rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.a2hs__card {
  width: min(100%, 27rem);
  pointer-events: auto;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 620ms var(--ease-spring), opacity 320ms var(--ease-silk);
  box-shadow: var(--sh-float);
}
.a2hs.is-in .a2hs__card { transform: none; opacity: 1; }

.a2hs__core {
  position: relative;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--c-surface, rgba(18, 20, 26, 0.92));
  backdrop-filter: blur(18px);
}
.a2hs__top { display: flex; align-items: center; gap: 0.85rem; }
.a2hs__icon {
  width: 3.2rem; height: 3.2rem; flex: 0 0 auto;
  border-radius: 0.95rem;
  border: 1px solid var(--c-line);
}
.a2hs__eyebrow {
  margin: 0 0 0.12rem;
  font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--c-ink-3);
}
.a2hs__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.15;
  color: var(--c-ink);
}
.a2hs__lead {
  margin: 0.8rem 0 0;
  font-size: var(--t-body-s);
  line-height: 1.6;
  color: var(--c-ink-2);
}
.a2hs__act { margin-top: 1rem; }
.a2hs__act .btn { width: 100%; justify-content: center; }

/* the iOS path: two steps, because there is no button that can do
   it for them */
.a2hs__steps {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  counter-reset: step;
}
.a2hs__steps li {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: var(--t-body-s);
  color: var(--c-ink-2);
}
.a2hs__steps b { color: var(--c-ink); font-weight: 600; }
.a2hs__g {
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 0.6rem;
  border: 1px solid var(--c-line);
  color: var(--c-gold);
}
.a2hs__g svg { width: 1.05rem; height: 1.05rem; display: block; }

.a2hs__x {
  position: absolute;
  top: 0.45rem; right: 0.5rem;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border: 0; background: transparent;
  color: var(--c-ink-3);
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 200ms var(--ease-silk), background 200ms var(--ease-silk);
}
.a2hs__x:hover { color: var(--c-ink); background: var(--c-shell); }

@media (prefers-reduced-motion: reduce) {
  .a2hs__card { transition: opacity 200ms linear; transform: none; }
}
