/* Footer, sticky bars, contact page, legacy page-content helpers. */

/* ================= footer ================= */
.site-footer {
  background: var(--deep-2);
  color: #AEBBC8;
  margin-top: 0;
  font-size: .92rem;
}

.site-footer a {
  color: #E3EAF0;
}

.site-footer a:hover {
  color: var(--gold-2);
}

.ftr-cta {
  background: linear-gradient(135deg,var(--navy),var(--deep));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ftr-cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.ftr-cta h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.4rem,1.1rem + 1vw,2rem);
  max-width: 28ch;
}

.ftr-cta p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.75);
}

.ftr {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr 1fr;
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 36px;
}

.ftr-h {
  color: #fff;
  font-size: .95rem;
  margin: 0 0 14px;
  letter-spacing: 0;
}

.ftr ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ftr li {
  padding: 4px 0;
}

.ftr-brand .logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  padding: 5px 14px;
}

.ftr-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  padding-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}

.ftr-bottom p {
  margin: 0;
}

@media (max-width:1100px) {
  .ftr {
    grid-template-columns: repeat(3, 1fr);
  }

  .ftr-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width:760px) {
  .ftr {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:560px) {
  .ftr {
    grid-template-columns: 1fr;
  }
}

.compare-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  background: var(--deep);
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--sh-lg);
  padding: 12px 0;
}

.compare-bar .wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.compare-bar span {
  flex: 1;
}

.compare-bar .ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.cmp-table th,.cmp-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.cmp-table img {
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.notfound {
  padding: 100px 20px;
}

.notfound h1 {
  font-size: clamp(2.4rem,2rem + 2vw,3.6rem);
}

.dyn-empty {
  color: var(--muted);
}

.results-plain {
  list-style: none;
  padding: 0;
}

.results-plain li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* compact rows of buttons / stats on small screens */
@media (max-width:620px) {
  .el-row:has(>.el-col>.counter) {
    grid-template-columns: repeat(2,minmax(0,1fr))!important;
  }
  .el-row:has(>.el-col>.btn-wrap:only-child) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .el-row:has(>.el-col>.btn-wrap:only-child)>.el-col {
    flex: 0 0 auto;
  }
  .topbar {
    font-size: .76rem;
  }
  .topbar-cta {
    padding: 6px 0;
  }
}

.site-footer {
  padding-bottom: 70px;
}

/* Popular Searches block */
.popular .popular-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 26px;
}

.popular .popular-head h2 {
  margin: 0;
  font-size: clamp(1.5rem,1.15rem + 1.1vw,2.1rem);
}

.popular-head h2 span {
  color: var(--gold);
}

.popular-head p {
  margin: 0;
  color: var(--muted);
}

.popular-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 22px;
}

.pop-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  min-width: 0;
}

.pop-group.wide {
  grid-column: 1/-1;
}

.popular .pop-group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pop-group h3 small {
  background: var(--soft);
  color: var(--muted);
  border-radius: 99px;
  padding: 1px 8px;
  font-size: .72rem;
  font-weight: 700;
}

.popular .pop-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: 24px;
  font-size: .9rem;
}

.popular .pop-group.wide ul {
  columns: 5 200px;
}

.popular .pop-group li {
  break-inside: avoid;
  padding: 4px 0;
}

.popular .pop-group a {
  color: var(--text);
}

.popular .pop-group a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.pop-more {
  margin-top: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 99px;
  padding: 6px 14px;
  font: 650 .82rem var(--f);
  cursor: pointer;
  color: var(--ink);
}

/* contact page (replica of the live design) */
body.canvas {
  background: #F7F8FE;
}

.contact-live {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px;
  font-family: Helvetica,Arial,sans-serif;
}

.cl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cl-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3a3a3a;
}

.cl-hr {
  width: 150px;
  border: 0;
  border-top: 1px solid #e1e3ea;
  margin: 16px 0 18px;
}

.cl-name {
  font-size: 24px;
  font-weight: 700;
  color: #1D4463;
  margin: 0 0 6px;
  font-family: Helvetica,Arial,sans-serif;
}

.cl-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #A88E00;
  font-size: 16px;
}

.cl-back {
  display: none;
}

.cl-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(29,68,99,.08);
}

.cl-card-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.cl-logo {
  width: 66px;
  height: 66px;
  border-radius: 50%;
}

.cl-title {
  font: 700 20px/1.2 Helvetica,Arial,sans-serif;
  color: #000;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-wrap: initial;
}

.cl-sub {
  margin: 0;
  color: #7a7a7a;
  font-size: 15px;
  font-family: Helvetica,Arial,sans-serif;
}

.rform-contact .rf-fields {
  gap: 10px;
}

.rform-contact .rf-group label {
  position: absolute!important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.rform-contact input,.rform-contact select,.rform-contact textarea {
  background: #F5F4FE;
  border: 1px solid #F5F4FE;
  border-radius: 8px;
  font: 15px Helvetica,Arial,sans-serif;
  padding: 12px 16px;
}

.rform-contact textarea {
  min-height: 145px;
}

.rform-contact .rf-actions .btn {
  background: #A88E00;
  border-color: #A88E00;
  border-radius: 6px;
  font: 700 15px Helvetica,Arial,sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 15px;
}

.rform-contact .rf-actions .btn::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21l21-9L2 3v7l15 2-15 2z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}

.rform-contact .rf-actions .btn:hover {
  background: #8f7800;
}

@media (max-width:860px) {
  .contact-live {
    grid-template-columns: 1fr;
    padding: 30px 16px;
  }
}

/* Elementor per-device visibility */
@media (min-width:1025px) {
  .hide-d {
    display: none!important;
  }
}

@media (min-width:768px) and (max-width:1024px) {
  .hide-t {
    display: none!important;
  }
}

@media (max-width:767px) {
  .hide-m {
    display: none!important;
  }
}

/* "Step N" cards (How We Work and similar process pages) */
.el-row:has(>.step-card) {
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr))!important;
  gap: 22px;
  counter-reset: none;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px 26px;
  position: relative;
  box-shadow: var(--sh);
  border-top: 4px solid var(--gold);
  transition: transform .25s,box-shadow .25s;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.step-card>figure.img {
  display: none;
}

.step-card .eyebrow {
  align-self: flex-start;
  display: inline-block;
  background: var(--gold-soft);
  color: #6d5c00!important;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: .72rem!important;
  letter-spacing: .1em!important;
  margin-bottom: 14px!important;
}

.step-card h2,.step-card h3,.step-card h4 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.step-card p {
  font-size: .95rem;
  color: var(--text)!important;
  text-transform: none!important;
  letter-spacing: 0!important;
  font-weight: 400!important;
}

/* home shortcut tiles (Apartment Types / Top Amenities) */
.tile {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  display: block;
  aspect-ratio: 4/3;
  background: var(--soft-2);
  color: #fff!important;
  box-shadow: var(--sh);
  transition: transform .25s,box-shadow .25s;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.tile figure.img {
  margin: 0;
  height: 100%;
}

.tile img {
  width: 100%!important;
  height: 100%!important;
  max-height: none!important;
  object-fit: cover;
  border-radius: 0!important;
  transition: transform .6s;
}

.tile:hover img {
  transform: scale(1.06);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,transparent 40%,rgba(10,26,41,.85));
}

.tile-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  font-weight: 750;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tile-label::after {
  content: "→";
}

/* page intro rows: short heading + image → vertically centred, larger heading */
.flow>.el-row.n2:first-child {
  align-items: center;
  gap: clamp(24px,4vw,64px);
}

.flow>.el-row.n2:first-child>.el-col:has(>h3:first-child):not(:has(p)) h3 {
  font-size: clamp(2rem,1.4rem + 2vw,3rem);
  letter-spacing: -.03em;
  margin-bottom: .25em;
}

.flow>.el-row.n2:first-child>.el-col:has(>h3:first-child):not(:has(p)) .eyebrow {
  font-size: 1.05rem;
}

.flow>.el-row.n2:first-child>figure.img {
  justify-self: center;
}

.step-card>figure.img:first-child {
  display: none;
}

/* page sections that hold a lead form → centred card */
.flow>section.el:has(.rform):not(:has(.el-row.n2)) > .el-col {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--sh);
  padding: clamp(22px,3vw,40px);
}

.flow>section.el:has(.rform):not(:has(.el-row.n2)) > .el-col>.eyebrow:first-child {
  font-size: clamp(1.5rem,1.1rem + 1.2vw,2.1rem);
  letter-spacing: -.025em;
  text-transform: none;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: .2em;
}

.flow>section.el:has(.rform):not(:has(.el-row.n2)) > .el-col>.eyebrow:nth-child(2) {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.flow>section.el:has(.rform):not(:has(.el-row.n2)) {
  background: linear-gradient(180deg,var(--soft),#fff);
}

/* image boxes: keep illustrations a sensible size */
.image-box>img:first-child {
  max-height: 240px;
  width: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

/* long-form text sections → readable measure */
.flow>section.el:not(:has(.el-row,.image-box,form,figure:nth-of-type(2),.cards,.counter))>* {
  max-width: var(--text-w);
  margin-left: auto;
  margin-right: auto;
}

.flow>section.el:not(:has(.el-row,.image-box,form,figure,.cards,.counter)) :is(p,ul,ol)+h2 {
  font-weight: 800;
  margin-top: 1.4em;
}

/* small utilities (replace former inline style attributes) */
.btn-block {
  width: 100%;
}

.hero-actions {
  margin-top: 18px;
}

.mini-map iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.ftr-cta-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Equal Housing Opportunity notice */
.ftr-bottom .eho {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-basis: 100%;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}

.ftr-bottom .eho svg {
  flex: none;
  color: #fff;
}

.ftr-bottom .eho strong {
  color: #fff;
}
