html, body {
  margin: 0;
  height: 100%;
}

#map {
  height: 100%;
}

#filter-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000; /* above Leaflet panes */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  padding: 10px 12px;
  font: 13px/1.5 system-ui, sans-serif;
  max-height: calc(100% - 40px);
  overflow-y: auto;
  min-width: 230px;
}

#filter-panel section {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.section-head button {
  font-size: 11px;
  cursor: pointer;
}

#layers label,
#brand-list label {
  display: block;
  cursor: pointer;
  white-space: nowrap;
}

#brand-list .tier-head {
  font-weight: 600;
  margin-top: 7px;
}

#brand-list .brand-row {
  padding-left: 16px;
}

.muted {
  color: #888;
  font-size: 12px;
  font-weight: normal;
}

#hotel-count {
  color: #555;
  font-size: 12px;
}

/* --- dual-handle points slider --- */
#points-readout {
  margin-bottom: 4px;
}

#points-slider {
  position: relative;
  height: 24px;
}

#points-slider input[type='range'] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none; /* track ignores clicks; thumbs re-enable below */
  -webkit-appearance: none;
  appearance: none;
}

/* A shared visible track behind the two inputs. */
#points-slider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 3px;
  background: #ccc;
  border-radius: 2px;
}

#points-slider input[type='range']::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2b6cb0;
  border: 2px solid #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

#points-slider input[type='range']::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2b6cb0;
  border: 2px solid #fff;
  cursor: pointer;
}

#points-slider input[type='range']::-moz-range-track {
  background: none;
}

#points-section.disabled {
  opacity: 0.55;
}

#points-section.disabled #points-slider input[type='range']::-webkit-slider-thumb {
  background: #999;
}

/* Individual hotel marker: red dot (replaces Leaflet's default blue pin). */
.hotel-dot {
  width: 12px;
  height: 12px;
  background: #e23744;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

/* --- popups --- */
.popup a {
  font-weight: 600;
}

.popup-brand {
  color: #555;
  font-size: 12px;
}

.popup-address {
  margin-top: 2px;
  font-size: 12px;
}

.popup-badge {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #2f855a;
}

.popup-points {
  margin-top: 2px;
  font-size: 12px;
  color: #2b6cb0;
}
