/* Loaded ONLY on pages that carry the day/night slider — including the
   homepage, which does not load pages.css (that's why the slider first
   shipped broken there, 2026-08-30). Order: before chrome.css. */
/* ============================================================================
   DAY/NIGHT SLIDER (2026-08-29, Dazzl-inspired). Two stacked photographs of
   the same house; --pos clips the day layer. ba-slider.js drives --pos.
   ============================================================================ */
.ba-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  max-width: 940px;
  margin-inline: auto;
}

.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 0;
}

.ba-slider .ba-day { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-divider {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 3px; margin-left: -1.5px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  pointer-events: none;
}

.ba-handle {
  position: absolute; top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--brand-blue-ink, #053b5d);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  cursor: ew-resize;
  padding: 0;
  font-size: 16px; font-weight: 800; letter-spacing: 1px;
}

.ba-handle:focus-visible { outline: 3px solid var(--brand-gold, #f3b21d); outline-offset: 2px; }

.ba-slider.is-dragging .ba-handle { transform: translate(-50%, -50%) scale(1.08); }

.ba-label {
  position: absolute; top: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  padding: 5px 11px; border-radius: 999px;
  pointer-events: none;
}

.ba-label-day { left: 12px; background: rgba(255,255,255,0.92); color: #14243c; }
.ba-label-night { right: 12px; background: rgba(8,16,30,0.72); color: white; }

.ba-hint {
  text-align: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 12px;
  text-transform: uppercase;
}
