/* American Dream Homes — Listings index + property pages.
   Loaded after team.css (tokens, type, buttons, nav, reveal, contact form, dock, toast). */

/* ═════════ INDEX ═════════ */
.l-tally { display: flex; flex-wrap: wrap; gap: .25rem 2rem; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.7); }
@media (min-width: 1024px) { .l-tally { justify-content: flex-end; } }
.l-tally b { font-weight: 300; font-size: 30px; color: #fff; margin-right: .5rem; vertical-align: -3px; }

/* hero photo stack */
.h-stack { display: none; }
@media (min-width: 1024px) {
  .h-stack { display: block; position: absolute; right: 100px; top: -24px; width: 260px; height: 300px; }
  .hs-card { position: absolute; inset: 0 0 auto auto; width: 240px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--navy); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.1); transition: transform 1s var(--ease-out); }
  .hs-card img { width: 100%; height: 100%; object-fit: cover; }
  .hs-card:nth-child(1) { transform: translate(-130px, 34px) rotate(-9deg) scale(.9); }
  .hs-card:nth-child(2) { transform: translate(-62px, 12px) rotate(-3deg) scale(.95); }
  .hs-card:nth-child(3) { transform: rotate(5deg); }
  .h-stack:hover .hs-card:nth-child(1) { transform: translate(-200px, 44px) rotate(-14deg) scale(.9); }
  .h-stack:hover .hs-card:nth-child(2) { transform: translate(-98px, 4px) rotate(-5deg) scale(.95); }
  .h-stack:hover .hs-card:nth-child(3) { transform: translate(14px, -8px) rotate(8deg); }
}
@media (min-width: 1024px) and (max-width: 1199px) { .h-stack { transform: scale(.78); transform-origin: top right; } }

/* status tabs with a sliding ink bar */
.l-tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(24,37,52,.16); background: rgba(255,255,255,.55); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.l-tab { position: relative; z-index: 1; min-height: 44px; padding: 0 clamp(.7rem, 2.6vw, 1.1rem); font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); white-space: nowrap; transition: color .35s; }
.l-tab sup { margin-left: 4px; font-size: 11px; color: var(--ink); transition: color .35s; }
.l-tab[aria-selected="true"], .l-tab[aria-selected="true"] sup { color: #fff; }
.l-tab-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--navy); transition: transform .55s var(--ease-out), width .55s var(--ease-out); }
html:not(.js) .l-tab[aria-selected="true"] { background: var(--navy); }

.l-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .l-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; } }
@media (min-width: 1024px) { .l-grid-more { grid-template-columns: repeat(3, 1fr); } }
.l-empty { margin-top: 2rem; padding: 3rem 1.5rem; text-align: center; border: 1px dashed rgba(24,37,52,.25); color: var(--navy); font-size: 17px; }
.l-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* card */
.l-card { position: relative; display: flex; flex-direction: column; color: var(--navy); text-decoration: none; isolation: isolate; }
.l-card[hidden] { display: none; }
.l-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 22px; background: var(--navy); }
.l-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s var(--ease-out), opacity .35s; }
.l-card:hover .l-media img, .l-card:focus-visible .l-media img { transform: scale(1.045); }
.l-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,25,36,.35) 0%, rgba(15,25,36,0) 30%, rgba(15,25,36,0) 72%, rgba(15,25,36,.45) 100%); pointer-events: none; }
.l-ticks { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; display: flex; gap: 5px; opacity: 0; transition: opacity .4s; }
.l-ticks i { flex: 1; height: 2px; background: rgba(255,255,255,.4); transition: background-color .25s; }
.l-ticks i.on { background: #fff; }
@media (hover: hover) and (pointer: fine) { .l-card:hover .l-ticks { opacity: 1; } }

.l-status { position: absolute; z-index: 2; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; padding: 0 .85rem; background: rgba(255,255,255,.94); color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.l-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 0 rgba(47,179,109,.6); animation: pulse 2.4s infinite; }
.l-status.s-pending::before { background: #e3a33b; animation: none; }
.l-status.s-coming-soon::before { background: var(--blue); animation: none; }
.l-status.s-sold { background: var(--navy); color: #fff; }
.l-status.s-sold::before { background: var(--blue); animation: none; }
.l-status.static { position: static; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,179,109,.55); } 70% { box-shadow: 0 0 0 9px rgba(47,179,109,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,109,0); } }
.l-pot { position: absolute; z-index: 2; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; padding: 0 .85rem; background: rgba(15,25,36,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.l-pot svg { color: var(--blue); }

.l-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; padding: 20px 4px 0; }
.l-street { margin-top: .5rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 400; font-size: clamp(26px, 2.3vw, 34px); line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); }
.l-lead-txt { display: none; }
.l-facts { margin-top: .7rem; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.l-right { display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; flex-shrink: 0; }
.l-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 300; font-size: clamp(26px, 2.2vw, 34px); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.l-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(24,37,52,.25); color: var(--navy); transition: background-color .35s, color .35s, border-color .35s, transform .6s var(--ease-out); }
.l-card:hover .l-go, .l-card:focus-visible .l-go { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(-45deg); }

/* lead card: wide, image + editorial body side by side */
@media (min-width: 1024px) {
  .l-card.is-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(15,25,36,.35); }
  .l-card.is-lead .l-media { aspect-ratio: 16 / 10.5; border-radius: 0; }
  .l-card.is-lead .l-body { flex-direction: column; align-items: stretch; justify-content: space-between; padding: 44px 44px 40px; gap: 2rem; }
  .l-card.is-lead .l-street { font-size: clamp(40px, 3.6vw, 60px); font-weight: 300; }
  .l-card.is-lead .l-lead-txt { display: block; margin-top: 1.1rem; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 24px; line-height: 1.25; color: var(--navy); }
  .l-card.is-lead .l-facts { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(24,37,52,.14); }
  .l-card.is-lead .l-right { flex-direction: row; align-items: center; justify-content: space-between; }
  .l-card.is-lead .l-price { font-size: clamp(36px, 3vw, 48px); }
  .l-card.is-lead .l-go { width: 56px; height: 56px; }
}

/* ═════════ PROPERTY: GALLERY HERO ═════════ */
.mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(74vh, 700px); min-height: 460px; border-radius: 26px; overflow: hidden; }
.m-tile { position: relative; overflow: hidden; background: var(--navy); cursor: zoom-in; }
.m-tile.m-main { grid-row: 1 / span 2; }
.m-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .6s; }
.m-tile:hover img { transform: scale(1.04); }
.mosaic:hover .m-tile:not(:hover) img { filter: brightness(.82); }
.m-tile:focus-visible { outline-offset: -4px; }
html.js:not(.rm) .m-tile { clip-path: inset(100% 0 0 0); }
html.js:not(.rm) .mosaic.in .m-tile { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-out); }
html.js:not(.rm) .mosaic.in .m-tile:nth-child(2) { transition-delay: .08s; } html.js:not(.rm) .mosaic.in .m-tile:nth-child(3) { transition-delay: .14s; }
html.js:not(.rm) .mosaic.in .m-tile:nth-child(4) { transition-delay: .2s; } html.js:not(.rm) .mosaic.in .m-tile:nth-child(5) { transition-delay: .26s; }

.m-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.m-rail::-webkit-scrollbar { display: none; }
.m-slide { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; background: var(--navy); }
.m-slide img { width: 100%; height: 100%; object-fit: cover; }

.m-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 0; }
@media (min-width: 640px) { .m-bar { padding: 14px 0 0; } }
@media (min-width: 768px) { .m-bar { justify-content: flex-end; margin-top: -72px; padding: 0 18px; position: relative; z-index: 3; pointer-events: none; } .m-bar > * { pointer-events: auto; } }
.m-count { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: .14em; color: rgba(255,255,255,.75); white-space: nowrap; }
.m-count b { color: #fff; font-weight: 500; }
.m-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.m-pill { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem; white-space: nowrap; background: rgba(255,255,255,.95); color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); transition: background-color .3s, color .3s, transform .5s var(--ease-out); }
.m-pill:hover { background: var(--navy); color: #fff; }
.m-pill:active { transform: scale(.97); }
.m-pill svg { color: var(--ink); transition: color .3s; }
.m-pill:hover svg { color: var(--blue); }
.m-pill-hi { background: var(--blue); color: #fff; }
.m-pill-hi svg { color: #fff; }
@media (max-width: 767px) { .m-pill { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); box-shadow: none; } .m-pill svg { color: var(--blue); } .m-pill-hi { background: var(--blue); border-color: var(--blue); } .m-pill-hi svg { color: #fff; } }

/* title block */
.price-big { margin-top: .4rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 300; font-size: clamp(48px, 5vw, 76px); line-height: .95; letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(6, 1fr); } }
.fx { padding: 20px 0 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (min-width: 1024px) { .fx { border-bottom: 0; padding-right: 16px; } .fx + .fx { border-left: 1px solid rgba(255,255,255,.12); padding-left: 22px; } }
.fx-v { font-family: 'Barlow Condensed', sans-serif; font-weight: 300; font-size: clamp(32px, 3vw, 46px); line-height: 1; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.fx-k { margin-top: .5rem; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* sticky section nav */
#subnav { position: sticky; top: 0; z-index: 40; background: rgba(244,239,232,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(24,37,52,.1); transition: top .5s var(--ease-out); }
#subnav.under-nav { top: 76px; }
#subnav > div { position: relative; min-height: 60px; }
.sn-link { position: relative; display: inline-flex; align-items: center; min-height: 60px; padding: 0 .9rem; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--adh-mid, #4b5968); white-space: nowrap; transition: color .3s; }
.sn-link:hover, .sn-link.on { color: var(--navy); }
.sn-ink { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--blue); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.sn-cta { margin-left: auto; min-height: 42px !important; font-size: 13px !important; white-space: nowrap; }
@media (max-width: 767px) { .sn-cta { display: none !important; } }

/* overview */
.feat-g ul li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid rgba(24,37,52,.12); font-size: 16px; color: var(--navy); }
.feat-g ul li::before { content: ''; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--blue); }

.ag-card { background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 30px 70px -45px rgba(15,25,36,.45); }
.ag { display: grid; grid-template-columns: 72px 1fr; gap: 6px 16px; align-items: center; padding-top: 20px; margin-top: 18px; border-top: 1px solid rgba(24,37,52,.12); }
.ag-photo { width: 72px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--navy); }
.ag-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform 1s var(--ease-out); }
.ag-photo:hover img { transform: scale(1.06); }
.ag-name { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); }
.ag-name .accent { color: var(--ink); }
.ag-name:hover .accent { color: var(--blue); }
.ag-title { margin-top: .4rem; font-size: 14px; color: #4b5968; line-height: 1.35; }
.ag-dre { margin-top: .2rem; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.ag-acts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.ag-acts a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; border: 1px solid rgba(24,37,52,.2); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); transition: background-color .3s, color .3s, border-color .3s; }
.ag-acts a svg { color: var(--ink); transition: color .3s; }
.ag-acts a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.ag-acts a:hover svg { color: var(--blue); }
.ext-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(24,37,52,.12); }
.ext-links a { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #4b5968; transition: color .3s; }
.ext-links a:hover { color: var(--ink); }

/* gallery */
.g-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.g-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border: 1px solid rgba(24,37,52,.22); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--navy); transition: background-color .3s, color .3s, border-color .3s; }
.g-chip sup { margin-left: 4px; font-size: 10px; color: var(--ink); }
.g-chip:hover { border-color: var(--navy); }
.g-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.g-chip[aria-pressed="true"] sup { color: #8fd0f0; }
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 1024px) { .g-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } .g-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; } }
.g-item { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: #e8e1d7; cursor: zoom-in; }
.g-item[hidden] { display: none; }
.g-grid:not(.open) .g-more:not(.f-on) { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.g-item:hover img { transform: scale(1.05); }
.pop { animation: gpop .7s var(--ease-out) both; }
@keyframes gpop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ═════════ POTENTIAL ═════════ */
.t-tabs { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 768px) { .t-tabs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.t-tab { position: relative; display: grid; gap: 4px; text-align: left; padding: 20px 22px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.03); color: #fff; overflow: hidden; transition: border-color .4s, background-color .4s; }
.t-tab::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.t-tab:hover { border-color: rgba(255,255,255,.4); }
.t-tab[aria-selected="true"] { border-color: rgba(32,152,209,.6); background: rgba(32,152,209,.1); }
.t-tab[aria-selected="true"]::after { transform: scaleX(1); }
.t-key { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); }
.t-name { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 34px; line-height: 1; }
.t-cost { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; letter-spacing: .08em; color: rgba(255,255,255,.75); }

.cmp-stage { position: relative; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: var(--navy); }
.cmp { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; touch-action: pan-y; }
.cmp.on { opacity: 1; visibility: visible; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.35); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); transition: transform .4s var(--ease-out); }
.cmp:hover .cmp-knob { transform: scale(1.08); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.cmp-range:focus-visible ~ .cmp-line .cmp-knob, .cmp:has(.cmp-range:focus-visible) .cmp-knob { outline: 2px solid var(--blue); outline-offset: 3px; }
.cmp-tag { position: absolute; z-index: 2; top: 14px; min-height: 30px; display: inline-flex; align-items: center; padding: 0 .75rem; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.cmp-tag.l { left: 14px; background: rgba(15,25,36,.8); color: #fff; }
.cmp-tag.r { right: 14px; background: rgba(255,255,255,.94); color: var(--navy); }

.r-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.r-row { min-width: 0; }
.r-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 8px; }
.r-label { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.r-nav { display: none; gap: 6px; }
.r-row.over .r-nav { display: inline-flex; }
.r-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: #fff; transition: background .3s, opacity .3s; }
.r-arrow svg { width: 16px; height: 16px; }
.r-arrow:hover { background: rgba(255,255,255,.12); }
.r-arrow:disabled { opacity: .3; cursor: default; background: none; }
.r-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.r-thumbs::-webkit-scrollbar { display: none; }
.r-thumbs > * { scroll-snap-align: start; }
/* fade the edge that has more thumbnails behind it, so a cut-off tile reads as "scroll for more" */
.r-row.over:not(.at-end) .r-thumbs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.r-row.over.at-end:not(.at-start) .r-thumbs { -webkit-mask-image: linear-gradient(270deg, #000 85%, transparent); mask-image: linear-gradient(270deg, #000 85%, transparent); }
.r-thumb { position: relative; flex: 0 0 132px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); opacity: .6; transition: opacity .3s, border-color .3s; }
.r-thumb img { width: 100%; height: 100%; object-fit: cover; }
.r-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; background: linear-gradient(transparent, rgba(15,25,36,.85)); font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-align: left; }
.r-thumb:hover { opacity: .9; }
.r-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--blue); }

.t-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.t-kv dt { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.t-kv dd { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; letter-spacing: .04em; color: #fff; text-align: right; }
.t-kv > div.hi dd { color: #8fd0f0; }
.scope { display: none; }
.scope.on { display: block; animation: gpop .6s var(--ease-out) both; }
.scope li { display: flex; justify-content: space-between; gap: 1rem; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; color: rgba(255,255,255,.85); }
.scope li span:last-child { flex-shrink: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; letter-spacing: .06em; color: rgba(255,255,255,.65); }

/* ═════════ TOUR / FLOOR PLANS / MAP ═════════ */
.v-tab { min-height: 44px; padding: 0 1rem; border: 1px solid rgba(255,255,255,.25); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; transition: background-color .3s, border-color .3s; }
.v-tab:hover { border-color: #fff; }
.v-tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.v-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--deep); }
@media (max-width: 767px) { .v-frame { aspect-ratio: 4 / 5; } }
.v-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); transition: transform 1.6s var(--ease-out); }
.v-frame:hover > img { transform: scale(1.03); }
.v-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.v-play span { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .6s var(--ease-out), background-color .3s; }
.v-play:hover span { transform: scale(1.08); background: var(--blue); border-color: var(--blue); }

.fp button { display: block; width: 100%; padding: clamp(16px, 3vw, 40px); background: var(--sand); border-radius: 22px; cursor: zoom-in; transition: background-color .4s; }
.fp button:hover { background: #ece5da; }
.fp img { width: 100%; height: auto; mix-blend-mode: multiply; }

.map-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #e8e1d7; border: 1px solid rgba(24,37,52,.1); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.map-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--navy); background-image: radial-gradient(rgba(24,37,52,.12) 1px, transparent 1px); background-size: 22px 22px; transition: background-color .4s; }
.map-load:hover { background-color: #efe8de; }

/* ═════════ LIGHTBOX ═════════ */
#lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: #090e14; color: #fff; }
#lb[hidden] { display: none; }
html.js:not(.rm) #lb { animation: lbin .45s var(--ease-out); }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.lb-top { display: flex; align-items: center; gap: 1rem; padding: 10px 12px 10px 20px; }
.lb-count { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: .16em; color: rgba(255,255,255,.7); white-space: nowrap; }
.lb-count b { color: #fff; font-weight: 500; }
.lb-cap { flex: 1; min-width: 0; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 20px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-x { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.2); transition: background-color .3s; }
.lb-x:hover { background: rgba(255,255,255,.1); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.lb-stage img.fade { opacity: 0; }
.lb-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: rgba(15,25,36,.6); border: 1px solid rgba(255,255,255,.2); transition: background-color .3s; }
.lb-nav:hover { background: var(--blue); border-color: var(--blue); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (max-width: 767px) { .lb-nav { display: none; } }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 12px 20px 18px; scrollbar-width: none; }
.lb-strip button { flex: 0 0 84px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; opacity: .45; border: 1px solid transparent; transition: opacity .3s, border-color .3s; }
.lb-strip button:hover { opacity: .8; }
.lb-strip button[aria-current="true"] { opacity: 1; border-color: var(--blue); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .lb-strip { display: none; } }
