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

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

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

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

@keyframes townhouse-ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.townhouse-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20, 25, 14, .4) 0%, rgba(20, 25, 14, .1) 44%, rgba(20, 25, 14, .06) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .04) 42%, rgba(0, 0, 0, .28) 100%);
}

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

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

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

.townhouse-hero-title,
.townhouse-typology-heading,
.townhouse-type-title {
  font-family: var(--display);
}

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

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

.townhouse-overview-card {
  padding: clamp(2.5rem, 3.6vw, 3.25rem);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 2.2rem 5rem -2.5rem rgba(29, 36, 19, .28);
}

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

.townhouse-overview-copy {
  margin: 1.75rem 0 0;
  color: var(--townhouse-muted);
  font-family: var(--sans);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.8;
}

.townhouse-typology {
  padding: clamp(5rem, 8vw, 8.5rem) 0 clamp(6rem, 9vw, 9rem);
  background: #fff;
}

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

.townhouse-typology-heading,
.townhouse-type-title {
  margin: 0;
  font-size: 1.6em;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: .04em;
  color: #3c491f;
  font-weight: 900;
}

.townhouse-typology-heading {
  padding-bottom: 40px;
}

.townhouse-typology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.4vw, 3.25rem);
}

.townhouse-type-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.townhouse-slider {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: .75rem;
  background: #eff0e8;
}

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

.townhouse-slider-image {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.townhouse-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;
}

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

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

.townhouse-slider-prev { left: 1rem; }
.townhouse-slider-next { right: 1rem; }

.townhouse-type-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.townhouse-type-title {
  padding-top: 40px;
}

.townhouse-type-subtitle {
  margin: .65rem 0 0;
  color: var(--townhouse-muted);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
}

.townhouse-type-price {
  margin-top: 2rem;
}

.townhouse-type-label {
  margin: 0 0 .7rem;
  color: var(--cream);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.townhouse-type-price > p:last-child,
.townhouse-type-size p,
.townhouse-type-details p,
.townhouse-type-disclaimers p {
  font-family: var(--sans);
  font-weight: 400;
}

.townhouse-type-price > p:last-child {
  margin: 0;
  color: var(--cream);
  font-size: .625rem;
  line-height: 1.65;
  white-space: nowrap;
}

.townhouse-type-size {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-top: 1.25rem;
  color: var(--townhouse-muted);
}

.townhouse-type-size .bi {
  margin-top: .25rem;
  color: var(--cream);
  font-size: .8rem;
}

.townhouse-type-size p,
.townhouse-type-details p,
.townhouse-type-disclaimers p {
  margin: 0;
}

.townhouse-type-size p {
  font-size: .9rem;
  line-height: 1.55;
}

.townhouse-type-size span {
  display: block;
}

.townhouse-type-details {
  margin-top: 1.35rem;
}

.townhouse-type-details p {
  color: var(--townhouse-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.townhouse-type-disclaimers {
  margin-top: 1.5rem;
}

.townhouse-type-disclaimers p {
  color: rgba(119, 125, 110, .76);
  font-size: .7rem;
  line-height: 1.65;
}

.townhouse-register-button {
  display: inline-flex;
  width: min(100%, 17.5rem);
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
  padding: .75rem 1.5rem;
  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: .22em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .25s ease, border-color .25s ease;
}

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

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

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

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

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

@media (max-width: 1199.98px) {
  .townhouse-typology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 5rem;
  }

  .townhouse-type-price > p:last-child {
    font-size: .9rem;
    white-space: normal;
  }
}

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

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

  .townhouse-hero-title {
    font-size: 2em;
    overflow-wrap: anywhere;
  }

  .townhouses-main .villa-typology-title {
    font-size: clamp(1.35rem, 6.7vw, 1.8rem);
    white-space: nowrap;
  }

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

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

  .townhouse-overview-card {
    padding: 1.75rem;
    border-radius: 1rem;
  }

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

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

  .townhouse-typology {
    padding-top: 4.5rem;
    padding-bottom: 6rem;
  }

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

  .townhouse-typology-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 5rem;
  }
}

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

  .townhouse-slider-control,
  .townhouse-register-button {
    transition: none;
  }
}
.villa-typology-title{
  font-size:30px;
}
