.villas-main {
  --villa-muted: #777d6e;
  --villa-divider: rgba(60, 73, 31, .42);
  overflow: hidden;
  background: #fff;
  color: var(--villa-muted);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.villa-hero {
  position: relative;
  height: clamp(32rem, 44.5vw, 43rem);
  overflow: hidden;
}

.villa-hero-image,
.villa-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.villa-hero-image {
  object-fit: cover;
  object-position: center 52%;
  transform-origin: 50% 55%;
  animation: villa-ken-burns 18s ease-out forwards;
}

@keyframes villa-ken-burns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

.villa-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20, 25, 14, .42) 0%, rgba(20, 25, 14, .12) 42%, rgba(20, 25, 14, .08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .06) 42%, rgba(0, 0, 0, .3) 100%);
}

.villa-hero-content {
  position: absolute;
  bottom: clamp(8rem, 11vw, 11rem);
  left: clamp(2rem, 9vw, 9rem);
  z-index: 2;
  color: #fff;
}

.villa-eyebrow {
  margin: 0;
  color: var(--villa-muted);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .25em;
  line-height: 1.5;
  text-transform: uppercase;
}

.villa-eyebrow-light {
  color: rgba(255, 255, 255, .9);
}

.villa-hero-title,
.villa-typology-heading,
.villa-typology-title {
  font-family: var(--display);
  font-weight: 400;
}

.villa-hero-title {
  margin: 1rem 0 0;
  color: #fff;
  font-size: clamp(4rem, 6.6vw, 6.25rem);
  letter-spacing: -.02em;
  line-height: .9;
  text-transform: uppercase;
}

.villa-overview-wrap {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 3rem), 53.125rem);
  margin: -5.95rem auto 0;
}

.villa-overview-card {
  padding: 1.5em;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 2.2rem 5rem -2.5rem rgba(29, 36, 19, .28);
}

.villa-overview-divider {
  display: block;
  width: 3.25rem;
  height: 1px;
  margin-top: 1.25rem;
  background: var(--cream);
}

.villa-overview-copy {
  margin-top: 1em;
  font-size: clamp(1.05rem, 1.3vw, 1.125rem);
  line-height: 2em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.villa-typology {
  padding: 40px 0 clamp(6rem, 10vw, 10rem);
  background: #fff;
}

.villa-typology-container {
  width: min(calc(100% - 3rem), 77.5rem);
  margin-inline: auto;
}

.villa-typology-heading {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #3c491f;
  font-weight: 900;
}

.villa-typology-list {
  margin-top: 40px;
}

.villa-typology-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(3.5rem, 7vw, 7.5rem);
}

.villa-typology-item+.villa-typology-item {
  margin-top: clamp(6.5rem, 10vw, 9rem);
}

.villa-typology-slider {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: #eff0e8;
}

.villas-main .villa-typology-slider {
  max-width: 560px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

.villa-typology-slider .carousel-inner,
.villa-typology-slider .carousel-item {
  height: 100%;
}

.villa-typology-image {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.villa-slider-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--cream);
  box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .13);
  transform: translateY(-50%);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.villa-slider-control:hover,
.villa-slider-control:focus-visible {
  background: var(--cream);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.villa-slider-control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.villa-slider-prev {
  left: 1rem;
}

.villa-slider-next {
  right: 1rem;
}

.villa-typology-content {
  max-width: 31rem;
}

.villa-typology-title {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #3c491f;
  font-weight: 900;
}

.villa-typology-subtitle {
  margin: .6rem 0 0;
  color: var(--villa-muted);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.5;
}

.villa-typology-price {
  margin-top: 2.15rem;
}

.villa-typology-label {
  margin: 0 0 .75rem;
  color: var(--cream);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.villa-typology-price-copy,
.villa-typology-size p,
.villa-typology-handover,
.villa-typology-disclaimers p {
  font-family: var(--sans);
  font-weight: 400;
}

.villa-typology-price-copy {
  margin: 0;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.villa-typology-size {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-top: 1rem;
  color: var(--villa-muted);
}

.villa-typology-size .bi {
  margin-top: .28rem;
  color: var(--cream);
  font-size: .8rem;
}

.villa-typology-size p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.55;
}

.villa-typology-size span {
  display: block;
}

.villa-typology-handover {
  margin: 1.7rem 0 0;
  color: var(--cream);
  font-size: .95rem;
  line-height: 1.5;
}

.villa-typology-disclaimers {
  margin-top: 1.6rem;
}

.villa-typology-disclaimers p {
  margin: 0;
  color: rgba(119, 125, 110, .75);
  font-size: .72rem;
  line-height: 1.65;
}

.villa-register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  min-height: 2.75rem;
  margin-top: 2.25rem;
  padding: .75rem 1.75rem;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: #fff;
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color .25s ease, border-color .25s ease;
}

.villa-register-button:hover,
.villa-register-button:focus-visible {
  border-color: #607035;
  background: #607035;
  color: #fff;
}

.villa-register-button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.villa-back-link {
  display: inline-block;
  margin-top: clamp(5rem, 8vw, 7rem);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.villa-back-link:hover,
.villa-back-link:focus-visible {
  color: #607035;
}

@media (max-width: 991.98px) {
  .villa-typology-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }

  .villa-typology-slider,
  .villa-typology-content {
    width: min(100%, 38rem);
    margin-inline: auto;
  }

}

@media (max-width: 767.98px) {
  .villa-hero {
    height: 72svh;
    min-height: 30rem;
  }

  .villa-hero-content {
    bottom: 6rem;
    left: 1.5rem;
  }

  .villa-hero-title {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .villa-overview-wrap {
    width: calc(100% - 2rem);
    margin-top: -3.5rem;
  }

  .villa-overview-card {
    /* padding: 0.5rem; */
    border-radius: 1rem;
  }

  .villa-overview-divider {
    margin-top: 1rem;
  }

  .villa-overview-copy {
    margin-top: 1.35rem;
    font-size: .95rem;
    line-height: 1.75;
  }

  .villa-typology {
    padding-top: 40px;
    padding-bottom: 6rem;
  }

  .villa-typology-container {
    width: calc(100% - 2rem);
  }

  .villa-typology-list {
    margin-top: 40px;
  }

  .villa-typology-title {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
    white-space: nowrap;
  }

  .villas-main .villa-typology-price-copy {
    font-size: 11px;
  }

  .villa-typology-item+.villa-typology-item {
    margin-top: 5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .villa-hero-image {
    animation: none;
  }

  .villa-slider-control,
  .villa-register-button {
    transition: none;
  }
}
