/* ── Design tokens ───────────────────────────────────────────────────────────── */
:root {
  --primary:       #1d3461;
  --primary-light: #2a4f7a;
  --accent:        #3d8b52;
  --accent-light:  #edf7f0;
  --green:         #10b981;
  --bg:            #f5f7fb;
  --surface:       #ffffff;
  --text:          #1a202c;
  --muted:         #718096;
  --border:        #e8edf4;
  --shadow-sm:     0 1px 4px rgba(30,58,95,.06);
  --shadow:        0 4px 20px rgba(30,58,95,.10);
  --shadow-lg:     0 12px 40px rgba(30,58,95,.15);
  --radius:        18px;
  --radius-sm:     10px;
  --transition:    .2s ease;
}

/* ── Reset / Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
  line-height: 1.6;
}

/* Bootstrap overrides */
.bg-primary        { background-color: var(--primary)  !important; }
.text-primary      { color: var(--primary) !important; }
.btn-primary       { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn-outline-primary       { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-warning       { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-warning:hover { background: #2e6b3e; border-color: #2e6b3e; color: #fff; }
.btn { border-radius: 10px; font-weight: 500; letter-spacing: .01em; }
.form-control, .form-select { border-radius: 10px; border-color: var(--border); font-size: .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,.12); }
.card  { border-radius: var(--radius) !important; border: none !important; }
.badge { font-weight: 500; letter-spacing: .02em; }
.alert { border-radius: var(--radius-sm); border: none; }
.page-link { color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── Navbar ──────────────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: -.01em;
}
.navbar-brand .brand-icon { color: var(--accent); }
.nav-link {
  color: #4a5568 !important;
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .85rem !important;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--primary) !important; background: var(--bg); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 500px;
  padding: 5rem 0 4rem;
  display: flex;
  align-items: center;
  background:
    linear-gradient(to right, rgba(10,20,40,.90) 0%, rgba(10,20,40,.68) 52%, rgba(10,20,40,.18) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--primary);
  overflow: hidden;
}
.hero-section::after { display: none; }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(61,139,82,.18);
  color: #6fda8f;
  border: 1px solid rgba(61,139,82,.35);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 500px;
}

/* ── Hero listing tabs ───────────────────────────────────────────────────────── */
.hero-listing-tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.hlt {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 50px;
  padding: .32rem 1.15rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.hlt.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.hlt:hover:not(.active) { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.45); }

/* ── Hero horizontal search bar ──────────────────────────────────────────────── */
.hero-search-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: .6rem .75rem;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  max-width: 700px;
}
.hsb-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: .2rem .65rem;
  min-width: 0;
}
.hsb-label {
  font-size: .62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .12rem;
}
.hsb-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: .875rem;
  color: var(--text);
  padding: 0;
  width: 100%;
}
select.hsb-input { cursor: pointer; }
.hsb-sep { width: 1px; height: 34px; background: var(--border); flex-shrink: 0; }
.hsb-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: calc(var(--radius) - 3px);
  padding: .65rem 1.4rem;
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: .4rem;
  transition: background .2s;
}
.hsb-btn:hover { background: #2e6b3e; }

/* ── Compact search pill ─────────────────────────────────────────────────────── */
.search-pill {
  background: #fff;
  border-radius: 50px;
  padding: .5rem .5rem .5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
}
.search-pill .sp-input {
  border: none; outline: none; background: transparent;
  flex: 1; font-size: .92rem; color: var(--text);
  min-width: 0;
}
.search-pill .sp-input::placeholder { color: #aab; }
.search-pill .sp-divider {
  width: 1px; height: 24px; background: var(--border); flex-shrink: 0;
}
.search-pill .sp-select {
  border: none; outline: none; background: transparent;
  font-size: .88rem; color: #4a5568; padding: .25rem .5rem;
  cursor: pointer; white-space: nowrap;
}
.search-pill .sp-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .55rem 1.4rem;
  font-size: .88rem;
  font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-pill .sp-btn:hover { background: #2e6b3e; }

/* ── Hero floating card ──────────────────────────────────────────────────────── */
.hero-float-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 1.75rem;
  width: 340px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.12);
  animation: floatUp .6s ease both;
}
@keyframes floatUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

.hfc-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f5f7fb;
  border-radius: 14px;
  padding: .9rem .5rem;
  margin-bottom: 1.25rem;
}
.hfc-stat { text-align: center; }
.hfc-stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.hfc-stat-label {
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.hfc-stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}

.hfc-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .65rem;
}

.hfc-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.hfc-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  padding: .6rem .25rem;
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
}
.hfc-type-item:hover { background: #eef2f9; }
.hfc-type-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #eef2f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  transition: var(--transition);
}
.hfc-type-item:hover .hfc-type-icon { background: var(--primary); color: #fff; }
.hfc-type-item span {
  font-size: .68rem;
  font-weight: 600;
  color: #4a5568;
  text-align: center;
}

.hfc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.hfc-avatar-stack {
  display: flex;
  margin-right: .5rem;
}
.hfc-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  margin-left: -6px;
}
.hfc-avatar:first-child { margin-left: 0; }
.hfc-cta-btn {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}
.hfc-cta-btn:hover { background: var(--primary-light); color: #fff; }

/* ── Stats bar ───────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.stat-item { text-align: center; padding: 0 1rem; }
.stat-num   { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ── Section heading ─────────────────────────────────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .4rem;
}
.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 0;
}

/* ── Property type cards ─────────────────────────────────────────────────────── */
.type-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  padding: 1.25rem .75rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.type-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.type-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #eef2f9;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition);
}
.type-card:hover .type-icon-wrap { background: var(--primary); color: #fff; }
.type-name { font-size: .85rem; font-weight: 600; color: var(--text); }
.type-count { font-size: .75rem; color: var(--muted); }

/* ── Property cards ──────────────────────────────────────────────────────────── */
.prop-card {
  background: var(--surface);
  border-radius: var(--radius) !important;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.prop-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.prop-card .img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
}
.prop-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.prop-card:hover .img-wrap img { transform: scale(1.05); }
.prop-card .img-overlays {
  position: absolute; inset: 0;
  padding: .75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.prop-card .price-tag {
  position: absolute;
  bottom: .75rem; left: .75rem;
  background: rgba(20,40,70,.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 50px;
}
.badge-status {
  font-size: .7rem;
  padding: .3rem .65rem;
  border-radius: 50px;
  font-weight: 600;
}
.badge-featured {
  background: rgba(61,139,82,.88);
  color: #fff;
  font-size: .7rem;
  padding: .3rem .65rem;
  border-radius: 50px;
  font-weight: 600;
}
.prop-card .card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prop-type-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary);
  background: #eef2f9;
  padding: .2rem .6rem;
  border-radius: 50px;
  margin-bottom: .5rem;
}
.prop-title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: .3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prop-location {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.prop-stats {
  display: flex;
  gap: .75rem;
  font-size: .78rem;
  color: #64748b;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.prop-stats span { display: flex; align-items: center; gap: .25rem; }

/* ── Property detail ─────────────────────────────────────────────────────────── */
.detail-gallery { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-gallery .carousel-item img {
  height: 440px;
  object-fit: cover;
  width: 100%;
}
.prop-detail-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.prop-detail-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.prop-detail-location { color: var(--muted); font-size: .92rem; }

.detail-stats-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1rem 0;
}
.detail-stat {
  display: flex; align-items: center; gap: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .35rem .85rem;
  font-size: .83rem;
  color: #374151;
  font-weight: 500;
}
.detail-stat i { color: var(--primary); font-size: .85rem; }

/* Contact sidebar */
.contact-card { border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; }
.price-display { font-size: 2rem; font-weight: 800; color: var(--primary); }

/* Contact avatar */
.contact-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Redesigned contact buttons */
.contact-btn {
  align-items: center;
  gap: .75rem;
  border-radius: 14px;
  padding: .65rem 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
.contact-btn-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-btn-text {
  display: flex; flex-direction: column;
}
.contact-btn-label {
  font-size: .9rem; font-weight: 700; line-height: 1.2;
}
.contact-btn-sub {
  font-size: .75rem; opacity: .75; line-height: 1.2;
}
.contact-btn-wa {
  background: #e8faf0;
  color: #166534;
}
.contact-btn-wa .contact-btn-icon { background: #25d366; color: #fff; }
.contact-btn-wa:hover { background: #25d366; color: #fff; }
.contact-btn-wa:hover .contact-btn-icon { background: rgba(255,255,255,.25); }
.contact-btn-call {
  background: #eef2f9;
  color: var(--primary);
}
.contact-btn-call .contact-btn-icon { background: var(--primary); color: #fff; }
.contact-btn-call:hover { background: var(--primary); color: #fff; }
.contact-btn-call:hover .contact-btn-icon { background: rgba(255,255,255,.2); }

/* Share icon grid */
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.share-icon-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem;
  padding: .65rem .25rem;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  color: #fff;
}
.share-icon-btn i { font-size: 1.25rem; line-height: 1; }
.share-icon-btn.wa      { background: #25d366; }
.share-icon-btn.wa:hover{ background: #1eba57; color:#fff; }
.share-icon-btn.fb      { background: #1877f2; }
.share-icon-btn.fb:hover{ background: #0e65d9; color:#fff; }
.share-icon-btn.x-tw    { background: #000; }
.share-icon-btn.x-tw:hover{ background: #222; color:#fff; }
.share-icon-btn.li      { background: #0a66c2; }
.share-icon-btn.li:hover{ background: #0854a0; color:#fff; }
.share-icon-btn.ig {
  background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);
}
.share-icon-btn.ig:hover { opacity:.88; color:#fff; }
.share-icon-btn.copy    { background: #64748b; }
.share-icon-btn.copy:hover{ background: #475569; color:#fff; }

/* Legacy — kept for any existing references */
.btn-whatsapp {
  background: #25d366; color: #fff; border: none;
  font-size: 1rem; font-weight: 600; border-radius: 12px; padding: .75rem;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-whatsapp:hover { background: #1eba57; color: #fff; }
.btn-call {
  background: var(--primary); color: #fff; border: none;
  font-size: 1rem; font-weight: 600; border-radius: 12px; padding: .75rem;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-call:hover { background: var(--primary-light); color: #fff; }

/* ── CTA ─────────────────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2137 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(61,139,82,.08);
  pointer-events: none;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer { background: #0f1e2e !important; }
.footer-link {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  display: block;
  margin-bottom: .3rem;
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--accent); }

/* ── Listing page ────────────────────────────────────────────────────────────── */
.filter-card {
  position: sticky; top: 85px;
  background: var(--surface);
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
}
.filter-section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .4rem;
}

/* ── Sold/Rented ribbon ──────────────────────────────────────────────────────── */
.sold-ribbon {
  position: absolute;
  top: 14px; right: -28px;
  width: 110px;
  padding: .22rem 0;
  text-align: center;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  transform: rotate(35deg);
  transform-origin: center;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.sold-ribbon.sold   { background: #dc2626; }
.sold-ribbon.rented { background: #7c3aed; }

/* Sold/Rented banner on detail page */
.detail-sold-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}
.detail-sold-banner.sold   { background: #fef2f2; color: #b91c1c; border: 1.5px solid #fca5a5; }
.detail-sold-banner.rented { background: #f5f3ff; color: #6d28d9; border: 1.5px solid #c4b5fd; }

/* ── Wishlist heart button ───────────────────────────────────────────────────── */
.heart-btn {
  position: absolute;
  top: .65rem; right: .65rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  color: #cbd5e1;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition), background var(--transition);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.heart-btn:hover   { color: #e53e3e; transform: scale(1.12); }
.heart-btn.saved   { color: #e53e3e; background: #fff; }

/* Larger heart on property detail page */
.heart-btn-detail {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .45rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.heart-btn-detail:hover  { border-color: #e53e3e; color: #e53e3e; background: #fff5f5; }
.heart-btn-detail.saved  { border-color: #e53e3e; color: #e53e3e; background: #fff5f5; }
.heart-btn-detail i      { font-size: 1rem; }

/* ── Utilities ───────────────────────────────────────────────────────────────── */
.section-pad { padding: 3.5rem 0; }
.bg-surface  { background: var(--surface); }
.rounded-pill-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  padding: .2rem .75rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.breadcrumb { font-size: .85rem; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }

/* ── Property filter tabs (featured section) ─────────────────────────────────── */
.prop-filter-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.pft {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 50px;
  padding: .3rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.pft.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pft:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ── Service cards (What We Do) ──────────────────────────────────────────────── */
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #edf7f0;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
}
.service-card h5 { font-weight: 700; color: var(--text); margin-bottom: .5rem; font-size: 1.05rem; }
.service-card p  { color: var(--muted); font-size: .875rem; line-height: 1.65; margin-bottom: 1rem; }
.service-link {
  color: var(--primary); font-weight: 600; font-size: .875rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .35rem;
}
.service-link:hover { color: var(--accent); }
.service-link i { transition: transform .2s; }
.service-link:hover i { transform: translateX(3px); }

/* ── Floating action buttons ─────────────────────────────────────────────────── */
.fab-wrap {
  position: fixed; bottom: 1.75rem; right: 1.5rem; z-index: 990;
  display: flex; flex-direction: column; gap: .65rem; align-items: flex-end;
}
.fab-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.15rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.20);
  transition: transform .2s, opacity .2s, box-shadow .2s;
  text-decoration: none;
}
.fab-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
#fabTop { background: var(--primary); color: #fff; opacity: 0; pointer-events: none; }
#fabTop.show { opacity: 1; pointer-events: auto; }
.fab-wa { background: #25d366; color: #fff !important; font-size: 1.35rem; }

/* ── Cookie consent bar ──────────────────────────────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
  background: #0f1e2e; color: #cdd9ea;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.28);
  transform: translateY(100%); transition: transform .35s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { margin: 0; font-size: .83rem; flex: 1; }
.cookie-bar a { color: var(--accent); }

/* ── Mortgage calculator ──────────────────────────────────────────────────────── */
.mortgage-card { border: 1px solid var(--border) !important; }
.mortgage-card .card-body { padding: 1.1rem; }
.mc-label { font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.mc-input {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: .38rem .65rem; font-size: .85rem; width: 100%; outline: none;
  background: var(--surface); color: var(--text);
  transition: border-color .2s;
}
.mc-input:focus { border-color: var(--primary); }
.mc-result {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2137 100%);
  color: #fff; border-radius: 10px; padding: .9rem; text-align: center; margin-top: .75rem;
}
.mc-monthly { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.mc-note { font-size: .72rem; opacity: .72; margin-top: .2rem; }

/* ── "New" listing badge ──────────────────────────────────────────────────────── */
.badge-new { background: var(--primary); color: #fff; font-size: .65rem; padding: .25rem .6rem; border-radius: 50px; font-weight: 700; letter-spacing: .02em; }

/* ── Property views chip ──────────────────────────────────────────────────────── */
.views-chip { font-size: .72rem; color: var(--muted); display: inline-flex; align-items: center; gap: .25rem; }

/* ── Listings sort/view bar ───────────────────────────────────────────────────── */
.listings-bar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .6rem .9rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}
.listings-bar .lb-count { font-weight: 600; font-size: .88rem; flex: 1; }
.listings-bar select { border: 1.5px solid var(--border); border-radius: 8px; padding: .3rem .6rem; font-size: .83rem; outline: none; background: transparent; cursor: pointer; }
.view-toggle .vt-btn {
  width: 34px; height: 34px; border: 1.5px solid var(--border);
  background: transparent; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; color: var(--muted);
  transition: all .15s;
}
.view-toggle .vt-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .search-pill { flex-wrap: wrap; border-radius: var(--radius); padding: .75rem; }
  .search-pill .sp-divider { display: none; }
  .search-pill .sp-input, .search-pill .sp-select { width: 100%; }
  .search-pill .sp-btn { width: 100%; justify-content: center; }
  .detail-gallery .carousel-item img { height: 240px; }
  .hero-section { padding: 2.5rem 0 3.5rem; }
}
