
#townhomeCollection {
  color: #111;
  background: #fff;
}
#townhomeCollection .th-collection-hero {
  background: url('/img/community/amber-woods/townhome/img-4.jpg') center 58% / cover;
}
#townhomeCollection .th-collection-hero::after {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 30%);
  content: "";
}
#townhomeCollection .th-collection-hero .absolute-overlay,
#townhomeCollection .th-collection-hero .list-to-dropdown { z-index: 1; }

#townhomeCollection.th-overview { overflow: hidden; }
#townhomeCollection.th-overview h1,
#townhomeCollection.th-overview h2,
#townhomeCollection.th-overview .th-stat-number,
#townhomeCollection.th-overview .th-eyebrow,
#townhomeCollection.th-overview .th-contact,
#townhomeCollection.th-overview .th-list {
  font-family: "Proxima Nova W05 Bold", sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}
#townhomeCollection.th-overview h1,
#townhomeCollection.th-overview h2 {
  font-size: clamp(30px, 4.74vw, 91px);
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}
#townhomeCollection .th-hero {
  height: clamp(500px, 55.83vw, 1072px) !important;
  min-height: 0;
  background-position: center;
  align-items: flex-end;
  padding-bottom: clamp(125px, 9vw, 180px);
  box-sizing: border-box;
}
#townhomeCollection .th-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgb(0 0 0 / 80%) 100%);
}
#townhomeCollection .th-hero-logo {
  position: absolute;
  top: 6.5%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(100px, 10.1vw, 194px);
}
#townhomeCollection .th-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  text-align: center;
  padding: 0 20px;
}
#townhomeCollection .th-eyebrow {
  color: white;
  font-size: clamp(16px, 2.08vw, 40px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 clamp(18px, 2.2vw, 42px);
}
#townhomeCollection .th-display { color: #fff; }
#townhomeCollection .th-hero .list-to-dropdown { z-index: 2; }
#townhomeCollection.th-overview .wrapper { max-width: none; }
#townhomeCollection .th-stat,
#townhomeCollection .th-story,
#townhomeCollection .th-models,
#townhomeCollection .th-next-step {
  padding: clamp(55px, 6.8vw, 130px) 20px;
  text-align: center;
}
#townhomeCollection .th-stat-number {
  font-size: clamp(120px, 11.82vw, 227px);
  line-height: .8;
  margin: 0 0 clamp(16px, 1.5vw, 28px);
}
#townhomeCollection .th-stat p:not(.th-stat-number) {
  font-family: "Proxima Nova W05 Bold", sans-serif;
  font-size: clamp(16px, 2.08vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0;
  margin: clamp(20px, 2.6vw, 50px) 0 0;
}
#townhomeCollection .emphasize {
  max-width: min(1180px, 62vw);
  margin: clamp(24px, 2.5vw, 48px) auto 0;
  font-family: "Proxima Nova W05 Regular", sans-serif;
  font-size: clamp(16px, 1.3vw, 25px);
  line-height: 1.45;
  letter-spacing: 0;
}
#townhomeCollection .emphasize p { margin: 0 0 1.6em; }
#townhomeCollection .btn-container { margin-top: clamp(26px, 2.5vw, 48px); }
#townhomeCollection .btn {
  font-size: clamp(12px, 1.04vw, 20px);
  letter-spacing: 0;
  padding: 16px 28px;
  min-width: 0;
}
#townhomeCollection .th-btn-disabled { cursor: not-allowed; }
#townhomeCollection .th-triptych {
  padding: clamp(16px, 3.6vw, 70px);
  padding-top: 0;
  padding-bottom: 0;
}
#townhomeCollection .th-triptych > div { padding: 0 clamp(4px, .5vw, 10px); }
#townhomeCollection .th-triptych img { width: 100%; aspect-ratio: 590 / 795; object-fit: cover; display: block; }
#townhomeCollection .th-wide-image { padding: 0; aspect-ratio: 2 / 1; background: #e9e4dc; overflow: hidden; }
#townhomeCollection .th-wide-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
#townhomeCollection .th-models { padding-bottom: 0; }
#townhomeCollection.th-overview .th-models .media-block.variation1 h2 {
  font-family: "Helvetica Neue Extended", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}
#townhomeCollection .th-models .media-label {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: #ce312b;
  color: white;
  text-align: center;
  font-family: "Proxima Nova W05 Bold", sans-serif;
  font-size: clamp(14px, 1.45vw, 28px);
  letter-spacing: 0;
  padding: 8px;
  box-sizing: border-box;
}
#townhomeCollection .th-community { background: #fff; padding: clamp(65px, 7vw, 135px) 20px; text-align: center; }
#townhomeCollection .th-community-grid { display: block; }
#townhomeCollection .th-list { list-style: none; padding: 0; margin: 30px 0 0; }
#townhomeCollection .th-list li { font-size: clamp(18px, 2.08vw, 40px); line-height: 1.5; }
#townhomeCollection .th-gallery { padding: 0; margin: 0 clamp(20px, 3.6vw, 70px); }
#townhomeCollection .th-gallery-hero {
  height: clamp(400px, 51vw, 980px) !important;
  align-items: flex-end;
  padding: clamp(25px, 3vw, 60px) 20px;
  box-sizing: border-box;
}
#townhomeCollection .th-gallery-hero::after {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 35%, rgb(0 0 0 / 75%));
  content: "";
}
#townhomeCollection .th-gallery-overlay { position: relative; z-index: 1; max-width: 1000px; color: #fff; text-align: center; }
#townhomeCollection .th-gallery-overlay h2,
#townhomeCollection .th-gallery-overlay .emphasize p { color: #fff; }
#townhomeCollection .th-gallery-overlay .btn-container { margin-top: 20px; }
#townhomeCollection .th-contact { font-size: clamp(20px, 2.08vw, 40px); line-height: 1.1; margin: 35px 0 0; }
#townhomeCollection .th-next-step .sales-office-container { display: none; }
#townhomeCollection .th-next-step .map-container { max-width: min(1180px, 62vw); margin: 80px auto 0; }
#townhomeCollection .th-next-step iframe { height: clamp(260px, 25vw, 480px); }
@media (max-width: 767px) {
  #townhomeCollection .th-hero { height: 560px !important; background-position: 48% center; padding-bottom: 120px; }
  #townhomeCollection.th-overview h1 { font-size: clamp(28px, 5.9vw, 45px); }
  #townhomeCollection .th-triptych > div { width: 33.333%; }
#townhomeCollection .th-models .media-label { padding: 6px; font-size: 12px; }
  #townhomeCollection .th-gallery { padding: 0; margin: 0 16px; }
  #townhomeCollection .th-next-step .map-container { margin-top: 50px; }
  #townhomeCollection .btn { padding: 14px 18px; }
}

/* Width-specific 21' / 23' listing and detail heroes */
#townhomeCollection .th-width-hero-shell {
  /* background: #efeeec; */
  padding: 0 clamp(10px, 1.7vw, 20px);
}
#townhomeCollection .th-width-hero {
  position: relative;
  height: clamp(500px, 47.5vw, 780px);
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
}
#townhomeCollection[data-width="21"] .th-width-hero {
  background-image: url('/img/community/amber-woods/townhome/th-21/hero.jpg');
}
#townhomeCollection[data-width="23"] .th-width-hero {
  background-image: url('/img/community/amber-woods/townhome/th-23/hero.jpg');
}
#townhomeCollection[data-width="21"] .th-width-num-23,
#townhomeCollection[data-width="23"] .th-width-num-21 {
  display: none;
}
#townhomeCollection .th-width-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0%) 45%, rgb(0 0 0 / 55%) 100%);
  content: "";
}
#townhomeCollection .th-width-hero-logo {
  position: absolute;
  top: 2.5%;
  left: 50%;
  z-index: 2;
  width: clamp(120px, 13.8vw, 260px);
  transform: translateX(-50%);
}
#townhomeCollection .th-width-hero-badge {
  position: absolute;
  top: 0;
  right: 5%;
  z-index: 3;
  padding: clamp(8px, .7vw, 14px) clamp(14px, 1.5vw, 28px);
  background: #ce312b;
  color: #fff;
  font-family: "Proxima Nova W05 Bold", sans-serif;
  font-size: clamp(11px, 1.05vw, 20px);
  letter-spacing: 0;
}
#townhomeCollection .th-width-hero-title {
  position: absolute;
  right: 0;
  bottom: 90px;
  left: 0;
  z-index: 2;
  text-align: center;
  text-transform: uppercase;
}
#townhomeCollection .th-width-number,
#townhomeCollection .th-width-word {
  display: block;
  font-family: "Proxima Nova W05 Bold", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: .82;
}
#townhomeCollection .th-width-number { font-size: clamp(90px, 11.8vw, 227px); }
#townhomeCollection .th-width-word { font-size: clamp(48px, 4.74vw, 91px); line-height: .9; }
#townhomeCollection .th-width-hero .list-to-dropdown { z-index: 4; }

#townhomeCollection.th-width-page #floorplans > div > header { display: none; }

/* Elevation switch: cross-fade instead of the shared 3D flip on this collection */
#townhomeCollection .flipper-container .flipper,
#townhomeCollection .flipper-container .flipper.back {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: auto;
  transform: none !important;
  transition: none;
}
#townhomeCollection .flipper-container .flipper > .front,
#townhomeCollection .flipper-container .flipper > .back {
  transform: none !important;
  backface-visibility: visible;
  transition: opacity .35s ease;
}
#townhomeCollection .flipper-container .flipper > .front { z-index: 2; opacity: 1; }
#townhomeCollection .flipper-container .flipper > .back { z-index: 1; opacity: 0; }
#townhomeCollection .flipper-container .flipper.back > .front { opacity: 0; }
#townhomeCollection .flipper-container .flipper.back > .back { opacity: 1; }

@media (max-width: 767px) {
  #townhomeCollection .th-width-hero-shell { padding: 0 10px; }
  #townhomeCollection .th-width-hero { height: 560px; }
  #townhomeCollection .th-width-hero-logo { width: clamp(110px, 32vw, 150px); }
  #townhomeCollection .th-width-hero-badge {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 11px;
  }
  #townhomeCollection .th-width-hero-title { bottom: 72px; }
  #townhomeCollection .th-width-number { font-size: clamp(84px, 24vw, 120px); }
  #townhomeCollection .th-width-word { font-size: clamp(40px, 12vw, 60px); }
}

/* Shared collection CTA uses the same typography on overview and subpages. */
#townhomeCollection .th-next-step h2,
#townhomeCollection .th-next-step .th-contact {
  font-family: "Proxima Nova W05 Bold", sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}
#townhomeCollection .th-next-step h2 {
  font-size: clamp(30px, 4.74vw, 91px);
  line-height: .94;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

/* Horizontal thumbnails belong only to the townhome gallery popup. */
.townhome-gallery-popup .fancybox-thumbs {
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 96px;
  padding: 8px;
  background: #171717;
}
.townhome-gallery-popup.fancybox-show-thumbs .fancybox-inner {
  right: 0;
  bottom: 96px;
}
.townhome-gallery-popup .fancybox-thumbs__list { height: 80px; }
.townhome-gallery-popup .fancybox-thumbs__list a { height: 72px; max-height: none; }
