:root {
  --ph-primary: #4f46e5;
  --ph-primary-dark: #3730a3;
  --ph-radius: 14px;
}

* { font-family: 'Poppins', sans-serif; }

body { background-color: #fbfbfd; color: #1f2430; }

.text-primary   { color: var(--ph-primary) !important; }
.bg-primary     { background-color: var(--ph-primary) !important; }
.btn-primary    { background-color: var(--ph-primary); border-color: var(--ph-primary); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--ph-primary-dark); border-color: var(--ph-primary-dark); }
.btn-outline-primary { color: var(--ph-primary); border-color: var(--ph-primary); }
.btn-outline-primary:hover { background-color: var(--ph-primary); border-color: var(--ph-primary); }
.bg-primary-subtle { background-color: #eef0fd !important; }

/* ---------- Navbar ---------- */
#mainNavbar { transition: all .25s ease; z-index: 1030; }
.navbar-brand i { color: var(--ph-primary); }
.nav-link { font-weight: 500; color: #333; }
.nav-link:hover { color: var(--ph-primary); }

/* ---------- Hero ---------- */
.hero-section {
  min-height: 640px;
  padding-top: 90px;
  padding-bottom: 60px;
  position: relative;
  background: linear-gradient(120deg, #3730a3 0%, #4f46e5 45%, #6366f1 100%);
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 40%);
}
.search-card {
  border-radius: var(--ph-radius);
  margin-top: 20px;
  max-width: 1100px;
}

/* ---------- Stats ---------- */
.stats-strip { margin-top: -1px; }

/* ---------- Section headings ---------- */
.section-heading h2 { font-weight: 700; }

/* ---------- Property Cards ---------- */
.property-card { border-radius: var(--ph-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.property-card:hover { transform: translateY(-6px); box-shadow: 0 1rem 2rem rgba(0,0,0,0.1) !important; }
.property-img-wrap { position: relative; height: 210px; overflow: hidden; }
.property-img { width: 100%; height: 100%; object-fit: cover; }
.property-type-badge { position: absolute; top: 12px; left: 12px; }

/* ---------- Service cards ---------- */
.service-card { border-radius: var(--ph-radius); transition: transform .2s ease; }
.service-card:hover { transform: translateY(-4px); }
.service-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ph-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card { border-radius: var(--ph-radius); }
.avatar-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ph-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}

/* ---------- Footer ---------- */
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .2s ease;
}
.footer-social:hover { background: var(--ph-primary); }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #b7bccb; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }

/* ---------- Auth pages ---------- */
.auth-section { min-height: 100vh; background: #f5f6fb; }

/* ---------- Property details ---------- */
.carousel-detail-img { height: 420px; object-fit: cover; }
.breadcrumb { margin-top: 15px; }

/* ---------- Dashboard ---------- */
.dash-stat-card { border-radius: var(--ph-radius); }
.dash-stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.dash-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.edit-thumb { width: 110px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid #eee; }
.edit-thumb-remove {
  position: absolute; top: -8px; right: -8px;
  width: 26px; height: 26px; padding: 0; line-height: 1;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

@media (max-width: 767px) {
  .hero-section { min-height: auto; padding-top: 110px; }
  .carousel-detail-img { height: 260px; }
}
