

/* =========================================================
   H5 REAL ESTATE FOOTER
========================================================= */

.h5re-footer,
.h5re-footer * {
  box-sizing: border-box;
}

.h5re-footer {
  position: relative;
  width: 100%;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  color: #ffffff;
}


/* =========================================================
   MAIN BACKGROUND
========================================================= */

.h5re-footer-main {
  position: relative;

  overflow: hidden;

  padding: 68px 20px 35px;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(0,150,136,0.12),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #071B31 0%,
      #0A2543 55%,
      #081D34 100%
    );
}


/* DECORATION */

.h5re-footer-main::after {
  content: "";

  position: absolute;

  width: 380px;
  height: 380px;

  right: -190px;
  bottom: -220px;

  border-radius: 50%;

  background: rgba(0,150,136,0.06);

  pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.h5re-footer-container {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1380px;

  margin: 0 auto;
}


/* =========================================================
   BRAND ROW
========================================================= */

.h5re-footer-brand-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 40px;
}


/* =========================================================
   LOGO
========================================================= */

.h5re-footer-logo {
  display: inline-flex;

  align-items: center;

  gap: 13px;

  text-decoration: none;
}

.h5re-footer-logo-box {
  width: 52px;
  height: 52px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      #00A99D,
      #007D74
    );

  color: #ffffff;

  font-size: 20px;
  font-weight: 900;

  box-shadow:
    0 8px 25px rgba(0,150,136,0.22);
}

.h5re-footer-logo-text {
  display: flex;
  flex-direction: column;
}

.h5re-footer-logo-text strong {
  color: #ffffff;

  font-size: 21px;
  line-height: 1.15;

  font-weight: 800;
}

.h5re-footer-logo-text span {
  margin-top: 4px;

  color: #70D7CD;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1.3px;
}


/* DESCRIPTION */

.h5re-footer-brand-description {
  max-width: 530px;

  margin: 15px 0 0;

  color: #AFC0D1;

  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   POST PROPERTY TOP CTA
========================================================= */

.h5re-footer-top-cta {
  display: flex;

  align-items: center;

  gap: 20px;

  padding: 16px 18px 16px 22px;

  border: 1px solid rgba(255,255,255,0.10);

  border-radius: 15px;

  background: rgba(255,255,255,0.045);
}

.h5re-footer-top-cta-text {
  display: flex;
  flex-direction: column;
}

.h5re-footer-top-cta-text span {
  margin-bottom: 3px;

  color: #66D3C8;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1.1px;
}

.h5re-footer-top-cta-text strong {
  color: #ffffff;

  font-size: 14px;

  font-weight: 700;
}


/* CTA BUTTON */

.h5re-footer-post-btn {
  display: flex;

  align-items: center;

  gap: 9px;

  padding: 12px 15px;

  border-radius: 9px;

  background: #009688;

  color: #ffffff;

  font-size: 12px;

  font-weight: 800;

  text-decoration: none;

  transition: 0.25s ease;
}

.h5re-footer-post-btn:hover {
  color: #ffffff;

  background: #00A99D;

  transform: translateY(-2px);
}

.h5re-footer-post-btn small {
  padding: 3px 6px;

  border-radius: 4px;

  background: #ffffff;

  color: #008A7F;

  font-size: 8px;

  font-weight: 900;
}


/* =========================================================
   DIVIDER
========================================================= */

.h5re-footer-divider {
  height: 1px;

  margin: 40px 0;

  background:
    rgba(255,255,255,0.09);
}


/* =========================================================
   GRID
========================================================= */

.h5re-footer-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .9fr) minmax(260px, 1.4fr);

  gap: 38px;
}


/* =========================================================
   COLUMNS
========================================================= */

.h5re-footer-column h3 {
  position: relative;

  margin: 0 0 21px;

  padding-bottom: 12px;

  color: #ffffff;

  font-size: 14px;

  font-weight: 800;
}

.h5re-footer-column h3::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 30px;
  height: 2px;

  border-radius: 10px;

  background: #00A99D;
}


/* LIST */

.h5re-footer-column ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.h5re-footer-column li {
  margin-bottom: 11px;
}

.h5re-footer-column li a {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: #AFC0D1;

  font-size: 12px;
  line-height: 1.5;

  text-decoration: none;

  transition:
    color .22s ease,
    transform .22s ease;
}

.h5re-footer-column li a:hover {
  color: #65D5CA;

  transform: translateX(3px);
}


/* FREE */

.h5re-footer-free {
  padding: 3px 5px;

  border-radius: 4px;

  background: #009688;

  color: #ffffff;

  font-size: 7px;

  font-weight: 900;
}


/* =========================================================
   CONTACT
========================================================= */

.h5re-footer-contact-item {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 16px;

  color: #ffffff;

  text-decoration: none;
}

a.h5re-footer-contact-item:hover
.h5re-footer-contact-icon {
  background: #009688;

  color: #ffffff;
}

.h5re-footer-contact-icon {
  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 40px;

  border: 1px solid rgba(255,255,255,0.10);

  border-radius: 10px;

  background: rgba(255,255,255,0.05);

  color: #61D2C7;

  transition: .25s ease;
}

.h5re-footer-contact-icon svg {
  width: 19px;
  height: 19px;
}

.h5re-footer-contact-item > span:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.h5re-footer-contact-item small {
  margin-bottom: 3px;

  color: #7891A8;

  font-size: 9px;
}

.h5re-footer-contact-item strong {
  color: #D9E4ED;

  font-size: 11px;

  line-height: 1.45;

  font-weight: 650;

  word-break: normal;
  overflow-wrap: normal;
}

/* Keep the contact email on one line without changing other footer text. */
.h5re-footer-contact-item[href^="mailto:"] strong {
  white-space: nowrap;
}


/* =========================================================
   CONNECT ROW
========================================================= */

.h5re-footer-connect {
  margin-top: 42px;

  padding: 24px 27px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 15px;

  background: rgba(255,255,255,0.035);
}

.h5re-footer-connect-label {
  display: block;

  margin-bottom: 4px;

  color: #58CFC4;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1.2px;
}

.h5re-footer-connect h3 {
  margin: 0;

  color: #ffffff;

  font-size: 15px;

  font-weight: 750;
}


/* =========================================================
   SOCIALS
========================================================= */

.h5re-footer-socials {
  display: flex;

  align-items: center;

  gap: 9px;
}

.h5re-footer-socials a {
  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.11);

  border-radius: 10px;

  background: rgba(255,255,255,0.055);

  color: #ffffff;

  transition: .25s ease;
}

.h5re-footer-socials a:hover {
  border-color: #009688;

  background: #009688;

  color: #ffffff;

  transform: translateY(-3px);
}

.h5re-footer-socials svg {
  width: 19px;
  height: 19px;
}


/* WHATSAPP */

.h5re-footer-socials
.h5re-footer-whatsapp {
  border-color:
    rgba(37,211,102,.30);

  color: #55DC87;
}

.h5re-footer-socials
.h5re-footer-whatsapp:hover {
  border-color: #25D366;

  background: #25D366;

  color: #ffffff;
}


/* =========================================================
   DISCLAIMER
========================================================= */

.h5re-footer-disclaimer {
  margin-top: 27px;

  padding-top: 23px;

  border-top:
    1px solid rgba(255,255,255,.07);
}

.h5re-footer-disclaimer p {
  max-width: 1100px;

  margin: 0;

  color: #71879B;

  font-size: 9.5px;
  line-height: 1.7;
}

.h5re-footer-disclaimer strong {
  color: #9EB0C1;
}


/* =========================================================
   BOTTOM
========================================================= */

.h5re-footer-bottom {
  padding: 19px 20px;

  background: #051526;

  border-top:
    1px solid rgba(255,255,255,.04);
}

.h5re-footer-bottom-container {
  width: 100%;
  max-width: 1380px;

  margin: 0 auto;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.h5re-footer-copyright {
  color: #8398AB;

  font-size: 10px;
}

.h5re-footer-copyright strong {
  color: #58CFC4;

  font-weight: 800;
}

.h5re-footer-rights {
  color: #6D8295;

  font-size: 10px;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.h5re-back-top {
  position: fixed;

  z-index: 999;

  right: 25px;
  bottom: 25px;

  width: 46px;
  height: 46px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 0;

  border-radius: 50%;

  background: #009688;

  color: #ffffff;

  box-shadow:
    0 9px 25px rgba(0,0,0,.18);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(12px);

  transition: .25s ease;
}

.h5re-back-top.show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.h5re-back-top:hover {
  background: #007D73;

  transform: translateY(-3px);
}

.h5re-back-top svg {
  width: 20px;
  height: 20px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

  .h5re-footer-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .h5re-footer-contact {
    grid-column:
      span 2;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .h5re-footer-main {
    padding:
      50px 20px 30px;
  }

  .h5re-footer-brand-row {
    flex-direction: column;

    align-items: flex-start;
  }

  .h5re-footer-top-cta {
    width: 100%;

    justify-content: space-between;
  }

  .h5re-footer-grid {
    grid-template-columns:
      repeat(2, 1fr);

    gap:
      35px 25px;
  }

  .h5re-footer-contact {
    grid-column:
      span 2;
  }

  .h5re-footer-connect {
    align-items: flex-start;

    flex-direction: column;
  }

  .h5re-footer-bottom-container {
    flex-direction: column;

    align-items: flex-start;

    gap: 7px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

  .h5re-footer-main {
    padding:
      43px 17px 27px;
  }

  .h5re-footer-logo-box {
    width: 47px;
    height: 47px;
  }

  .h5re-footer-logo-text strong {
    font-size: 18px;
  }

  .h5re-footer-top-cta {
    align-items: flex-start;

    flex-direction: column;
  }

  .h5re-footer-post-btn {
    width: 100%;

    justify-content: center;
  }

  .h5re-footer-grid {
    grid-template-columns:
      1fr;
  }

  .h5re-footer-contact {
    grid-column:
      auto;
  }

  .h5re-footer-connect {
    padding: 21px;
  }

  .h5re-footer-socials {
    flex-wrap: wrap;
  }

  .h5re-back-top {
    right: 16px;
    bottom: 16px;

    width: 43px;
    height: 43px;
  }

}


/* Footer advertising: retain branding and post-property CTA */
.h5re-footer-brand-row{flex-wrap:wrap;gap:22px}.h5re-footer-brand{flex:1 1 310px}.h5re-footer-top-cta{flex:0 0 auto}@media(max-width:767px){.h5re-footer-brand-row{align-items:stretch}.h5re-footer-brand{flex-basis:100%}}

/* Keep branding, property CTA and compact sponsored tile aligned */
@media(min-width:1101px){.h5re-footer-brand-row{gap:22px;align-items:center}.h5re-footer-brand-row .h5re-footer-brand{flex:1 1 300px;min-width:220px}.h5re-footer-brand-row .h5re-footer-top-cta{flex:0 0 auto}}
@media(min-width:768px) and (max-width:1100px){.h5re-footer-brand-row{gap:16px;align-items:center}.h5re-footer-brand-row .h5re-footer-brand{flex:1 1 250px}}

/* Footer fifth column: desktop beside Contact Us, mobile between Contact and Connect. */
@media(min-width:1101px){.h5re-footer-grid:has(>.h5re-footer-ad-slot){grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,.85fr) minmax(205px,1.1fr) minmax(210px,1.05fr);gap:22px}}
.h5re-footer-grid>.h5re-footer-ad-slot{width:100%;max-width:290px;min-width:0;flex:none;align-self:start}
@media(min-width:768px) and (max-width:1100px){.h5re-footer-grid>.h5re-footer-ad-slot{grid-column:auto;max-width:300px}}
@media(max-width:767px){.h5re-footer-grid>.h5re-footer-ad-slot{grid-column:1;max-width:350px;width:100%;margin:0}}

/* Footer fifth column; keep contact details and promotion in the same row. */
@media(min-width:1101px){.h5re-footer .h5re-footer-grid:has(>.h5re-footer-ad-slot){grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,.85fr) minmax(205px,1.05fr) minmax(230px,1.08fr)!important;gap:20px!important}}
.h5re-footer .h5re-footer-grid>.h5re-footer-ad-slot{display:block;min-width:0;width:100%;max-width:290px;align-self:start}
.h5re-footer .h5re-footer-ad-slot .h5re-ad-card{background:#fff;color:#15365d}
@media(min-width:768px) and (max-width:1100px){.h5re-footer .h5re-footer-grid>.h5re-footer-ad-slot{grid-column:auto;max-width:290px}}
@media(max-width:767px){.h5re-footer .h5re-footer-grid>.h5re-footer-ad-slot{grid-column:1/-1;max-width:350px;margin:0 0 12px}}
