/* ROQ MINERAL — Mobile-First Tactical GIS Stylesheet (KCE v3.0.0) */

:root {
  --bg-void: #07080a;
  --bg-chamber: rgba(14, 17, 23, 0.88);
  --bg-card: rgba(19, 23, 34, 0.95);
  --border-hair: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(16, 185, 129, 0.4);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-violet: #8b5cf6;
  --accent-rose: #f43f5e;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-void);
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-chamber);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-hair);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Map Canvas */
#map {
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 10;
  background: #090b10;
}

/* Hide default leaflet attribution watermark on mobile clean mode */
.leaflet-control-attribution {
  font-size: 8px !important;
  background: rgba(7, 8, 10, 0.7) !important;
  color: #64748b !important;
  border-radius: 4px !important;
  padding: 1px 4px !important;
  margin: 4px !important;
}
.leaflet-control-attribution a {
  color: #94a3b8 !important;
  text-decoration: none;
}

/* Custom Leaflet Zoom Buttons */
.leaflet-bar {
  border: 1px solid var(--border-hair) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5) !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.leaflet-bar a {
  background-color: rgba(14, 17, 23, 0.9) !important;
  color: #cbd5e1 !important;
  border-bottom: 1px solid var(--border-hair) !important;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  backdrop-filter: blur(10px);
}
.leaflet-bar a:hover {
  background-color: #1e2433 !important;
  color: #10b981 !important;
}

/* Quick Filter Horizontal Carousel */
.filter-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 4px;
}
.filter-carousel::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(19, 23, 34, 0.85);
  border: 1px solid var(--border-hair);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-pill:active {
  transform: scale(0.96);
}
.filter-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

/* Mobile Bottom Sheet Drawer */
.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-hair);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
}
.bottom-sheet.collapsed {
  transform: translateY(calc(100% - 66px));
}
.bottom-sheet.hidden-drawer {
  transform: translateY(105%);
}

.drag-handle-bar {
  width: 44px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  margin: 10px auto 4px auto;
}

/* Numeric Keypad for PIN */
.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}
.pin-dot.filled {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}
.pin-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pin-btn:active {
  background: rgba(16, 185, 129, 0.25);
  transform: scale(0.92);
  border-color: rgba(16, 185, 129, 0.5);
}

/* Pulse animation */
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0.2; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.pulse-emerald {
  animation: pulse-ring 2s infinite ease-in-out;
}
