/* BeeLocate PRO - small CSS helpers
   Tailwind is loaded from CDN. This file only provides:
   - map full-screen
   - "primary" color fallbacks (bg-primary, text-primary, hover)
   - nicer range slider sizing for the pre-analysis panel
*/

#map { position: fixed; inset: 0; }

/* iOS safe-area so top/bottom controls don't get cut off */
:root {
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

/* Hide scrollbars for horizontal control rows (still scrollable) */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Analysis modal controls: allow horizontal swipe on mobile */
.analysis-controls { -webkit-overflow-scrolling: touch; }

/* Primary fallbacks (in case tailwind-config.js is missing) */
.bg-primary { background-color: #fbbf24; }
.hover\:bg-primary-hover:hover { background-color: #fcd34d; }
.text-primary { color: #fbbf24; }

/* Range slider should not look cramped */
input[type="range"] { width: 100%; }

/* Improve slider appearance (minimal, cross-browser) */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 999px;
  background: #fbbf24;
  border: 2px solid rgba(0,0,0,0.4);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fbbf24;
  border: 2px solid rgba(0,0,0,0.4);
}
