/* Invermap — Custom styles */

:root {
  --map-filter: invert(0.92) hue-rotate(180deg) contrast(0.92) brightness(0.95) saturate(1.05);
}

/* Map wrapper with live filter */
.map-wrapper {
  filter: var(--map-filter);
  transition: filter 120ms cubic-bezier(0.23, 1.0, 0.32, 1);
  background: #000;
}

/* When inversion is disabled */
.map-wrapper.no-invert {
  filter: none;
}

/* Make the iframe look crisp inside the rounded container */
.map-wrapper iframe {
  display: block;
}

/* Slider styling */
.slider-group {
  display: flex;
  flex-direction: column;
}

.slider-label {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #52525b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.slider-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #18181b;
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 10px;
  color: #a1a1aa;
  border: 1px solid #27272a;
}

input[type="range"] {
  accent-color: #fff;
  width: 100%;
  height: 4px;
  background: #27272a;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.1s ease;
}

input[type="range"]:hover {
  background: #3f3f46;
}

/* Preset buttons active state */
.preset-btn.active {
  background-color: #27272a;
  border-color: #52525b;
  color: #f4f4f5;
}

/* Small polish */
#search-input {
  font-size: 15px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .map-wrapper {
    aspect-ratio: 16 / 10;
  }
}
