@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

:root {
  /* Nestora Light Palette (Showcase Image Colors) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #fd5c14; /* Premium Orange Accent */
  --primary-hover: #e24e09;
  --primary-light: rgba(253, 92, 20, 0.08);
  
  --secondary: #10b981; /* Emerald Green */
  --secondary-hover: #059669;
  --secondary-light: rgba(16, 185, 129, 0.08);
  
  --accent: #f59e0b; /* Amber */
  --border-color: #e2e8f0;
  
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.5);
  
  --sidebar-bg: #0b1329; /* Dark Navy Sidebar */
  --sidebar-text: #94a3b8;
  --sidebar-active: #ffffff;
  --sidebar-active-bg: rgba(255, 255, 255, 0.08);
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode (Kept as toggle option) */
body.dark-mode {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-color: #1e293b;
  --glass-bg: rgba(15, 23, 42, 0.9);
  --glass-border: rgba(255, 255, 255, 0.03);
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Header style adjustments */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-icon-nestora {
  font-size: 2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-container span {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: -4px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
}

nav a:hover, nav a.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Custom styled buttons */
.btn {
  border: none;
  padding: 0.65rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-sm); /* Squared edges matching design screenshot */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(253, 92, 20, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1.5px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-1.5px);
}

.btn-accent {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.btn-accent:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1.5px);
}

.dark-mode-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode-toggle:hover {
  background-color: var(--bg-tertiary);
}

/* Hero section banner layout */
.hero {
  padding: 5rem 6% 6rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: linear-gradient(rgba(10, 18, 32, 0.55), rgba(10, 18, 32, 0.45)), url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  color: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  background-color: rgba(253, 92, 20, 0.2);
  border: 1px solid rgba(253, 92, 20, 0.4);
  color: #ff915c;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px; /* Spacing: Heading -> 16px -> Subtitle */
  max-width: 850px;
  color: white;
}

.highlight-rental {
  color: #FF6B2C !important;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  font-weight: 500;
  max-width: 680px;
  margin-bottom: 24px; /* Spacing: Subtitle -> 24px -> Trust Strip */
  line-height: 1.5;
}

/* Trust Strip Container & Cards */
.trust-strip-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
  max-width: 950px;
  background: rgba(255, 255, 255, 0.1); /* Floating glass frame */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0.85rem;
  margin-bottom: 28px; /* Spacing: Trust Strip -> 28px -> Search Box */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.trust-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.88); /* Frosted white glass background for maximum readability */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: left;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.96);
}

.trust-icon-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: #FF6B2C;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-card:hover .trust-icon-circle {
  transform: scale(1.1);
}

.trust-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-card-title {
  color: #0b1329; /* Dark Navy - High Contrast on Frosted White Card */
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.trust-card-desc {
  color: #475569; /* Slate Gray - High Contrast */
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Responsive Trust Strip */
@media (max-width: 992px) {
  .trust-strip-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    border-radius: 16px;
    padding: 0.75rem;
  }
}

@media (max-width: 768px) {
  .trust-strip-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0;
    width: 100vw;
    margin-left: -6%;
    padding-left: 6%;
    padding-right: 6%;
    scrollbar-width: none;
  }
  
  .trust-strip-container::-webkit-scrollbar {
    display: none;
  }

  .trust-card {
    min-width: 245px;
    flex: 0 0 245px;
    scroll-snap-align: start;
  }
}

/* Styled tabs on top of search bar */
.hero-search-tabs {
  display: flex;
  gap: 0.25rem;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.35rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  align-self: flex-start;
  margin-left: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
}

.search-tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.search-tab-btn.active {
  background-color: var(--primary);
  color: white;
}

/* Search widget bar styling */
.search-container {
  width: 100%;
  max-width: 950px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 10;
  margin-top: -1px;
  color: var(--text-primary);
}

.search-main-fields {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1.2fr 1fr;
  gap: 1rem;
}

@media (max-width: 992px) {
  .search-main-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .search-main-fields {
    grid-template-columns: 1fr;
  }
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  text-align: left;
}

.search-field label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper select,
.search-input-wrapper input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}

.search-input-wrapper select:focus,
.search-input-wrapper input:focus {
  border-color: var(--primary);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(253, 92, 20, 0.1);
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  margin-top: 0.25rem;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  color: var(--text-primary);
}

.suggestion-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--primary);
}

/* Quick badges filters row */
.quick-filters-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: 780px;
}

.quick-filter-badge {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.quick-filter-badge:hover, .quick-filter-badge.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ==================== LIVE STATISTICS SECTION ==================== */
.live-stats-section {
  position: relative;
  padding: 5rem 6%;
  background-color: #F8FAFC; /* Premium soft background */
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

/* Corner Radial Gradients */
.stats-bg-gradient-tr {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 92, 20, 0.05) 0%, rgba(253, 92, 20, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.stats-bg-gradient-bl {
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

/* Geometric Dots Background Pattern (Extremely low opacity) */
.stats-bg-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}

.stats-intro {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
}

.stats-trust-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.stats-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Live Indicator Badge */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.stats-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

/* Spacing container for mobile snap scroll */
.stats-carousel-outer {
  position: relative;
  z-index: 2;
  width: 100%;
}

.stats-grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  width: 100%;
}

/* Cards Base Style */
.stat-card {
  background-color: white;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 20px;
  padding: 2rem 1.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Icon circular background */
.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon-wrapper {
  transform: scale(1.08);
}

/* Accent Color Variables per Card */
.accent-green .stat-icon-wrapper { background-color: rgba(16, 185, 129, 0.08); color: #10b981; }
.accent-orange .stat-icon-wrapper { background-color: rgba(253, 92, 20, 0.08); color: #fd5c14; }
.accent-blue .stat-icon-wrapper { background-color: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.accent-purple .stat-icon-wrapper { background-color: rgba(139, 92, 246, 0.08); color: #8b5cf6; }
.accent-teal .stat-icon-wrapper { background-color: rgba(20, 184, 166, 0.08); color: #14b8a6; }
.accent-gold .stat-icon-wrapper { background-color: rgba(245, 158, 11, 0.08); color: #f59e0b; }

/* Card Values */
.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-num-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-primary);
  transition: color 300ms ease;
  line-height: 1.2;
}

.stat-card:hover .stat-num-value {
  color: var(--primary); /* Changes to primary brand color on hover */
}

.stat-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 500;
}

/* Responsive rules */
@media (max-width: 1200px) {
  .stats-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .stats-grid-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 1.5rem;
    width: 100vw;
    margin-left: -6%;
    padding-left: 6%;
    padding-right: 6%;
    scrollbar-width: none;
  }
  
  .stats-grid-container::-webkit-scrollbar {
    display: none;
  }

  .stat-card {
    min-width: 240px;
    flex: 0 0 240px;
    scroll-snap-align: start;
    padding: 2rem 1.25rem;
  }
}

/* Explore Top Localities */
.localities-section {
  padding: 5rem 6% 3rem;
  text-align: left;
}

.localities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1200px) {
  .localities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .localities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .localities-grid {
    grid-template-columns: 1fr;
  }
}

.locality-card {
  height: 175px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  border: none;
}

.locality-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.75) 100%);
  z-index: 1;
  transition: var(--transition);
}

.locality-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.locality-card:hover::after {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.locality-card-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  width: 100%;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.locality-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.15rem;
}

.locality-card span {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 700;
}

/* Listings section */
.listings-section {
  padding: 2rem 6% 5rem;
  text-align: left;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.listings-filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.listing-filter-tab {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.listing-filter-tab:hover, .listing-filter-tab.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Property Grid Card */
.property-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); /* Square border matching screenshot */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(253, 92, 20, 0.3);
}

.property-image-container {
  height: 215px;
  position: relative;
  background-color: var(--bg-tertiary);
  overflow: hidden;
}

.property-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image-container img {
  transform: scale(1.06);
}

.property-tags {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 5;
}

.tag {
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.5px;
}

.tag-verified {
  background-color: #10b981;
}

.tag-no-broker {
  background-color: var(--primary);
}

.property-rent-overlay {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  z-index: 5;
}

.property-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.property-category {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.property-location i {
  color: var(--primary);
}

.property-details-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
  margin-top: 0.4rem;
}

.property-detail-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.property-detail-item i {
  color: var(--text-secondary);
}

/* Services */
.services-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 6%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.service-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.service-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Leave & License Agreement Banner */
.license-banner-container {
  padding: 4rem 6%;
}

.license-banner {
  background: linear-gradient(135deg, #0b1329, #1b253c);
  border-radius: var(--radius-sm);
  padding: 3.5rem;
  color: white;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .license-banner {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
}

.license-content h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.license-content p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.license-checklist {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.license-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.license-checklist li i {
  color: var(--secondary);
}

.license-graphic {
  position: relative;
  display: flex;
  justify-content: center;
}

.stamp-paper-mock {
  background-color: white;
  color: black;
  width: 200px;
  height: 275px;
  padding: 1.25rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  border-radius: 4px;
  border-top: 15px solid #d97706;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-5deg);
}

.stamp-header {
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
  font-size: 0.72rem;
  border-bottom: 1px double #d97706;
  padding-bottom: 0.25rem;
  color: #d97706;
}

.stamp-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.stamp-line {
  height: 6px;
  background-color: #cbd5e1;
  border-radius: 2px;
  width: 100%;
}

.stamp-seal {
  width: 44px;
  height: 44px;
  border: 2px dashed #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 0.45rem;
  font-weight: 700;
  margin-left: auto;
  transform: rotate(15deg);
}

/* App Download Section */
.app-download-section {
  background-color: var(--bg-tertiary);
  padding: 5rem 6%;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.app-content h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.app-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.app-badges {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .app-badges {
    justify-content: center;
  }
}

.app-badge-btn {
  background-color: #0b1329;
  color: white;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.app-badge-btn:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
}

.app-badge-btn i {
  font-size: 1.5rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.badge-text span {
  font-size: 0.65rem;
  color: #94a3b8;
}

.app-mockups {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.phone-mockup {
  width: 165px;
  height: 330px;
  background-color: #0b1329;
  border: 6px solid #334155;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.phone-screen {
  flex: 1;
  background-color: var(--bg-primary);
  padding: 0.75rem;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Testimonials */
.testimonials-section {
  padding: 5rem 6%;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}

.user-info h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
}

.user-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stars-row {
  color: var(--accent);
  font-size: 0.85rem;
}

/* How It Works steps */
.how-it-works-section {
  background-color: var(--bg-secondary);
  padding: 5rem 6%;
}

.steps-container {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .steps-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
}

.step-card {
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-light);
  margin-bottom: 0.25rem;
}

.step-card h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.step-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Detailed Modal Popups */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 5%;
}

.modal-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background-color: var(--bg-tertiary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: var(--border-color);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.2rem;
  text-align: left;
}

.detail-modal-header {
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.detail-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
}

.detail-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.detail-rent-pill {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}

.detail-deposit-pill {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-image-gallery {
  height: 310px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.detail-image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .detail-content-columns {
    grid-template-columns: 1fr;
  }
}

.detail-desc-col h4,
.detail-contact-col h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.spec-item i {
  color: var(--secondary);
}

.contact-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form-group label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.contact-form-group input {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-form-group input:focus {
  border-color: var(--primary);
}

.owner-details-reveal {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.owner-details-reveal p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.owner-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}

.owner-phone {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}

/* Dashboard Shell styling (Owner & Admin) */
.dashboard-container {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: calc(100vh - 70px);
}

@media (max-width: 992px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }
}

.dashboard-sidebar {
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1rem;
}

.sidebar-profile-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
}

.sidebar-profile-info h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

.sidebar-profile-info span {
  font-size: 0.72rem;
  color: var(--sidebar-text);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}

.sidebar-menu-item.active a,
.sidebar-menu-item a:hover {
  color: var(--sidebar-active);
  background-color: var(--sidebar-active-bg);
}

.dashboard-main {
  background-color: var(--bg-primary);
  padding: 2rem 3%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
}

/* Dashboard metrics cards */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-cards-grid {
    grid-template-columns: 1fr;
  }
}

.stat-widget-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-widget-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-widget-info {
  display: flex;
  flex-direction: column;
}

.stat-widget-val {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.2;
}

.stat-widget-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-card-section h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.svg-chart-container {
  width: 100%;
  height: 200px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-table-wrapper {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  padding: 0.6rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.dashboard-table td {
  padding: 0.85rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.badge-status {
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 4px;
}

.badge-status-active {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
}

.badge-status-pending {
  background-color: rgba(253, 92, 20, 0.1);
  color: var(--primary);
}

/* List Property Card */
.form-section-wrapper {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 5%;
}

.form-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.form-card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background-color: var(--bg-secondary);
}

.form-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checklist-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Hide/Show Panel view panel class */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

/* Footer layout */
.site-footer {
  background-color: #0F172A; /* Deep Navy */
  color: #cbd5e1; /* Light Gray */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5rem 6% 2rem;
  font-family: var(--font-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; /* 6 columns desktop */
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  color: white;
  transition: all 0.3s ease;
  width: 100%;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  margin: 0;
}

.footer-col ul a {
  text-decoration: none;
  color: #94a3b8; /* Muted gray links */
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 200ms ease;
  display: inline-block;
  width: 100%;
}

.footer-col ul a:hover {
  color: white;
  text-decoration: underline;
  transform: translateX(2px);
}

/* Column 1: Brand styles */
.brand-col .logo-container {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.brand-col .brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.brand-col .trust-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.brand-col .trust-bullets li {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-col .trust-bullets li i {
  color: var(--primary); /* Brand Orange */
}

/* Footer Engagement Row (Newsletter & Mobile App) */
.footer-engagement-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-newsletter, .footer-app-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-newsletter h4, .footer-app-section h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-newsletter p, .footer-app-section p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all 200ms ease;
}

.newsletter-form input:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
}

.footer-app-section {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.app-badges {
  display: flex;
  gap: 0.75rem;
}

.app-badges a {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 200ms ease;
}

.app-badges a:hover {
  background-color: white;
  color: #0F172A;
  border-color: white;
}

.app-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 80px;
  height: 80px;
  color: #cbd5e1;
}

.qr-code-placeholder i {
  font-size: 3rem;
}

/* Contact & Social Row */
.footer-mid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.footer-contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.contact-item i {
  color: var(--primary); /* Brand Orange */
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 200ms ease;
  text-decoration: none;
}

.footer-socials a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Trust Badges Strip */
.footer-trust-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-badge i {
  color: var(--primary);
  font-size: 0.95rem;
}

/* Bottom copyright row */
.footer-bottom {
  border-top: none;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: #64748b;
  text-align: left;
}

.footer-bottom-left {
  text-align: left;
}

.footer-bottom-center {
  text-align: center;
}

.footer-bottom-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-right a {
  text-decoration: none;
  color: #64748b;
  transition: all 200ms ease;
}

.footer-bottom-right a:hover {
  color: white;
  text-decoration: underline;
}

.admin-portal-link {
  text-decoration: none;
  color: #64748b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  cursor: pointer;
}

.admin-portal-link:hover {
  color: var(--accent);
}

/* Mobile Accordions & Collapsible sections */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns tablet */
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 4rem 6% 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr; /* Accordion style mobile */
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-col {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .footer-col.brand-col {
    border-bottom: none;
    padding-bottom: 1.5rem;
  }

  .footer-col h5 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
  }

  .footer-col h5::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 400;
    transition: transform 0.2s ease;
  }

  .footer-col.active h5::after {
    content: '−';
  }

  .footer-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .footer-col.active ul {
    max-height: 500px;
    margin-top: 0.5rem;
    padding-bottom: 1rem;
  }

  .footer-engagement-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .footer-app-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .app-qr {
    display: none; /* Hide QR code on mobile */
  }

  .footer-mid-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-left, .footer-bottom-center, .footer-bottom-right {
    text-align: center;
    justify-content: center;
  }
}

/* Testimonial user avatar photo override */
img.user-avatar {
  object-fit: cover;
  border: 1px solid var(--border-color);
  padding: 1px;
  background-color: var(--bg-secondary);
}

/* ==================== PROPERTY DISCOVERY SECTION ==================== */
.discovery-section {
  padding: 5rem 6%;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  transition: background-color 0.3s ease;
}

.discovery-header {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.discovery-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.discovery-header p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Category Navigation (Segmented Control) */
.discovery-nav-outer {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 0.25rem 0;
}

.discovery-nav-outer::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.discovery-nav-tabs {
  display: flex;
  gap: 0.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.4rem;
  border-radius: var(--radius-sm); /* Squared edges matching design language */
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.discovery-tab {
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.discovery-tab:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.discovery-tab.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(253, 92, 20, 0.15);
}

/* Carousel Layout */
.discovery-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
}

.listings-carousel {
  width: 100%;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  padding: 0.5rem 0.25rem 1.5rem;
}

.listings-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar Safari/Chrome */
}

/* Desktop Navigation Arrows */
.carousel-nav-btn {
  position: absolute;
  top: calc(50% - 24px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  opacity: 0; /* Visible on wrapper hover */
}

.discovery-carousel-wrapper:hover .carousel-nav-btn {
  opacity: 1;
}

.carousel-nav-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.08);
}

.prev-btn {
  left: -20px;
}

.next-btn {
  right: -20px;
}

/* Cards inside Carousel */
.listings-carousel .property-card {
  flex: 0 0 calc((100% - 4.5rem) / 4); /* 4 cards per row on desktop */
  scroll-snap-align: start;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Card Border */
.property-card.premium-verified-card {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.08);
}

/* Dynamic Tags */
.tag-new {
  background-color: #10b981; /* Green */
}

.tag-trending {
  background-color: #ef4444; /* Red */
}

.tag-metro {
  background-color: #3b82f6; /* Blue */
}

.tag-student {
  background-color: #6366f1; /* Indigo */
}

.tag-family {
  background-color: #8b5cf6; /* Purple */
}

.tag-premium {
  background-color: #d97706; /* Gold/Amber */
}

/* View All CTA Container */
.discovery-view-all-container {
  display: flex;
  justify-content: center;
}

.discovery-view-all-container button {
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
}

/* Fade animation for smooth tab switching */
.listings-carousel.fade-out {
  opacity: 0;
  transform: translateY(5px);
}

.listings-carousel.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  .listings-carousel .property-card {
    flex: 0 0 calc((100% - 3rem) / 3); /* 3 cards */
  }
}

@media (max-width: 992px) {
  .listings-carousel .property-card {
    flex: 0 0 calc((100% - 1.5rem) / 2); /* 2 cards */
  }
  .discovery-nav-outer {
    justify-content: flex-start;
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (max-width: 768px) {
  .carousel-nav-btn {
    display: none; /* Hide navigation buttons on mobile */
  }
  .listings-carousel {
    padding-left: 6%;
    padding-right: 6%;
    margin-left: -6%;
    width: 100vw;
  }
  .listings-carousel .property-card {
    flex: 0 0 80%; /* Swipe scroll preview next card */
  }
}

/* ==================== SMART PROPERTY SEARCH ==================== */
.smart-search-wrapper {
  width: 100%;
  max-width: 950px;
  margin-top: 1.5rem;
  text-align: left;
  z-index: 20;
}

.smart-search-intro {
  margin-bottom: 0.75rem;
}

.smart-search-intro h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: white; /* Contrast on Hero Background */
  margin-bottom: 0.15rem;
}

.smart-search-intro p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0;
}

.smart-search-box-container {
  position: relative;
  width: 100%;
}

.smart-search-box {
  display: flex;
  align-items: center;
  background-color: white;
  height: 60px;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  padding: 0 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 250ms ease;
}

.smart-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(253, 92, 20, 0.15), 0 10px 25px rgba(0, 0, 0, 0.08);
}

.smart-search-left-icon {
  font-size: 1.3rem;
  color: var(--primary);
  margin-right: 0.85rem;
  display: flex;
  align-items: center;
}

.smart-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding-right: 1rem;
}

.smart-search-box input::placeholder {
  color: #94a3b8;
  opacity: 1;
  transition: opacity 300ms ease;
}

#smart-search-input.placeholder-fade-out::placeholder {
  opacity: 0;
}

.smart-search-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0 1.5rem;
  height: 44px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 250ms ease;
  white-space: nowrap;
}

.smart-search-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(253, 92, 20, 0.2);
}

/* Suggestion Chips */
.smart-chips-container {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  width: 100%;
}

.smart-chips-container::-webkit-scrollbar {
  display: none;
}

.smart-chip {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.smart-chip:hover {
  background-color: white;
  color: var(--primary);
  border-color: white;
}

/* Suggestions Dropdown */
.smart-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: none;
  overflow: hidden;
  animation: slideUpDropdown 250ms ease;
}

@keyframes slideUpDropdown {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.smart-dropdown-header {
  padding: 0.75rem 1.25rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #F1F5F9;
}

.smart-suggestion-item {
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 200ms ease;
}

.smart-suggestion-item:hover {
  background-color: #F8FAFC;
  color: var(--primary);
}

.smart-suggestion-item .emoji {
  font-size: 1rem;
}

/* ==================== RENTAL KNOWLEDGE CENTER (BLOG SYSTEM) ==================== */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  z-index: 9999;
  display: none; /* Only show in single post view */
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--primary); /* Nestora Orange */
  transition: width 100ms ease;
}

.blog-hero-section {
  background-color: #0b1329; /* Dark Navy matching Nestora theme */
  padding: 4rem 6%;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.blog-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-breadcrumbs {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.blog-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
}

.blog-breadcrumbs a:hover {
  color: white;
  text-decoration: underline;
}

#blog-page-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}

#blog-page-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 700px;
  line-height: 1.6;
}

.blog-main-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr; /* Sidebar on desktop */
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 6%;
}

.blog-content-area {
  min-width: 0; /* Prevents flex items from overflowing */
}

/* Sidebar Styling */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.blog-widget h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.5rem;
}

/* Blog Search Widget */
.blog-search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 0 0.85rem;
  height: 44px;
}

.blog-search-wrapper i {
  color: #94a3b8;
  margin-right: 0.5rem;
}

.blog-search-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.blog-search-examples {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-search-examples a {
  color: var(--primary);
  text-decoration: none;
}

.blog-search-examples a:hover {
  text-decoration: underline;
}

/* Categories List */
.blog-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-cat-link {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: all 200ms ease;
}

.blog-cat-link:hover, .blog-cat-link.active {
  background-color: rgba(253, 92, 20, 0.08);
  color: var(--primary);
}

/* Popular list in sidebar */
.blog-popular-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-popular-item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
}

.blog-popular-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--border-color);
}

.blog-popular-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.blog-popular-info h5 {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-popular-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Newsletter Widget Card */
.blog-newsletter-widget {
  background: linear-gradient(135deg, #0b1329, #1e293b);
  color: white;
  border-color: transparent;
}

.blog-newsletter-widget i {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.blog-newsletter-widget h4 {
  color: white;
  border-left: none;
  padding-left: 0;
}

.blog-newsletter-widget p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.blog-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
  width: 100%;
}

.blog-newsletter-form input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 8px;
  outline: none;
}

.blog-newsletter-form input:focus {
  border-color: var(--primary);
}

.blog-newsletter-form button {
  font-size: 0.82rem;
  font-weight: 800;
  height: 38px;
}

/* Chips in tag cloud */
.blog-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-tag {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 200ms ease;
}

.blog-tag:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Category filter Chips row (above listings) */
.blog-filter-chips {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.blog-filter-chips::-webkit-scrollbar {
  display: none;
}

.blog-chip {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.blog-chip:hover, .blog-chip.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(253, 92, 20, 0.15);
}

/* Featured Article Section (Layout) */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
  text-align: left;
}

.blog-featured-img-link {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-featured-card:hover .blog-featured-img {
  transform: scale(1.03);
}

.blog-featured-info {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-meta-badge {
  background-color: rgba(253, 92, 20, 0.08);
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.blog-featured-info h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.blog-featured-info h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 200ms ease;
}

.blog-featured-info h2 a:hover {
  color: var(--primary);
}

.blog-featured-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Articles Card Grid (Latest Articles) */
.blog-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns inside left content area */
  gap: 1.75rem;
}

.blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-img-link {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 45px;
}

.blog-card-body h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 200ms ease;
}

.blog-card-body h3 a:hover {
  color: var(--primary);
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.blog-author-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--border-color);
}

.blog-author-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

.blog-read-more-btn {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}

.blog-read-more-btn:hover {
  gap: 0.4rem;
  color: var(--primary-hover);
}

/* ==================== SINGLE BLOG PAGE LAYOUT ==================== */
.single-blog-article {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.blog-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.single-blog-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.single-blog-author-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.author-meta-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-meta-detail img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.author-meta-info {
  display: flex;
  flex-direction: column;
}

.author-meta-info h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.author-meta-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Social Share buttons */
.blog-share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}

.share-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Table of Contents */
.blog-toc-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.blog-toc-box h5 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-toc-list li {
  font-size: 0.85rem;
}

.blog-toc-list a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 200ms ease;
}

.blog-toc-list a:hover {
  color: var(--primary);
}

/* Featured Large Hero Image */
.single-blog-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2rem;
}

/* Article rich prose content styling */
.blog-prose-content {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.blog-prose-content p {
  margin-bottom: 1.5rem;
}

.blog-prose-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.blog-prose-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-prose-content ul, .blog-prose-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-prose-content li {
  margin-bottom: 0.5rem;
}

/* Highlight boxes inside articles */
.tip-box, .warning-box {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.75rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tip-box {
  background-color: rgba(16, 185, 129, 0.06);
  border-left: 4px solid var(--secondary); /* Green secondary accent */
  color: var(--text-primary);
}

.warning-box {
  background-color: rgba(239, 68, 68, 0.06);
  border-left: 4px solid #ef4444; /* Red warning */
  color: var(--text-primary);
}

/* Tables inside blog prose */
.blog-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.88rem;
}

.blog-data-table th {
  background-color: var(--bg-primary);
  border-bottom: 2px solid var(--border-color);
  padding: 0.75rem;
  font-weight: 800;
  text-align: left;
}

.blog-data-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem;
  color: var(--text-secondary);
}

/* Single Blog FAQ Accordion section */
.blog-faq-section {
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.blog-faq-section h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.blog-faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  padding: 1rem;
  background-color: var(--bg-primary);
}

.blog-faq-item h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.blog-faq-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Related articles card row */
.blog-related-section {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  text-align: left;
}

.blog-related-section h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 related cards */
  gap: 1.25rem;
}

.related-blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.related-blog-card:hover {
  transform: translateY(-3px);
}

.related-blog-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.related-blog-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-blog-body h4 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-blog-body span {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Prev/Next Post Links */
.blog-prev-next-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin: 3rem 0;
  gap: 2rem;
}

.blog-nav-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  max-width: 48%;
}

.blog-nav-link.next-link {
  text-align: right;
  align-items: flex-end;
}

.blog-nav-link span {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.blog-nav-link h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0;
}

.blog-nav-link h4:hover {
  color: var(--primary);
}

/* Comments section UI */
.blog-comments-section {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}

.blog-comments-section h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.blog-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.blog-comment-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.85rem;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  resize: vertical;
}

.blog-comment-form input {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  outline: none;
  font-size: 0.85rem;
}

.blog-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-comment-item {
  display: flex;
  gap: 1rem;
}

.blog-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--border-color);
}

.blog-comment-content {
  flex: 1;
  text-align: left;
}

.blog-comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.blog-comment-header h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.blog-comment-header span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.blog-comment-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==================== RESPONSIVE OVERRIDES ==================== */
@media (max-width: 1024px) {
  .blog-main-layout {
    grid-template-columns: 1fr; /* Stack sidebar below on tablets */
    gap: 3rem;
  }
  
  .blog-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns sidebar widget grid */
    gap: 1.5rem;
  }
  
  .blog-newsletter-widget {
    grid-column: span 2; /* Full width newsletter */
  }
  
  .blog-related-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns related grid */
  }
}

@media (max-width: 768px) {
  .blog-hero-section {
    padding: 3rem 6%;
  }
  
  #blog-page-title {
    font-size: 1.75rem;
  }
  
  .blog-featured-card {
    grid-template-columns: 1fr; /* Stack image vertically */
  }
  
  .blog-featured-img-link {
    height: 220px;
    min-height: 220px;
  }
  
  .blog-articles-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
  }
  
  .blog-sidebar {
    grid-template-columns: 1fr; /* Single column sidebar */
  }
  
  .blog-newsletter-widget {
    grid-column: span 1;
  }
  
  .single-blog-article {
    padding: 1.5rem;
  }
  
  .single-blog-title {
    font-size: 1.6rem;
  }
  
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonial user avatar photo override */
img.user-avatar {
  object-fit: cover;
  border: 1px solid var(--border-color);
  padding: 1px;
  background-color: var(--bg-secondary);
}


