@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;
  --gray-color: #9d9d9d;
  --gray-light-color: #f2f2f2;
  --shadow-color: #00000026;
  --text-black-color: #000000;
  --filter-white: brightness(0) invert(1);
  --border-color: #e2e2e2;
  --line-color: #d6d6d6;
  --placeholder-color: #a3a3a3;
  --overlay-light-color: rgba(0, 0, 0, 0.1);
  --overlay-dark-color: rgba(0, 0, 0, 0.4);
  --background-down: url("./assets/icons/down.png");
  --background-image-location: url("./assets/icons/location.png");
  --background-image-rent: url("./assets/icons/rent_orange.png");
  --background-image-sale: url("./assets/icons/purchase_white.png");
}

html {
  scroll-behavior: smooth;
}

* {
  padding: 0;
  margin: 0;
}

div.container_slider_home h3 {
  font-family: Rubik;
  font-weight: 700;
  font-size: 24px;
  line-height: 26px;
  color: #000000;
}

div.container_slider_home div.pagination {
  display: flex;
  padding: 20px 0px 0px 0px;
  margin: 0px;
  justify-content: space-between;
  align-items: center;
}

div.container_slider_home div.pagination p {
  margin: 0;
}

div.container_slider_home div#container_slider_properties {
  width: 100%;
  overflow: hidden;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 10px;
  display: flex;
  flex-direction: column;
}

div.container_slider_home ul#cards_slider_properties {
  width: 100%;
  display: flex;
  padding: 20px 0;
}

div.container_slider_home ul#cards_slider_properties::-webkit-scrollbar {
  display: none;
}

div.container_slider_home ul#skeleton_cards_properties {
  padding: 20px 0;
  width: 100%;
  display: flex;
  height: 413px;
}

div.container_slider_home ul li.skeleton {
  box-shadow: 0px 0px 20px 0px var(--shadow-color);
  overflow: hidden;
  background-color: var(--border-color);
  border-radius: 8px;
  position: relative;
  width: 265px;
  margin: 10px;
}

div.container_slider_home ul li.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) 60%,
    rgba(255, 255, 255, 0)
  );
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0)
  );
  -webkit-animation: shimmer 3s infinite;
  animation: shimmer 3s infinite;
  content: "";
}

div.container_slider_home ul#cards_slider_properties li.property_card {
  box-shadow: 0px 0px 20px 0px var(--shadow-color);
  border-radius: 8px;
  background: var(--white-color);
  overflow: hidden;
  width: 265px;
  scroll-snap-align: start;
  margin: 10px;
  flex-shrink: 0;
}

div.container_slider_home ul li.property_card a {
  text-decoration: none;
}

div.container_slider_home ul li.property_card > a {
  display: grid;
  grid-template-rows: 160px 30px 1fr;
}

div.container_slider_home ul li.property_card div.photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  position: relative;
}

div.container_slider_home ul li.property_card div.photo span.badge {
  position: absolute;
  background: var(--white-color);
  max-width: calc(100% - 20px);
  padding: 0 10px 0 30px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  left: 10px;
  top: 10px;
  font-weight: 500;
  font-size: 10px;
  border-radius: 6px;
  display: grid;
  place-content: center;
}

div.container_slider_home ul li.sale_card div.photo span.badge {
  background: var(--primary-orange-color);
}

div.container_slider_home ul li.property_card div.location {
  display: flex;
  text-align: center;
  column-gap: 1px;
  background: var(--border-color);
  padding-bottom: 1px;
}

div.container_slider_home ul li.property_card div.location p {
  display: block;
  width: 100%;
  line-height: 30px;
  font-weight: 700;
  font-size: 12px;
  color: var(--gray-color);
  background: var(--white-color);
  margin: 0;
}

div.container_slider_home ul li.property_card div.information {
  row-gap: 20px;
  width: 100%;
  padding: 20px 0;
}

div.container_slider_home ul li.property_card div.information div.title {
  display: flex;
  row-gap: 4px;
  width: calc(100% - 40px);
  margin: 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 70px;
}

div.container_slider_home ul li.property_card div.information div.title h3 {
  text-decoration: none;
  color: var(--text-black-color);
  font-weight: 700;
  font-size: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  margin: 0;
}

div.container_slider_home ul li.property_card div.information div.title span {
  color: var(--text-black-color);
  font-weight: 500;
  font-size: 10px;
}

div.container_slider_home ul li.property_card div.information ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 30px;
  width: 100%;
  margin: 20px 0;
  column-gap: 1px;
  background: var(--border-color);
  padding-bottom: 1px;
}

div.container_slider_home ul li.property_card div.information ul li {
  color: var(--text-black-color);
  font-weight: 500;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 5px;
  background: var(--white-color);
}

div.container_slider_home ul li.property_card div.information img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

div.container_slider_home ul li.property_card div.information div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

div.container_slider_home ul li.property_card div.information div p {
  color: var(--text-black-color);
  font-weight: 500;
  font-size: 12px;
  padding-left: 20px;
  margin: 0;
}

div.container_slider_home ul li.property_card div.information div p strong {
  font-weight: 700;
  font-size: 16px;
  display: block;
}

div.container_slider_home ul li.property_card div.information div a {
  color: var(--primary-orange-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  font-size: 16px;
  column-gap: 10px;
  padding-right: 20px;
}

div.container_slider_home ul li.property_card div.information div a img {
  transform: rotate(-90deg);
}

li.project_card div.photo span.badge::after,
li.rent_card div.photo span.badge::after,
li.sale_card div.photo span.badge::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  top: 4px;
  left: 8px;
}

li.project_card div.photo span.badge::before {
  content: attr(data-color);
  color: var(--text-black-color);
  text-wrap: nowrap;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

li.rent_card div.photo span.badge::before {
  content: "Arriendo";
  color: var(--primary-orange-color);
}

li.sale_card div.photo span.badge::before {
  content: "Venta";
  color: var(--white-color);
}

li.project_card div.photo span.badge::after {
  background-image: var(--background-image-location);
}

li.rent_card div.photo span.badge::after {
  background-image: var(--background-image-rent);
}

li.sale_card div.photo span.badge::after {
  background-image: var(--background-image-sale);
}

@-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) {
  div.container_slider_home div.pagination {
    display: none;
  }
}
