/* ========================================
   REXPROPERTYHUB – Main Stylesheet
   ======================================== */

:root {
  --primary: #1a3c5e;
  --primary-dark: #0f2540;
  --primary-light: #254d7a;
  --accent-amber: #f5a623;
  --accent-green: #27ae60;
  --accent-blue: #2980b9;
  --accent-rose: #e74c6a;
  --text-dark: #0f1923;
  --text-mid: #4a5568;
  --text-light: #8a95a3;
  --bg-light: #f7f9fc;
  --bg-card: #ffffff;
  --border: #e8ecf0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(15,25,35,0.08);
  --shadow-hover: 0 12px 40px rgba(15,25,35,0.16);
  --nav-height: 72px;
  --sidebar-width: 260px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }

/* ========== NAVBAR ========== */
#mainNav {
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
  z-index: 1000;
}
#mainNav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.navbar-brand { text-decoration: none; }
.brand-rex { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.4rem; color: var(--primary); }
.brand-prop { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.4rem; color: var(--accent-amber); }

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--primary) !important; background: var(--bg-light); }
.nav-link.active { color: var(--primary) !important; }

.btn-outline-nav {
  border: 1.5px solid var(--border) !important;
  color: var(--primary) !important;
}
.btn-outline-nav:hover { border-color: var(--primary) !important; background: var(--primary) !important; color: #fff !important; }

.btn-primary-nav {
  background: var(--accent-amber) !important;
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
}
.btn-primary-nav:hover { background: #e09520 !important; transform: translateY(-1px); }

/* Hamburger */
.navbar-toggler { border: none; padding: 4px; }
.navbar-toggler:focus { box-shadow: none; }
.hamburger-icon { display: flex; flex-direction: column; gap: 5px; }
.hamburger-icon span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ========== HERO ========== */
.hero-section {
  background: linear-gradient(135deg, #0f2540 0%, #1a3c5e 60%, #254d7a 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%;
  background: rgba(245,166,35,0.08);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -200px; }
.shape-2 { width: 400px; height: 400px; bottom: 100px; left: -150px; background: rgba(255,255,255,0.04); }
.shape-3 { width: 200px; height: 200px; top: 30%; right: 10%; background: rgba(245,166,35,0.06); }

.hero-content { padding-top: var(--nav-height); }

.hero-badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--accent-amber);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.title-highlight { color: var(--accent-amber); }
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; animation: fadeInUp 0.7s ease 0.3s both; }

.btn-hero-primary {
  display: inline-flex; align-items: center;
  background: var(--accent-amber);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.35);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,166,35,0.5); color: var(--primary-dark); }

.btn-hero-secondary {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }

.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; animation: fadeInUp 0.7s ease 0.4s both; }
.stat-pill {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 20px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--accent-amber); }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* Hero Image / Float Cards */
.hero-image-col { position: relative; display: flex; justify-content: center; align-items: center; padding: 60px 20px; }
.hero-card-stack { position: relative; width: 100%; max-width: 400px; height: 460px; }

.property-card-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  width: 280px;
}
.card-1 { top: 0; right: 0; animation: floatCard 4s ease-in-out infinite; }
.card-2 { bottom: 40px; left: 0; animation: floatCard 4s ease-in-out 1.5s infinite; }

@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.float-card-img {
  width: 100%; height: 150px;
  background-size: cover; background-position: center;
}
.float-card-info { padding: 12px 16px; }
.float-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; margin-bottom: 6px;
}
.float-badge.for-sale { background: rgba(231,76,106,0.1); color: var(--accent-rose); }
.float-badge.for-rent { background: rgba(39,174,96,0.1); color: var(--accent-green); }
.float-price { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.float-loc { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.float-loc i { color: var(--accent-amber); margin-right: 4px; }

.verified-badge-float {
  position: absolute; bottom: 10px; right: 0;
  background: var(--primary-dark); color: #fff;
  font-size: 0.78rem; font-weight: 600;
  padding: 8px 16px; border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.verified-badge-float i { color: var(--accent-amber); margin-right: 6px; }

/* ========== SEARCH BOX ========== */
.search-section { padding: 0 0 60px; }
.search-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.search-tabs { display: flex; border-bottom: 1px solid var(--border); }
.s-tab {
  flex: 1; padding: 14px;
  border: none; background: none;
  font-weight: 600; font-size: 0.88rem; color: var(--text-light);
  cursor: pointer; transition: all 0.2s;
}
.s-tab.active { color: var(--primary); border-bottom: 2.5px solid var(--accent-amber); background: rgba(245,166,35,0.04); }

.search-fields {
  display: flex; align-items: center; padding: 16px;
  gap: 8px; flex-wrap: wrap;
}
.s-field {
  flex: 1; min-width: 140px;
  display: flex; flex-direction: column; gap: 4px;
}
.s-field label { font-size: 0.72rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
.s-field label i { color: var(--accent-amber); }
.s-field input, .s-field select {
  border: none; outline: none; font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  color: var(--text-dark); background: transparent; cursor: pointer; width: 100%;
}
.s-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

.search-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-amber); color: var(--primary-dark);
  font-weight: 700; font-size: 0.9rem;
  border: none; padding: 14px 24px; border-radius: 10px;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  flex-shrink: 0;
}
.search-btn:hover { background: #e09520; transform: scale(1.02); }

/* ========== SECTION HEADERS ========== */
.section-tag {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  color: var(--accent-amber);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.section-sub { color: var(--text-mid); font-size: 1rem; }

/* ========== PROPERTY CARDS ========== */
.prop-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  height: 100%;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.prop-img {
  height: 200px;
  background-size: cover; background-position: center;
  position: relative;
}
.badge-type {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
}
.badge-type.sale { background: var(--accent-rose); color: #fff; }
.badge-type.rent { background: var(--accent-green); color: #fff; }
.badge-type.sm { font-size: 0.65rem; padding: 3px 9px; position: static; }

.featured-ribbon {
  position: absolute; top: 12px; right: 44px;
  background: var(--accent-amber); color: var(--primary-dark);
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 100px;
}
.wishlist-btn {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.9); border: none;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; color: var(--text-mid);
}
.wishlist-btn:hover { background: var(--accent-rose); color: #fff; }

.prop-body { padding: 18px; }
.prop-price { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.prop-price span { font-size: 0.8rem; font-family: 'DM Sans', sans-serif; font-weight: 400; color: var(--text-light); }
.prop-name { font-size: 0.95rem; font-weight: 600; margin: 6px 0 4px; color: var(--text-dark); }
.prop-loc { font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }
.prop-loc i { color: var(--accent-amber); margin-right: 4px; }

.prop-features {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-mid); margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.prop-features i { color: var(--accent-amber); margin-right: 4px; }

.prop-footer { display: flex; align-items: center; justify-content: space-between; }
.agent-mini { display: flex; align-items: center; gap: 8px; }
.agent-mini img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.agent-mini span { font-size: 0.78rem; font-weight: 500; color: var(--text-mid); }

.view-btn {
  font-size: 0.78rem; font-weight: 700; color: var(--primary);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px; border: 1.5px solid var(--primary);
  transition: all 0.2s;
}
.view-btn:hover { background: var(--primary); color: #fff; }

/* ========== HOW IT WORKS ========== */
.how-it-works { background: #fff; }
.how-card {
  text-align: center; padding: 32px 24px;
  border-radius: var(--radius); border: 1.5px solid var(--border);
  transition: all 0.3s; position: relative;
}
.how-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.how-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; margin: 0 auto 14px;
}
.how-step {
  position: absolute; top: 14px; right: 16px;
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900;
  color: var(--border); line-height: 1;
}
.how-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.how-card p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.7; }

/* ========== AGENT CTA ========== */
.agent-cta-section { padding: 80px 0; background: var(--bg-light); }
.agent-cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px; padding: 60px; overflow: hidden; position: relative;
}
.agent-cta-box::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(245,166,35,0.08);
}
.cta-tag {
  display: inline-block; background: rgba(245,166,35,0.2);
  border: 1px solid rgba(245,166,35,0.35); color: var(--accent-amber);
  font-size: 0.75rem; font-weight: 700; padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
}
.cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-sub { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.7; }
.cta-perks { list-style: none; padding: 0; margin-bottom: 30px; display: flex; flex-direction: column; gap: 10px; }
.cta-perks li { color: rgba(255,255,255,0.85); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.cta-perks i { color: var(--accent-amber); font-size: 0.85rem; }

.btn-cta-main {
  background: var(--accent-amber); color: var(--primary-dark);
  font-weight: 700; padding: 14px 28px; border-radius: 100px;
  text-decoration: none; display: inline-flex; align-items: center;
  transition: all 0.2s;
}
.btn-cta-main:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,0.4); color: var(--primary-dark); }

.cta-illustration { position: relative; }
.cta-house-icon {
  width: 180px; height: 180px; background: rgba(255,255,255,0.07); border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.1);
}
.cta-stat-card {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent-amber); border-radius: 14px; padding: 16px 20px;
  text-align: center;
}
.cta-stat-num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; color: var(--primary-dark); }
.cta-stat-card div { font-size: 0.75rem; font-weight: 600; color: var(--primary); }

/* ========== TESTIMONIALS ========== */
.testimonials-section { background: var(--bg-light); }
.testi-card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 1.5px solid var(--border); box-shadow: var(--shadow);
}
.featured-testi { border-color: var(--accent-amber); background: linear-gradient(135deg, #fff9ee 0%, #fff 60%); }
.testi-stars { color: var(--accent-amber); font-size: 1rem; margin-bottom: 14px; }
.testi-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.8; font-style: italic; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-author strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--primary); }
.testi-author span { font-size: 0.78rem; color: var(--text-light); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}
.footer-brand { display: flex; align-items: baseline; gap: 2px; margin-bottom: 16px; }
.footer-brand .brand-rex, .footer-brand .brand-prop { color: #fff; }
.footer-brand .brand-prop { color: var(--accent-amber); }
.footer-tagline { font-size: 0.87rem; line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.footer-contact-info { margin-bottom: 20px; }
.footer-contact-info p { font-size: 0.85rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.footer-contact-info i { color: var(--accent-amber); }

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.07);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem;
  transition: all 0.2s;
}
.footer-socials a:hover { background: var(--accent-amber); color: var(--primary-dark); }

.footer-heading { color: #fff; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; font-family: 'DM Sans', sans-serif; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.87rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-amber); }

.footer-newsletter-sub { font-size: 0.85rem; margin-bottom: 14px; color: rgba(255,255,255,0.55); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 12px 16px; color: #fff; font-size: 0.87rem; font-family: 'DM Sans', sans-serif;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form button {
  background: var(--accent-amber); color: var(--primary-dark);
  border: none; border-radius: 10px; padding: 12px 18px;
  font-weight: 700; font-size: 0.85rem; cursor: pointer;
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--accent-amber); }

/* ========== PAGE HEADER BAR ========== */
.page-header-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: calc(var(--nav-height) + 40px) 0 40px;
  text-align: center;
}
.page-header-title { font-size: 2.2rem; color: #fff; font-weight: 900; margin-bottom: 8px; }
.page-header-sub { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* ========== LISTINGS PAGE ========== */
.filter-sidebar {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); position: sticky; top: calc(var(--nav-height) + 20px);
}
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filter-header h5 { font-size: 0.95rem; font-weight: 700; color: var(--primary); font-family: 'DM Sans', sans-serif; }
.filter-clear { border: none; background: none; font-size: 0.78rem; color: var(--accent-amber); font-weight: 600; cursor: pointer; }

.filter-group { margin-bottom: 22px; }
.filter-label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 10px; }

.filter-radios { display: flex; gap: 6px; flex-wrap: wrap; }
.radio-opt {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.83rem; cursor: pointer; padding: 6px 14px;
  border-radius: 100px; border: 1.5px solid var(--border);
  font-weight: 500; transition: all 0.2s;
}
.radio-opt input { display: none; }
.active-opt { border-color: var(--primary); background: var(--primary); color: #fff; }

.checkbox-list { display: flex; flex-direction: column; gap: 8px; }
.checkbox-list label { font-size: 0.85rem; color: var(--text-mid); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.checkbox-list input { accent-color: var(--primary); }

.filter-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 0.85rem; color: var(--text-dark); outline: none;
  font-family: 'DM Sans', sans-serif;
}
.filter-input:focus { border-color: var(--primary); }

.bed-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.bed-btn {
  width: 40px; height: 36px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: 0.83rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.bed-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }

.price-range-inputs { display: flex; align-items: center; gap: 8px; }
.price-range-inputs span { color: var(--text-light); }

.btn-apply-filter {
  width: 100%; padding: 12px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
}
.btn-apply-filter:hover { background: var(--primary-light); }

.listings-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.results-count { font-size: 0.87rem; color: var(--text-mid); }
.results-count strong { color: var(--primary); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.83rem; font-family: 'DM Sans', sans-serif; outline: none; cursor: pointer; }
.view-toggle { display: flex; gap: 4px; }
.vt-btn { width: 36px; height: 36px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-size: 0.85rem; color: var(--text-light); transition: all 0.2s; }
.vt-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(26,60,94,0.06); }

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(26,60,94,0.08); color: var(--primary);
  font-size: 0.78rem; font-weight: 600;
  padding: 5px 12px; border-radius: 100px; cursor: pointer;
}
.filter-pill i { font-size: 0.68rem; color: var(--text-light); }

.listings-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-btn {
  width: 40px; height: 40px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: 0.87rem; font-weight: 600; cursor: pointer; transition: all 0.2s; color: var(--text-mid);
}
.pg-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.pg-next { width: auto; padding: 0 16px; display: flex; align-items: center; gap: 8px; }
.listings-pagination span { color: var(--text-light); }

.btn-see-all {
  display: inline-flex; align-items: center;
  border: 2px solid var(--primary); color: var(--primary);
  padding: 12px 28px; border-radius: 100px; font-weight: 700; text-decoration: none;
  transition: all 0.2s;
}
.btn-see-all:hover { background: var(--primary); color: #fff; }

/* ========== AUTH PAGES ========== */
.auth-body { background: var(--bg-light); }
.auth-layout { display: flex; min-height: 100vh; }
.auth-left {
  width: 45%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 50px; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%; background: rgba(245,166,35,0.07);
}
.auth-logo { text-decoration: none; display: block; margin-bottom: 48px; }
.auth-left-title { font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.auth-left-sub { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.8; margin-bottom: 36px; }

.auth-perks { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.perk-item { display: flex; align-items: center; gap: 14px; }
.perk-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(245,166,35,0.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-amber);
}
.perk-item strong { display: block; color: #fff; font-size: 0.9rem; font-weight: 700; }
.perk-item span { display: block; color: rgba(255,255,255,0.55); font-size: 0.8rem; }

.auth-testimonial {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 20px;
}
.auth-testimonial p { color: rgba(255,255,255,0.8); font-size: 0.88rem; font-style: italic; line-height: 1.7; margin-bottom: 14px; }
.auth-testi-author { display: flex; align-items: center; gap: 10px; }
.auth-testi-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.auth-testi-author span { color: rgba(255,255,255,0.65); font-size: 0.8rem; }

.auth-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.auth-form-container { width: 100%; max-width: 480px; }
.auth-mobile-logo { text-align: center; margin-bottom: 30px; margin-top: 20px; }
.auth-form-title { font-size: 1.7rem; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.auth-form-sub { font-size: 0.87rem; color: var(--text-light); margin-bottom: 24px; }

/* Form Steps Progress */
.form-steps { display: flex; align-items: center; margin-bottom: 32px; }
.form-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.form-step span {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700;
  border: 2px solid var(--border); color: var(--text-light); background: #fff;
  transition: all 0.3s;
}
.form-step label { font-size: 0.7rem; color: var(--text-light); font-weight: 500; }
.form-step.active span { border-color: var(--primary); background: var(--primary); color: #fff; }
.form-step.active label { color: var(--primary); font-weight: 700; }
.form-step.done span { border-color: var(--accent-green); background: var(--accent-green); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px 16px; transition: background 0.3s; }

/* Form Content */
.form-step-content { display: none; }
.form-step-content.active { display: block; }

.form-group-custom { display: flex; flex-direction: column; gap: 6px; }
.form-group-custom label { font-size: 0.82rem; font-weight: 600; color: var(--primary); display: flex; justify-content: space-between; align-items: center; }
.forgot-link { font-size: 0.78rem; color: var(--accent-amber); font-weight: 600; text-decoration: none; }

.input-icon-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--bg-light);
  transition: border-color 0.2s;
}
.input-icon-wrap:focus-within { border-color: var(--primary); background: #fff; }
.input-icon-wrap > i { color: var(--text-light); font-size: 0.85rem; flex-shrink: 0; }
.input-icon-wrap input, .input-icon-wrap select {
  border: none; outline: none; background: transparent;
  flex: 1; font-size: 0.9rem; font-family: 'DM Sans', sans-serif; color: var(--text-dark);
}
.input-icon-wrap textarea {
  border: none; outline: none; background: transparent; flex: 1;
  font-size: 0.9rem; font-family: 'DM Sans', sans-serif; color: var(--text-dark);
  resize: vertical; min-height: 80px;
}

.toggle-pass { border: none; background: none; cursor: pointer; color: var(--text-light); font-size: 0.85rem; }

.password-strength { display: flex; align-items: center; gap: 8px; }
.strength-bars { display: flex; gap: 4px; }
.s-bar { width: 30px; height: 4px; border-radius: 2px; background: var(--border); transition: background 0.3s; }
.strength-label { font-size: 0.72rem; color: var(--text-light); }

.file-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 28px; text-align: center; cursor: pointer;
  position: relative; transition: all 0.2s;
}
.file-upload-area:hover { border-color: var(--primary); background: rgba(26,60,94,0.03); }
.file-upload-area i { font-size: 1.8rem; color: var(--text-light); margin-bottom: 8px; display: block; }
.file-upload-area p { font-size: 0.87rem; color: var(--text-mid); margin: 0 0 4px; }
.file-upload-area small { font-size: 0.75rem; color: var(--text-light); }
.file-upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-area.multi i { font-size: 2rem; }

.terms-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.84rem; color: var(--text-mid); }
.terms-check input { margin-top: 3px; accent-color: var(--primary); }
.terms-check a { color: var(--primary); font-weight: 600; }

.btn-auth-next {
  width: 100%; padding: 14px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.btn-auth-next:hover { background: var(--primary-light); }
.btn-auth-back {
  padding: 14px 20px; border: 1.5px solid var(--border); background: #fff; color: var(--text-mid);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.btn-auth-back:hover { border-color: var(--primary); color: var(--primary); }
.btn-auth-submit {
  width: 100%; padding: 14px; background: var(--accent-amber); color: var(--primary-dark);
  border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.btn-auth-submit:hover { background: #e09520; }

.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border);
}
.auth-divider span { background: var(--bg-light); position: relative; padding: 0 14px; font-size: 0.8rem; color: var(--text-light); }

.social-btn {
  width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.google-btn i { color: #ea4335; }
.social-btn:hover { border-color: var(--primary); }

.auth-switch { text-align: center; font-size: 0.87rem; color: var(--text-light); }
.auth-switch a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* Login Stats Cards */
.login-stats { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.ls-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07); border-radius: 12px; padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.1);
}
.ls-card i { font-size: 1.3rem; color: var(--accent-amber); }
.ls-num { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: #fff; }
.ls-card div:last-child { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ========== DASHBOARD ========== */
.dashboard-body { background: #f0f4f8; }
.dash-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width); background: var(--primary-dark);
  z-index: 999; display: flex; flex-direction: column;
  transition: transform 0.3s;
}
.sidebar-logo {
  padding: 22px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
}
.sidebar-close { border: none; background: none; color: rgba(255,255,255,0.5); font-size: 1.1rem; cursor: pointer; }

.sidebar-agent-info {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-amber); }
.sidebar-name { color: #fff; font-weight: 700; font-size: 0.9rem; }
.sidebar-role { color: var(--accent-amber); font-size: 0.75rem; display: flex; align-items: center; gap: 5px; }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.87rem; font-weight: 500; padding: 12px 14px;
  border-radius: var(--radius-sm); transition: all 0.2s; position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-link.active { background: rgba(245,166,35,0.15); color: var(--accent-amber); }
.sidebar-link i { font-size: 0.9rem; width: 18px; text-align: center; }
.logout-link { margin-top: auto; color: rgba(231,76,106,0.7) !important; }
.logout-link:hover { background: rgba(231,76,106,0.1) !important; color: var(--accent-rose) !important; }

.badge-notif {
  margin-left: auto; background: var(--accent-rose); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 100px;
}

.sidebar-contact { padding: 14px 22px; font-size: 0.78rem; color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(255,255,255,0.06); }

.dash-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.dash-topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 30px; background: #fff;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.sidebar-toggle { border: none; background: none; font-size: 1.2rem; color: var(--text-mid); cursor: pointer; }
.topbar-title { flex: 1; }
.topbar-title h4 { font-size: 1.1rem; margin: 0; color: var(--primary); }
.topbar-title p { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-notif { position: relative; border: none; background: var(--bg-light); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 0.9rem; color: var(--text-mid); }
.notif-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: var(--accent-rose); border-radius: 50%; border: 2px solid #fff; }
.btn-post-new {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent-amber); color: var(--primary-dark);
  border: none; border-radius: var(--radius-sm); padding: 10px 18px;
  font-weight: 700; font-size: 0.85rem; text-decoration: none; cursor: pointer; transition: all 0.2s;
}
.btn-post-new:hover { background: #e09520; color: var(--primary-dark); }

.dash-section { display: none; padding: 28px 30px; flex: 1; }
.dash-section.active { display: block; }

/* Stat Cards */
.dash-stat-card {
  background: #fff; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  border-top: 4px solid var(--accent, var(--accent-amber));
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(245,166,35,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--accent, var(--accent-amber)); margin-bottom: 12px;
}
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.stat-title { font-size: 0.78rem; color: var(--text-light); font-weight: 600; margin-top: 2px; }
.stat-trend { font-size: 0.75rem; margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.stat-trend.up { color: var(--accent-green); }
.stat-trend.down { color: var(--accent-rose); }

.dash-card {
  background: #fff; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.dash-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-card-header h6 { font-size: 0.95rem; font-weight: 700; color: var(--primary); font-family: 'DM Sans', sans-serif; margin: 0; }
.see-all-link { font-size: 0.78rem; color: var(--accent-amber); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 5px; }

.listing-rows { display: flex; flex-direction: column; gap: 14px; }
.listing-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); transition: all 0.2s;
}
.listing-row:hover { background: var(--bg-light); }
.lr-img { width: 56px; height: 48px; border-radius: var(--radius-sm); background-size: cover; background-position: center; flex-shrink: 0; }
.lr-info { flex: 1; min-width: 0; }
.lr-name { font-size: 0.85rem; font-weight: 600; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.75rem; color: var(--text-light); }
.lr-stats { display: flex; gap: 14px; flex-shrink: 0; }
.lr-stats > div { text-align: center; }
.lr-stats span { display: block; font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.lr-stats small { font-size: 0.68rem; color: var(--text-light); }
.lr-actions { display: flex; gap: 6px; flex-shrink: 0; }
.lr-btn { width: 30px; height: 30px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-size: 0.78rem; transition: all 0.2s; }
.lr-btn.edit:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.lr-btn.del:hover { border-color: var(--accent-rose); color: var(--accent-rose); }

.inquiry-list { display: flex; flex-direction: column; gap: 12px; }
.inquiry-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); transition: all 0.2s;
}
.inquiry-item.unread { background: rgba(245,166,35,0.05); border-color: rgba(245,166,35,0.2); }
.inq-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.inq-info { flex: 1; min-width: 0; }
.inq-name { font-size: 0.85rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.inq-new { background: var(--accent-amber); color: var(--primary-dark); font-size: 0.62rem; font-weight: 800; padding: 1px 7px; border-radius: 100px; }
.inq-msg { font-size: 0.78rem; color: var(--text-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 3px 0; }
.inq-time { font-size: 0.7rem; color: var(--text-light); }
.inq-call {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; text-decoration: none; flex-shrink: 0; transition: all 0.2s;
}
.inq-call:hover { transform: scale(1.1); color: #fff; }

/* Post Listing Form */
.post-listing-card .input-icon-wrap { background: #fff; }
.type-selector { display: flex; gap: 12px; }
.type-opt {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.type-opt input { display: none; }
.active-type { border-color: var(--primary); background: var(--primary); color: #fff; }

.btn-dash-primary {
  background: var(--accent-amber); color: var(--primary-dark);
  border: none; border-radius: var(--radius-sm); padding: 13px 28px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center;
}
.btn-dash-primary:hover { background: #e09520; }
.btn-dash-outline {
  background: #fff; color: var(--primary); border: 2px solid var(--primary);
  border-radius: var(--radius-sm); padding: 11px 24px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.btn-dash-outline:hover { background: var(--primary); color: #fff; }

/* Textarea wrapper */
.form-group-custom textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  color: var(--text-dark); outline: none; resize: vertical; background: var(--bg-light);
}
.form-group-custom textarea:focus { border-color: var(--primary); background: #fff; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .auth-left { display: none !important; }
  .auth-right { flex: 1; }
  .dash-sidebar {
    transform: translateX(-100%);
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .agent-cta-box { padding: 36px 28px; }
  .hero-image-col { display: none; }
  .search-fields { flex-direction: column; align-items: stretch; }
  .s-divider { width: 100%; height: 1px; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.7rem; }
  .auth-right { padding: 24px 16px; }
  .dash-section { padding: 20px 16px; }
  .dash-topbar { padding: 14px 16px; }
  .listing-row .lr-stats { display: none; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { text-align: center; justify-content: center; }
  .hero-stats { gap: 10px; }
  .stat-pill { padding: 8px 14px; }
}
