/* Swiper CSS */
.property-sliders-wrapper {
  --swiper-scrollbar-height: 5px;
  --lightbox-swiper-thumbs-height: 103px;
}

/* Swiper Height */
.property-sliders-wrapper .swiper {
  height: 100%;
}

/* Prev/Next buttons */
.property-sliders-wrapper .swiper .swiper-button-prev,
.property-sliders-wrapper .swiper .swiper-button-next {
  --swiper-navigation-size: 18px;
  color: var(--e-global-color-secondary);
  width: calc(var(--swiper-navigation-size) * 3);
  height: calc(var(--swiper-navigation-size) * 3);
  background: #00000080;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  margin: 0;
  transform: translate(0, -50%);
}
.property-sliders-wrapper .swiper .swiper-button-prev:not(.swiper-button-disabled):hover,
.property-sliders-wrapper .swiper .swiper-button-next:not(.swiper-button-disabled):hover {
  color: var( --e-global-color-accent );
}
.property-sliders-wrapper .swiper[data-scrollbar="true"] .swiper-button-prev,
.property-sliders-wrapper .swiper[data-scrollbar="true"] .swiper-button-next {
  margin-top: calc(0px - var(--space-between-slides));
}

/* Scroll bar */
.property-sliders-wrapper .swiper-scrollbar.swiper-scrollbar-horizontal {
  height: var(--swiper-scrollbar-height);
}
.property-sliders-wrapper .swiper[data-scrollbar="true"] .swiper-wrapper {
  height: calc(100% - var(--space-between-slides) - var(--swiper-scrollbar-height));
}
.property-sliders-wrapper .swiper-scrollbar {
  bottom: 0 !important;
}
.property-sliders-wrapper .swiper-scrollbar-drag {
  background: var(--e-global-color-accent);
  cursor: grab;
}

/* Bullets */
.property-sliders-wrapper .swiper-pagination-bullets {
  bottom: calc(var(--swiper-scrollbar-height) + var(--space-between-slides) * 2) !important;
}
.property-sliders-wrapper .swiper-pagination-bullets .swiper-pagination-bullet {
  background: var( --e-global-color-secondary );
  opacity: 1;
}
.property-sliders-wrapper .swiper-pagination-bullets .swiper-pagination-bullet-active {
  background: var(--e-global-color-accent);
}

/* Swiper wrapper */
.property-sliders-wrapper .swiper-wrapper {
  cursor: grab;
}





/* Main Properties Slider */
.main-properties-slider {
  min-height: 300px;
  position: relative;
  padding: 35% 0 0;
}
.main-properties-slider .swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.main-properties-slider .swiper .swiper-slide {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(calc(50% - (var(--space-between-slides) / 2)), 1fr));
  gap: var(--space-between-slides);
  grid-auto-flow: column;
}
.main-properties-slider .swiper .swiper-slide .swiper-slide-image {
  height: 100% !important;
  width: 100% !important;
  cursor: pointer;
  position: relative;
  background: rgba(255,255,255,0.25);
}
.main-properties-slider .swiper .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  position: absolute;
  left: 0;
  top: 0;
}



/* Lightbox Swiper */
.lightbox-swiper {
  min-height: 500px;
  height: calc(100% - var(--lightbox-swiper-thumbs-height) - var(--space-between-slides));
  margin-bottom: var(--space-between-slides);
}
.lightbox-swiper .swiper-slide img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  position: absolute;
  left: 0;
  top: 0;
}



/* Lightbox Thumbs */
.lightbox-swiper-thumbs {
  height: var(--lightbox-swiper-thumbs-height);
}
.lightbox-swiper-thumbs .swiper-slide {
  width: auto;
}
.lightbox-swiper-thumbs .swiper-slide img {
  height: 100%;
  width: auto;
}
.lightbox-swiper-thumbs .swiper-slide.swiper-slide-thumb-active img {
  outline: 2px solid var(--e-global-color-accent);
  outline-offset: -2px;
}








.custom-lightbox-overlay {
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.custom-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.custom-lightbox {
  width: 90%;
  height: 90vh;
  height: 90dvh;
  background: #000;
  padding: 2em;
  position: relative;
  transform: scale(0.75);
  transition: transform 0.3s ease;
  overflow-y: scroll;
}
.custom-lightbox-overlay.active .custom-lightbox {
  transform: scale(1);
}



/* Custom Scrollbar */
.custom-lightbox::-webkit-scrollbar {
  width: 5px;
}
.custom-lightbox::-webkit-scrollbar-track {
  background: #141414;
  border-radius: 6px;
}
.custom-lightbox::-webkit-scrollbar-thumb {
  background-color: var( --e-global-color-accent );
  border-radius: 6px;
  border: 3px solid var( --e-global-color-secondary ); /* gives padding effect */
}
.custom-lightbox::-webkit-scrollbar-thumb:hover {
  background-color: var( --e-global-color-accent );
}
/* Firefox */
.custom-lightbox {
  scrollbar-width: thin; /* "auto", "thin", or "none" */
  scrollbar-color: var( --e-global-color-accent ) #141414; /* thumb and track colors */
}



/* Close button */
.custom-lightbox-close {
  position: absolute;
  top: 1em;
  right: 1em;
  width: 3em;
  height: 3em;
  border: 1px solid var(--e-global-color-secondary);
  color: white !important;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.custom-lightbox-close svg {
  width: 1em;
  height: 1em;
  fill: #fff;
  transition: fill 0.3s ease;
}
.custom-lightbox-close:hover {
  border-color: var(--e-global-color-accent);
  color: var(--e-global-color-accent) !important;
}
.custom-lightbox-close:hover svg {
  fill: var(--e-global-color-accent);
}

@media (max-width: 767px) {
  .custom-lightbox {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0 0 32px;
  }
}





body.no-scroll {
  overflow: hidden !important;
}