/* =========================================================
   GLOBAL SCROLLBARS (UNCHANGED)
========================================================= */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
}
#galleryItemsList::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
#galleryItemsList::-webkit-scrollbar-thumb {
  background-color: #3b82f6;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* =========================================================
   GOOGLE MAP INFO WINDOW (MATCHING BG THEME)
========================================================= */
.gm-style .gm-style-iw-c {
  background: radial-gradient(circle at center, #0B2A44 0%, #05101A 100%) !important;
  backdrop-filter: blur(10px);
  border-radius: 16px !important;
  border: 1.5px solid rgba(147, 197, 253, 0.3) !important;
  padding: 0 !important;
  max-width: 300px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}
.gm-style .gm-style-iw-d { overflow: hidden !important; color: white !important; }
.gm-style .gm-style-iw-tc { display: none !important; }

/* =========================================================
   WEBVERSE FILTER PANEL & PILLS (BLUE SHADE FAMILY)
========================================================= */

/* Border Cleanup */
#webverseFilters, #webverseFilters * {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- THE NORMAL BUTTON (UNSELECTED) --- */
#webverseFilters ul li {
  /* Matching background shade */
  background: rgba(11, 42, 68, 0.6) !important;
  
  /* Lighter Blue Shade for text/icons as requested */
  color: #93c5fd !important; 
  
  border: 1px solid rgba(147, 197, 253, 0.15) !important;
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

/* Hover State for Unselected */
#webverseFilters ul li:hover {
  background: rgba(147, 197, 253, 0.1);
  color: #ffffff !important;
  border-color: rgba(147, 197, 253, 0.4) !important;
}
#webverseFilters ul li[aria-selected="true"],
#webverseFilters .units li[aria-selected="true"],
#webverseFilters .units li.active {

  /* Noticeable hue shift (navy → blue-cyan) */
  background: linear-gradient(
    145deg,
    #1A4E82,
    #0E3A5C
  ) !important;

  /* Brighter text */
  color: #ffffff !important;
  font-weight: 600;

  /* Inner glow ring (this is key) */
  border: 1px solid rgba(147, 197, 253, 0.6) !important;

  /* Lift + soft glow */
  box-shadow:
    0 8px 20px rgba(14, 58, 92, 0.8),
    inset 0 0 0 1px rgba(191, 219, 254, 0.25) !important;

  transform: translateY(-1px);
}

/* =========================================================
   FLOOR SECTION LOGIC
========================================================= */
#webverseFilters #floor .floors {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px;
  max-height: 44px;
  padding: 4px 2px;
  transition: max-height 0.35s ease;
}
#webverseFilters #floor .floors::-webkit-scrollbar { display: none; }
#webverseFilters #floor.expanded .floors { flex-wrap: wrap; max-height: 500px; }

.floor-toggle {
  margin-top: 4px;
  font-size: 11px;
  color: #60a5fa;
  cursor: pointer;
  align-self: flex-end;
}

/* =========================================================
   MISC UI SECTIONS
========================================================= */
#webverseFilters #note > div { 
  border: 1px solid rgba(96, 165, 250, 0.3); 
  background: rgba(11, 42, 68, 0.4);
}

#webverseTowerLabel { display: none !important; }

/* Mobile Rotation Overlay */
.device-rotation {
  display: none;
}
@media screen and (max-width: 768px) and (orientation: portrait) {
  .device-rotation { display: flex; }
}