@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --primary-orange-color: #e36900;
  --secondary-orange-color: #fcf0e6;
  --white-color: #ffffff;
  --shadow-color: #00000026;
  --text-black-color: #000000;
  --filter-white: brightness(0) invert(1);
  --border-color: #e2e2e2;
  --line-color: #d6d6d6;
  --placeholder-color: #a3a3a3;
  --overlay-dark-color: rgba(0, 0, 0, 0.4);
  --green-color: #40c74a;
}

div.custom_skeleton {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: calc(100dvh - 180px);
  background-color: var(--border-color);
  position: relative;
}

div.custom_skeleton div.skeleton::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
  background-image: -webkit-gradient(
    linear,
    left top,
    right top,
    color-stop(0, rgba(255, 255, 255, 0)),
    color-stop(20%, rgba(255, 255, 255, 0.2)),
    color-stop(60%, rgba(255, 255, 255, 0.5)),
    to(rgba(255, 255, 255, 0))
  );
  background-image: -o-linear-gradient(
    left,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0)
  );
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.2) 10%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0)
  );
  -webkit-animation: shimmer 3s infinite;
  animation: shimmer 3s infinite;
  content: "";
}

section.custom_detail * {
  box-sizing: border-box;
  accent-color: var(--primary-orange-color);
  font-family: "Rubik", sans-serif;
}

section.custom_detail p {
  padding: 0;
  margin-bottom: 0;
}

section.custom_detail {
  display: grid;
  grid-template-columns: 60% 1fr;
  column-gap: 40px;
  position: relative;
  width: 80dvw;
  margin: 0 auto;
  padding: 40px 0;
  height: 100%;
}

section.custom_detail div.info_detail {
  display: flex;
  flex-direction: column;
}

section.custom_detail div.info_detail a.back {
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  width: fit-content;
  color: var(--text-black-color);
}

section.custom_detail div.info_detail a.back img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transform: rotate(90deg);
}

section.custom_detail div.info_detail div.detail_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

section.custom_detail div.info_detail div.detail_title img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

section.custom_detail div.info_detail div.detail_title div * {
  padding: 0;
  margin: 0;
  display: inline-block;
}

section.custom_detail div.info_detail div.detail_title div span {
  height: 40px;
  line-height: 40px;
  color: var(--primary-orange-color);
  border-radius: 6px;
  padding: 0 10px;
  box-shadow: 0px 0px 20px 0px var(--shadow-color);
  font-weight: 500;
  font-size: 20px;
}

section.custom_detail div.info_detail div.detail_title div span img {
  margin-right: 5px;
}

section.custom_detail div.info_detail div.detail_title div span.purchase {
  color: var(--white-color);
  background: var(--primary-orange-color);
}

section.custom_detail div.info_detail div.detail_title div p {
  padding: 0 20px;
}

section.custom_detail div.info_detail div.detail_title div p strong {
  padding-left: 5px;
}

section.custom_detail div.info_detail div.detail_title div strong {
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  color: var(--text-black-color);
}

section.custom_detail div.info_detail div.detail_title div h4 {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 32px;
  color: var(--text-black-color);
}

section.custom_detail div.info_detail div.detail_title button.shared_property {
  display: flex;
  align-items: center;
  column-gap: 10px;
  color: var(--text-black-color);
  font-weight: 400;
  font-size: 16px;
  border: none;
  outline: none;
}

section.custom_detail
  div.info_detail
  div.detail_title
  button.shared_property:hover,
section.custom_detail
  div.info_detail
  div.detail_title
  button.shared_property:focus {
  background: none;
  border: none;
  outline: none;
}

section.custom_detail div.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 10px;
  overflow: hidden;
  border-radius: 10px;
}

section.custom_detail div.gallery > a {
  height: 200px;
  width: 100%;
}

section.custom_detail div.gallery a:first-child {
  grid-column-start: 1;
  grid-column-end: 5;
  height: 400px;
}

section.custom_detail div.gallery > a img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

section.custom_detail ul.principal_amenities {
  background: var(--border-color);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1px;
  padding: 1px;
  list-style: none;
  height: 60px;
  margin-top: 30px;
  margin-bottom: 30px;
}

section.custom_detail ul.principal_amenities li {
  background: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
}

section.custom_detail ul.principal_amenities li p {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-black-color);
  padding: 0;
  margin: 0;
}

section.custom_detail ul.principal_amenities li p strong {
  font-weight: 700;
  font-size: 20px;
  display: block;
}

section.custom_detail ul.principal_amenities li img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

section.custom_detail div.description {
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

section.custom_detail div.description h5,
section.custom_detail div.characteristics h5,
section.custom_detail div.location h5 {
  color: var(--primary-orange-color);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 20px 0;
}

section.custom_detail ul.list_amenities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

section.custom_detail ul.list_amenities li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 20px;
}

section.custom_detail ul.list_amenities li p {
  padding: 0;
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-black-color);
}

section.custom_detail ul.list_amenities li p strong {
  display: block;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
}

section.custom_detail ul.list_amenities li img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

section.custom_detail div.characteristics {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

section.custom_detail div.characteristics ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
}

section.custom_detail div.characteristics ul li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 20px;
  font-weight: 400;
  font-size: 20px;
  width: 100%;
}

section.custom_detail div.characteristics ul li img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

section.custom_detail div.location {
  padding: 20px 0;
}

section.custom_detail div.location div#map {
  height: 300px;
  width: 100%;
  border-radius: 10px;
  background: var(--border-color);
}

section.custom_detail div.location div#map button:focus {
  background: none;
}

section.custom_detail div.custom_form_detail {
  position: sticky;
  top: 140px;
  height: calc(100dvh - 100px);
}

section.custom_detail div.custom_form_detail button.open_whatsapp {
  background: var(--green-color);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--white-color);
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
  border: none;
  outline: none;
  margin-top: 40px;
}

section.custom_detail div.custom_form_detail button.open_whatsapp:hover,
section.custom_detail div.custom_form_detail button.open_whatsapp:focus {
  border: none;
  outline: none;
}

section.custom_detail div.custom_form_detail button.open_whatsapp img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* SHARED MODAL */

section.custom_shared {
  background: var(--overlay-dark-color);
  position: fixed;
  width: 100dvw;
  height: 100dvh;
  top: 0;
  left: 0;
  place-content: center;
  z-index: 9999;
}

section.custom_shared.show {
  display: grid;
}

section.custom_shared.hide {
  display: none;
}

section.custom_shared > div {
  width: 500px;
  height: 200px;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0px 0px 20px 0px var(--shadow-color);
}

section.custom_shared div div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
}

section.custom_shared div h4 {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-black-color);
  margin: 0;
}

section.custom_shared div div button,
section.custom_shared div div button:hover,
section.custom_shared div div button:focus {
  background: none;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  height: 22px;
  width: 22px;
}

section.custom_shared div div button img {
  height: 22px;
  width: 22px;
  object-fit: contain;
}

section.custom_shared div ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

section.custom_shared div ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
  font-weight: 400;
  font-size: 14px;
  width: 100%;
}

section.custom_shared div ul li:hover {
  cursor: pointer;
}

section.custom_shared div ul li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.elementor-element .elementor-widget-form {
  display: none;
}

@-webkit-keyframes shimmer {
  100% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
}
@keyframes shimmer {
  100% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
}

@media screen and (width <= 1200px) {
  section.custom_detail {
    width: calc(100dvw - 20px);
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    position: relative;
    padding-top: 400px;
  }

  section.custom_detail div.info_detail {
    padding: 0 20px;
  }

  section.custom_detail div.info_detail a.back {
    margin-top: 20px;
  }

  section.custom_detail div.info_detail div.detail_title {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 20px 0;
  }

  section.custom_detail div.info_detail div.detail_title * {
    text-align: center;
  }

  section.custom_detail div.info_detail div.detail_title div > strong {
    display: block;
    margin: 10px;
  }

  section.custom_detail
    div.info_detail
    div.detail_title
    button.shared_property {
    margin-top: 20px;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0px 0px 20px 0px var(--shadow-color);
  }

  section.custom_detail div.info_detail div.detail_title img {
    width: 12px;
    height: 12px;
  }

  section.custom_detail div.info_detail div.detail_title div span {
    font-size: 10px;
    height: 24px;
    line-height: 24px;
  }

  section.custom_detail div.info_detail div.detail_title div h4 {
    font-size: 26px;
  }

  section.custom_detail div.gallery {
    grid-template-columns: 1fr;
    gap: 0;
    position: absolute;
    top: 0;
    left: 0;
    max-height: 400px;
    width: 100%;
    border-radius: 0;
  }

  section.custom_detail div.gallery a:not(:first-child) {
    display: none;
  }

  section.custom_detail ul.principal_amenities {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    row-gap: 1px;
  }

  section.custom_detail ul.principal_amenities li {
    padding: 10px 0;
  }

  section.custom_detail ul.list_amenities {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  section.custom_detail ul.list_amenities li {
    column-gap: 10px;
  }

  section.custom_detail ul.list_amenities li p {
    font-size: 14px;
  }

  section.custom_detail ul.list_amenities li p strong {
    font-size: 20px;
    line-height: 22px;
  }

  section.custom_detail div.description h5,
  section.custom_detail div.characteristics h5,
  section.custom_detail div.location h5 {
    font-size: 22px;
  }

  section.custom_detail div.characteristics ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  section.custom_detail div.characteristics ul li {
    font-size: 20px;
  }

  section.custom_detail div.custom_form_detail {
    position: relative;
    top: unset;
    height: auto;
    padding: 0 20px;
  }

  /* SHARED MODAL */

  section.custom_shared > div {
    width: 90dvw;
  }
}