.ms-search-3d-wrapper {
  width: 100%;
  display: block;
  position: relative;
}

.ms-search-3d-app {
  display: block !important;
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.ms-search-3d-app .main_image {
  width: 100%;
  height: auto;
  margin: 0;
}

.ms-search-3d-app .disabled_buildings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ms-search-3d-app .disabled_buildings canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.ms-investment-mobile-buildings {
  display: none;
  margin: 18px 0 8px;
}

.ms-investment-mobile-buildings .ms-building-view__floor-list {
  width: 100%;
}

.ms-investment-mobile-buildings .ms-building-view__floor-list li.is-disabled .ms-building-view__floor-link {
  background: #f2f2f2;
  color: #8d8d8d;
  cursor: default;
  pointer-events: none;
}

.ms-garages-3d-app {
  position: relative;
}

.ms-garages-3d-app .ms-garage-map {
  width: 100%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.ms-garages-3d-app .ms-garage-map img {
  width: auto;
  max-width: 100%;
}

.ms-garages-3d-app .ms-garage-map img.smaller {
  max-height: 85vh;
}

.ms-garages-3d-app .disabled_flats {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: flex;
  pointer-events: none;
  justify-content: center;
}

.ms-garages-3d-app .disabled_flats canvas {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.ms-building-view {
  margin-top: 24px;
}

.ms-building-view__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ms-building-view__media {
  position: relative;
  display: block;
}

.ms-building-view__side-nav {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 8;
  width: 190px;
  padding: 24px 0 24px 0;
  background: unset;
  display: flex;
  align-items: center;
}

.ms-building-view__actions button {
  padding: 6px 10px;
}

.ms-building-view__image {
  position: relative;
  width: 100%;
}

.ms-building-view__image img {
  width: 100%;
  height: auto;
  display: block;
}

.ms-building-view__hover-canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.ms-building-view__floor-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 138px;
  max-width: 100%;
}

.ms-building-view__floor-list li {
  margin: 0;
}

.ms-building-view__floor-link {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: unset;
  background: #fff;
  color: #2f2f2f;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.ms-building-view__floor-link:hover,
.ms-building-view__floor-link:focus {
  border-color: #e6ba16;
  background: #f1c318;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.ms-building-view__floor-list .is-active .ms-building-view__floor-link,
.ms-building-view__floor-list .is-hover-floor .ms-building-view__floor-link {
  border-color: #e6ba16;
  background: #f1c318;
  color: #fff;
  box-shadow: unset;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .ms-investment-mobile-buildings {
    display: block;
  }

  .ms-investment-mobile-buildings .ms-building-view__floor-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ms-investment-mobile-buildings .ms-building-view__floor-list li {
    flex: initial;
  }

  .ms-investment-mobile-buildings .ms-building-view__floor-link {
    padding: 12px 10px;
    background: #fff;
    border: 1px solid #e6e6e6;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    box-shadow: none;
  }

  .ms-building-view__media {
    position: static;
    display: flex;
    flex-direction: column;
  }

  .ms-building-view__side-nav {
    position: static;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    padding: 0;
    background: transparent;
    flex: 0 0 auto;
  }

  .ms-building-view__floor-list {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ms-building-view__floor-list li {
    flex: 1 1 160px;
  }

  .ms-building-view__floor-link {
    text-align: center;
  }
}

.ms-offer-table-section {
  margin-top: 42px;
}

.ms-offer-table-section__header {
  margin: 0 0 12px;
}

.ms-offer-table-section__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
}

.ms-static-offer-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.ms-static-offer-table {
  padding-top: 0;
  border-top: 0;
}

.ms-static-offer-table .flats_table__head > div,
.ms-static-offer-table .flats_table__body td {
  cursor: default;
}

.ms-static-offer-table .flats_table__body {
  margin-bottom: 0;
}

.ms-offer-table-section--lokale .flats_table__body {
  margin-top: 0;
}

.ms-offer-table-section.ms-offer-table-section--garages .flats_table__body {
  margin-top: 50px;
}

.ms-static-offer-table.ms-static-offer-table--assets .flats_table__head > div[data-column=nr],
.ms-static-offer-table.ms-static-offer-table--assets .flats_table__body td[data-col-in-column=nr] {
  width: 34%;
  text-align: left;
}

.ms-static-offer-table.ms-static-offer-table--assets .flats_table__head > div[data-column=floor],
.ms-static-offer-table.ms-static-offer-table--assets .flats_table__body td[data-col-in-column=floor] {
  width: 14%;
}

.ms-static-offer-table.ms-static-offer-table--assets .flats_table__head > div[data-column=surface],
.ms-static-offer-table.ms-static-offer-table--assets .flats_table__body td[data-col-in-column=surface] {
  width: 12%;
}

.ms-static-offer-table.ms-static-offer-table--assets .flats_table__head > div[data-column=status],
.ms-static-offer-table.ms-static-offer-table--assets .flats_table__body td[data-col-in-column=status] {
  width: 18%;
}

.ms-static-offer-table.ms-static-offer-table--assets .flats_table__head > div[data-column=price],
.ms-static-offer-table.ms-static-offer-table--assets .flats_table__body td[data-col-in-column=price] {
  width: 22%;
}

#ms_search_3d_popup {
  position: fixed;
  z-index: 120;
  min-width: 220px;
  max-width: 320px;
  background: #272727;
  color: #fff;
  padding: 18px 20px 14px;
  border-radius: 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  transform: translate(18px, 20px);
}

#ms_search_3d_popup.active {
  opacity: 1;
}

#ms_search_3d_popup::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 36px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #272727;
}

#ms_search_3d_popup .ms-hover-tooltip {
  display: block;
}

#ms_search_3d_popup .ms-hover-tooltip__label {
  display: inline-block;
  margin: -14px 0 12px;
  padding: 4px 12px;
  background: #ebb318;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: auto;
  min-height: 0;
  writing-mode: horizontal-tb;
}

#ms_search_3d_popup .ms-hover-tooltip__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.35;
  color: #fff;
}

#ms_search_3d_popup .ms-hover-tooltip__row strong {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
