html, body {
  background-color: #18212c !important;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(171, 170, 170);
  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; 
}

/* Default visible */
.heading-desktop {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Hide or fade out when overlay is active */
body.overlay-active .heading-desktop {
  opacity: 0;
  pointer-events: none;
}

.device-rotation {
  display: none;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .device-rotation {
    display: flex;
  }
}

[id^="Villa_"]:active polygon {

    fill: rgba(255, 255, 0, 0.45) !important; 
    stroke-width: 4; 
    stroke-opacity: 1; 
}

[id^="Villa_"].active polygon,
[id^="Villa_"].selected polygon {
    
    fill: rgba(255, 255, 255, 0.4) !important; 
    stroke: #ffffff;
    stroke-width: 4; 
    stroke-opacity: 1;
}

[id^="Villa_"].active:hover polygon,
[id^="Villa_"].selected:hover polygon {
    fill: rgba(255, 255, 255, 0.5) !important; 
}

[id^="Villa_"]:hover polygon {
    fill: rgba(0, 200, 200, 0.35) !important;
    stroke: #fff;
    stroke-width: 3;
    stroke-opacity: 1;
}

#master-svg [id^="Villa_"] polygon {
    fill: transparent; 
    stroke: #fff; 
    stroke-width: 2px;
    stroke-opacity: 0.6;
    vector-effect: non-scaling-stroke; 
    cursor: pointer;
    transition: opacity .2s, fill .2s, stroke-opacity .2s;
}

/* Add an explicit hover style */
#master-svg [id^="Villa_"]:hover polygon {
    fill: rgba(0, 255, 255, 0.15); 
    opacity: 1;
    stroke-opacity: 1;
}

@media screen and (max-width: 1024px) {
    [id^="Villa_"] polygon {
        stroke: transparent !important;
        stroke-width: 0 !important;
        stroke-opacity: 0 !important;
    }
    
    [id^="Villa_"]:hover polygon {
        stroke: transparent !important;
        stroke-width: 0 !important;
        stroke-opacity: 0 !important;
    }
}

/* =========================
   PAGE TRANSITIONS
   ========================= */

/* Default page state */
body {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.page-exit {
  opacity: 0;
  transform: translateY(10px);
}

body.page-enter {
  opacity: 0;
  transform: translateY(12px);
  animation: pageFadeIn 0.55s ease forwards;
}

@keyframes pageFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MENU / FEATURES PANEL
   ========================= */

#featuresMenu {
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}

#featuresMenu.is-open {
  transform: translateX(0);
}

.menu-icon-shell {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all .25s ease;
}

#featuresList a:hover .menu-icon-shell {
  background: rgba(142, 203, 255, 0.12);
  border-color: rgba(142, 203, 255, 0.30);
}

.menu-icon-btn i.fa-bars {
  transform: translateY(-1px);
  display: inline-block;
}

/* ======================================================
   MOBILE LANDSCAPE SCALEDOWN
   ====================================================== */
@media (max-height: 520px) and (orientation: landscape) {

  #projectVideoBtn,
  #phoneBtn,
  #shareButton,
  #menuBtn,
  #fullScreenWrapper {
    height: 24px !important;
    width: 24px !important;
  }
  #projectVideoBtn svg {
    width: 50% !important;
    height: 50% !important;
  }
  #phoneBtn i,
  #shareButton i,
  #menuBtn i,
  #fullScreenBtn i,
  #exitScreenBtn i {
    font-size: 9px !important;
  }
  #buttonGroup a {
    width: 20px !important;
    height: 20px !important;
    font-size: 9px !important;
  }

  #featuresMenu {
    width: 56px !important;
    padding: 6px !important;
  }
  #featuresMenu .flex-col {
    gap: 8px !important;
  }
  #featurePanelCloseBtn {
    height: 20px !important;
    width: 20px !important;
  }
  #featurePanelCloseBtn i {
    font-size: 9px !important;
  }
  #featuresList ul {
    gap: 8px !important;
  }
  #featuresList .menu-icon-shell {
    height: 22px !important;
    width: 22px !important;
  }
  #featuresList .menu-icon-shell img {
    height: 11px !important;
    width: 11px !important;
  }
  #featuresList p {
    font-size: 7.5px !important;
  }

}