* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul, ol {
  list-style-type: none;
}

a {
  text-decoration: none;
  text-align: center;
  color: #000000;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;
  overflow: hidden;
  background-color: #000000;
}

.viewer-container,
.overview-container,
.gallery-container,
.surroundings-container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#productImage {
  width: 100%;
  transition: transform 0.1s ease-out; 
  height: 100%;
  object-fit: contain;
}

.overview-img,
.gallery-image,
.surroundings-image {
  width: 100%;
  transition: transform 0.1s ease-out; 
  height: 100%;
  object-fit: fill;
}

.btn {
  color: #ffffff;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  background-color: transparent;
  background-color: #000000;
  height: 35px;
  width: 35px;
}

.prevBtn, 
.nextBtn,
#galleryPrevBtn,
#galleryNextBtn {
  position: absolute;
  top: 50%;
}

.prevBtn,
#galleryPrevBtn {
  left: 2%;
}

.nextBtn,
#galleryNextBtn {
  right: 2%;
}

.svg-container {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.controls {
  background-color: gray;
  height: 50px;
  width: 100%;
  display: flex;
}

.overview,
.filters,
.surroundings,
.gallery,
.full-screen {
  width: calc(100% / 4);
  background-color: #000000;
  border: 1px solid #ffffff;
  outline: none;
  color: #ffffff;
  font-family: Roboto;
  cursor: pointer;
  background-image: none;
}

.active-control-btn {
  background-image: -webkit-linear-gradient(rgba(172, 29, 147, 0.1) 50%, rgba(48, 0, 109, 1) 100%); /* Safari 5.1 to 6.0 */
  background-image: -moz-linear-gradient(rgba(172, 29, 147, 0.1) 50%, rgba(48, 0, 109, 1) 100%); /* Firefox 3.6 to 15 */
  background-image: -o-linear-gradient(rgba(172, 29, 147, 0.1) 50%, rgba(48, 0, 109, 1) 100%); /* Opera 11.1 to 12.0 */
  background-image: linear-gradient(rgba(172, 29, 147, 0.1) 50%, rgba(48, 0, 109, 1) 100%); /* Standard syntax */
}

.filters-container {
  width: 100%;
  height: 250px;
  background-color: rgba(0, 0, 0, 0.5); 
  /* position: absolute;
  bottom: 51px;
  left: 0; */
  /* opacity: 0; 
  transform: translateY(100px); 
  transition: opacity 0.5s ease, transform 0.5s ease; 
  visibility: hidden;  */
  padding: 24px;
  display: flex;
  column-gap: 72px;
  z-index: 9;
  box-shadow: rgba(255, 255, 255, 1) 0px 1px 4px;
  display: none;
}

.filters-container-show {
  /* opacity: 1;
  transform: translateY(0); 
  visibility: visible;  */
  background-color: rgba(0, 0, 0, 0.5); 
  display: flex;
}

.status-container {
  display: none;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  row-gap: 14px;
}

.status-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: fit-content;
}

.available-btn,
.sold-btn,
.reserved-btn,
.mortgaged-btn,
.not-released-btn {
  padding: 8px;
  outline: none;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-align: center;
  font-family: Roboto;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.facing-list,
.type-list {
  display: flex;
  justify-content: space-evenly;
  width: 240px;
}

.filter-btn {
  height: 24px;
  width: 50px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: Roboto;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.status-title,
.facing-title,
.type-title,
.floor-title,
.area-title {
  font-size: 16px;
  color: #ffffff;
  font-weight: normal;
  letter-spacing: 1px;
}

.facing-container, 
.type-container {
  display: flex;
  flex-direction: column;
  height: 50%;
  justify-content: space-evenly;
}

.type-and-facing-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.active-btn {
  background-color: #ffffff;
  color: #000000 !important;
}

.status-indicators {
  display: flex;
  background-image: -webkit-linear-gradient(to right, 
                                          rgba(214, 214, 214, 0.1) 0%, 
                                          rgba(48, 0, 109, 0.4) 40%, 
                                          rgba(48, 0, 109, 0.6) 60%, 
                                          rgba(214, 214, 214, 0.1) 100%
                                          ); 

  background-image: -moz-linear-gradient(to right, 
                                        rgba(214, 214, 214, 0.1) 0%, 
                                        rgba(48, 0, 109, 0.4) 40%, 
                                        rgba(48, 0, 109, 0.6) 60%, 
                                        rgba(214, 214, 214, 0.1) 100%
                                        ); 

  background-image: -o-linear-gradient(to right, 
                                      rgba(214, 214, 214, 0.1) 0%, 
                                      rgba(48, 0, 109, 0.4) 40%, 
                                      rgba(48, 0, 109, 0.6) 60%, 
                                      rgba(214, 214, 214, 0.1) 100%
                                      ); 

  background-image: linear-gradient(to right, 
                                  rgba(214, 214, 214, 0.1) 0%, 
                                  rgba(48, 0, 109, 0.4) 40%, 
                                  rgba(48, 0, 109, 0.6) 60%, 
                                  rgba(214, 214, 214, 0.1) 100%
                                  );
  position: absolute;
  top: 64px;
  right: 24px;
  column-gap: 24px;
  padding: 8px;
  font-family: Roboto;
  border: 0;
}

.status-indicators li {
  position: relative; 
  padding-left: 16px; 
  color: #ffffff;
}

.status-indicators li::before {
  content: ""; 
  position: absolute; 
  left: 0; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 10px; 
  height: 10px;  
  border-radius: 50%; 
}

.status-indicators li[data-indicator="available"]::before {
  background-color: #00610a; 
}

.status-indicators li[data-indicator="booked"]::before {
  background-color: #ff0000; 
}

.status-indicators li[data-indicator="not available"]::before {
  background-color: #929292; 
}

.floor-range-inner-container,
.area-range-inner-container {
  --_marker-border-clr: #0EA5E9;
  --_marker-size: 35px;
  --_track-heigt: 3px;

  --_tooltip-bg-clr: rgba(0, 0, 0, 0.4);
  --_tooltip-txt-clr: var(--_marker-border-clr);
    
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

.area-slider-control,
.floor-slider-control {
  position: relative;
  width: 250px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 20px;
  height: 20px;
  background: #f7f7f7;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--_marker-border-clr);
  cursor: pointer;
}

input[type=range]::-moz-range-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 20px;
  height: 20px;
  background: #f7f7f7;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--_marker-border-clr);
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb:active {
  box-shadow: inset 0 0 3px #387bbe, 0 0 9px #387bbe;
  -webkit-box-shadow: inset 0 0 3px #387bbe, 0 0 9px #387bbe;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: var(--_track-heigt);
  width: 100%;
  position: absolute;
  background-color: var(--_marker-border-clr);
  pointer-events: none;
}

#areaFromSlider,
#floorFromSlider {
  height: 0;
  z-index: 1;
}

.area-range-slider-container,
.floor-range-slider-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 50%;
}

input[type="range"]::-webkit-slider-thumb::after {
  content: attr(value);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
}

input[type="range"]::-moz-range-thumb::after {
  content: attr(value);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
}

.area-and-floor-sliders-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.reset-filter {
  border: none;
  outline: none;
  width: 100px;
  height: 30px;
  border-radius: 4px;
  font-family: Roboto;
  cursor: pointer;
}

.hide {
  display: none;
}

.slider-tooltip {
  position: absolute;
  top: -3.5rem;
  left: 0;
  width: fit-content;
  color: #ffffff;
  font-size: 1rem;
  border-radius: 4px;
  text-align: center;
  translate: -50% 130%;
}

.toggle-container {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 9;
  display: block;
}

.toggle-container-hide {
  display: none;
}

.full-screen-container {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
}

.full-screen-container button {
  border: none;
  cursor: pointer;
  background-color: transparent;
}

.checkbox {
  opacity: 0;
  position: absolute;
}

.checkbox-label {
  background-color: #111;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fa-moon {color: #f1c40f;}

.fa-sun {color: #f39c12;}

.checkbox-label .ball {
  background-color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}

.loader-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.8);
}

.loader-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loader {
  width: 120px;
  height: 120px;
}

.loader-circle {
  fill: none;
  stroke: #3498db;
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.1s linear;
}

.loader-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}

.controls li {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
}

.viewer-container,
.gallery-container,
.surroundings-container {
  display: none;
}

.active-section {
  display: block !important;
}

@media screen and (max-width: 576px) and (orientation: portrait) {
  .controls span {
    display: none;
  }

  .filters-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 500px;
    row-gap: 24px;
  }

  .type-and-facing-container {
    height: 50%;
  }

  .area-and-floor-sliders-container {
    height: 50%;
  }
}

.filter-toggle-btn {
  position: absolute;
  top: -26px;
  left: 1px;
  border: none;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 8px;
  cursor: pointer;
  display: none;
  z-index: 99;
}

@media screen and (max-width: 991px) {
  .status-indicators {
    display: none;
  }
}

.footer {
  position: fixed;
  bottom: 1px;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) and (orientation: landscape) {
  .filters-container {
    column-gap: 0;
    justify-content: space-between;
  }
}

.draggable-model {
  position: fixed;
  left: 100px;
  top: 30px;
  z-index: 999;
  height: auto;
  width: 250px;
  border: none;
  background-color: rgba(0,0,0,0.6);
  padding: 18px;
  display: none;
  flex-direction: column;
  cursor: move;
  row-gap: 14px;
  border-radius: 8px;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
}

.model-active {
  display: flex;
}

.dialog-close-btn {
  border: none;
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
  align-self: flex-end;
}

.flat-details {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.flat-details h1 {
  font-size: 14px;
  color: #ffffff;
  font-family: Roboto;
  font-weight: normal;
  letter-spacing: 2px;
}

.flat-data {
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 14px;
}

.virtualtour {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.three-sixty-tour,
.balcony-view,
.apartment-plan {
  background-color:  #ffffff;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 50px;
  cursor: pointer;
  font-family: Roboto;
  padding: 6px 12px;
}

.three-sixty-tour,
.balcony-view {
  width: 100%;
}

.apartment-plan-image-wrapper {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 9999;
  background-color: rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.apartment-plan-image {
  height: 90%;
  width: 90%;
  object-fit: contain;
}

.apartment-plan-inactive {
  display: none;
}

.apartment-plan-active {
  display: flex;
}

#map {
    width: 100%;
    height: 100%;
}

.logo {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 99;
    width: 120px;
    max-height: 120px;
}

.marker-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    width: 272px;
    min-height: 160px;
    padding: 8px;
}

.marker-title {
    font-size: 16px;
    text-align: left;
    letter-spacing: 2px;
    font-weight: 400;
}

.marker-logo {
    height: 150px;
    width: 250px;
    object-fit: cover;
}

.marker-img {
    width: 256px;
    height: 144px;
    object-fit: cover;
    border-radius: 6px;
}

.marker-data {
    display: flex;
    justify-content: space-between;
}

.marker-distance,
.marker-time {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
}

.marker-description {
    width: 100%;
    letter-spacing: 1px;
    font-weight: 300;
    line-height: 20px;
    text-align: justify;
}

.map-filter-wrapper {
    position: fixed;
    right: 24px;
    bottom: 60px;
    display: flex;
    column-gap: 8px;
}

.markers-categories {
   display: flex;
   column-gap: 16px;
}

.markers-categories li {
    cursor: pointer;
    color: #ffffff;
}

.markers-list {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.markers-list li {
    color: #ffffff;
}

.map-filter {
    background-color: rgb(25, 25, 25);
    height: 300px;
    width: 250px;
    display: none;
    padding: 16px;
    flex-direction: column;
    row-gap: 24px;
    border-radius: 10px;
}

.map-filter-btn {
    outline: none;
    border: none;
    background-color: #EFA00B;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    align-self: flex-end;
}

.show-map-filter {
    display: flex;
}

.marker-header-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
}

.marker-name-heading,
.marker-distance-heading {
    width: 50%;
    padding: 4px;
    letter-spacing: 1px;
    font-size: 12px;
    line-height: 20px;
    font-family: Roboto;
    font-weight: 300;
    user-select: none;
}

.marker-distance-heading {
    text-align: right;
    text-overflow: ellipsis;
}

.marker-list-item {
    border-bottom: 1px dashed #ffffff;
}

.markers-list {
    overflow-x: hidden;
    overflow-y: auto;
}