/* Drag-to-reveal before/after (home-v2-1009). Shared by / and /app/. */
.ba-slider {
  --pos: 50%;
  position: relative;
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  margin: 0 auto 4px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--brass-dim, rgba(196, 163, 106, 0.4));
  background: #161412;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.ba-slider[hidden] { display: none !important; }
.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-slider .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: #C4A36A;
  pointer-events: none;
}
.ba-handle::after {
  content: "\2039\00a0\203A";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #C4A36A; color: #1A140C;
  font: 700 18px/1 system-ui, sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.ba-label {
  position: absolute; top: 8px;
  padding: 3px 8px; border-radius: 3px;
  background: rgba(14,13,12,.78);
  font: 600 11px/1.3 "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none;
}
.ba-label-before { left: 8px; color: #EDE6D9; }
.ba-label-after { right: 8px; color: #C4A36A; }
/* Range input: keyboard / screen-reader control. Pointer drags go to the container. */
.ba-range {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0;
  pointer-events: none;
}
.ba-slider:focus-within { outline: 2px solid #C4A36A; outline-offset: 2px; }
.ba-hint {
  margin: 4px 0 0; text-align: center;
  font-size: 12px; color: #9A9184;
}
/* Picture wrappers: keep imgs absolutely positioned (review-1025 great room). */
.ba-slider picture { display: contents; }
.ba-slider-tall { aspect-ratio: 1080 / 1210; max-width: 560px; }
.gr-tabs { display: flex; gap: 8px; justify-content: center; margin: 0 auto 12px; max-width: 560px; }
.gr-tab {
  flex: 1 1 0; min-height: 44px; padding: 8px 12px;
  border: 1px solid #C4A36A; border-radius: 4px;
  background: transparent; color: #EDE6D9; cursor: pointer;
  font: 600 14px/1.2 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .1em; text-transform: uppercase;
}
.gr-tab[aria-selected="true"] { background: #C4A36A; color: #1A140C; }
.gr-tab:hover { background: rgba(196,163,106,.22); }
.gr-tab[aria-selected="true"]:hover { background: #D6B67C; }
.gr-tab:focus-visible { outline: 2px solid #EDE6D9; outline-offset: 2px; }
.gr-panel[hidden] { display: none; }
