/* ===================================================================
   GREATER NOIDA VILLAS - MAGICBRICKS INSPIRED DESIGN SYSTEM
   Signature Crimson Red (#d8232a), Charcoal (#303030), Clean White
   =================================================================== */

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

:root {
  /* Magicbricks Signature Colors */
  --mb-red: #d8232a;
  --mb-red-dark: #b81d24;
  --mb-red-hover: #c0181e;
  --mb-red-light: #fff5f5;
  --mb-red-subtle: #fdf0f0;
  --mb-red-gradient: linear-gradient(135deg, #e4002b 0%, #d8232a 50%, #b81d24 100%);
  
  --dark-charcoal: #222222;
  --dark-slate: #303030;
  --dark-text: #1e1e1e;
  
  --verified-green: #00a651;
  --verified-green-bg: #e6f7ef;
  
  --accent-amber: #f5a623;
  --accent-amber-bg: #fff8eb;
  
  --accent-blue: #3366cc;
  --accent-blue-bg: #edf2fc;

  /* Surfaces & Backgrounds */
  --bg-main: #f4f5f7;
  --bg-surface: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-dark: #1b1e24;
  --bg-footer: #15171c;
  
  /* Text */
  --text-main: #303030;
  --text-heading: #1e1e1e;
  --text-muted: #666666;
  --text-light: #888888;
  --text-inverse: #ffffff;
  
  /* Borders */
  --border-subtle: #e5e7eb;
  --border-medium: #d1d5db;
  --border-card: #e8e8e8;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
  --shadow-red-glow: 0 4px 14px rgba(216, 35, 42, 0.35);
  
  /* Typography */
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease-in-out;
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--mb-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===================================================================
   NAVIGATION / HEADER (Magicbricks Clean White Style)
   =================================================================== */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-charcoal);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-title span {
  color: var(--mb-red);
}

.brand-subtitle {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--mb-red);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--dark-slate);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--mb-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--mb-red);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--dark-charcoal);
}

/* ===================================================================
   BUTTONS & BADGES (Magicbricks Red CTA)
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

/* Signature Red Magicbricks Button */
.btn-gold, .btn-primary {
  background: var(--mb-red);
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(216, 35, 42, 0.25);
}
.btn-gold:hover, .btn-primary:hover {
  background: var(--mb-red-hover);
  color: #ffffff !important;
  box-shadow: var(--shadow-red-glow);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-medium);
  background: #ffffff;
  color: var(--dark-slate);
}
.btn-outline:hover {
  border-color: var(--mb-red);
  color: var(--mb-red);
  background: var(--mb-red-light);
}

.btn-outline-gold {
  border-color: var(--mb-red);
  color: var(--mb-red);
  background: #ffffff;
}
.btn-outline-gold:hover {
  background: var(--mb-red);
  color: #ffffff !important;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
}

.badge-featured {
  background: var(--mb-red);
  color: #ffffff;
}

.badge-primary { background: var(--accent-blue-bg); color: var(--accent-blue); }
.badge-success { background: var(--verified-green-bg); color: var(--verified-green); }
.badge-warning { background: var(--accent-amber-bg); color: #b45309; }
.badge-danger { background: var(--mb-red-light); color: var(--mb-red); }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* ===================================================================
   HERO SECTION (Warm, Clean, Inviting)
   =================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 245, 247, 0.97) 100%), url('/uploads/properties/villa-exterior.jpg') center/cover no-repeat;
  padding: 4.5rem 0 5.5rem;
  border-bottom: 1px solid var(--border-card);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#e5e7eb 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  top: -100px;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(216, 35, 42, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mb-red-light);
  border: 1px solid rgba(216, 35, 42, 0.2);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mb-red);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--dark-charcoal);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.hero-title span {
  color: var(--mb-red);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

/* ===================================================================
   MAGICBRICKS STYLE SEARCH CARD
   =================================================================== */
.hero-search-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-card);
  text-align: left;
}

.search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.search-tab-btn {
  background: none;
  border: none;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
}

.search-tab-btn:hover {
  color: var(--mb-red);
}

.search-tab-btn.active {
  color: var(--mb-red);
}

.search-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mb-red);
  border-radius: 2px;
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr auto;
  gap: 1rem;
  align-items: center;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-field label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-field input, .search-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--dark-charcoal);
  background-color: #ffffff;
  transition: border-color var(--transition-fast);
}

.search-field input:focus, .search-field select:focus {
  outline: none;
  border-color: var(--mb-red);
  box-shadow: 0 0 0 3px rgba(216, 35, 42, 0.12);
}

/* Quick Search Filters below hero */
.hero-quick-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-quick-link {
  color: var(--dark-slate);
  background: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.hero-quick-link:hover {
  background: var(--mb-red);
  color: #ffffff;
  border-color: var(--mb-red);
}

/* ===================================================================
   SECTION HEADERS
   =================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-subtle {
  background-color: #ffffff;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #fff;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  gap: 1.5rem;
}

.section-title-wrap {
  max-width: 650px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--mb-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark-charcoal);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ===================================================================
   PROPERTY CARD COMPONENT (Magicbricks Clean White Card)
   =================================================================== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
}

.property-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d1d5db;
}

.property-card-media {
  position: relative;
  height: 210px;
  background-color: #1e2229;
  overflow: hidden;
}

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

.property-card:hover .property-card-img {
  transform: scale(1.05);
}

.property-card-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.property-type-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(30, 30, 30, 0.85);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.property-card-price {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  background: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mb-red);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.property-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-card-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.property-card-location svg {
  color: var(--mb-red);
  flex-shrink: 0;
}

.property-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.property-card-title a {
  color: var(--dark-charcoal);
}

.property-card-title a:hover {
  color: var(--mb-red);
}

.property-card-features {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--dark-slate);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.feature-item svg {
  color: var(--text-light);
}

.property-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.star-rating {
  color: var(--accent-amber);
}

/* ===================================================================
   POPULAR LOCALITIES / CITIES
   =================================================================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.location-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-card);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

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

.location-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--mb-red-light);
  color: var(--mb-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.location-info h4 {
  font-size: 1.05rem;
  color: var(--dark-charcoal);
  margin-bottom: 0.15rem;
}

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

/* ===================================================================
   WHY CHOOSE US / FEATURES
   =================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-card);
  transition: all var(--transition-fast);
  position: relative;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mb-red);
}

.feature-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--mb-red-light);
  color: var(--mb-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.feature-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===================================================================
   STATS BAR (Magicbricks Dark Contrast)
   =================================================================== */
.stats-banner {
  background: #1b1e24;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--mb-red);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* ===================================================================
   SEARCH PAGE & FILTERS
   =================================================================== */
.search-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}

.filter-sidebar {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-card);
  position: sticky;
  top: 96px;
  height: fit-content;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  margin-bottom: 0.4rem;
}

.filter-group input, .filter-group select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: #ffffff;
}

.filter-group input:focus, .filter-group select:focus {
  outline: none;
  border-color: var(--mb-red);
}

.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
}

/* ===================================================================
   PROPERTY DETAIL PAGE
   =================================================================== */
.property-detail-header {
  padding: 2rem 0 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
}

.detail-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.detail-title-section h1 {
  font-size: 2.15rem;
  margin-bottom: 0.35rem;
  color: var(--dark-charcoal);
}

.detail-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.detail-address svg {
  color: var(--mb-red);
}

.detail-price-box {
  text-align: right;
  flex-shrink: 0;
}

.detail-price-value {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--mb-red);
  line-height: 1;
}

.detail-price-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Gallery Showcase */
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  height: 460px;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-main {
  position: relative;
  height: 100%;
  cursor: pointer;
}

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

.gallery-thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  height: 100%;
}

.gallery-thumb-item {
  position: relative;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.gallery-thumb-item:hover img {
  transform: scale(1.04);
}

.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  backdrop-filter: blur(2px);
}

.gallery-view-all-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark-charcoal);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
  z-index: 5;
}

.gallery-view-all-btn:hover {
  background: var(--mb-red);
  color: #ffffff;
  border-color: var(--mb-red);
  transform: translateY(-2px);
}

.gallery-strip-wrapper {
  margin-top: 0.75rem;
  overflow: hidden;
}

.gallery-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.gallery-strip::-webkit-scrollbar {
  height: 4px;
}

.gallery-strip::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.gallery-strip-thumb {
  width: 90px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #1e2229;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}

.gallery-strip-thumb.active {
  border-color: var(--mb-red);
  box-shadow: 0 0 0 2px rgba(216, 35, 42, 0.3);
  transform: scale(1.03);
}

.gallery-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-photo-title-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 5;
  transition: all var(--transition-fast);
}

.gallery-strip-thumb-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(2px);
}

.lightbox-title-counter-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.lightbox-current-photo-title {
  background: var(--mb-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.lightbox-dot-separator {
  color: #64748b;
  font-size: 0.8rem;
}

.lightbox-photo-title-pill {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 15;
}

.lightbox-thumb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  padding: 1px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================================================================
   FULLSCREEN LIGHTBOX MODAL
   =================================================================== */
.property-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(8px);
}

.property-lightbox-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  z-index: 2;
  padding: 1rem 1.5rem;
}

.property-lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.property-lightbox-info h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
}

.lightbox-counter {
  font-size: 0.825rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 0.2rem;
  display: block;
}

.property-lightbox-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-tool-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all var(--transition-fast);
}

.lightbox-tool-btn:hover {
  background: var(--mb-red);
  border-color: var(--mb-red);
}

.lightbox-tool-btn.close {
  font-size: 1.8rem;
  line-height: 1;
}

.property-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.lightbox-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  z-index: 25;
  backdrop-filter: blur(6px);
}

.lightbox-nav-arrow.prev {
  left: 1rem;
}

.lightbox-nav-arrow.next {
  right: 1rem;
}

.lightbox-nav-arrow:hover {
  background: var(--mb-red);
  border-color: var(--mb-red);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-carousel-viewport {
  width: 100%;
  height: 100%;
  max-height: 76vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

.lightbox-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.lightbox-carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  padding: 0;
}

.lightbox-slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-zoomable-img {
  max-width: 95%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.lightbox-zoomable-img.zoomed {
  transform: scale(1.85);
  cursor: zoom-out;
  z-index: 20;
}

.property-lightbox-thumbnails {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-height: 85px;
}

.lightbox-mini-thumb {
  width: 70px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #1e2229;
  flex-shrink: 0;
  padding: 0;
  opacity: 0.5;
  transition: all var(--transition-fast);
}

.lightbox-mini-thumb:hover, .lightbox-mini-thumb.active {
  opacity: 1;
  border-color: var(--mb-red);
  transform: scale(1.05);
}

/* Fullscreen Mobile View for Lightbox */
@media (max-width: 768px) {
  .property-lightbox-wrapper {
    padding: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .property-lightbox-topbar {
    padding: 0.75rem 0.85rem !important;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 30;
  }

  .property-lightbox-info h4 {
    font-size: 0.9rem !important;
    max-width: 180px !important;
  }

  .lightbox-tool-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
  }

  .property-lightbox-stage {
    flex: 1 !important;
    width: 100vw !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .lightbox-carousel-viewport {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 80vh !important;
    max-height: 80dvh !important;
  }

  .lightbox-carousel-slide {
    width: 100vw !important;
    min-width: 100vw !important;
    height: 100% !important;
    padding: 0 !important;
  }

  .lightbox-slide-inner {
    width: 100vw !important;
    height: 100% !important;
    padding: 0 !important;
  }

  .lightbox-zoomable-img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: 78vh !important;
    max-height: 78dvh !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .lightbox-nav-arrow {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
    background: rgba(0, 0, 0, 0.6) !important;
  }

  .lightbox-nav-arrow.prev {
    left: 8px !important;
  }

  .lightbox-nav-arrow.next {
    right: 8px !important;
  }

  .property-lightbox-thumbnails {
    padding: 0.5rem 0.75rem !important;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    max-height: 66px !important;
    gap: 0.45rem !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
  }

  .lightbox-mini-thumb {
    width: 56px !important;
    height: 40px !important;
  }
}

.lightbox-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detail Content Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
}

.detail-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-card);
  margin-bottom: 1.75rem;
}

.detail-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-charcoal);
}

/* Key Overview Matrix */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.overview-box {
  padding: 1rem;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.overview-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--mb-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.overview-info p {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.overview-info h4 {
  font-size: 1rem;
  color: var(--dark-charcoal);
  margin-top: 0.15rem;
}

/* Amenities Categorized */
.amenities-group-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.amenity-group-block h4 {
  font-size: 1rem;
  color: var(--dark-charcoal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.amenities-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.65rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--dark-slate);
  background: var(--bg-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
}

.amenity-item svg {
  color: var(--verified-green);
}

/* Nearby Places */
.nearby-group-block {
  margin-bottom: 1.25rem;
}

.nearby-group-block h4 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
  color: var(--dark-charcoal);
}

.nearby-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nearby-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.nearby-distance {
  font-weight: 700;
  color: var(--mb-red);
  font-size: 0.825rem;
}

/* Contact Dealer Sidebar Sticky */
.dealer-sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.dealer-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.dealer-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dealer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mb-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dealer-info h4 {
  font-size: 1.1rem;
  color: var(--dark-charcoal);
}

.dealer-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.enquiry-form .form-group {
  margin-bottom: 1rem;
}

.enquiry-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  margin-bottom: 0.3rem;
}

.enquiry-form input, .enquiry-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.enquiry-form input:focus, .enquiry-form textarea:focus {
  outline: none;
  border-color: var(--mb-red);
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* Video & Map Embed */
.video-responsive-wrap, .map-responsive-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.video-responsive-wrap iframe, .map-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================================================
   REVIEWS SYSTEM
   =================================================================== */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: var(--bg-main);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.reviews-score-big {
  font-size: 3.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark-charcoal);
  line-height: 1;
}

.review-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.reviewer-name {
  font-weight: 700;
  color: var(--dark-charcoal);
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===================================================================
   FLASH ALERTS
   =================================================================== */
.alert-container {
  margin: 1rem 0;
}

.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success { background: #e6f7ef; color: #00a651; border: 1px solid #b7ebd1; }
.alert-danger, .alert-error { background: #fff5f5; color: #d8232a; border: 1px solid #fed7d7; }
.alert-warning { background: #fffaf0; color: #dd6b20; border: 1px solid #feebc8; }
.alert-info { background: #ebf8ff; color: #3182ce; border: 1px solid #bee3f8; }

/* ===================================================================
   PAGINATION
   =================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--dark-slate);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.page-link:hover, .page-link.active {
  background: var(--mb-red);
  color: #ffffff;
  border-color: var(--mb-red);
}

/* ===================================================================
   FOOTER (Magicbricks Signature Dark Slate)
   =================================================================== */
.site-footer {
  background: var(--bg-footer);
  color: #9ca3af;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--mb-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.825rem;
}

/* ===================================================================
   RESPONSIVE DESIGN (Media Queries)
   =================================================================== */
@media (max-width: 1024px) {
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-grid .btn {
    grid-column: span 2;
  }
  .search-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-gallery {
    height: 360px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--mb-red);
  }
  .nav-menu.show {
    display: flex;
  }
  .detail-top-bar {
    flex-direction: column;
  }
  .detail-price-box {
    text-align: left;
  }
  .detail-gallery {
    grid-template-columns: 1fr;
    height: 280px;
  }
  .gallery-thumbs {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   INTERACTIVE COMPONENTS & ENHANCEMENTS
   =================================================================== */

/* Header City Pill */
.header-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.city-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--mb-red);
  box-shadow: 0 0 0 2px rgba(216, 35, 42, 0.2);
}

/* Header Shortlist Saved Button */
.header-shortlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dark-slate);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.header-shortlist-btn:hover {
  color: var(--mb-red);
  background: var(--mb-red-light);
}

.shortlist-count-badge {
  background: var(--mb-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-free {
  background: #fef08a;
  color: #854d0e;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  margin-left: 0.35rem;
  text-transform: uppercase;
}

/* Card Interactive Shortlist Button */
.shortlist-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.shortlist-btn:hover {
  transform: scale(1.1);
  color: var(--mb-red);
  background: #ffffff;
}

.shortlist-btn.active {
  color: var(--mb-red);
  background: #ffffff;
}

.shortlist-btn.active svg {
  fill: var(--mb-red);
}

.pop-anim {
  animation: heartPop 0.35s ease;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Property Card Price & Per Unit */
.property-card-price-wrap {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  background: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.property-card-price {
  position: static;
  background: transparent;
  padding: 0;
  box-shadow: none;
  line-height: 1.1;
}

.property-card-price-per-unit {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

.badge-verified-tiny {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--verified-green);
  background: var(--verified-green-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.property-card-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.arrow-indicator {
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn:hover .arrow-indicator {
  transform: translateX(4px);
}

/* Filter Chips */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--dark-slate);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--mb-red);
  color: var(--mb-red);
}

.filter-chip.active-chip {
  background: var(--mb-red);
  border-color: var(--mb-red);
  color: #ffffff;
}

.filter-reset-link {
  font-size: 0.8rem;
  color: var(--mb-red);
  font-weight: 700;
}

.sort-select {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-medium);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-charcoal);
  background: #ffffff;
}

.search-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
}

.btn-search-hero {
  width: 100%;
  height: 48px;
  margin-top: 1.25rem;
  font-size: 1rem;
}

.gallery-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 10;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1e2229;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  pointer-events: auto;
  border-left: 4px solid var(--mb-red);
}

.toast-item.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-item.toast-success {
  border-left-color: var(--verified-green);
}

.toast-item.toast-error {
  border-left-color: var(--mb-red);
}

.toast-item.toast-info {
  border-left-color: var(--accent-blue);
}

.toast-icon {
  font-size: 1.1rem;
}

/* ===================================================================
   SLIDE-OVER SHORTLIST DRAWER
   =================================================================== */
.shortlist-drawer-wrapper {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.shortlist-drawer-wrapper.open {
  pointer-events: auto;
  visibility: visible;
}

.shortlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shortlist-drawer-wrapper.open .shortlist-backdrop {
  opacity: 1;
}

.shortlist-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.shortlist-drawer-wrapper.open .shortlist-panel {
  transform: translateX(0);
}

.shortlist-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.drawer-close-btn {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--mb-red);
  color: #fff;
}

.shortlist-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.shortlist-panel-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.shortlist-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
}

.drawer-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.drawer-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.drawer-item-img-link {
  width: 90px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #1e2229;
}

.drawer-item-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-item-details {
  flex: 1;
  min-width: 0;
}

.drawer-item-title {
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-item-title a {
  color: var(--dark-charcoal);
}

.drawer-item-title a:hover {
  color: var(--mb-red);
}

.drawer-item-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--mb-red);
}

.drawer-item-loc {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #f1f5f9;
}

.drawer-view-link {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--dark-charcoal);
}

.drawer-view-link:hover {
  color: var(--mb-red);
}

.drawer-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.drawer-remove-btn:hover {
  color: #ef4444;
}

/* Shortlist Toggle on Search Page */
.shortlist-toggle-box {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shortlist-toggle-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--mb-red);
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shortlist-toggle-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--mb-red);
}

/* ===================================================================
   CONFIRMATION MODAL
   =================================================================== */
.confirm-modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.confirm-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 2;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.confirm-modal-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.confirm-modal-dialog h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-charcoal);
  margin-bottom: 0.65rem;
}

.confirm-modal-dialog p {
  font-size: 0.925rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.confirm-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

/* ===================================================================
   MOBILE STICKY ACTION BAR (Property Detail)
   =================================================================== */
.mobile-sticky-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.12);
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-card);
  }

  .mobile-price-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mb-red);
    line-height: 1.1;
  }

  .mobile-price-sub {
    font-size: 0.725rem;
    color: var(--text-muted);
  }

  .mobile-sticky-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ===================================================================
   SKELETON SHIMMER LOADERS
   =================================================================== */
.skeleton-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.skeleton-img {
  height: 210px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.skeleton-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line {
  height: 14px;
  background: #e2e8f0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.tall { height: 24px; width: 60%; }

.skeleton-img::after, .skeleton-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===================================================================
   MOBILE BOTTOM NAVIGATION BAR
   =================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid var(--border-card);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 9998;
    align-items: center;
    justify-content: space-around;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.675rem;
    font-weight: 700;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    flex: 1;
    transition: color var(--transition-fast);
  }

  .mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--mb-red);
  }

  .mobile-nav-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .mobile-nav-icon-wrap .shortlist-count-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    padding: 0.1rem 0.35rem;
    font-size: 0.65rem;
  }

  .mobile-nav-highlight {
    color: var(--mb-red) !important;
  }

  /* Mobile-first adjustments for search and cards */
  .hero-search-box {
    padding: 1.25rem;
  }

  .search-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-quick-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-quick-filters::-webkit-scrollbar {
    display: none;
  }

  .hero-quick-link {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .property-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section {
    padding: 2.75rem 0;
  }
}

/* ===================================================================
   SOCIAL MEDIA SHARE MODAL
   =================================================================== */
.property-share-modal {
  position: fixed;
  inset: 0;
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.property-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.property-share-dialog {
  position: relative;
  width: 100%;
  max-width: 490px;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  z-index: 2;
  animation: shareModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes shareModalPop {
  0% { transform: scale(0.93) translateY(14px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.property-share-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.share-modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.share-modal-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.share-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.share-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

/* Property Snippet Preview Card */
.share-property-preview {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.8rem;
  margin-bottom: 1.35rem;
}

.share-property-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.share-property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-property-details {
  flex: 1;
  min-width: 0;
}

.share-property-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mb-red);
  margin-bottom: 0.2rem;
}

.share-property-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin: 0 0 0.35rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-property-meta {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.825rem;
}

.share-property-price {
  font-weight: 800;
  color: var(--mb-red);
  font-family: var(--font-heading);
}

.share-property-location {
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Platforms Grid */
.share-platforms-heading {
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.share-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.share-platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.share-platform-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.share-platform-btn .platform-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.share-platform-btn:hover .platform-icon-wrap {
  transform: scale(1.08);
}

.share-platform-btn .platform-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: #334155;
}

/* Platform Colors */
.platform-whatsapp .platform-icon-wrap {
  background: #dcfce7;
  color: #25D366;
}
.platform-whatsapp:hover {
  border-color: #22c55e;
  background: #f0fdf4;
}

.platform-facebook .platform-icon-wrap {
  background: #dbeafe;
  color: #1877F2;
}
.platform-facebook:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.platform-x .platform-icon-wrap {
  background: #f1f5f9;
  color: #0f1419;
}
.platform-x:hover {
  border-color: #0f1419;
  background: #f8fafc;
}

.platform-linkedin .platform-icon-wrap {
  background: #e0f2fe;
  color: #0A66C2;
}
.platform-linkedin:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.platform-telegram .platform-icon-wrap {
  background: #e0f7fa;
  color: #229ED9;
}
.platform-telegram:hover {
  border-color: #229ED9;
  background: #f0fdfa;
}

.platform-email .platform-icon-wrap {
  background: #fee2e2;
  color: #EA4335;
}
.platform-email:hover {
  border-color: #ef4444;
  background: #fef2f2;
}

/* Copy Link Section */
.share-copy-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.share-copy-label {
  display: block;
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.share-copy-field {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-copy-input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #334155;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.share-copy-input:focus {
  border-color: var(--mb-red);
  background: #ffffff;
}

.share-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  background: var(--mb-red);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.share-copy-btn:hover {
  background: var(--mb-red-dark);
  transform: translateY(-1px);
}

.share-copy-btn.copied {
  background: #10b981 !important;
}

.share-copy-feedback {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
}

@media (max-width: 480px) {
  .property-share-dialog {
    padding: 1.35rem 1.1rem;
    border-radius: 18px;
  }
  
  .share-platforms-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .share-platform-btn {
    padding: 0.65rem 0.35rem;
  }

  .share-platform-btn .platform-icon-wrap {
    width: 38px;
    height: 38px;
  }
  
  .share-platform-btn .platform-label {
    font-size: 0.725rem;
  }
}




