/* [Object] Modal
 * =============================== */
.modal__body {
  visibility: hidden;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: left;
  transition: opacity 0.25s ease;
  display: none;
}

.modal__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
}

.modal-state {
  display: none;
}

.modal__body.open {
  visibility: visible;
  display: block;
  z-index: 100;
}
.modal__body.close {
  visibility: hidden;
}

.modal__inner {
  transition: top 0.25s ease;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  /* background: #fff; */
}

.modal__close {
  position: absolute;
  right: 1.3em;
  top: 1em;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.modal__close:after,
.modal__close:before {
  content: "";
  position: absolute;
  width: 2px;
  height: 1.5em;
  background: #ccc;
  display: block;
  transform: rotate(45deg);
  left: 50%;
  margin: -3px 0 0 -1px;
  top: 0;
}

.modal__close:hover:after,
.modal__close:hover:before {
  background: #aaa;
}

.modal__close:before {
  transform: rotate(-45deg);
}

#result {
  /* padding: 40px 0; */
  background: #fff;
  width: 100%;
  min-height: 1000px;
}

.MuiDialog-root, .iframe-container iframe .MuiDialog-root {
  inset: 0px 0px 0px 0 !important;
}

/* Rechat SDK search results mounted inside the existing MLS modal */
.rechat-modal-result {
  background: #fff;
  width: 100%;
  min-height: 1000px;
}

.rechat-modal-search-root {
  display: block;
  width: 100%;
  min-height: 1000px;
  color: var(--container-text-color, #304545);
}

.rechat-modal-filter-toolbar {
  width: 100%;
  padding: 24px 40px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rechat-modal-listings-layout {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(360px, 58%);
  width: 100%;
  height: 1000px;
  min-height: 1000px;
  background: #fff;
}

.rechat-modal-map-column {
  min-width: 0;
  height: 100%;
  min-height: 1000px;
  overflow: hidden;
  background: #f5f5f5;
}

.rechat-modal-map-column rechat-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 1000px;
}

.rechat-modal-results-column {
  min-width: 0;
  height: 100%;
  min-height: 1000px;
  overflow: auto;
  padding: 24px 32px 40px;
  background: #fff;
}

.rechat-modal-results-column rechat-listings-count {
  display: block;
  margin-bottom: 20px;
}

.rechat-modal-results-column rechat-map-listings-grid {
  display: block;
}

.rechat-modal-results-column rechat-listings-pagination {
  display: block;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .rechat-modal-filter-toolbar {
    padding: 18px 18px 12px;
  }

  .rechat-modal-listings-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .rechat-modal-map-column {
    height: 360px;
    min-height: 360px;
  }

  .rechat-modal-map-column rechat-map {
    height: 360px;
    min-height: 360px;
  }

  .rechat-modal-results-column {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 20px 18px 32px;
  }
}
