::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background-color: #F3E299;
  border-radius: 10px;
}

#galleryItemsList::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

#galleryItemsList::-webkit-scrollbar-track {
  background: transparent;
}

#galleryItemsList::-webkit-scrollbar-thumb {
  background-color: #F3E299; 
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

#galleryItemsList::-webkit-scrollbar-thumb:hover {
  background-color: #F3E299; 
}

.device-rotation {
  display: none;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .device-rotation {
    display: flex;
  }
}

.gm-style .gm-style-iw-c {
  background: rgba(0,0,0,0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px !important;
  border: 3px solid #BE9B42 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  transform-origin: top center;
  transition: transform 0.2s ease;
  padding: 12px !important;
}

/* Inner content */
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}

.gm-style .gm-ui-hover-effect span { 
  background-color: #BE9B42 !important; 
  padding: 0 !important;
}

.gm-ui-hover-effect {
  height: 36px !important;
  width: 36px !important;
  padding: 0 !important;
  bottom: 9px !important;
}

.gm-style-iw-c {
  
}

/* TOGGLE BASE */
#themeSwitch {
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 4px rgba(255,255,255,0.05);
}

#toggleBg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  transition: all 0.4s ease;
}

.day-mode #toggleBg {
  background: #ffffff;
}

.night-mode #toggleBg {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

#themeActivePill {
  position: absolute;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.night-mode #themeActivePill {
  left: 2px;
}

.day-mode #themeActivePill {
  left: 34px;
}

#dayInner,
#nightInner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

#themeActivePill svg {
  width: 18px;
  height: 18px;
}

.day-mode #dayInner {
  opacity: 1;
}

.day-mode #nightInner {
  opacity: 0;
}

.night-mode #dayInner {
  opacity: 0;
}

.night-mode #nightInner {
  opacity: 1;
}

.toggle-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.toggle-circles::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: 7px;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
}

.night-mode .toggle-circles::before {
  left: calc(100% - 26px);
}

.day-mode .toggle-circles::before {
  background: #fde68a;   
  border: 3px solid #f59e0b;
  left: 6px; 
}