/* STAY ARI · stays.css — All Stays page */

/* Speed pass (2026-10-27): no fade-up. The band's title and search were drawn, then hidden when site.js started and faded
   back in; further down, a quick scroll landed on empty space. Kept above the page's own rules so their hovers still win. */
:where(.js) .reveal[class] { opacity: 1; transform: none; }

/* ---------- hero band ---------- */
.sh { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); text-align: center; background: #0e130d; }
.sh-bg { position: absolute; inset: -40px; z-index: -3; }
.sh-bg img, .sh-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(.9) brightness(.78); transform: scale(1.12); }
.sh-bg video { opacity: 0; transition: opacity 1.6s var(--ease); }
.sh-bg video[src] { opacity: 1; }
.sh-shade { position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 90% at 50% 40%, rgba(20, 25, 19, .25), rgba(14, 19, 13, .78) 100%), linear-gradient(180deg, rgba(14, 19, 13, .55) 0%, rgba(14, 19, 13, .35) 45%, var(--bg) 100%); }
.sh-inner { display: grid; justify-items: center; gap: 14px; }
.sh h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin-top: 2px; }
.sh-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); letter-spacing: .04em; color: rgba(242, 243, 238, .72); }

/* search row */
.sf { width: min(1000px, 100%); margin-top: clamp(20px, 3vw, 34px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, .95fr) auto; gap: 12px; align-items: center; }
.sf-pill {
  height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-radius: var(--pill); text-align: left; min-width: 0;
  background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(65, 45, 25, 0.10);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s;
}
.sf-pill:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(65, 45, 25, 0.13); }
.sf-pill[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(255, 81, 0, 0.55), 0 16px 38px rgba(65, 45, 25, 0.13); }
.sf-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sf-ic { width: 19px; height: 19px; flex: none; color: #4a5646; display: block; }
.sf-ic svg { width: 100%; height: 100%; }
.sf-val { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-val.is-ph { color: rgba(27, 31, 26, .6); font-weight: 400; }
.sf-caret { width: 11px; height: 11px; color: #6b645b; flex: none; transition: transform .5s var(--ease); }
.sf-caret svg { width: 100%; height: 100%; }
.sf-pill[aria-expanded="true"] .sf-caret { transform: rotate(180deg); }
.sf-go { height: 58px; min-height: 58px; padding: 0 38px; box-shadow: 0 10px 30px rgba(65, 45, 25, 0.12); }

@media (max-width: 900px) {
  .sf { grid-template-columns: 1fr 1fr; }
  .sf-prop, .sf-go { grid-column: 1 / -1; }
  .sf-dates { grid-column: 1 / 2; } .sf-guests { grid-column: 2 / 3; }
  .sf-dates .sf-val, .sf-guests .sf-val { font-size: 14px; }
}
@media (max-width: 520px) {
  .sf { grid-template-columns: 1fr; gap: 10px; }
  .sf-dates, .sf-guests { grid-column: 1 / -1; }
  .sf-pill, .sf-go { height: 54px; min-height: 54px; }
}

/* popover list (property dropdown) */
.pp-list { padding: 8px; max-height: min(460px, 70vh); overflow: auto; }
.pp-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 10px; text-align: left; color: var(--paper-ink); transition: background-color .3s var(--ease), padding-left .45s var(--ease); }
.pp-item:hover, .pp-item:focus-visible { background: rgba(255, 81, 0, 0.14); padding-left: 19px; outline: none; }
.pp-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pp-t b { font-family: var(--serif); font-weight: 500; font-size: 16px; }
.pp-t small { font-size: 12px; color: var(--paper-mute); }
.pp-tag { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--paper-line); border-radius: var(--pill); padding: 3px 9px; }
.pp-ok { width: 16px; height: 16px; color: var(--paper-sage); opacity: 0; transition: opacity .3s; }
.pp-ok svg { width: 100%; height: 100%; }
.pp-item[aria-selected="true"] .pp-ok { opacity: 1; }
.pp-item[aria-selected="true"] .pp-t b { color: var(--gold-deep); }

/* ---------- results ---------- */
.res { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(88px, 10vw, 130px); }
.res-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.res-bar[hidden] { display: none; }   /* every width: the empty bar left a rule and a blank band above the results on desktop (Cameron 2026-11-12) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fchip { height: 40px; padding: 0 20px; border-radius: var(--pill); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; color: rgba(65, 59, 50, 0.85); transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease); }
.fchip:hover { border-color: var(--gold); transform: translateY(-1px); }
.fchip[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.res-note { min-height: 20px; margin: 0 0 14px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.res-note:empty { min-height: 0; margin: 0; }
.swap { animation: swapIn .8s var(--ease) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stay-grid[hidden], .res-empty[hidden] { display: none; }
.res-empty { text-align: center; padding: 80px 0; display: grid; gap: 14px; justify-items: center; }

/* ==========================================================================
   book.html — "Continue to secure booking" hand-off
   ========================================================================== */
.bk { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 5vw, 56px) 0 clamp(72px, 9vw, 120px); min-height: calc(var(--stage-vh) - var(--header-h)); }
.bk-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 0%, rgba(255, 81, 0, 0.22), transparent 70%), radial-gradient(50% 40% at 50% 100%, rgba(255, 81, 0, 0.08), transparent 70%); }
.bk-wrap { max-width: 640px; }
.bk-steps { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 34px); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bk-steps li { display: inline-flex; align-items: center; gap: 10px; }
.bk-steps li + li::before { content: ''; width: 28px; height: 1px; background: var(--line); margin-right: 4px; }
.bk-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 11px; letter-spacing: 0; }
.bk-steps .done span { background: rgba(255, 81, 0, 0.16); color: var(--gold); border-color: var(--gold); }
.bk-steps .now { color: var(--text); }
.bk-steps .now span { background: var(--gold); color: var(--ink); border-color: var(--gold); }
@media (max-width: 520px) { .bk-steps { font-size: 10px; letter-spacing: .1em; gap: 6px; } .bk-steps li + li::before { width: 14px; } .bk-steps li { gap: 7px; } }
.bk-card { border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); box-shadow: var(--shadow-2), 0 0 80px rgba(255, 81, 0, 0.06); }
.bk-photo { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; background: #ece4da; }
.bk-photo img { width: 100%; height: 100%; object-fit: cover; }
.bk-photo .ph { position: absolute; inset: 0; min-height: 0; }
.bk-photo::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(35, 43, 34, .9)); pointer-events: none; }
.bk-chip { position: absolute; left: 16px; top: 16px; z-index: 2; }
.bk-body { padding: clamp(24px, 4vw, 40px); display: grid; gap: 6px; margin-top: -26px; position: relative; z-index: 1; }
.bk-body h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 6px; }
.bk-sub { color: var(--muted); font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 0; }
.bk-grid > div { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.bk-grid > div:nth-child(n + 3) { border-bottom: 0; }
.bk-grid > div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line-soft); }
.bk-grid dt { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.bk-grid dd { margin: 0; }
.bk-grid dd b { display: block; font-weight: 500; font-size: 15px; line-height: 1.4; }
.bk-grid dd small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bk-sample { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.bk-sample a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.bk-sum { display: grid; gap: 11px; padding: 20px 0 6px; font-size: 14px; }
.bk-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bk-line span { color: rgba(65, 59, 50, 0.86); line-height: 1.45; }
.bk-line em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.bk-line b { font-weight: 500; white-space: nowrap; }
.bk-line s { color: var(--muted); margin-right: 5px; }
.bk-total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.bk-total span { font-weight: 600; color: var(--text); }
.bk-total b { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1.1; }
.bk-perks { display: grid; gap: 13px; margin: 20px 0 26px; padding: 20px 22px; border-radius: 14px; background: rgba(255, 81, 0, 0.07); border: 1px solid var(--line-soft); }
.bk-perks li { display: flex; gap: 13px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: rgba(65, 59, 50, 0.78); }
.bk-perks svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 1px; }
.bk-perks b { display: block; font-weight: 500; color: var(--text); font-size: 14px; }
.bk-go { width: 100%; }
.bk-note { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.bk-note > div { overflow: hidden; }
.bk-note p { margin-top: 14px; padding: 15px 18px; border-radius: 12px; font-size: 13px; line-height: 1.65; color: var(--text); background: rgba(255, 81, 0, 0.20); border: 1px solid rgba(255, 81, 0, .5); opacity: 0; transform: translateY(-6px); transition: opacity .6s var(--ease) .1s, transform .7s var(--ease) .1s; }
.bk-note.open { grid-template-rows: 1fr; }
.bk-note.open p { opacity: 1; transform: none; }
.bk-note.nudge p { animation: nudge .6s var(--ease); }
@keyframes nudge { 30% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
.bk-secure { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
.bk-secure svg { width: 15px; height: 15px; color: var(--gold); }
.bk-alt { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.bk-alt a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s; }
.bk-alt a:hover { color: #ff5100; text-decoration-color: var(--gold); }
@media (max-width: 520px) { .bk-grid > div:nth-child(even) { padding-left: 16px; } .bk-body { margin-top: -18px; } .bk-photo { aspect-ratio: 16 / 9.5; } }

/* four stays: one row on wide screens */
.page-stays .stay-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.page-stays .stay-price { white-space: nowrap; }
@media (min-width: 900px) { .page-stays .stay-cta { display: none; } }
/* Date-specific booking information; property media and card layout stay intact. */
.search-status { font-size: 12px; color: var(--muted); margin-top: 8px; }
.stay-card[data-availability="available"] { order: -1; }
.stay-card[data-availability="available"] .search-status { color: var(--sage-2); }
.stay-card[data-availability="unavailable"] .search-status { color: #dfa990; }
.stay-price small { display: block; font-size: 10px; margin-top: 3px; }
.search-reserve { position: relative; z-index: 4; padding-block: 12px; }
.page-stays .search-reserve { display: inline-block; letter-spacing: .08em; }

/* ==========================================================================
   All Stays — buildings + unit types (data from /api/catalog)
   ========================================================================== */
.fchip-sub { font-size: 10.5px; letter-spacing: .06em; opacity: .75; margin-left: 4px; }
.page-stays .stay-cta { display: inline-block; }
@media (min-width: 900px) { .page-stays .stay-cta { display: inline-block; } }
.res-state:empty { display: none; }
.res-h { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 34px 0 18px; }
.res-h:first-child { margin-top: 6px; }
.res-fine { margin-top: 28px; font-size: 12.5px; line-height: 1.6; max-width: 70ch; }
.res-fine[hidden] { display: none; }

/* mode badges */
.chip--mode { font-size: 10px; padding: 5px 11px; letter-spacing: .1em; }
.chip--mode.is-instant { color: #cfe3cf; border-color: rgba(255, 81, 0, .6); }
.chip--mode.is-long { color: var(--gold); border-color: var(--line); }
.chip--mode.is-req { color: #e6d6b0; border-color: rgba(230, 214, 176, .35); }

/* building section */
.bld { padding: clamp(26px, 4vw, 44px) 0; border-top: 1px solid var(--line-soft); }
.bld:first-child { border-top: 0; padding-top: 6px; }
.bld-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; margin-bottom: clamp(20px, 3vw, 30px); }
.bld-photo { display: block; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #ece4da; border: 1px solid var(--line-soft); }
.bld-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bld-photo:hover img { transform: scale(1.03); }
.bld-photo .ph { position: absolute; inset: 0; min-height: 0; }
.bld-info { display: grid; gap: 10px; justify-items: start; }
.bld-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.bld-info h2 a:hover { color: var(--gold); }
.bld-sum { color: rgba(65, 59, 50, 0.80); max-width: 56ch; font-size: 15px; }
.bld-meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bld-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.bld-units { margin-top: 0; }
@media (max-width: 760px) { .bld-head { grid-template-columns: 1fr; } }

/* which building and where (places.js): pin + "Okubo, Shinjuku · 4 min walk to Higashi-Shinjuku Station" */
.stay-where { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.stay-where .sw-ic { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--gold); }
.stay-where .sw-ic svg { display: block; width: 100%; height: 100%; }
.bld-where { margin: 0; font-size: 14.5px; }

/* unit-type card extras */
.unit-card .stay-media { --card-ar: 4 / 3; }
.unit-count { font-size: 12.5px; color: rgba(65, 59, 50, 0.72); margin: -4px 0 4px; }
.unit-card .stay-meta { margin-bottom: 8px; }
.ustate { display: grid; gap: 4px; justify-items: start; padding: 12px 14px; border-radius: 12px; background: rgba(65, 59, 50, 0.03); border: 1px solid var(--line-soft); min-height: 84px; align-content: start; }
.ustate b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.25; color: var(--text); }
.ustate small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.ustate-left { justify-self: start; margin-bottom: 2px; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--gold-deep); font-size: 12px; font-weight: 600; line-height: 1.4; box-shadow: 0 2px 8px rgba(40, 25, 15, .1); }
.ustate-btn { position: relative; z-index: 4; margin-top: 8px; }
.ustate-btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: auto; }
.ustate.is-quoted { border-color: rgba(255, 81, 0, .55); background: rgba(255, 81, 0, 0.14); }
.ustate.is-quoted b { font-size: 1.55rem; }
.ustate.is-monthly b, .ustate.is-request b, .ustate.is-check b { color: var(--gold); }
.ustate.is-check { border-color: rgba(201, 169, 106, .4); }
.ustate.is-unavailable b, .ustate.is-busy b { color: rgba(65, 59, 50, 0.72); font-size: 1.05rem; }
.ustate.is-pending { min-height: 84px; }
.ustate.is-none b { font-size: 1.05rem; color: rgba(65, 59, 50, 0.80); }

/* loading skeletons */
.sk { background: linear-gradient(90deg, rgba(65, 59, 50, 0.05) 25%, rgba(255, 255, 255, .11) 37%, rgba(65, 59, 50, 0.05) 63%); background-size: 400% 100%; animation: skm 1.4s ease infinite; border-radius: 8px; }
@keyframes skm { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk-line { height: 14px; margin: 6px 0; } .sk-line.tall { height: 26px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w90 { width: 90%; }
.stay-skel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; padding: 6px 0 40px; min-height: 280px; }
.sk-photo { aspect-ratio: 16 / 10; width: 100%; }
.stay-skel-card { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 0 0 22px; overflow: hidden; min-height: 380px; }
.stay-skel-card .sk-line { margin-left: 24px; margin-right: 24px; }
.sk-img { aspect-ratio: 4 / 3; border-radius: 0; margin-bottom: 18px; }
@media (max-width: 760px) { .stay-skel { grid-template-columns: 1fr; } }

/* errors + warnings */
.res-err { text-align: center; padding: 56px 20px; display: grid; gap: 14px; justify-items: center; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(65, 59, 50, 0.03); }
.res-warn { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; background: rgba(255, 81, 0, 0.10); border: 1px solid var(--line); }
.res-warn .link-arrow { margin-left: 8px; letter-spacing: .12em; }
.page-stays .res-bar { row-gap: 14px; }
@media (max-width: 520px) {
  .fchip { height: 38px; padding: 0 14px; font-size: 12px; }
  .chips { gap: 8px; }
  }
@media (max-width: 380px) { .fchip-sub { display: none; } }
.page-stays .bld-units, .page-stays .res-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.page-stays .bld-units .stay-card, .page-stays .res-grid .stay-card { max-width: 440px; }

/* bright theme: stays hero reads light, white type over a soft photo wash */
.sh { color: #fff; background: #a4937e; }   /* the band photo's colour after its blur/brightness filter, so the moment before it paints matches */
.sh-bg img, .sh-bg video { filter: blur(18px) saturate(.95) brightness(.8); }
.sh-shade { background: linear-gradient(180deg, rgba(40, 30, 22, .55) 0%, rgba(40, 30, 22, .45) 55%, rgba(40, 30, 22, .16) 82%, var(--bg) 100%); }
.sh h1, .sh-sub { text-shadow: 0 2px 20px rgba(30, 20, 12, .35); }
.sh-sub { color: #fff; }
.sh .eyebrow { color: #fff; }
.sh h1 em, .sh .it { color: #ffb48f; }

/* ---------- Fable review 2026-10-19 ---------- */
/* "Start over" and the stay count sit on the dark photo wash: white, not brown. */
/* A quoted card already carries a "Reserve this stay" button in its price box; don't repeat it in the footer. */
.stay-card:has(.ustate.is-quoted .ustate-btn) .stay-cta { visibility: hidden; }

/* ---------- Showtime 2026-10-19: stays page ---------- */
/* "Show N more" opens the unavailable stays. */
.res-more { margin: 0 0 8px; }


/* All Stays without green/khaki; quote box white with an orange edge. */
.sf-ic { color: var(--gold-deep); }
.ustate.is-quoted { background: #fff; border-color: rgba(255, 81, 0, .45); box-shadow: 0 6px 18px rgba(209, 68, 0, .08); }
.ustate.is-monthly b, .ustate.is-request b, .ustate.is-check b { color: var(--ink); }
.ustate.is-check { border-color: var(--line); }

/* One action per result card, in the same place on every card: the price box sits at the card's foot and its button is the last thing in it. */
.page-stays .unit-card .ustate { margin-top: auto; }
.page-stays .unit-card .ustate + .stay-foot { margin-top: 0; }
.page-stays .unit-card .stay-foot.is-end { justify-content: flex-end; }
.ustate-reserve { justify-self: stretch; justify-content: center; text-align: center; }

/* Mode chips as white pills with ink text. */
.chip--mode { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 8px rgba(65, 45, 25, .12); }
.chip--mode.is-instant, .chip--mode.is-closed, .chip--mode.is-req, .chip--mode.is-long { color: var(--ink); border-color: transparent; }
.bld-badges .chip { border-color: var(--line); box-shadow: none; }

/* Results settle in on every render (reuses swapIn; 'backwards' keeps the hover lift). */
.page-stays #out .bld-head, .page-stays #out .stay-card { animation: swapIn .7s var(--ease) backwards; }
.page-stays #out .stay-grid > .stay-card:nth-child(2) { animation-delay: .08s; }
.page-stays #out .stay-grid > .stay-card:nth-child(n + 3) { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .page-stays #out .bld-head, .page-stays #out .stay-card { animation: none; } }

/* Apartment rows under an exterior card (xcard.css) */
.xr { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; min-width: 0; }
.xr-top { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; }
.xr-photo { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #ece4da; }
.xr-photo img { width: 100%; height: 100%; object-fit: cover; }
.xr-main { display: grid; gap: 4px; min-width: 0; }
.xr-bld { font-size: 12px; font-weight: 600; color: var(--muted); }
.xr-title { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.xr-title a:hover { color: var(--gold); }
.xr .ut-sub, .xr-n { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.xr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xr-foot .stay-cta { color: var(--gold); }
.xr-foot > :only-child { margin-left: auto; }
.xr .ustate { width: 100%; }
.xr .ustate-reserve { width: 100%; text-align: center; justify-content: center; }
.xr .sab-ex { display: none; }   /* which apartment has which beds: on the room page, not the list */
@media (max-width: 760px) { .page-stays .fbar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Price sort and the map above the list (2026-11-09) */
.res-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -8px 0 16px; }
.res-sort-btn { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-soft); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.res-sort-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.res-sort-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.res-sort-note { font-size: 13px; color: var(--muted); }
.xflat { margin-top: 0; }
/* map above the all-stays list, drawn like the home page's Shinjuku map (home.css .map-card / .mg-*), cropped to the listed buildings (Cameron 2026-11-12) */
.smap { margin: 0 0 22px; }
.smap[hidden] { display: none; }
.smap-frame { position: relative; height: 440px; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-soft); background: #f3ede4; box-shadow: 0 18px 50px rgba(65, 45, 25, .12); }
.smap-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(65, 59, 50, .06), inset 0 0 50px 6px rgba(243, 237, 228, .7); }
.smap-geo { position: absolute; }
.smap-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.smap-layer, .smap-tags, .smap-pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.smap-layer > span, .smap-tag, .smap-pin { position: absolute; }
.smap-st { display: flex; align-items: center; gap: 6px; transform: translate(-5px, -50%); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--text); text-shadow: 0 0 3px #f3ede4, 0 0 6px #f3ede4, 0 0 10px #f3ede4; }
.smap-st i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid var(--text); }
.smap-st--l { flex-direction: row-reverse; transform: translate(calc(-100% + 5px), -50%); }
.smap-st--hub { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: .01em; font-size: 15px; }
.smap-st--hub i { width: 13px; height: 13px; border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(255, 81, 0, .18); }
.smap-area { transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic; font-size: 13px; color: rgba(207, 65, 0, .75); white-space: nowrap; text-shadow: 0 0 6px #f3ede4; }
.smap-tag { z-index: 2; transform: translate(-50%, calc(-100% - 20px)); display: grid; gap: 1px; padding: 6px 12px 7px; border-radius: 8px; text-align: center; white-space: nowrap; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(65, 45, 25, .16); }
.smap-tag[data-side="l"] { transform: translate(calc(-100% - 20px), -50%); }
.smap-tag[data-side="r"] { transform: translate(20px, -50%); }
.smap-tag b { font-family: var(--serif); font-weight: 400; font-size: 15px; line-height: 1.2; color: var(--ink); }
.smap-tag small { font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.smap-leads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.smap-leads line { stroke: var(--orange, var(--gold)); stroke-width: 1.5; }
.smap-leads circle { fill: var(--orange, var(--gold)); }
.smap-pins { z-index: 3; }
.smap-pin { width: 0; height: 0; }
.smap-pin a { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; pointer-events: auto; background: radial-gradient(circle at 35% 30%, #ff9a66, var(--orange, var(--gold)) 55%, #b83a00); box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(65, 45, 25, .3); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.smap-pin a:hover, .smap-pin a:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange, var(--gold)), 0 6px 14px rgba(65, 45, 25, .3); }
.smap-credit { position: absolute; right: 10px; bottom: 8px; z-index: 4; margin: 0; font-size: 9.5px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 2px 7px; border-radius: 4px; }
.smap-credit a { text-decoration: underline; text-underline-offset: 2px; }
.smap-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); align-self: center; }
.smap-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.smap-list a { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.smap-n { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--orange, var(--gold)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0; text-decoration: none; }
.smap-v { font-size: 14px; color: var(--muted); text-align: right; }
@media (min-width: 900px) { .smap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; } }
@media (max-width: 899px) { .smap-list { display: none; } }
@media (max-width: 640px) {
  .smap-frame { height: 340px; border-radius: 18px; }
  .smap-tag { padding: 4px 9px 5px; border-radius: 7px; }
  .smap-tag b { font-size: 13px; }
  .smap-tag small, .smap-area { display: none; }
  .smap-st { font-size: 8.5px; }
  .smap-st--hub { font-size: 13px; }
  .smap-credit { font-size: 8.5px; right: 8px; bottom: 6px; }
}

/* Ari's top pick: one apartment, first in the results under the map, in the site's orange (Cameron 2026-11-16; tokens from base.css:
   --orange for the border, ring and fill, --gold for small text on white) */
.xpick { margin: 0 0 22px; display: grid; gap: 14px; }
.xpick[hidden] { display: none; }
.xpick .xflat { display: grid; gap: 14px; }
.xpick-item { display: grid; gap: 8px; scroll-margin-top: 150px; padding: 12px; border-radius: 18px; background: #fff4ec; border: 2px solid var(--orange); }
.xpick-tag { justify-self: start; margin: 0; padding: 4px 11px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.xpick-item .xr { border-color: rgba(255, 81, 0, .35); }
/* the rest of the list under the pick: a plain count line, so the pick stays the only orange highlight */
.res .res-total--more { border-color: var(--line-soft); box-shadow: none; }   /* .res: xcard.css loads after this file */
/* the pick's building on the map */
.smap-pin.is-pick a { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--orange), 0 6px 14px rgba(65, 45, 25, .3); transform: scale(1.2); z-index: 1; }
.smap-pin.is-pick { z-index: 1; }
.smap-list li.is-pick .smap-n { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange); }

/* ---------- Phones reach prices sooner (2026-11-10) ---------- */
.xc-about-btn { display: none; }
@media (max-width: 699px) {
  .res-bar[hidden] { display: none; }   /* its display:flex beat [hidden]: an empty bar with a rule, and ~100pt of blank under the filter row */
  .res { padding-top: 14px; }
  .res-note { margin-bottom: 10px; }
  /* each building's long write-up folds behind "About this building"; the text stays in the page */
  .xc-about { margin-top: 2px; }
  .xc-about-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .xc-about-btn::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
  .xc-about.is-open .xc-about-btn::after { transform: rotate(-135deg) translateY(-2px); }
  .xc-about-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
  .xc-about:not(.is-open) .xc-sum { display: none; }
}
@media (prefers-reduced-motion: reduce) { .xc-about-btn::after { transition: none; } }
/* Ari's pick: its building's own name above the ringed pin (stays.js paintMap), toward the map's middle so it isn't clipped (2026-11-16) */
.smap-pick-name { position: absolute; bottom: 20px; white-space: nowrap; pointer-events: none; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.2; color: var(--orange, var(--gold)); background: #fff; padding: 3px 8px; border-radius: 999px; box-shadow: 0 2px 8px rgba(65, 45, 25, .25); }
.smap-pin.is-pick[data-side="r"] .smap-pick-name { left: -12px; }
.smap-pin.is-pick[data-side="l"] .smap-pick-name { right: -12px; }
