/* Slider-series price pickers — Redfin / Zillow inspired
   Load scout-price-picker-shared.css before this file. */

.slider-panel {
  width: 420px;
  padding: 0;
  overflow: hidden;
}

.slider-panel-inner {
  padding: 16px 18px 18px;
}

.slider-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}
.slider-tabs button {
  flex: 1;
  height: 44px;
  border: none;
  background: var(--bg-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font);
  border-bottom: 2px solid transparent;
}
.slider-tabs button.on {
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent, var(--red));
}

.slider-tabs.pill-tabs {
  border-bottom: none;
  gap: 8px;
  padding: 14px 16px 0;
}
.slider-tabs.pill-tabs button {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.slider-tabs.pill-tabs button.on {
  background: var(--accent-bg, rgba(26, 95, 138, 0.1));
  border-color: var(--accent, #1a5f8a);
  color: var(--accent, #1a5f8a);
  border-bottom: 1px solid var(--accent, #1a5f8a);
}

/* Histogram */
.histogram {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 56px;
  margin: 16px 0 8px;
  padding: 0 2px;
}
.histogram .bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-width: 3px;
  opacity: 0.85;
}

/* Single-thumb slider track */
.slider-track-wrap {
  position: relative;
  padding: 20px 0 28px;
}
.slider-track {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--track-bg, #E4E7EC);
}
.slider-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--accent, var(--red));
  pointer-events: none;
}
/* Dual range: fill sits between thumbs */
.slider-track.dual .slider-fill {
  left: 0;
  width: 0;
}
.histogram .bar.bar-in-range { opacity: 1; }
.histogram .bar.bar-out-range { opacity: 0.25; }

.slider-thumb {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent, var(--red));
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.18);
  cursor: grab;
  z-index: 2;
  touch-action: none;
}
.slider-thumb-min { z-index: 3; }
.slider-thumb-max { z-index: 4; }
.slider-thumb:active { cursor: grabbing; }
.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
}
.slider-thumb-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(16,24,40,.08);
}

/* Large Min / Max windows */
.lg-input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
}
.lg-input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-input-box label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lg-input-box input {
  width: 100%;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}
.lg-input-box input:focus {
  outline: none;
  border-color: var(--accent, var(--red));
  box-shadow: 0 0 0 3px var(--accent-ring, rgba(193, 18, 31, 0.15));
}
.lg-input-box input::placeholder {
  color: #98A2B3;
  font-weight: 500;
  font-size: 15px;
}
.lg-input-dash {
  align-self: flex-end;
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
}

/* Hero-sized inputs (R3) */
.lg-input-row.hero row { flex-direction: column; }
.lg-input-box.hero input {
  height: 64px;
  font-size: 22px;
  border-radius: 14px;
  text-align: center;
}
.lg-input-box.hero label {
  text-align: center;
  font-size: 10px;
}

.slider-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #1a5f8a);
  margin: 12px 0 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  padding: 0;
}
.slider-link:hover { text-decoration: underline; }

.panel-foot.full-apply {
  padding: 14px 18px 18px;
  margin: 0;
  border-top: 1px solid var(--border-light);
}
.btn-apply-full {
  width: 100%;
  height: 44px;
  background: var(--accent, var(--red));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font);
}
.btn-apply-full:hover { filter: brightness(0.95); }

/* Theme variants */
.theme-redfin { --accent: #1a5f8a; --accent-bg: rgba(26,95,138,.1); --accent-ring: rgba(26,95,138,.2); --track-bg: #D0D5DD; }
.theme-redfin .histogram .bar { background: #1a5f8a; }
.theme-redfin .btn-apply-full { background: #1a5f8a; }

.theme-zillow { --accent: #006AFF; --accent-bg: rgba(0,106,255,.08); --accent-ring: rgba(0,106,255,.18); }
.theme-zillow .histogram .bar { background: #006AFF; }
.theme-zillow .btn-apply-full { background: #006AFF; }
.theme-zillow .slider-tabs button.on { border-bottom-color: #006AFF; }

.theme-scout { --accent: #C1121F; --accent-bg: rgba(193,18,31,.08); --accent-ring: rgba(193,18,31,.18); }
.theme-scout .histogram .bar { background: #C1121F; }

.theme-teal { --accent: #0d9488; --accent-bg: rgba(13,148,136,.1); --accent-ring: rgba(13,148,136,.18); }
.theme-teal .histogram .bar { background: #0d9488; }
.theme-teal .btn-apply-full { background: #0d9488; }

.theme-gold { --accent: #9a7b2e; --accent-bg: rgba(201,168,76,.15); --accent-ring: rgba(201,168,76,.25); }
.theme-gold .histogram .bar { background: #C9A84C; }
