/* ==========================================
   REALTY SPOT - PREMIUM DESIGN SYSTEM
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;700;800;900&display=swap');

:root {
  /* Color Palette */
  --primary-navy: #0A2540;
  --secondary-navy: #1C3D5A;
  --primary-red: #C0392B;
  --accent-red-light: #FADBD8;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --bg-light: #F1F5F9;
  --bg-white: #FFFFFF;
  --success-green: #10B981;
  --warning-yellow: #F59E0B;
  
  /* Borders & Shadows */
  --border-color: #E2E8F0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 30px rgba(10, 37, 64, 0.15);
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================
   TYPOGRAPHY & REUSABLE UTILITIES
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-navy);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-navy);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--secondary-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}

.btn-red {
  background-color: var(--primary-red);
  color: var(--text-light);
}

.btn-red:hover {
  background-color: #A93226;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--primary-navy);
}

.btn-outline:hover {
  border-color: var(--primary-navy);
  background-color: rgba(10, 37, 64, 0.03);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.badge-blue {
  background-color: rgba(10, 37, 64, 0.1);
  color: var(--primary-navy);
}

.badge-red {
  background-color: rgba(192, 57, 43, 0.1);
  color: var(--primary-red);
}

.badge-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-green);
}

/* ==========================================
   HEADER & CUSTOM LOGO
   ========================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Custom Logo */
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  user-select: none;
}

.realty-text {
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
}

.e-bar-container {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 0.65em;
  height: 0.65em;
  margin: 0 0.08em;
  position: relative;
  top: -0.01em;
}

.e-bar {
  display: block;
  width: 100%;
  height: 0.11em;
  background-color: var(--primary-navy);
  border-radius: 0.03em;
}

.spot-text {
  color: var(--primary-red);
  margin-left: 0.12em;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-navy);
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--primary-navy);
}

.nav-item:hover::after {
  width: 100%;
}

.nav-item.active {
  color: var(--primary-navy);
}

.nav-item.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-upload-btn {
  background-color: var(--primary-red);
  color: var(--text-light);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(192, 57, 43, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-upload-btn:hover {
  background-color: #A93226;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(192, 57, 43, 0.25);
}

/* ==========================================
   HERO SEARCH BANNER
   ========================================== */

.hero-section {
  position: relative;
  min-height: 520px;
  margin-top: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgb(4, 21, 41) 0%, rgb(10, 37, 64) 90.2%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 60px 0;
}

.hero-tagline {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hero-title {
  color: var(--text-light);
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
  max-width: 800px;
}

.hero-title span {
  color: #F5B041;
}

.hero-subtitle {
  color: #94A3B8;
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 40px;
}

/* Advanced Search Box */
.search-card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-width: 1000px;
  border: 1px solid var(--glass-border);
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.search-tab {
  background: transparent;
  padding: 6px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-tab:hover {
  color: var(--primary-navy);
}

.search-tab.active {
  background-color: rgba(10, 37, 64, 0.08);
  color: var(--primary-navy);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) 150px;
  gap: 16px;
  align-items: end;
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-select, .search-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.search-select:focus, .search-input:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.search-btn {
  height: 48px;
  width: 100%;
}

/* ==========================================
   ZONE CATEGORIES SECTION
   ========================================== */

.section-padding {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-subtitle {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.zone-card {
  position: relative;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.zone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.9) 0%, rgba(10, 37, 64, 0.2) 60%, rgba(10, 37, 64, 0) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.zone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.zone-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 3;
  color: var(--text-light);
}

.zone-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.zone-count {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
}

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

.zone-card:hover img {
  transform: scale(1.1);
}

.zone-card:hover::before {
  background: linear-gradient(to top, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.4) 65%, rgba(10, 37, 64, 0.1) 100%);
}

.zone-card.active {
  box-shadow: 0 0 0 4px var(--primary-red), var(--shadow-lg);
}

.zone-card.active .zone-name {
  color: #F5B041;
}

/* ==========================================
   PROPERTIES GRID & CARDS
   ========================================== */

.properties-section {
  background-color: var(--bg-white);
}

.properties-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.properties-count {
  font-weight: 600;
  color: var(--text-muted);
}

.properties-count span {
  color: var(--primary-navy);
  font-weight: 700;
}

.properties-sort select {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--bg-light);
  cursor: pointer;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.property-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

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

.property-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #E2E8F0;
}

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

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

.property-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.property-facing-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(4px);
  color: var(--text-light);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 10;
}

.property-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.property-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.property-units {
  font-size: 0.85rem;
  color: var(--primary-red);
  font-weight: 700;
}

.property-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--primary-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.property-specs {
  display: flex;
  justify-content: space-between;
  border-top: 1.5px solid var(--bg-light);
  border-bottom: 1.5px solid var(--bg-light);
  padding: 12px 0;
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.spec-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
}

.spec-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

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

.agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-red-light);
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.agent-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-card-action {
  font-size: 0.85rem;
  padding: 8px 14px;
}

/* Empty State */
.no-properties {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
}

.no-properties i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.no-properties h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.no-properties p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 20px;
}

/* ==========================================
   PROPERTIES PAGE CONTAINER (SIDEBAR FILTER)
   ========================================== */

.properties-page-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 40px 0 80px;
}

.filters-sidebar {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 12px;
}

.sidebar-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.clear-all-filters {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-red);
  background: transparent;
  cursor: pointer;
}

.clear-all-filters:hover {
  text-decoration: underline;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-group select, .filter-group input {
  height: 44px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-weight: 500;
  background-color: var(--bg-light);
  transition: var(--transition-fast);
}

.filter-group select:focus, .filter-group input:focus {
  border-color: var(--primary-navy);
  background-color: var(--bg-white);
}

/* ==========================================
   BLOGS AGGREGATOR PAGE
   ========================================== */

.sync-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(16, 185, 129, 0.06);
  border: 1.5px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: #065f46;
  font-weight: 500;
}

.sync-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--success-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

.blog-img-box {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: var(--primary-navy);
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.blog-provider-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.provider-magicbricks {
  background-color: #D32F2F;
}

.provider-squareyards {
  background-color: #F39C12;
}

.provider-99acres {
  background-color: #2980B9;
}

.blog-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--primary-navy);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary-red);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

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

/* ==========================================
   CONTACT US PAGE
   ========================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  padding: 40px 0 80px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details-box h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-details-box p, .contact-details-box a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form-panel {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form-panel p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================
   UPLOAD PROPERTY SLIDE-OVER DRAWER
   ========================================== */

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: -550px;
  width: 100%;
  max-width: 520px;
  height: 100%;
  background-color: var(--bg-white);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.active {
  right: 0;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title i {
  color: var(--primary-red);
}

.drawer-close {
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.drawer-close:hover {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Wizard / Form styles */
.form-step {
  display: none;
}

.form-step.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.step-dot.active {
  border-color: var(--primary-navy);
  color: var(--primary-navy);
  background-color: var(--bg-white);
}

.step-dot.completed {
  border-color: var(--success-green);
  color: var(--text-light);
  background-color: var(--success-green);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Image Upload Area */
.image-upload-zone {
  border: 2px dashed #CBD5E1;
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-light);
  transition: var(--transition-smooth);
  position: relative;
}

.image-upload-zone:hover {
  border-color: var(--primary-navy);
  background-color: rgba(10, 37, 64, 0.02);
}

.image-upload-zone i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.image-upload-zone p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.image-upload-zone span {
  font-size: 0.75rem;
  color: #94A3B8;
}

.image-upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.preview-images-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.image-preview-item {
  position: relative;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-preview {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(0,0,0,0.6);
  color: var(--text-light);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
}

/* Sample Image Selectors */
.sample-images-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 10px;
}

.sample-images-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.sample-image-card {
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.sample-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-image-card.selected {
  border-color: var(--primary-red);
}

.sample-image-card.selected::before {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--primary-red);
  color: var(--text-light);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Amenities Selector */
.amenities-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.amenity-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.9rem;
  font-weight: 500;
}

.amenity-checkbox input {
  display: none;
}

.amenity-checkbox.selected {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: var(--success-green);
  color: var(--success-green);
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-white);
}

.drawer-footer .btn {
  min-width: 120px;
}

/* ==========================================
   PROPERTY DETAIL MODAL
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.detail-modal {
  width: 100%;
  max-width: 960px;
  height: 90vh;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.modal-body {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.modal-banner {
  height: 380px;
  position: relative;
  background-color: var(--primary-navy);
}

.modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.75) 0%, rgba(0, 0, 0, 0) 40%);
}

.modal-price-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: var(--text-light);
}

.modal-price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.modal-price-units {
  font-size: 0.95rem;
  background-color: var(--primary-red);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-left: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.modal-main-content {
  padding: 30px;
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 30px;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-title-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}

.modal-specs-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background-color: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius-md);
}

.modal-spec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.modal-spec-card i, .modal-spec-card svg {
  color: var(--primary-navy);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.modal-spec-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.modal-spec-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.modal-description-box h4, .modal-amenities-box h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 8px;
}

.modal-description-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-amenities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.modal-amenity-item i {
  color: var(--success-green);
  font-size: 1rem;
}

/* Sidebar Contact Form */
.modal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.agent-profile-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-card-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-red-light);
  color: var(--primary-red);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-color);
}

.agent-card-info h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.agent-card-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-agent-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-agent-form input, .contact-agent-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background-color: var(--bg-white);
}

.contact-agent-form input:focus, .contact-agent-form textarea:focus {
  border-color: var(--primary-navy);
}

.contact-agent-form textarea {
  height: 80px;
  resize: none;
}

/* Map Mock Box */
.map-mock-box {
  height: 180px;
  background-color: #E2E8F0;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.map-mock-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  background-image: radial-gradient(var(--text-muted) 0.5px, transparent 0.5px), radial-gradient(var(--text-muted) 0.5px, var(--slate-100) 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.map-mock-box i, .map-mock-box svg {
  font-size: 2.2rem;
  color: var(--primary-red);
  margin-bottom: 8px;
  z-index: 2;
}

.map-mock-box h5 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  z-index: 2;
}

.map-mock-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 2;
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================== */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 66px;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  gap: 4px;
  cursor: pointer;
  flex: 1;
  transition: var(--transition-fast);
}

.mobile-nav-item i, .mobile-nav-item svg {
  font-size: 1.25rem;
}

.mobile-nav-item.active {
  color: var(--primary-navy);
}

/* Prominent Upload Action Button on Mobile bottom right/center */
.mobile-upload-btn-container {
  position: relative;
  top: -12px;
  z-index: 1000;
}

.mobile-upload-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--primary-red);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 3px solid var(--bg-white);
}

.mobile-upload-fab:hover, .mobile-upload-fab:active {
  background-color: #A93226;
  transform: scale(1.05);
}

/* ==========================================
   ANIMATIONS KEYFRAMES
   ========================================== */

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Large Tablets / Laptops */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .zone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .properties-page-container {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }
  .modal-main-content {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .modal-sidebar {
    order: -1;
  }
}

/* Tablets / Large Mobiles */
@media (max-width: 768px) {
  body {
    padding-bottom: 66px; /* Space for bottom nav */
  }
  
  header {
    height: 70px;
  }
  
  header.scrolled {
    height: 64px;
  }
  
  .nav-links, .nav-actions {
    display: none; /* Hide desktop menu */
  }
  
  .mobile-bottom-nav {
    display: flex; /* Show mobile bottom menu */
  }
  
  .hero-section {
    min-height: 480px;
    margin-top: 70px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .search-card {
    padding: 16px;
  }
  
  .search-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .search-btn {
    margin-top: 8px;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .drawer {
    max-width: 100%;
    right: -100%;
  }
  
  .detail-modal {
    height: 95vh;
    border-radius: var(--radius-md);
  }
  
  .modal-banner {
    height: 240px;
  }
  
  .modal-price-amount {
    font-size: 1.8rem;
  }
  
  .modal-specs-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .modal-amenities-list {
    grid-template-columns: 1fr;
  }
}

/* Small Mobiles */
@media (max-width: 480px) {
  .logo {
    font-size: 22px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .zone-grid {
    grid-template-columns: 1fr;
  }
  .zone-card {
    height: 140px;
  }
  .modal-banner {
    height: 200px;
  }
  .modal-price-amount {
    font-size: 1.5rem;
  }
  .properties-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .properties-sort {
    width: 100%;
  }
  .properties-sort select {
    width: 100%;
  }
}
