
/*MODAL*/
.omg-modal {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.8s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.omg-modal.active {
  opacity: 1;
}

.omg-modal__content {
  position: relative;
  background: var(--orange);
  max-height: 80vh;
  overflow-y: scroll;
  padding: 20px;

  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}

@media screen and (max-width: 600px) {
  .omg-modal,
  .omg-modal__content {
    padding: 0;
  }
  .omg-modal__content {
    max-height: 100vh;
  }
  .omg-modal {
    background-color: #f5f1eb;
  }
}

.omg-modal__content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.omg-modal__content__close_btn {
  position: absolute;
  right: 36px;
  top: 36px;
  cursor: pointer;
}
.omg-modal__content__close_btn line {
  stroke: #000;
}

.omg-modal.contact-modal.active .omg-modal__content .hbspt-form form {
  padding-bottom: 0;
}
.omg-modal.contact-modal.active .omg-modal__content {
  background: #000;
  border-radius: 20px;
  padding: 50px;
}
@media screen and (max-width: 767px) {
  .omg-modal.contact-modal.active .omg-modal__content .wp-block-heading {
    font-size: 35px;
  }
}

/* ============================================
   RESIDENCE MODAL
   ============================================ */

.residence-modal-content {
  background: #F5F1EC;
  max-width: 1400px;
  width: 100%;
}

.residence-details {
  display: flex;
  gap: 80px;
  padding: 60px;
}

.residence-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.residence-title {
  font-family: 'Linden Hill', serif;
  font-size: 40px;
  font-weight: normal;
  color: #361610;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.residence-subtitle {
  font-family: 'Paralucent Text', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1.43px;
  text-transform: uppercase;
  color: #361610;
  margin: 0 0 20px 0;
  line-height: 1.8;
}

.download-floor-plan {
  font-family: 'Paralucent Text', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1.43px;
  text-transform: uppercase;
  color: #361610;
  text-decoration: underline;
  margin-bottom: 40px;
  display: inline-block;
  width: fit-content;
}

.download-floor-plan:hover {
  opacity: 0.7;
}

.residence-description {
  flex: 1;
  margin-bottom: 40px;
	display: flex;
	align-items: flex-end;
}

.residence-description p {
  font-family: 'Paralucent Text', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: #361610;
  margin: 0;
}

.inquire-button {
  font-family: 'Paralucent Text', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #361610;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 25px;
  width: fit-content;
  transition: gap 0.5s ease;
  border-bottom: 1px solid #361610;
  padding-bottom: 2px;
}

.inquire-button:hover {
  text-decoration: none;
  gap: 10px;
}

.inquire-button .arrow {
  font-size: 18px;
  border-bottom: none;
}

.residence-floor-plan {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.residence-floor-plan img {
  width: auto;
  height: auto;
  display: block;
  max-height: 75vh;
}

@media screen and (max-width: 767px) {
  .residence-floor-plan img {
    max-height: 60vh;
  }
}

/* ============================================
   RESIDENCE MODAL - RESPONSIVE
   ============================================ */

@media screen and (max-width: 1024px) {
  .residence-details {
    gap: 40px;
    padding: 40px;
  }

  .residence-title {
    font-size: 36px;
  }

  .omg-modal__content__close_btn {
    right: 30px;
    top: 30px;
  }
  .omg-modal__content__close_btn svg {
    width: 25px;
    height: 25px;
  }
}

@media screen and (max-width: 767px) {
  .residence-details {
    flex-direction: column;
    gap: 30px;
    padding: 30px;
  }

  .residence-title {
    font-size: 28px;
  }

  .residence-floor-plan {
    order: -1;
  }

  .omg-modal__content__close_btn {
    right: 25px;
    top: 25px;
  }
  .omg-modal__content__close_btn svg {
    width: 20px;
    height: 20px;
  }
}