/* Static equivalents of the archive's modal and carousel controls. */
[hidden] {
  display: none !important;
}

.archive-overlay-open {
  overflow: hidden;
}

.archive-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  overflow: auto;
  padding: 12px;
  background: rgba(0, 0, 0, .6);
  display: grid;
  place-items: center;
}

.archive-overlay__body {
  max-width: 100%;
  min-width: 0;
  max-height: 100%;
  outline: none;
}

.archive-overlay__body > .box-modal {
  display: block;
  box-sizing: border-box;
  max-width: calc(100vw - 44px);
}

.archive-overlay__body > .box-modal .modals_input {
  max-width: 100%;
}

.archive-overlay .box-modal_close img {
  display: block;
  width: 30px;
  height: 30px;
}

.archive-overlay .box-modal_close:has(img[data-archive-missing]) {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #333;
  color: white;
  text-align: center;
  font: 24px/30px Arial, sans-serif;
}

.archive-overlay .box-modal_close:has(img[data-archive-missing])::after {
  content: '×';
}

.archive-overlay .box-modal_close img[data-archive-missing] {
  display: none;
}

.archive-gallery {
  position: relative;
  margin: 0;
  padding: 5px;
  background: white;
  border-radius: 4px;
}

.archive-gallery__image {
  display: block;
  max-width: calc(100vw - 34px);
  max-height: calc(100vh - 84px);
  object-fit: contain;
}

.archive-gallery__caption {
  padding: 5px 30px 0 4px;
  color: #333;
}

.archive-gallery__close,
.archive-gallery__prev,
.archive-gallery__next,
.archive-hero__prev,
.archive-hero__next {
  border: 0;
  cursor: pointer;
  color: white;
  background: rgba(0, 0, 0, .42);
  font: 30px/1 Arial, sans-serif;
}

.archive-gallery__close,
.archive-gallery__prev,
.archive-gallery__next {
  position: absolute;
  width: 34px;
  height: 34px;
}

.archive-gallery__close {
  top: 5px;
  right: 5px;
}

.archive-gallery__prev,
.archive-gallery__next {
  top: calc(50% - 17px);
}

.archive-gallery__prev {
  left: 5px;
}

.archive-gallery__next {
  right: 5px;
}

.archive-hero {
  position: relative;
}

.archive-hero > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-hero > .sm_slider-inner {
  overflow: hidden;
}

.archive-hero__original-pager button {
  border: 0;
  background: transparent;
  box-sizing: content-box;
}

#sm_slider .archive-hero__original-pager {
  transform: translateX(-50%);
  margin-left: 0;
}

.archive-hero__prev,
.archive-hero__next {
  position: absolute;
  top: 50%;
  z-index: 3;
  padding: 2px 8px 6px;
  transform: translateY(-50%);
}

.archive-hero__prev {
  left: 0;
}

.archive-hero__next {
  right: 0;
}

#land_slider .archive-hero__prev,
#land_slider .archive-hero__next {
  z-index: 3;
  width: 56px;
  height: 56px;
  padding: 0;
  margin-top: 0;
  background: transparent;
}

#land_slider .archive-hero__prev {
  left: 110px;
}

#land_slider .archive-hero__next {
  right: 110px;
}

#land_slider .archive-hero__controls svg {
  display: block;
  width: 100%;
}

@media (max-width: 767px) {
  #land_slider .archive-hero__prev {
    left: 15px;
  }

  #land_slider .archive-hero__next {
    right: 15px;
  }

  #land_slider .archive-hero__prev,
  #land_slider .archive-hero__next {
    width: 32px;
    height: 32px;
  }
}

.archive-hero__pager {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.archive-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid white;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.archive-hero__dot[aria-current="true"] {
  background: white;
}

.archive-photo-carousel .bx-viewport {
  overflow: hidden;
}

.archive-photo-carousel .bxslider {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-photo-carousel .bxslider img {
  max-width: 100%;
  display: block;
  margin-inline: auto;
}

.archive-photo-carousel .bx-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.archive-photo-carousel .archive-photo-carousel__dot {
  width: 10px;
  height: 10px;
  background: #666;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.archive-photo-carousel .archive-photo-carousel__dot.active {
  background: #111;
}

.archive-photo-carousel .bx-controls-direction button {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, .55);
  padding: 0;
  font: 26px/1 Arial, sans-serif;
  cursor: pointer;
}

.archive-photo-carousel .bx-prev {
  left: 10px;
}

.archive-photo-carousel .bx-next {
  right: 10px;
}

.archive-map-frame {
  display: inline-block;
  position: relative;
  max-width: 100%;
}

.archive-map-frame > img {
  max-width: 100%;
  height: auto;
  display: block;
}

.archive-map-highlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.archive-area-active {
  z-index: 2;
  visibility: visible !important;
}

.archive-plan-close {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, .55);
  color: white;
  font: 27px/1 Arial, sans-serif;
  cursor: pointer;
}

.display-none[aria-modal="true"] {
  transition: none;
}

.archive-section-list .widget_selection_apartments {
  display: block;
}

@media (max-width: 767px) {
  .archive-section-list .widget_selection_apartments_filter_main {
    height: auto;
    padding: 12px;
  }

  .archive-section-list .widget_selection_apartments_filter__left,
  .archive-section-list .widget_selection_apartments_filter__area__slider,
  .archive-section-list .widget_selection_apartments_filter__input {
    position: static;
    width: 100%;
    float: none;
  }

  .archive-section-list .widget_selection_apartments_filter__area__title {
    width: auto;
    float: none;
  }

  .archive-section-list .widget_selection_apartments_form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .archive-section-list .grid-view {
    overflow-x: auto;
  }

  .archive-section-list .widget_selection_apartments_table tbody td,
  .archive-section-list .widget_selection_apartments_table thead th {
    padding-inline: 5px;
  }
}

.archive-area-range {
  position: relative;
  height: 8px;
  margin-block: 9px;
  border-radius: 4px;
  background: linear-gradient(to right,
    #eee 0 var(--range-min), #e1a95d var(--range-min) var(--range-max), #eee var(--range-max) 100%);
}

.archive-area-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 8px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.archive-area-range input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #c78d42;
  appearance: none;
  background: #f7ce94;
  pointer-events: auto;
  cursor: ew-resize;
}

.archive-area-range input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #c78d42;
  background: #f7ce94;
  pointer-events: auto;
  cursor: ew-resize;
}

.js_scroll_pane {
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  .sm_slide.active .slide-inner,
  #land_slider .slick-active .slide-bg {
    animation: none;
  }
}
