/* ============================================================
   RENTALHOME LIVE - COMPLETE STYLESHEET
   ============================================================ */
 
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
 
:root {
  --navy: #0f1c2e;
  --navy-dark: #0a1420;
  --navy-mid: #1a2d45;
  --cyan: #22b8cf;
  --coral: #f26b5b;
  --coral-hover: #e55a4a;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15,28,46,0.08);
  --shadow-lg: 0 12px 40px rgba(15,28,46,0.14);
  --transition: 0.25s ease;
  --font: 'Inter', sans-serif;
  --serif: 'Playfair Display', serif;
}
 
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
 
/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
}
.btn-coral { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-coral:hover { background: var(--coral-hover); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--gray-200); }
.btn-outline-dark:hover { border-color: var(--navy); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100% !important; }
 
/* ===== NAVBAR ===== */
.navbar {
  background: var(--navy);
  position: sticky; top: 0; z-index: 1000;
}
.navbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 16px;
  position: relative;
}
.logo {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  color: #fff; display: flex; align-items: center; gap: 10px;
}
.logo span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.88); font-weight: 500; font-size: 0.95rem;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--cyan); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
}
 
/* ===== MOBILE OVERLAY (sirf mobile par) ===== */
.mobile-nav-overlay {
  display: none;
}
.mobile-nav-dropdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav-dropdown > a {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.mobile-nav-dropdown > a:hover { color: var(--cyan); }
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
}
.mobile-nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 8px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
 
/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: #fff; text-align: center;
}
.hero-bg.fallback {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,28,46,0.55), rgba(15,28,46,0.72)),
    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1600&h=900&fit=crop') center/cover no-repeat;
}
.hero-content { position: relative; z-index: 2; width: min(900px, 92%); padding: 60px 0 80px; }
.country-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 18px; border-radius: 999px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 500; line-height: 1.15; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--cyan); font-style: italic; }
.hero .subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,0.85);
  max-width: 520px; margin: 0 auto 36px;
}
 
/* ===== SEARCH ===== */
.search-card {
  background: #fff; border-radius: 16px;
  padding: 10px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 6px; align-items: center;
}
.search-field {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px; background: var(--gray-50);
  border: 1.5px solid transparent;
}
.search-field:focus-within { border-color: var(--cyan); background: #fff; }
.search-field i { color: var(--gray-500); }
.search-field input, .search-field select {
  border: none; background: transparent; outline: none;
  width: 100%; font-size: 0.92rem;
}
.search-card .btn { height: 100%; min-height: 52px; padding: 0 28px; }
 
/* ===== CATEGORY CHIPS ===== */
.category-bar {
  margin-top: -28px; position: relative; z-index: 5;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  padding: 0 16px;
}
.cat-chip {
  background: #fff; border: 1.5px solid var(--gray-200);
  padding: 10px 18px; border-radius: 999px; font-size: 0.88rem;
  font-weight: 500; color: var(--gray-700);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
 
/* ===== PROPERTY CARDS ===== */
.section { padding: 72px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; gap: 16px; flex-wrap: wrap;
}
.section-header h2 {
  font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--navy);
}
.section-header h2 .accent { color: var(--cyan); }
.section-label {
  color: var(--cyan); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.prop-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
}
.prop-card .thumb {
  position: relative; height: 220px; overflow: hidden;
  background: var(--gray-200);
}
.prop-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.prop-card .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy); color: #fff; font-size: 0.75rem;
  font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.prop-card .badge.featured { background: var(--coral); }
.prop-card .price-tag {
  position: absolute; bottom: 14px; left: 14px;
  background: #fff; color: var(--navy); font-weight: 700;
  padding: 6px 14px; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.prop-card .body { padding: 18px 20px 22px; }
.prop-card .type-label {
  color: var(--cyan); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.prop-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.prop-card .loc {
  color: var(--gray-500); font-size: 0.88rem;
  display: flex; align-items: center; gap: 6px;
}
.prop-card .meta {
  display: flex; gap: 16px; padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-500); font-size: 0.85rem;
}
.prop-card .meta span { display: flex; align-items: center; gap: 5px; }
 
/* ===== FEATURES ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  background: #fff; padding: 36px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center;
  border: 1px solid var(--gray-100);
}
.feature-card .icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(34,184,207,0.12); color: var(--cyan);
  display: grid; place-items: center; font-size: 1.5rem;
  margin: 0 auto 18px;
}
.feature-card h3 { font-size: 1.15rem; color: var(--navy); }
.feature-card p { color: var(--gray-500); font-size: 0.92rem; }
 
/* ===== CTA ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff; padding: 72px 0; text-align: center;
}
.cta-band h2 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 12px; }
.cta-band p { opacity: 0.85; margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
 
/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 56px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 40px;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer a:hover { color: var(--cyan); }
.footer ul li { margin-bottom: 10px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: #fff; transition: var(--transition);
}
.socials a:hover { background: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0; text-align: center; font-size: 0.85rem;
}
 
/* ============================================================
   AUTH PAGES STYLING (LOGIN & REGISTER COMPLETE)
   ============================================================ */
 
.auth-page, .auth-container, .login-page, .register-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 50px 20px;
  background-color: var(--gray-50);
}
 
.auth-card, .form-card, .auth-box {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
 
.auth-page .form-card h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: center;
}
 
.auth-page .form-card .sub {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  text-align: center;
}
 
/* Role Pick Cards (Tenant vs Agent) */
.role-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 22px;
}
 
.role-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
 
.role-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}
 
.role-option i {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--gray-500);
}
 
.role-option strong {
  font-size: 0.9rem;
  color: var(--navy);
}
 
.role-option span {
  font-size: 0.75rem;
  color: var(--gray-500);
}
 
.role-option.selected, 
.role-option:has(input:checked) {
  border-color: var(--coral);
  background-color: #fff8f7;
}
 
.role-option.selected i, 
.role-option:has(input:checked) i {
  color: var(--coral);
}
 
/* Form Controls & Spacing */
.form-group {
  margin-bottom: 18px;
  width: 100%;
}
 
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-700);
}
 
.form-group label .req {
  color: var(--danger);
}
 
.form-control, 
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="tel"], 
select {
  width: 100% !important;
  padding: 12px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #fff;
  transition: var(--transition);
  box-sizing: border-box;
}
 
.form-control:focus, 
input:focus, 
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 184, 207, 0.15);
}
 
/* 2-Column Row (Passwords) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
 
/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert-error {
  background-color: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}
.alert-success {
  background-color: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}
 
/* ============================================================
   MOBILE & DESKTOP RESPONSIVE FIX
   ============================================================ */
 
@media (max-width: 992px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-card .btn { grid-column: 1 / -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
}
 
@media (max-width: 768px) {
  /* NAVBAR MOBILE */
  .nav-toggle { display: block !important; }
  .nav-links { display: none !important; }
  .nav-actions .hide-mobile { display: none !important; }
  .nav-actions .btn { display: none !important; }
 
  /* MOBILE OVERLAY */
  .mobile-nav-overlay {
    display: none;
    position: absolute !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    background: #0f1c2e !important;
    padding: 20px !important;
    z-index: 1001 !important;
  }
  .mobile-nav-overlay.open {
    display: block !important;
  }
 
  /* HERO MOBILE */
  .hero { min-height: 70vh !important; }
  .hero-content { padding: 30px 0 50px !important; }
  .hero h1 { font-size: 1.8rem !important; }
  .hero .subtitle { font-size: 0.95rem !important; }
  .country-badge { font-size: 0.7rem !important; padding: 4px 12px !important; }
 
  /* SEARCH MOBILE */
  .search-card {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
  }
  .search-field { padding: 10px 14px !important; }
  .search-card .btn { width: 100% !important; min-height: 48px !important; }
 
  /* CATEGORY & CARDS MOBILE */
  .category-bar { gap: 6px !important; padding: 0 8px !important; }
  .cat-chip { padding: 5px 10px !important; font-size: 0.7rem !important; }
  .prop-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .prop-card .thumb { height: 180px !important; }
  .section { padding: 40px 0 !important; }
  .section-header { flex-direction: column !important; align-items: flex-start !important; }
  .section-header h2 { font-size: 1.5rem !important; }
 
  /* FEATURES & CTA MOBILE */
  .features-grid { grid-template-columns: 1fr !important; }
  .cta-band { padding: 40px 0 !important; }
  .cta-band h2 { font-size: 1.5rem !important; }
  .cta-band .actions { flex-direction: column !important; align-items: center !important; }
  .cta-band .actions .btn { width: 100% !important; max-width: 280px !important; }
 
  /* FOOTER MOBILE */
  .footer { padding: 32px 0 0 !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
 
  .container { width: 96% !important; }
  .btn { padding: 10px 16px !important; font-size: 0.85rem !important; }
 
  /* AUTH MOBILE FIX */
  .form-row, .role-pick {
    grid-template-columns: 1fr !important;
  }
}
 
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem !important; }
  .prop-card .thumb { height: 150px !important; }
}
 
/* DESKTOP OVERRIDE: Ensure Mobile Menu Never Shows on Desktop */
@media (min-width: 769px) {
  .mobile-nav-overlay,
  .mobile-nav-dropdown,
  .mobile-nav-actions {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
  }
  .nav-actions {
    display: flex !important;
  }
  .nav-toggle {
    display: none !important;
  }
}
 
 
 
/* ===== PAGE HEADER (Listings / Detail breadcrumb area) ===== */
.page-header {
  padding: 36px 0 20px;
  background: var(--off-white);
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin: 6px 0 8px;
}
.page-header p {
  color: var(--gray-500);
  font-size: 0.98rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--cyan); }
 
/* ===== FILTER BAR (listings.php) ===== */
.filter-bar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr 1.1fr 1.1fr auto;
  gap: 14px;
  align-items: end;
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 24px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
}
.filter-group input,
.filter-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--gray-900);
  transition: var(--transition);
}
.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 184, 207, 0.15);
}
.filter-bar .btn {
  height: 44px;
  white-space: nowrap;
}
 
/* ===== EMPTY STATE (no results) ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.empty-state i {
  font-size: 2.2rem;
  color: var(--gray-200);
  margin-bottom: 16px;
}
.empty-state h3 {
  color: var(--navy);
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--gray-500);
}
 
/* ===== PROPERTY DETAIL PAGE (property.php) ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 72px;
  align-items: start;
}
 
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  background: var(--gray-200);
  box-shadow: var(--shadow);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.gallery-thumbs img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  flex-shrink: 0;
  border: 2px solid transparent;
}
.gallery-thumbs img:hover { opacity: 0.9; }
.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--cyan);
}
 
.detail-main h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 8px 0 10px;
}
.detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--coral);
  margin: 16px 0 24px;
}
.detail-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-500);
}
 
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 8px;
}
.spec-box {
  text-align: center;
  padding: 10px 6px;
  border-right: 1px solid var(--gray-100);
}
.spec-box:last-child { border-right: none; }
.spec-box i {
  font-size: 1.2rem;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}
.spec-box .val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.spec-box .lbl {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 2px;
}
 
.amenities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.amenities-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
  font-size: 0.92rem;
}
.amenities-list i {
  color: var(--success);
}
 
/* ===== SIDEBAR CARD (agent / apply box) ===== */
.sidebar-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  position: sticky;
  top: 90px;
}
.sidebar-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.agent-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
 
/* ===== RESPONSIVE: Filter Bar + Detail Layout ===== */
@media (max-width: 992px) {
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .filter-bar .btn { grid-column: 1 / -1; }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-card { position: static; }
}
 
@media (max-width: 768px) {
  .filter-bar {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }
  .specs {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .spec-box:nth-child(2) { border-right: none !important; }
  .amenities-list {
    grid-template-columns: 1fr !important;
  }
  .gallery-main { height: 260px !important; }
}
 
 
 /* ===== ADDRESS AUTOCOMPLETE DROPDOWN ===== */
.suggestions-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
}
.suggestions-dropdown.show { display: block; }
.suggestion-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--gray-700);
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.active {
  background: var(--gray-50);
  color: var(--navy);
}
.suggestion-item i { color: var(--cyan); font-size: 0.85rem; }
 
/* ============================================================
   APPLICATION PAGE STYLING (apply.php)
   ============================================================ */
 
.form-card.wide {
  max-width: 760px;
}
 
/* ===== STEP INDICATOR ===== */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}
.step {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.step.active {
  color: var(--navy);
}
.step.active .num {
  background: var(--coral);
  color: #fff;
}
 
/* ===== TEXTAREA (missing from base form controls) ===== */
textarea {
  width: 100% !important;
  padding: 12px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  background-color: #fff;
  transition: var(--transition);
  box-sizing: border-box;
  min-height: 110px;
  resize: vertical;
}
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 184, 207, 0.15);
}
 
/* ===== FEE OPTION CARDS ===== */
.fee-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.fee-card {
  display: block;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.fee-card:hover {
  border-color: var(--cyan);
}
.fee-card.selected {
  border-color: var(--coral);
  background: #fff8f7;
}
.fee-card .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.fee-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 0.98rem;
}
.fee-card ul {
  font-size: 0.85rem;
  color: var(--gray-500);
}
.fee-card ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.fee-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
 
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .steps {
    flex-wrap: wrap;
    gap: 16px;
  }
  .step {
    flex: 1 1 40%;
  }
  .fee-options {
    grid-template-columns: 1fr !important;
  }
}
 
/* ============================================================
   DASHBOARD SECTION STYLING
   (Fixes sidebar.php + ALL dashboard pages that use dash-layout)
   ============================================================ */
 
.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  width: min(1180px, 92%);
  margin: 32px auto 72px;
  align-items: start;
}
 
/* ===== SIDEBAR ===== */
.dash-sidebar {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 24px 18px;
  position: sticky;
  top: 90px;
}
.dash-sidebar .brand {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}
.dash-nav a i { width: 18px; text-align: center; color: rgba(255,255,255,0.5); }
.dash-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.dash-nav a.active {
  background: var(--coral);
  color: #fff;
}
.dash-nav a.active i { color: #fff; }
 
/* ===== MAIN CONTENT ===== */
.dash-main { min-width: 0; }
.dash-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 22px;
}
 
/* ===== DATA TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.data-table thead {
  background: var(--gray-50);
}
.data-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  font-weight: 700;
  border-bottom: 1px solid var(--gray-100);
}
.data-table td {
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table small { color: var(--gray-500); font-size: 0.82rem; }
 
/* ===== STATUS PILLS ===== */
.status-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--gray-100);
  color: var(--gray-700);
}
.status-pill.pending_payment { background: #fff7ed; color: #c2410c; }
.status-pill.documents_pending,
.status-pill.documents_needed { background: #eff6ff; color: #1d4ed8; }
.status-pill.paid { background: #ecfdf5; color: var(--success); }
.status-pill.approved { background: #ecfdf5; color: var(--success); }
.status-pill.rejected { background: #fef2f2; color: var(--danger); }
.status-pill.pending_review,
.status-pill.under_review { background: #f5f3ff; color: #6d28d9; }
 
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: static;
  }
  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dash-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
 
/* ============================================================
   DOCUMENTS PAGE STYLING (documents.php)
   ============================================================ */
 
/* Info alert (blue) - not covered by earlier alert-error/alert-success */
.alert-info {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
 
/* Completed step in the stepper (checkmark state) */
.step.done .num {
  background: var(--success);
  color: #fff;
}
.step.done {
  color: var(--navy);
}
 
/* Credit Score / Background Check link cards */
.link-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 8px;
}
.link-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.link-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.link-card i {
  font-size: 1.6rem;
  color: var(--cyan);
  margin-bottom: 10px;
  display: block;
}
 
/* Drag-and-drop / click upload zone */
.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--cyan);
  background: #f0fbfd;
}
.upload-zone i {
  font-size: 1.8rem;
  color: var(--cyan);
  margin-bottom: 10px;
  display: block;
}
.upload-zone p {
  font-size: 0.88rem;
  color: var(--gray-500);
}
.upload-zone.has-file {
  border-color: var(--success);
  background: #ecfdf5;
}
.upload-zone.has-file i { color: var(--success); }
 
/* Responsive */
@media (max-width: 768px) {
  .link-cards {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   DASHBOARD OVERVIEW STATS (dashboard/index.php)
   ============================================================ */
 
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  text-align: center;
}
.stat-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34,184,207,0.12);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin: 0 auto 12px;
}
.stat-card .num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--serif);
}
.stat-card .lbl {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}
 
/* Property status pill (active/inactive) - reuses status-pill base */
.status-pill.active { background: #ecfdf5; color: var(--success); }
.status-pill.inactive,
.status-pill.draft { background: var(--gray-100); color: var(--gray-500); }
 
@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
 
 * ============================================================
   LIST PROPERTY PAGE STYLING (dashboard/list-property.php)
   ============================================================ */
 
/* FIX: number & date inputs were missing from the base input styling */
input[type="number"],
input[type="date"] {
  width: 100% !important;
  padding: 12px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #fff;
  transition: var(--transition);
  box-sizing: border-box;
  font-family: var(--font);
  color: var(--gray-900);
}
input[type="number"]:focus,
input[type="date"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 184, 207, 0.15);
}
 
/* Image upload preview thumbnails */
.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}
 
/* Small hint text under fields */
.form-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 8px;
}
.form-hint code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
  color: var(--navy);
}
 
 