/* =========================================================
   SCROLLBARS (UNCHANGED – SAFE)
========================================================= */
::-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-track {
  background: transparent;
}

#galleryItemsList::-webkit-scrollbar-thumb {
  background-color: #3b82f6;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

#galleryItemsList::-webkit-scrollbar-thumb:hover {
  background-color: #2563eb;
}

/* =========================================================
   GOOGLE MAP INFO WINDOW (REMOVE ORANGE)
========================================================= */
.gm-style .gm-style-iw-c {
  background: #6F2E48 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px !important;

  /* 🔥 ORANGE REMOVED */
  border: 1.5px solid rgba(255,255,255,0.18) !important;

  padding: 0 !important;
  max-width: 300px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  transform-origin: top center;
  transition: transform 0.2s ease;
}

/* Inner content */
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  color: white !important;
}

/* Hide arrow */
.gm-style .gm-style-iw-tc {
  display: none !important;
}

/* Close button */
.gm-style .gm-ui-hover-effect {
  top: 12px !important;
  right: 12px !important;
  border-radius: 50% !important;
  opacity: 0.85 !important;
  transition: all 0.2s ease;
}

.gm-style .gm-ui-hover-effect:hover {
  opacity: 1 !important;
  transform: rotate(90deg);
}

.gm-style .gm-ui-hover-effect span {
  background-color: #ffffff !important;
}

/* =========================================================
   FILTER PANEL – REMOVE ORANGE BORDERS COMPLETELY
========================================================= */
#webverseFilters,
#webverseFilters * {
  border-color: rgba(255,255,255,0.14) !important;
}

/* =========================================================
   FILTER BUTTONS – iOS UNSELECTED STYLE
========================================================= */
#webverseFilters ul li {
  background: rgba(255,255,255,0.08);
  color: white;
  border: none;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.25s ease;
}

/* Hover */
#webverseFilters ul li:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

/* =========================================================
   WEBVERSE FILTER PILLS — iOS STYLE (FIXED)
========================================================= */

#webverseFilters ul li {
  background: rgba(255,255,255,0.08);
  color: white;
  border-radius: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.25s ease;
  cursor: pointer;
}

/* Hover (works always) */
#webverseFilters ul li:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

/* ✅ SELECTED STATE (PRIMARY FIX) */
#webverseFilters ul li[aria-selected="true"] {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  border-color: rgba(255,255,255,0.45);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 10px 26px rgba(37,99,235,0.55);
}

/* Units pills */
#webverseFilters .units li {
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
}

#webverseFilters .units li[aria-selected="true"] {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  border-color: rgba(255,255,255,0.45);
}

/* =========================================================
   NOTE SECTION (NO ORANGE)
========================================================= */
#webverseFilters #note {
  border-top: 1px solid rgba(255,255,255,0.12);
}

#webverseFilters #note h3 {
  background: rgba(96,165,250,0.18);
  color: #e8f2ff;
}

#webverseFilters #note > div {
  border: 1px solid rgba(96,165,250,0.3);
}

/* =========================================================
   UNIT BUTTONS (Sq.Ft)
========================================================= */
#webverseFilters .units li {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 14px;
}

#webverseFilters .units li.active {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  border: 1px solid rgba(255,255,255,0.4);
}

/* =========================================================
   SHEPHERD + DEVICE ROTATION (UNCHANGED)
========================================================= */
.shepherd-header {
  padding: 6px 8px !important;
}

.device-rotation {
  display: none;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .device-rotation {
    display: flex;
  }
}

/* Hide tower label */
#webverseTowerLabel {
  display: none !important;
}

/* ================= FLOOR – SINGLE ROW ONLY ================= */

#webverseFilters #floor {
  position: relative;
}

/* UL that contains floor pills */
#webverseFilters #floor .floors {
  display: flex;
  flex-wrap: nowrap;              /* 🔥 FORCE SINGLE ROW */
  overflow: hidden;
  gap: 8px;

  max-height: 44px;               /* EXACT height of one pill row */
  padding-bottom: 2px;

  transition: max-height 0.35s ease;
}

/* Expanded → allow wrapping + full height */
#webverseFilters #floor.expanded .floors {
  flex-wrap: wrap;
  max-height: 420px;
}

/* Fade hint when collapsed */
#webverseFilters #floor:not(.expanded)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 30px;
  width: 64px;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(
    to left,
    rgba(11,42,68,0.95),
    rgba(11,42,68,0)
  );
}

/* Show all / Show less */
.floor-toggle {
  margin-top: 4px;
  font-size: 11px;
  color: #93c5fd;
  cursor: pointer;
  align-self: flex-end;
}

/* -------------------- INFO WINDOW CARDS (Glassmorphic) -------------------- */
.gm-style .gm-style-iw-c {
  /* Jain Deep Navy with Radial Gradient effect */
  background: radial-gradient(circle at center, #3A6D8C 0%, #1E3E5A 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px !important;
  /* Updated to Jain Teal/Cyan border */
  border: 1.5px solid #4FA3B8 !important;
  padding: 0 !important;
  max-width: 300px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  transform-origin: top center;
  transition: transform 0.2s ease;
}

/* Inner content */
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  color: white !important;
}

/* Hide arrow */
.gm-style .gm-style-iw-tc { display: none !important; }

/* Close button */
.gm-style .gm-ui-hover-effect {
  top: 12px !important;
  right: 12px !important;
  border-radius: 50% !important;
  opacity: 0.8 !important;
  transition: all 0.2s ease;
  /* Matches the red 'X' from your original panel image */
  background-color: rgba(229, 75, 75, 0.2) !important;
}

.gm-style .gm-ui-hover-effect:hover { 
  opacity: 1 !important; 
  transform: rotate(90deg); 
  background-color: rgba(229, 75, 75, 0.4) !important;
}

.gm-style .gm-ui-hover-effect span { 
  /* Makes the 'X' icon white */
  background-color: #ffffff !important; 
}

.shepherd-header {
  padding: 6px 8px !important;
}

.device-rotation {
  display: none;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .device-rotation {
    display: flex;
  }
}