:root {
  --er-navy: #16263f;
  --er-navy-dark: #0f1b2e;
  --er-orange: #e8752c;
  --er-orange-dark: #d1631d;
  --er-text: #344055;
  --er-muted: #6b7688;
  --er-border: #e7eaf0;
  --er-bg-soft: #f6f8fb;
  font-family: 'Inter', sans-serif;
}

body { color: var(--er-text); background: #fff; }
h1, h2, h3, h4, h5, .brand-name, .footer-brand { font-family: 'Poppins', sans-serif; font-weight: 700; }

a { color: var(--er-orange); text-decoration: none; }
a:hover { color: var(--er-orange-dark); }

.btn-cta {
  background: var(--er-orange); border-color: var(--er-orange); color: #fff; font-weight: 600;
}
.btn-cta:hover { background: var(--er-orange-dark); border-color: var(--er-orange-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--er-navy); }
.site-header .navbar-brand { display: flex; flex-direction: column; line-height: 1.1; }
.site-header .brand-name { color: #fff; font-size: 1.35rem; }
.site-header .brand-tagline { color: var(--er-orange); font-size: .7rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.site-header .nav-link { color: rgba(255,255,255,.85); font-weight: 500; }
.site-header .nav-link:hover { color: #fff; }

/* ---------- Hero / search ---------- */
.hero-search {
  background: linear-gradient(135deg, var(--er-navy) 0%, var(--er-navy-dark) 100%);
  color: #fff; padding: 3.5rem 0 5rem;
}
.hero-search h1 { font-size: 2rem; }
@media (min-width: 768px) { .hero-search h1 { font-size: 2.75rem; } }
.search-bar-card {
  background: #fff; border-radius: .75rem; padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.15); margin-top: -3rem; position: relative; z-index: 2;
}

/* ---------- Section headings ---------- */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.section-heading h2 { font-size: 1.5rem; margin: 0; }
.section-heading .see-all { font-weight: 600; font-size: .9rem; }

/* ---------- Property Card ---------- */
.property-card {
  border: 1px solid var(--er-border); border-radius: .65rem; overflow: hidden; background: #fff;
  transition: box-shadow .15s ease, transform .15s ease; height: 100%; display: flex; flex-direction: column;
}
.property-card:hover { box-shadow: 0 8px 24px rgba(22,38,63,.12); transform: translateY(-2px); }
.property-card .card-img-wrap { position: relative; aspect-ratio: 4/3; background: var(--er-bg-soft); overflow: hidden; }
.property-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.property-card .badge-featured {
  position: absolute; top: .6rem; left: .6rem; background: var(--er-orange); color: #fff;
  font-size: .7rem; font-weight: 600; padding: .3rem .6rem; border-radius: .3rem;
}
.property-card .badge-rera {
  position: absolute; top: .6rem; right: .6rem; background: rgba(22,38,63,.85); color: #fff;
  font-size: .65rem; font-weight: 600; padding: .25rem .5rem; border-radius: .3rem;
}
.property-card .card-body-custom { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.property-card .prop-name { font-size: 1.02rem; font-weight: 600; color: var(--er-navy); margin-bottom: .15rem; }
.property-card .prop-builder { font-size: .82rem; color: var(--er-muted); margin-bottom: .35rem; }
.property-card .prop-location { font-size: .82rem; color: var(--er-muted); margin-bottom: .5rem; }
.property-card .prop-price { font-weight: 700; color: var(--er-navy); font-size: 1.05rem; }
.property-card .prop-config { font-size: .8rem; color: var(--er-muted); }
.property-card .prop-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.property-card .prop-actions .btn { flex: 1; font-size: .82rem; }
.property-card .icon-btn-row { display: flex; gap: .4rem; margin-top: .5rem; }
.property-card .icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--er-border);
  display: flex; align-items: center; justify-content: center; color: var(--er-muted); background: #fff;
}
.property-card .icon-btn[disabled], .property-card .icon-btn.is-placeholder { opacity: .5; cursor: not-allowed; }

/* ---------- Steps (How It Works) ---------- */
.steps-section { background: linear-gradient(135deg, var(--er-navy) 0%, var(--er-navy-dark) 100%); }
.steps-underline { width: 60px; height: 3px; background: var(--er-orange); margin-top: .5rem; }
.step-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: .65rem; padding: 1.5rem 1rem; height: 100%; }
.step-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; font-size: 1.4rem; color: var(--er-orange); }
.step-title { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.step-desc { color: rgba(255,255,255,.65); font-size: .82rem; margin-bottom: .75rem; }
.step-number { width: 26px; height: 26px; border-radius: 50%; background: var(--er-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; margin: 0 auto; }

/* ---------- Testimonials ---------- */
.testimonial-card { border: 1px solid var(--er-border); border-radius: .65rem; padding: 1.5rem; background: #fff; }
.testimonial-quote-icon { font-size: 1.8rem; color: var(--er-orange); opacity: .5; }
.testimonial-text { color: var(--er-text); font-size: .92rem; margin: .75rem 0; min-height: 4.5em; }
.testimonial-stars { color: #f5a623; font-size: .8rem; margin-bottom: .6rem; }
.testimonial-name { font-weight: 600; color: var(--er-navy); font-size: .92rem; }

/* ---------- Builder Card ---------- */
.builder-card { border: 1px solid var(--er-border); border-radius: .6rem; padding: 1rem; text-align: center; height: 100%; background: #fff; }
.builder-card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: .5rem; }
.builder-card .builder-name { font-weight: 600; font-size: .92rem; color: var(--er-navy); }
.builder-card .builder-count { font-size: .78rem; color: var(--er-muted); }

/* ---------- Filters (desktop sidebar / mobile offcanvas) ---------- */
.filter-sidebar { border: 1px solid var(--er-border); border-radius: .6rem; padding: 1.1rem; position: sticky; top: 90px; }
.filter-sidebar .filter-group { border-bottom: 1px solid var(--er-border); padding-bottom: 1rem; margin-bottom: 1rem; }
.filter-sidebar .filter-group:last-child { border-bottom: none; }
.filter-sidebar .filter-title { font-weight: 600; font-size: .88rem; color: var(--er-navy); margin-bottom: .5rem; }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--er-navy); }
.pagination .page-item.active .page-link { background: var(--er-navy); border-color: var(--er-navy); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--er-bg-soft); padding: .6rem 0; font-size: .85rem; }

/* ---------- Details page ---------- */
.hero-gallery-main { border-radius: .6rem; overflow: hidden; aspect-ratio: 16/9; background: var(--er-bg-soft); }
.hero-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hero-gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .5rem; padding-bottom: .25rem; }
.hero-gallery-thumbs img { width: 90px; height: 64px; object-fit: cover; border-radius: .4rem; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.hero-gallery-thumbs img.active { border-color: var(--er-orange); }

.amenity-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--er-bg-soft); border-radius: 2rem; padding: .4rem .9rem; font-size: .85rem; margin: .2rem; }

.map-embed { width: 100%; height: 320px; border: 0; border-radius: .6rem; }

.doc-download-card { border: 1px solid var(--er-border); border-radius: .5rem; padding: .9rem; display: flex; align-items: center; justify-content: space-between; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.5rem; background: none; border: none; cursor: pointer; padding: .5rem 1rem; }
.lightbox-prev { left: .5rem; } .lightbox-next { right: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--er-navy-dark); color: rgba(255,255,255,.75); }
.footer-brand { color: #fff; }
.footer-tagline { color: var(--er-orange); font-size: .72rem; font-weight: 600; letter-spacing: .05em; margin-bottom: .8rem; }
.footer-text { font-size: .85rem; color: rgba(255,255,255,.65); }
.footer-text a { color: rgba(255,255,255,.8); }
.footer-rera { font-size: .82rem; font-weight: 600; color: var(--er-orange); }
.footer-heading { color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--er-orange); display: inline-block; padding-bottom: .3rem; margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .85rem; }
.footer-links a:hover { color: var(--er-orange); }

/* Long footer link lists (Builder Partners, Property Types) wrap into 2
   sub-columns from the small breakpoint up, so they don't tower over the
   shorter columns next to them (company info, contact form). */
@media (min-width: 576px) {
  .footer-links-2col { column-count: 2; column-gap: 1rem; }
  .footer-links-2col li { break-inside: avoid; }
}
.footer-social { display: flex; gap: .6rem; margin-top: .9rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--er-orange); }
.footer-form .form-control { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; }
.footer-form .form-control::placeholder { color: rgba(255,255,255,.45); }
.footer-bottom { background: rgba(0,0,0,.25); font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.85); }

/* ---------- Mobile refinements ---------- */
@media (max-width: 767px) {
  .hero-search { padding: 2rem 0 3.5rem; }
  .search-bar-card { margin-top: -2rem; }
  body { overflow-x: hidden; }
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1050;
  background: #25D366; color: #fff; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
