.custom-scroll::-webkit-scrollbar { width: 3px; }
.custom-scroll::-webkit-scrollbar-track { background: #0a1628; }
.custom-scroll::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 4px; }

html, body, #map { height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; background: #0a1628; }

.leaflet-control-zoom, .leaflet-control-attribution { display: none !important; }
.leaflet-popup-content-wrapper { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.leaflet-popup-tip { display: none !important; }

/* Compact Custom Checkbox */
.custom-checkbox {
  appearance: none;
  background-color: transparent;
  margin: 0;
  width: 0.9em;
  height: 0.9em;
  border: 1.5px solid #3b5578;
  border-radius: 3px;
  display: grid;
  place-content: center;
  transition: all 0.2s;
  cursor: pointer;
  color: #38BDF8;
}
.custom-checkbox:checked { border-color: #38BDF8; }
.custom-checkbox::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  transform: scale(0);
  transition: 100ms transform ease-in-out;
  box-shadow: inset 1em 1em currentColor;
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.custom-checkbox:checked::before { transform: scale(1); }

.sidebar-transition { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease; }

/* Map Markers */
.marker-pin {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: -2px 2px 10px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid white;
}
.marker-pin:hover { transform: rotate(-45deg) scale(1.1) translateY(-3px); z-index: 9999; }
.marker-icon-svg { transform: rotate(45deg); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.project-pin {
  width: 42px; height: 42px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #38BDF8, #1D4ED8);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.25), -2px 2px 10px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
}
.project-pin .inner { transform: rotate(45deg); color: white; }
.project-pulse {
  position: absolute; top: 50%; left: 50%; width: 14px; height: 14px;
  background: rgba(56,189,248,0.5); border-radius: 50%;
  transform: translate(-50%,-50%); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.6); }
  70% { box-shadow: 0 0 0 14px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}

/* Mobile Floating Mini-Card Breakpoint Styling */
@media (max-width: 1023px) {
  .top-header-panel {
    padding: 3px !important;
    border-radius: 10px !important;
  }
  .top-header-logo { height: 14px !important; width: 14px !important; }
  .top-header-paddco { font-size: 5.5px !important; }
  .top-header-title { font-size: 8.5px !important; }
  .top-header-loc { font-size: 6px !important; }
  .top-header-divider { height: 18px !important; margin: 0 2px !important; }
  .top-header-btn { height: 18px !important; width: 18px !important; border-radius: 5px !important; }
  .top-header-btn svg { height: 9px !important; width: 9px !important; }

  .top-right-group { gap: 5px !important; }
  .top-right-btn { height: 22px !important; width: 22px !important; }
  .top-right-btn i { font-size: 9px !important; }

  #filtersPill {
    font-size: 10px !important;
    padding: 2.5px 8px !important;
    border-radius: 6px !important;
  }

  /* Compact Floating Bottom-Right Card for Mobile */
  #filtersDrawer {
    top: auto !important;
    bottom: 8px !important;
    right: 8px !important;
    left: auto !important;
    width: 240px !important;
    max-width: calc(100vw - 16px) !important;
    max-height: 75vh !important;
    border-radius: 14px !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.85) !important;
  }
  #filtersDrawer.mobile-hidden {
    transform: translateY(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .spim-logo-wrapper { display: none !important; }
}