@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

body {
  background: #f0f4f8;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── PAGE HEADER ───────────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(140deg, #020617 0%, #0f172a 40%, #1a2f55 100%);
  padding: 52px 0 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-family: inherit;
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a { color: #94a3b8; font-size: 0.86rem; }
.page-header .breadcrumb-item.active { color: #e2e8f0; }

/* ─── FILTER CARD ───────────────────────────────────────────────────────── */
.filter-card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  padding: 22px 20px;
  position: sticky;
  top: 80px;
}
.filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
  font-family: inherit;
}
.filter-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  margin-top: 20px;
}
.filter-card .form-select,
.filter-card .form-control {
  font-size: 0.875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #374151;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  padding: 9px 14px;
}
.filter-card .form-select:focus,
.filter-card .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
  outline: none;
}

/* BHK buttons */
.bhk-btn {
  padding: 7px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.bhk-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.bhk-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 3px 10px rgba(37,99,235,0.3);
}

/* Checkboxes and radios */
.form-check-input:checked { background-color: #2563eb; border-color: #2563eb; }
.form-check-label { font-family: inherit; }

/* Apply button */
.btn-apply {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  width: 100%;
  padding: 11px;
  margin-top: 18px;
  font-size: 0.9rem;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-apply:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.4);
}

/* ─── RESULTS HEADER ────────────────────────────────────────────────────── */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.results-count { font-size: 0.9rem; color: #64748b; font-family: inherit; }
.results-count strong { color: #0f172a; font-weight: 700; }

/* ─── PROPERTY CARD (horizontal) ───────────────────────────────────────── */
.prop-card-h {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s, border-color 0.25s;
  margin-bottom: 16px;
}
.prop-card-h:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.11), 0 2px 8px rgba(0,0,0,0.06);
  border-color: #bfdbfe;
}
.prop-card-h .prop-img-left {
  width: 230px;
  min-width: 230px;
  position: relative;
  overflow: hidden;
}
.prop-img-placeholder-h {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  min-height: 165px;
}
/* Image zoom on hover */
.prop-card-h .prop-img-left img {
  transition: transform 0.45s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prop-card-h:hover .prop-img-left img { transform: scale(1.06); }

/* Gradient overlay on placeholder */
.prop-img-placeholder-h::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.prop-rent-badge-h {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15,23,42,0.88);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 7px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
}
.prop-card-h .prop-body-h {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.prop-card-h .prop-title-h {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  font-family: inherit;
}
.prop-card-h .prop-location-h { color: #64748b; font-size: 0.82rem; margin-bottom: 10px; }
.prop-meta-row-h { display: flex; gap: 16px; flex-wrap: wrap; }
.prop-meta-item-h {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 0.81rem;
  font-weight: 500;
}
.prop-meta-item-h i { color: #2563eb; }

/* Type / furnishing badges */
.badge-type {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 9px;
  letter-spacing: 0.2px;
}
.badge-furnished {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 9px;
}

/* View button */
.prop-view-btn-h {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff !important;
  border-radius: 9px;
  padding: 9px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(37,99,235,0.3);
  font-family: inherit;
}
.prop-view-btn-h:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(37,99,235,0.45);
}

/* ─── PAGINATION ────────────────────────────────────────────────────────── */
.pagination .page-link {
  color: #2563eb;
  border-radius: 9px;
  margin: 0 2px;
  border: 1.5px solid #e2e8f0;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 7px 13px;
  transition: all 0.15s;
  font-family: inherit;
}
.pagination .page-link:hover { background: #eff6ff; border-color: #93c5fd; }
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37,99,235,0.3);
}
.pagination .page-item.disabled .page-link { color: #cbd5e1; }

/* ─── PLACEHOLDER COLORS ────────────────────────────────────────────────── */
.bg-flat     { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.bg-house    { background: linear-gradient(135deg, #065f46, #10b981); }
.bg-room     { background: linear-gradient(135deg, #7c2d12, #f97316); }
.bg-pg       { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.bg-villa    { background: linear-gradient(135deg, #7f1d1d, #ef4444); }
.bg-default  { background: linear-gradient(135deg, #0f172a, #334155); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-header { padding: 36px 0 28px; }
  .page-header h1 { font-size: 1.5rem; }
}
@media (max-width: 576px) {
  .prop-card-h { flex-direction: column; }
  .prop-card-h .prop-img-left { width: 100%; min-width: 100%; height: 190px; }
  .prop-card-h .prop-img-left img { height: 190px; }
}
