/* ---- the homes as a street (scenes/homes.js): each type edge to edge, swiped along, the next one peeking in; the
   copy sits above the guide, the bar under the top bar. The apartments' slides show the flat's model on Limestone. */
.street { position: absolute; inset: 0; overflow: hidden; background: #1b1918; color: #f6f4ee; }
.street-track {
  position: absolute; inset: 0; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline: none;
}
.street-track::-webkit-scrollbar { display: none; }
.street-slide { position: relative; flex: 0 0 calc(100% - 30px); height: 100%; overflow: hidden; scroll-snap-align: start; background: #2a2725; }
.street-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.street-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 16, 15, .9) 0%, rgba(18, 16, 15, .55) 36%, rgba(18, 16, 15, 0) 62%),
    linear-gradient(to bottom, rgba(18, 16, 15, .5), rgba(18, 16, 15, 0) 24%);
}
.street-slide.is-model { background: #e7e4d8; color: #2f2b29; }
.street-slide.is-model .street-img { inset: calc(var(--sa-t) + 104px) 0 auto; height: 36%; object-fit: contain; }
.street-slide.is-model .street-scrim { background: linear-gradient(to top, rgba(231, 228, 216, .98) 0%, rgba(231, 228, 216, .85) 34%, rgba(231, 228, 216, 0) 56%); }

.street-copy {
  position: absolute; inset-inline: 22px; bottom: calc(var(--guide-top) + 16px);
  display: grid; justify-items: start; gap: 12px; max-width: 560px;
}
/* only the slide in view says what it is (the next one only peeks in) */
.street-copy, .street-pick { transition: opacity .35s var(--ease); }
.street-slide:not(.is-current) :is(.street-copy, .street-pick) { opacity: 0; pointer-events: none; }
/* the orb's words show above its ring: the copy stands clear of them */
body:has(.guide.orb) :is(.street-copy, .street-nav) { bottom: calc(var(--guide-top) + 96px); }
body:has(.guide.orb) .street-hint { bottom: calc(var(--guide-top) + 106px); }
.street-copy p { margin: 0; }
.street-kind { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.street-title { margin: 0; font-size: clamp(52px, 15vw, 112px); line-height: .92; font-weight: 300; letter-spacing: -0.035em; }
.street-line { font-size: 15px; line-height: 1.5; opacity: .88; max-width: 34ch; }
.street-facts { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 4px 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.street-facts li { display: grid; gap: 2px; padding-inline-end: 18px; border-inline-end: 1px solid currentColor; border-color: rgba(246, 244, 238, .25); }
.street-facts li:last-child { padding-inline-end: 0; border: 0; }
.is-model .street-facts li { border-color: rgba(58, 54, 52, .2); }
.street-fact-v { font-size: 20px; direction: ltr; unicode-bidi: isolate; }
.street-fact-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.street-actions { display: flex; gap: 10px; margin-top: 6px; }
.street-see {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 22px; border-radius: 999px;
  background: #f6f4ee; color: #1b1918; font-size: 15px; font-weight: 500; text-decoration: none;
}
.is-model .street-see { background: #2f2b29; color: #f1efe6; }

.street-pick {
  position: absolute; top: calc(var(--sa-t) + 108px); inset-inline-start: 22px; margin: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; padding-inline: 10px 14px; border-radius: 999px;
  background: rgba(246, 244, 238, .16); border: 1px solid rgba(246, 244, 238, .3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 12px; letter-spacing: .02em;
}
.is-model .street-pick { background: rgba(255, 253, 247, .7); border-color: rgba(58, 54, 52, .18); }
.street-pick-dot { width: 8px; height: 8px; border-radius: 50%; background: #f0b27a; box-shadow: 0 0 10px 2px rgba(240, 178, 122, .8); }

.street-bar {
  position: absolute; top: calc(var(--sa-t) + 74px); inset-inline: 22px 46px; display: flex; align-items: center; gap: 12px;
  pointer-events: none; filter: drop-shadow(0 0 3px rgba(18, 16, 15, .35));
}
.street-ticks { flex: 1; display: flex; gap: 4px; }
.street-ticks span { flex: 1; height: 2px; border-radius: 2px; background: rgba(246, 244, 238, .35); transition: background .3s var(--ease); }
.street-ticks span.on { background: rgba(246, 244, 238, .95); }
.street-count { font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: #f6f4ee; direction: ltr; unicode-bidi: isolate; }
.street.on-light .street-bar { filter: none; }
.street.on-light .street-ticks span { background: rgba(47, 43, 41, .2); }
.street.on-light .street-ticks span.on { background: #2f2b29; }
.street.on-light .street-count, .street.on-light .street-hint { color: #2f2b29; text-shadow: none; }
.street.on-light .street-arrow { border-color: rgba(47, 43, 41, .35); background: rgba(255, 253, 247, .6); color: #2f2b29; }

.street-nav { position: absolute; inset-inline-end: 22px; bottom: calc(var(--guide-top) + 16px); display: none; gap: 10px; }
.street-arrow {
  display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(246, 244, 238, .5); background: rgba(27, 25, 24, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #f6f4ee; font: inherit; font-size: 20px; cursor: pointer;
}
.street-prev::before { content: "←"; }
.street-next::before { content: "→"; }
[dir="rtl"] .street-prev::before { content: "→"; }
[dir="rtl"] .street-next::before { content: "←"; }
.street-arrow:disabled { opacity: .3; cursor: default; }
.street-hint { position: absolute; inset-inline-end: 22px; bottom: calc(var(--guide-top) + 26px); margin: 0; font-size: 12px; color: #f6f4ee; opacity: .7; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
@media (hover: hover) and (pointer: fine) { .street-nav { display: flex; } .street-hint { display: none; } }
@media (min-width: 900px) {
  .street-track { gap: 10px; }
  .street-slide { flex-basis: calc(100% - 140px); }
  .street-copy { inset-inline-start: 56px; bottom: calc(var(--guide-top) + 28px); max-width: min(780px, 62vw); }
  .street-pick, .street-bar { inset-inline-start: 56px; }
  .street-bar { inset-inline-end: 180px; top: calc(var(--sa-t) + 104px); }
  .street-pick { top: calc(var(--sa-t) + 136px); }
  .street-slide.is-model .street-img { inset: calc(var(--sa-t) + 120px) 0 auto 34%; width: 62%; height: 52%; }
  .street-nav { inset-inline-end: 56px; bottom: calc(var(--guide-top) + 28px); }
}
@media (prefers-reduced-motion: reduce) { .street-ticks span { transition: none; } }

/* over the street's pictures, the top bar's logo turns light */
body.on-street-dark .logo img { filter: invert(1); }
