/* Clean final homepage components. Unique td- classes prevent legacy CSS conflicts. */
.td-home {
  overflow:hidden;
  background:#fff
}

.td-home * {
  box-sizing:border-box
}

.td-hero {
  position:relative;
  min-height:clamp(650px,72vw,790px);
  isolation:isolate;
  overflow:hidden;
  background:#e9e3da
}

.td-hero__media,.td-hero__media img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%
}

.td-hero__media img {
  object-fit:cover;
  object-position:66% center
}

.td-hero__overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(248,244,237,.97) 0%,rgba(248,244,237,.88) 34%,rgba(248,244,237,.25) 58%,rgba(248,244,237,0) 75%);
  z-index:1
}

.td-hero__inner {
  position:relative;
  z-index:2;
  min-height:inherit;
  display:flex;
  align-items:center
}

.td-hero__copy {
  width:min(560px,50%);
  padding:55px 0
}

.td-kicker {
  display:block;
  margin-bottom:16px;
  color:#a56f2a;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.17em;
  text-transform:uppercase
}

.td-hero h1 {
  margin:0 0 22px;
  font-family:Georgia,serif;
  font-size:clamp(3.5rem,6.2vw,6rem);
  font-weight:500;
  line-height:.95;
  color:#171a18
}

.td-hero h1 em {
  color:#ad742b;
  font-weight:400
}

.td-hero__copy p {
  max-width:520px;
  margin:0;
  font-size:1.08rem;
  color:#35403c
}

.td-hero__actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px
}

.td-coast {
  padding:72px 0 82px;
  background:#f7f1e9
}

.td-coast__intro {
  text-align:center;
  margin-bottom:34px
}

.td-coast__intro h2 {
  margin:0;
  font-family:"Brush Script MT","Segoe Script",cursive;
  font-size:clamp(3rem,5.4vw,5rem);
  font-weight:400;
  line-height:1;
  color:#a96f2b
}

.td-coast__intro p {
  margin:14px 0 0;
  color:#4e5652;
  font-size:1rem
}

.td-coast__grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  width:100%
}

.td-coast-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#fff;
  border:1px solid rgba(171,132,79,.25);
  box-shadow:0 12px 30px rgba(48,35,22,.08);
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease
}

.td-coast-card:hover {
  transform:translateY(-4px);
  box-shadow:0 18px 38px rgba(48,35,22,.13)
}

.td-coast-card__image {
  display:block;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#ddd
}

.td-coast-card__image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease
}

.td-coast-card:hover img {
  transform:scale(1.035)
}

.td-coast-card__label {
  display:grid;
  place-items:center;
  min-height:76px;
  padding:12px;
  text-align:center;
  font-family:"Brush Script MT","Segoe Script",cursive;
  font-size:clamp(1.65rem,2.2vw,2.35rem);
  line-height:1;
  color:#2b302e
}

.td-signature {
  padding:78px 0;
  background:#fff
}

.td-signature__grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch
}

.td-signature__grid .signature-card {
  width:100%;
  min-width:0;
  height:100%
}

.td-footer {
  padding:0!important;
  background:#f4ede3!important;
  color:#181512;
  border-top:1px solid #c79242;
  font-family:Arial,Helvetica,sans-serif
}

.td-footer__main {
  display:grid;
  grid-template-columns:minmax(430px,41vw) minmax(0,1fr);
  min-height:390px;
  overflow:hidden;
  background:#f4ede3
}

.td-footer__photo {
  position:relative;
  min-height:390px;
  margin-right:-120px;
  z-index:0;
  overflow:hidden
}

.td-footer__photo img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:72% center
}

.td-footer__fade {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent 54%,rgba(244,237,227,.2) 68%,rgba(244,237,227,.76) 88%,#f4ede3 100%)
}

.td-footer__content {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.05fr .92fr .7fr;
  min-width:0;
  padding-right:max(20px,calc((100vw - 1180px)/2))
}

.td-footer__connect,.td-footer__social,.td-footer__links {
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding:38px 28px
}

.td-footer__connect {
  padding-left:78px;
  background:linear-gradient(90deg,transparent 0%,rgba(244,237,227,.7) 22%,#f4ede3 48%)
}

.td-footer__social,.td-footer__links {
  background:#f4ede3;
  border-left:1px solid #d8c7af
}

.td-footer h2 {
  margin:0 0 17px
}

.td-footer__connect h2 {
  font-family:"Brush Script MT","Segoe Script",cursive;
  font-size:2.55rem;
  font-weight:400;
  line-height:1;
  color:#aa7028
}

.td-footer__connect>p {
  max-width:310px;
  margin:0 0 22px;
  font-size:.94rem;
  line-height:1.55
}

.td-footer__contacts {
  display:grid;
  gap:13px
}

.td-footer__contacts a,.td-footer__contacts>span {
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  gap:10px;
  align-items:center;
  font-size:.82rem
}

.td-footer__contacts a>span,.td-footer__contacts>span>span {
  color:#af752e
}

.td-footer__contacts strong {
  overflow-wrap:anywhere
}

.td-footer__social {
  text-align:center;
  align-items:center
}

.td-footer__social>h2,.td-footer__links>h2 {
  font-size:.72rem;
  letter-spacing:.1em;
  font-weight:900;
  color:#2a251f
}

.td-footer__social-row {
  display:flex;
  gap:10px;
  justify-content:center;
  margin-bottom:12px
}

.td-footer__social-row a {
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#111;
  color:#fff;
  font-weight:800
}

.td-footer__heart {
  color:#b2792d;
  font-size:1.7rem
}

.td-footer__quote {
  max-width:270px;
  margin:8px auto 0;
  font-family:"Brush Script MT","Segoe Script",cursive;
  font-size:1.27rem;
  line-height:1.35
}

.td-footer__links nav {
  display:grid;
  gap:5px
}

.td-footer__links nav a {
  font-size:.79rem;
  line-height:1.3
}

.td-footer__bottom {
  min-height:58px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:13px max(20px,calc((100vw - 1180px)/2));
  background:#0d1010;
  color:#eee;
  font-size:.72rem
}

.td-footer__legal {
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto
}

@media(max-width:1100px) {
  .td-hero__media img {
    object-position:69% center
  }
  .td-coast__grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .td-signature__grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .td-signature__grid .giving-card {
    grid-column:1/-1
  }
  .td-footer__main {
    grid-template-columns:minmax(350px,38vw) minmax(0,1fr)
  }
  .td-footer__photo {
    margin-right:-85px
  }
  .td-footer__content {
    grid-template-columns:1fr 1fr;
    padding-right:20px
  }
  .td-footer__connect {
    padding-left:60px
  }
  .td-footer__links {
    grid-column:1/-1;
    border-left:0;
    border-top:1px solid #d8c7af
  }
  .td-footer__links nav {
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:8px 14px
  }
}

@media(max-width:760px) {
  .td-hero {
    min-height:760px
  }
  .td-hero__media img {
    object-position:58% center
  }
  .td-hero__overlay {
    background:linear-gradient(180deg,rgba(248,244,237,.98) 0%,rgba(248,244,237,.93) 38%,rgba(248,244,237,.38) 58%,rgba(248,244,237,0) 78%)
  }
  .td-hero__inner {
    align-items:flex-start
  }
  .td-hero__copy {
    width:100%;
    max-width:620px;
    margin:0 auto;
    padding:38px 0 0;
    text-align:center
  }
  .td-hero h1 {
    font-size:clamp(3rem,10vw,4.4rem)
  }
  .td-hero__copy p {
    margin-inline:auto
  }
  .td-hero__actions {
    justify-content:center
  }
  .td-coast {
    padding:54px 0 62px
  }
  .td-signature__grid {
    grid-template-columns:1fr
  }
  .td-signature__grid .giving-card {
    grid-column:auto
  }
  .td-footer__main {
    grid-template-columns:1fr
  }
  .td-footer__photo {
    height:420px;
    min-height:420px;
    margin-right:0
  }
  .td-footer__photo img {
    object-position:67% center
  }
  .td-footer__fade {
    background:linear-gradient(180deg,transparent 55%,rgba(244,237,227,.92) 100%)
  }
  .td-footer__content {
    grid-template-columns:1fr 1fr;
    padding:0
  }
  .td-footer__connect {
    padding-left:28px;
    background:#f4ede3
  }
  .td-footer__connect,.td-footer__social,.td-footer__links {
    padding:34px 28px;
    border-top:1px solid #d8c7af;
    text-align:center
  }
  .td-footer__connect>p {
    margin-inline:auto
  }
  .td-footer__contacts {
    width:min(390px,100%);
    margin-inline:auto;
    text-align:left
  }
  .td-footer__links {
    grid-column:1/-1
  }
  .td-footer__links nav {
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:min(390px,100%);
    margin-inline:auto;
    text-align:left
  }
  .td-footer__bottom {
    flex-wrap:wrap;
    justify-content:center;
    text-align:center;
    padding:18px 20px
  }
  .td-footer__legal {
    width:100%;
    justify-content:center;
    margin-left:0
  }
}

@media(max-width:540px) {
  .td-hero {
    min-height:720px
  }
  .td-hero__media img {
    object-position:54% center
  }
  .td-hero__copy {
    padding-top:28px
  }
  .td-kicker {
    font-size:.64rem;
    letter-spacing:.12em
  }
  .td-hero h1 {
    font-size:clamp(2.5rem,12vw,3.25rem);
    line-height:.98
  }
  .td-hero__copy p {
    font-size:.98rem;
    line-height:1.45
  }
  .td-hero__actions {
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    gap:10px;
    margin-top:22px
  }
  .td-hero__actions .btn {
    width:100%;
    min-height:50px
  }
  .td-coast__grid {
    grid-template-columns:1fr;
    gap:17px
  }
  .td-coast__intro h2 {
    font-size:2.6rem
  }
  .td-coast-card__label {
    font-size:2rem
  }
  .td-signature {
    padding:58px 0
  }
  .td-footer__photo {
    height:340px;
    min-height:340px
  }
  .td-footer__photo img {
    object-position:68% center
  }
  .td-footer__content {
    grid-template-columns:1fr
  }
  .td-footer__connect,.td-footer__social,.td-footer__links {
    padding:30px 20px
  }
  .td-footer__links {
    grid-column:auto
  }
  .td-footer__links nav {
    grid-template-columns:1fr;
    text-align:center
  }
  .td-footer__bottom {
    flex-direction:column;
    gap:6px
  }
  .td-footer__divider {
    display:none
  }
  .td-footer__legal {
    width:auto;
    flex-wrap:wrap
  }
}

/* Final responsive corrections: preserve grids and organize every footer breakpoint */
@media (max-width: 760px) {
  .td-hero {
    min-height:720px
  }
  .td-hero__media img {
    object-position:73% center
  }
  .td-hero__overlay {
    background:linear-gradient(180deg,rgba(248,244,237,.98) 0%,rgba(248,244,237,.9) 34%,rgba(248,244,237,.35) 54%,rgba(248,244,237,0) 72%)
  }
  .td-hero__copy {
    max-width:560px;
    padding-top:28px
  }
  .td-coast {
    padding:58px 0
  }
  .td-coast__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px
  }
  .td-coast-card__label {
    min-height:62px;
    padding:9px 6px;
    font-size:clamp(1.35rem,6vw,1.8rem)
  }
  .td-footer__photo {
    height:auto;
    min-height:0;
    aspect-ratio:16/9
  }
  .td-footer__photo img {
    object-position:67% center
  }
  .td-footer__content {
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch
  }
  .td-footer__connect,.td-footer__social {
    padding:30px 22px;
    text-align:left
  }
  .td-footer__connect {
    border-right:1px solid #d8c7af
  }
  .td-footer__social {
    border-left:0;
    align-items:center;
    text-align:center
  }
  .td-footer__links {
    grid-column:1/-1;
    padding:28px 22px;
    text-align:center
  }
  .td-footer__links nav {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px 18px;
    width:min(460px,100%);
    margin-inline:auto;
    text-align:left
  }
}

@media (max-width: 520px) {
  .td-hero {
    min-height:690px
  }
  .td-hero__media img {
    object-position:76% center
  }
  .td-hero__copy {
    padding-top:22px
  }
  .td-hero h1 {
    font-size:clamp(2.35rem,11vw,3.1rem)
  }
  .td-coast .container {
    width:min(100% - 20px,1180px)
  }
  .td-coast__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .td-coast-card__label {
    min-height:54px;
    padding:8px 4px;
    font-size:clamp(1.05rem,5.5vw,1.45rem)
  }
  .td-footer__photo {
    aspect-ratio:4/3
  }
  .td-footer__photo img {
    object-position:69% center
  }
  .td-footer__content {
    grid-template-columns:1fr
  }
  .td-footer__connect,.td-footer__social,.td-footer__links {
    padding:28px 20px;
    text-align:center;
    border-left:0;
    border-right:0
  }
  .td-footer__connect>p {
    margin-inline:auto
  }
  .td-footer__contacts {
    width:min(360px,100%);
    margin-inline:auto;
    text-align:left
  }
  .td-footer__links {
    grid-column:auto
  }
  .td-footer__links nav {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 14px;
    text-align:left
  }
  .td-footer__bottom {
    padding:16px 14px
  }
}

@media (max-width: 360px) {
  .td-coast__grid {
    gap:8px
  }
  .td-coast-card__label {
    font-size:1rem;
    min-height:50px
  }
  .td-footer__links nav {
    grid-template-columns:1fr;
    text-align:center
  }
}

/* Dynamic Featured Properties */
.td-featured {
  padding:82px 0;
  background:#fff
}

.td-featured__heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:32px;
  margin-bottom:34px
}

.td-featured__eyebrow {
  display:block;
  margin-bottom:8px;
  color:#a56f2a;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase
}

.td-featured__heading h2 {
  margin:0;
  font-family:Georgia,serif;
  font-size:clamp(2.35rem,4vw,4rem);
  font-weight:500;
  line-height:1.05;
  color:#171a18
}

.td-featured__heading p {
  max-width:620px;
  margin:12px 0 0;
  color:#66736f
}

.td-featured__all {
  flex:0 0 auto;
  padding-bottom:6px;
  border-bottom:1px solid #b67c31;
  color:#7e5320;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase
}

.td-featured__grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}

.td-property-card {
  min-width:0;
  background:#fff;
  border:1px solid #e3ddd3;
  box-shadow:0 14px 34px rgba(45,35,24,.08);
  overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease
}

.td-property-card:hover {
  transform:translateY(-4px);
  box-shadow:0 20px 44px rgba(45,35,24,.14)
}

.td-property-card__image {
  position:relative;
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#e6e2dc
}

.td-property-card__image img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease
}

.td-property-card:hover .td-property-card__image img {
  transform:scale(1.035)
}

.td-property-card__image .status {
  position:absolute;
  top:14px;
  left:14px
}

.td-property-card__featured {
  position:absolute;
  right:14px;
  top:14px;
  padding:7px 10px;
  background:#c3914b;
  color:#151713;
  font-size:.65rem;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase
}

.td-property-card__body {
  padding:22px
}

.td-property-card__price {
  margin:0 0 5px;
  color:#a56f2a;
  font-family:Georgia,serif;
  font-size:1.45rem;
  font-weight:700
}

.td-property-card h3 {
  margin:0;
  font-family:Georgia,serif;
  font-size:1.28rem;
  font-weight:500;
  line-height:1.25;
  color:#1d2522
}

.td-property-card__location {
  margin:6px 0 14px;
  color:#69716e;
  font-size:.9rem
}

.td-property-card__facts {
  display:flex;
  flex-wrap:wrap;
  gap:7px 14px;
  margin:0 0 17px;
  padding-top:14px;
  border-top:1px solid #ece7df;
  color:#4e5753;
  font-size:.82rem
}

.td-property-card__link {
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#21443d
}

.td-featured__empty {
  text-align:center;
  padding:58px 28px;
  background:#f7f1e9;
  border:1px solid #e2d5c3
}

.td-featured__empty h3 {
  margin:0 0 8px;
  font-family:Georgia,serif;
  font-size:2rem;
  font-weight:500
}

.td-featured__empty p {
  margin:0 auto 24px;
  max-width:570px;
  color:#66736f
}

@media(max-width:980px) {
  .td-featured__grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media(max-width:680px) {
  .td-featured {
    padding:58px 0
  }
  .td-featured__heading {
    align-items:flex-start;
    flex-direction:column;
    gap:18px;
    margin-bottom:26px
  }
  .td-featured__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .td-property-card__image {
    aspect-ratio:1/1
  }
  .td-property-card__body {
    padding:15px
  }
  .td-property-card__price {
    font-size:1.15rem
  }
  .td-property-card h3 {
    font-size:1rem
  }
  .td-property-card__location {
    font-size:.76rem
  }
  .td-property-card__facts {
    display:grid;
    gap:3px;
    font-size:.72rem
  }
  .td-property-card__link {
    font-size:.67rem
  }
  .td-property-card__featured {
    right:8px;
    top:8px;
    padding:5px 7px
  }
  .td-property-card__image .status {
    left:8px;
    top:8px;
    padding:5px 7px;
    font-size:.58rem
  }
}

@media(max-width:390px) {
  .td-featured__grid {
    gap:8px
  }
  .td-property-card__body {
    padding:12px
  }
  .td-property-card__price {
    font-size:1.02rem
  }
  .td-property-card h3 {
    font-size:.92rem
  }
  .td-property-card__location {
    font-size:.7rem
  }
  .td-property-card__facts {
    font-size:.67rem
  }
  .td-property-card__featured {
    display:none
  }
}

/* Redfin-style featured property cards */
.td-featured__grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px
}

.td-property-card {
  display:flex;
  flex-direction:column;
  border:1px solid #d9d9d9;
  border-radius:4px;
  box-shadow:0 2px 8px rgba(25,31,29,.10);
  background:#fff;
  overflow:hidden
}

.td-property-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 22px rgba(25,31,29,.16)
}

.td-property-card__image {
  aspect-ratio:16/10;
  background:#e5e5e5
}

.td-property-card__image img {
  object-position:center
}

.td-property-card__body {
  display:flex;
  flex:1;
  flex-direction:column;
  padding:14px 15px 16px
}

.td-property-card__summary {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:4px
}

.td-property-card__price {
  margin:0;
  color:#161a18;
  font-family:Arial,Helvetica,sans-serif;
  font-size:1.45rem;
  font-weight:800;
  line-height:1.2
}

.td-property-card__facts {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:4px 10px;
  margin:0;
  padding:0;
  border:0;
  color:#454b48;
  font-size:.76rem;
  white-space:nowrap
}

.td-property-card__facts span {
  display:inline-flex;
  gap:3px
}

.td-property-card__facts strong {
  color:#171b19;
  font-weight:800
}

.td-property-card h3 {
  margin:3px 0 1px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:.98rem;
  font-weight:700;
  line-height:1.35;
  color:#1d2522
}

.td-property-card__location {
  margin:0 0 9px;
  color:#5e6662;
  font-size:.82rem;
  line-height:1.35
}

.td-property-card__description {
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  margin:0 0 13px;
  color:#59615d;
  font-size:.82rem;
  line-height:1.48
}

.td-property-card__link {
  margin-top:auto;
  font-size:.71rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#21443d
}

.td-property-card__image .status,.td-property-card__featured {
  border-radius:2px;
  box-shadow:0 1px 4px rgba(0,0,0,.18)
}

@media(max-width:980px) {
  .td-featured__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px
  }
}

@media(max-width:680px) {
  .td-featured__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .td-property-card__image {
    aspect-ratio:4/3
  }
  .td-property-card__body {
    padding:10px 10px 12px
  }
  .td-property-card__summary {
    display:block;
    margin-bottom:5px
  }
  .td-property-card__price {
    font-size:1.02rem
  }
  .td-property-card__facts {
    justify-content:flex-start;
    gap:2px 7px;
    margin-top:3px;
    font-size:.64rem;
    white-space:normal
  }
  .td-property-card h3 {
    font-size:.78rem;
    line-height:1.3
  }
  .td-property-card__location {
    margin-bottom:6px;
    font-size:.67rem
  }
  .td-property-card__description {
    -webkit-line-clamp:2;
    margin-bottom:8px;
    font-size:.67rem;
    line-height:1.4
  }
  .td-property-card__link {
    font-size:.6rem;
    letter-spacing:.035em
  }
}

@media(max-width:390px) {
  .td-featured__grid {
    gap:7px
  }
  .td-property-card__body {
    padding:8px
  }
  .td-property-card__price {
    font-size:.92rem
  }
  .td-property-card__facts {
    font-size:.59rem;
    gap:1px 5px
  }
  .td-property-card h3 {
    font-size:.72rem
  }
  .td-property-card__location,.td-property-card__description {
    font-size:.62rem
  }
  .td-property-card__link {
    font-size:.56rem
  }
}

/* Refined Maryland service-area cards and About-page community section */
.td-coast {
  padding:78px 0;
  background:#f7f3ed
}

.td-coast__intro {
  max-width:760px;
  margin:0 auto 34px;
  text-align:center
}

.td-coast__intro h2 {
  margin:0;
  font-family:Georgia,serif;
  font-size:clamp(2.35rem,4vw,4rem);
  font-weight:500;
  line-height:1.05
}

.td-coast__intro p {
  margin:12px 0 0;
  color:#66736f
}

.td-coast__grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px
}

.td-coast-card {
  display:flex;
  min-width:0;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border:1px solid #e0d8cd;
  box-shadow:0 10px 28px rgba(42,34,25,.08);
  transition:transform .2s ease,box-shadow .2s ease
}

.td-coast-card:hover {
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(42,34,25,.13)
}

.td-coast-card__image {
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#ddd
}

.td-coast-card__image img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .3s ease
}

.td-coast-card:hover .td-coast-card__image img {
  transform:scale(1.035)
}

.td-coast-card__body {
  display:flex;
  flex:1;
  flex-direction:column;
  padding:16px 16px 18px
}

.td-coast-card__body strong {
  font-family:Georgia,serif;
  font-size:1.35rem;
  font-weight:500;
  color:#1e2724
}

.td-coast-card__body small {
  display:block;
  margin-top:7px;
  color:#68716d;
  font-size:.82rem;
  line-height:1.5
}

.td-signature--about {
  padding:82px 0;
  background:#fff
}

.td-signature__heading {
  max-width:760px;
  margin:0 auto 34px;
  text-align:center
}

.td-signature__heading h2 {
  margin:0;
  font-family:Georgia,serif;
  font-size:clamp(2.1rem,4vw,3.6rem);
  font-weight:500;
  line-height:1.12
}

.td-signature__heading p {
  margin:13px auto 0;
  max-width:680px;
  color:#66736f
}

@media(max-width:980px) {
  .td-coast__grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media(max-width:560px) {
  .td-coast {
    padding:58px 0
  }
  .td-coast__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .td-coast-card__image {
    aspect-ratio:4/3
  }
  .td-coast-card__body {
    padding:11px 10px 13px
  }
  .td-coast-card__body strong {
    font-size:1rem
  }
  .td-coast-card__body small {
    font-size:.68rem;
    line-height:1.4
  }
  .td-signature--about {
    padding:58px 0
  }
}

@media(max-width:360px) {
  .td-coast__grid {
    gap:7px
  }
  .td-coast-card__body strong {
    font-size:.92rem
  }
  .td-coast-card__body small {
    font-size:.63rem
  }
}

/* Featured-property pagination */
.td-featured-pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  margin-top:36px
}

.td-featured-pagination__pages {
  display:flex;
  align-items:center;
  gap:7px
}

.td-featured-pagination__pages a {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #d8d2c8;
  background:#fff;
  color:#26312d;
  font-size:.82rem;
  font-weight:800;
  transition:.2s
}

.td-featured-pagination__pages a:hover,.td-featured-pagination__pages a.is-current {
  background:#21443d;
  border-color:#21443d;
  color:#fff
}

.td-featured-pagination__arrow {
  min-width:92px;
  color:#21443d;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase
}

.td-featured-pagination__arrow:last-child {
  text-align:right
}

.td-featured-pagination__arrow.is-disabled {
  opacity:.32;
  pointer-events:none
}

/* Editorial Maryland coverage section: vertical source photos are used intentionally */
.td-maryland {
  padding:88px 0;
  background:#f3eee6
}

.td-maryland__layout {
  display:grid;
  grid-template-columns:minmax(280px,.78fr) minmax(0,1.6fr);
  gap:58px;
  align-items:center
}

.td-maryland__copy {
  max-width:470px
}

.td-maryland__eyebrow {
  display:block;
  margin-bottom:12px;
  color:#9b6727;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase
}

.td-maryland__copy h2 {
  margin:0 0 18px;
  font-family:Georgia,serif;
  font-size:clamp(2.7rem,5vw,5rem);
  font-weight:500;
  line-height:.98;
  color:#18201d
}

.td-maryland__copy p {
  margin:0;
  color:#59645f;
  font-size:1rem;
  line-height:1.75
}

.td-maryland__cta {
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:28px;
  padding-bottom:6px;
  border-bottom:1px solid #9b6727;
  color:#70491d;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase
}

.td-maryland__places {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  height:440px
}

.td-maryland-place {
  position:relative;
  min-width:0;
  overflow:hidden;
  background:#28332f
}

.td-maryland-place img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:saturate(.88);
  transition:transform .4s ease,filter .4s ease
}

.td-maryland-place::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 36%,rgba(8,16,13,.82) 100%)
}

.td-maryland-place span {
  position:absolute;
  z-index:2;
  left:16px;
  right:14px;
  bottom:16px;
  color:#fff
}

.td-maryland-place strong,.td-maryland-place small {
  display:block
}

.td-maryland-place strong {
  font-family:Georgia,serif;
  font-size:clamp(1.05rem,1.6vw,1.45rem);
  font-weight:500;
  line-height:1.1
}

.td-maryland-place small {
  margin-top:5px;
  color:rgba(255,255,255,.76);
  font-size:.7rem;
  line-height:1.3
}

.td-maryland-place:hover img {
  transform:scale(1.045);
  filter:saturate(1)
}

@media(max-width:980px) {
  .td-maryland__layout {
    grid-template-columns:1fr;
    gap:34px
  }
  .td-maryland__copy {
    max-width:720px
  }
  .td-maryland__places {
    height:390px
  }
}

@media(max-width:680px) {
  .td-featured-pagination {
    gap:10px;
    margin-top:26px
  }
  .td-featured-pagination__arrow {
    min-width:auto;
    font-size:.66rem
  }
  .td-featured-pagination__pages a {
    width:34px;
    height:34px
  }
  .td-maryland {
    padding:62px 0
  }
  .td-maryland__layout {
    gap:28px
  }
  .td-maryland__places {
    grid-template-columns:repeat(2,minmax(0,1fr));
    height:auto;
    gap:10px
  }
  .td-maryland-place {
    aspect-ratio:4/5
  }
  .td-maryland-place strong {
    font-size:1.12rem
  }
}

@media(max-width:390px) {
  .td-featured-pagination__arrow {
    font-size:0
  }
  .td-featured-pagination__arrow::first-letter {
    font-size:.9rem
  }
  .td-maryland__places {
    gap:7px
  }
  .td-maryland-place span {
    left:11px;
    right:9px;
    bottom:11px
  }
  .td-maryland-place strong {
    font-size:.98rem
  }
  .td-maryland-place small {
    font-size:.62rem
  }
}

/* Related properties use the same rectangular listing cards as the homepage */
.td-related-properties__grid {
  grid-template-columns:repeat(3,minmax(0,1fr))
}

@media(max-width:900px) {
  .td-related-properties__grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media(max-width:560px) {
  .td-related-properties .section-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:14px
  }
  .td-related-properties__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
}

/* Properties index: match homepage and related Redfin-style cards */
.td-properties-page__grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}

@media(max-width:900px) {
  .td-properties-page__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px
  }
}

@media(max-width:560px) {
  .td-properties-page__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
}
