/* 
  Project Realestate CSS Design System
  Tailored for premium modern styling: clean typography, vibrant accents, smooth transitions, and glassmorphism.
*/

:root {
  /* Colors - Everest Properties Aesthetic (Navy & Gold) */
  --primary-base: 211; /* Navy Blue */
  --primary: hsl(var(--primary-base), 73%, 14%);
  --primary-hover: hsl(var(--primary-base), 73%, 20%);
  --primary-light: hsl(var(--primary-base), 20%, 95%);
  
  --accent-base: 43; /* Elegant Gold */
  --accent: hsl(var(--accent-base), 54%, 53%);
  --accent-hover: hsl(var(--accent-base), 54%, 48%);
  --accent-light: hsl(var(--accent-base), 54%, 93%);
  
  /* Neutral scale */
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --card-dark: #1e293b;
  --card-light: #ffffff;
  
  --text-dark-main: #f8fafc;
  --text-dark-muted: #94a3b8;
  --text-light-main: #0f172a;
  --text-light-muted: #64748b;
  
  --border-light: #e2e8f0;
  --border-dark: #334155;
  
  /* Fonts */
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Defaults */
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-light-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Dark Mode class */
body.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-dark-main);
}

/* Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

/* Modern Glassmorphism Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
}

/* Header is always solid — no transparency so white logo background blends in */
header.glass-panel {
  background: #ffffffb8 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07) !important;
}

body.dark-theme header.glass-panel {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}


body.dark-theme .glass-panel {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Section Titles */
.section-subtitle {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 1rem 0;
  font-family: serif;
}

.section-divider {
  width: 50px;
  height: 2px;
  background-color: var(--accent);
  margin: 0 auto 3rem auto;
}

/* View More Link */
.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0;
  transition: gap 0.25s ease;
}
.view-more-link i {
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}
.view-more-link:hover {
  gap: 0.9rem;
}
.view-more-link:hover i {
  transform: translateX(4px);
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-accent {
  background-color: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-accent::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}
.btn-accent:hover::after {
  left: 200%;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-light-main);
}
body.dark-theme .btn-outline {
  border-color: var(--border-dark);
  color: var(--text-dark-main);
}
.btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
body.dark-theme .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Form inputs styling */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: #fff;
  color: var(--text-light-main);
  transition: var(--transition);
  font-family: var(--font-sans);
}
body.dark-theme .form-input {
  border-color: var(--border-dark);
  background-color: #0f172a;
  color: var(--text-dark-main);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   Premium Navigation Header & Dropdowns
   ========================================================================== */

/* Top-level Navigation elements */
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  padding: 0.5rem 0;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 100%;
}

body.dark-theme .nav-link {
  color: var(--text-dark-main);
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--primary);
}

/* Dropdown Caret Icon Rotate */
.nav-link i.fa-chevron-down {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.nav-item:hover > .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Primary Dropdown Menu Container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 0.75rem 0;
  z-index: 150;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
  pointer-events: none;
}

body.dark-theme .dropdown-menu {
  background-color: var(--card-dark);
  border-color: var(--border-dark);
}

/* Show Dropdown on Hover */
.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px) scale(1);
  pointer-events: auto;
}

/* Dropdown Item Styles */
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  color: var(--text-light-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

body.dark-theme .dropdown-item {
  color: var(--text-dark-main);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

body.dark-theme .dropdown-item:hover {
  background-color: rgba(59, 130, 246, 0.08);
  color: var(--primary);
}

/* Nested (Secondary) Dropdown Menu Styles */
.nested-dropdown-trigger {
  position: relative;
}

.nested-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  transform: translateX(12px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 0.75rem 0;
  z-index: 160;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
  pointer-events: none;
}

body.dark-theme .nested-dropdown {
  background-color: var(--card-dark);
  border-color: var(--border-dark);
}

/* Open Nested Menu on Hover */
.nested-dropdown-trigger:hover > .nested-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(4px) scale(1);
  pointer-events: auto;
}

/* Rotate right arrow on hover */
.nested-dropdown-trigger i.fa-chevron-right {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}
.nested-dropdown-trigger:hover > .dropdown-item i.fa-chevron-right {
  transform: translateX(3px);
  color: var(--primary);
}

/* ==========================================================================
   Saved Items Count Badge with Pulsing Animation
   ========================================================================== */
.saved-items-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--text-light-main);
  background-color: transparent;
  cursor: pointer;
  transition: var(--transition);
}

body.dark-theme .saved-items-btn {
  border-color: var(--border-dark);
  color: var(--text-dark-main);
}

.saved-items-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

body.dark-theme .saved-items-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.saved-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
  animation: pulse-saved 2s infinite;
}

body.dark-theme .saved-badge {
  box-shadow: 0 0 0 2px var(--bg-dark);
}

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

/* ==========================================================================
   Hamburger Menu & Responsive Queries
   ========================================================================== */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light-main);
  cursor: pointer;
}

body.dark-theme .hamburger-btn {
  color: var(--text-dark-main);
}

/* Responsive logo image sizing */
.navbar-logo-img {
  height: 62px;
  width: auto;
  transition: height 0.2s ease;
}

@media (max-width: 992px) {
  .navbar-logo-img {
    height: 55px;
  }
}

/* Mobile Navigation Panel Overlay */
.mobile-nav-panel {
  position: fixed;
  top: 75px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

body.dark-theme .mobile-nav-panel {
  background-color: var(--bg-dark);
}

.mobile-nav-panel.open {
  transform: translateX(0);
}

/* Mobile Accordions */
.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

body.dark-theme .mobile-nav-link {
  color: var(--text-dark-main);
  border-color: var(--border-dark);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.mobile-submenu.open {
  display: flex;
}

.mobile-sub-link {
  font-size: 0.95rem;
  color: var(--text-light-muted);
  padding: 0.25rem 0;
}

body.dark-theme .mobile-sub-link {
  color: var(--text-dark-muted);
}

@media (max-width: 992px) {
  header nav {
    display: none !important;
  }
  .hamburger-btn {
    display: block;
  }
  /* On tablet, keep List Property button but make it compact */
  .hide-on-mobile {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.8rem !important;
  }
  .hide-on-mobile span {
    display: none;
  }
  /* Tablet brand name scaling */
  .logo-text-block {
    width: 130px !important;
  }
  .logo-everest {
    font-size: 1.4rem !important;
  }
  /* Hide tagline on tablet too */
  .logo-tagline {
    display: none !important;
  }
  .navbar-logo-img {
    height: 55px;
  }
}

/* User Profile Dropdown Styling */
.profile-dropdown-container {
  position: relative;
}

.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  transition: var(--transition);
}

body.dark-theme .profile-avatar {
  border-color: var(--border-dark);
}

.profile-btn:hover .profile-avatar,
.profile-dropdown-container:hover .profile-avatar {
  border-color: var(--primary);
  transform: scale(1.05);
}

.profile-dropdown {
  left: auto !important;
  right: 0 !important;
  transform: translateY(12px) scale(0.95) !important;
}

/* Open/active class for click interaction */
.profile-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(4px) scale(1) !important;
  pointer-events: auto !important;
}

/* Trust Features Banner */
.features-section-bg {
  background-color: white;
  padding: 0;
  margin-top: 4rem;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  overflow: hidden;
}

/* Stats Strip (top part of features section) */
.stats-strip {
  background: #f0f4f8;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid #d1d9e0;
  position: relative;
}
.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
  display: block;
}
.stat-number span {
  color: var(--accent);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Features row (bottom part of features section) */
.features-row {
  background-color: white;
  padding: 2.5rem 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border-light);
}

.feature-item:last-child {
  border-right: none;
  padding-right: 0;
}

.feature-icon {
  color: var(--accent);
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Responsive Grid Classes */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

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

.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.property-card-clean {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}
.property-card-clean:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.property-card-clean .card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.property-card-clean .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card-clean:hover .card-img-wrapper img {
  transform: scale(1.05);
}
.property-card-clean .card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  z-index: 10;
}
.property-card-clean .badge-exclusive {
  background-color: var(--primary);
}
.property-card-clean .badge-sold {
  background-color: #f97316; /* Orange */
  right: 1rem;
  left: auto;
}
.property-card-clean .card-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.property-card-clean .card-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.property-card-clean .card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light-main);
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.property-card-clean .card-id {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  margin-bottom: 0.25rem;
}
.property-card-clean .card-location {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.property-card-clean .card-footer {
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-light-muted);
}
.property-card-clean .card-footer span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.whatsapp-float-btn {
  position: absolute;
  top: -20px;
  right: 1rem;
  width: 38px;
  height: 38px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  text-decoration: none;
}

.hero-search-form {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  gap: 1.5rem;
}

/* Professional Custom Dropdowns */
.custom-dropdown {
  position: relative;
  cursor: pointer;
}
.dropdown-selected {
  font-weight: 500;
  color: var(--text-light-main);
  font-size: 0.95rem;
  user-select: none;
}
.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  width: max-content;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  margin-top: 15px;
  overflow: hidden;
}
.custom-dropdown.active .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-light-main);
  transition: background 0.2s;
  user-select: none;
}
.dropdown-item:hover {
  background: rgba(10,36,63,0.05);
  color: var(--primary);
}
body.dark-theme .dropdown-list {
  background: var(--bg-dark-paper);
  border-color: var(--border-dark);
}
body.dark-theme .dropdown-item {
  color: var(--text-dark-main);
}
body.dark-theme .dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

/* Hero Text Responsive Base */
.hero-title {
  font-size: 4.2rem;
}
.hero-subtitle {
  font-size: 1.125rem;
}
.hero-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}
.hero-btn i {
  font-size: 0.8rem;
}

/* =========================================
   NEW HOMEPAGE SECTIONS CSS
   ========================================= */

/* Map Teaser */
.map-teaser {
  position: relative;
  background-image: url('../images/map_bg.png'); /* We will use a placeholder or generic map image */
  background-size: cover;
  background-position: center;
  padding: 6rem 1.5rem;
  text-align: center;
}
.map-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 36, 63, 0.85); /* Dark navy overlay */
}
.map-teaser-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 600px;
  margin: 0 auto;
}

/* How It Works */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}
.step-card {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-5px);
}
.step-icon {
  width: 70px;
  height: 70px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.step-card:hover .step-icon {
  transform: scale(1.15) rotate(5deg);
}
.step-number {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  border: 4px solid white;
}

/* Agents */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.agent-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.agent-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.agent-info {
  padding: 1.5rem;
}
.agent-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.agent-social a {
  color: var(--text-light-muted);
  transition: color 0.2s ease;
}
.agent-social a:hover {
  color: var(--accent);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.testimonial-card i.fa-quote-left {
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.2);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}
.stars {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Blogs */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img {
  transform: scale(1.05);
}
.blog-content {
  padding: 1.5rem;
}
.blog-date {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0a243f 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  color: white;
  margin-top: 4rem;
}

/* Explore Grid Hover */
.explore-grid > a {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.explore-grid > a:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: #0a192f;
  color: #8892b0;
  padding: 2.5rem 1.5rem 1.25rem 1.5rem;
  margin-top: 0;
  font-size: 0.9rem;
}
.footer-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.footer-heading {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a {
  color: #8892b0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.footer-contact i {
  color: var(--accent);
  margin-top: 4px;
}
.newsletter-form {
  display: flex;
  margin-top: 0.75rem;
}
.newsletter-input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
}
.newsletter-input:focus {
  border-color: var(--accent);
}
.newsletter-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.newsletter-btn:hover {
  background: var(--accent-hover);
}
.app-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.app-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.3s;
}
.app-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}
.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-socials a:hover {
  background: var(--accent);
  transform: translateY(-3px);
  color: white;
}

/* Base Responsive Hiding */
.hide-on-mobile {
  display: flex;
}

/* Large Tablets / Laptops */
@media (max-width: 1200px) {
  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem !important;
  }
  .hero-subtitle {
    font-size: 1.05rem !important;
  }
  .properties-grid, .properties-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .properties-grid-2 {
    grid-template-columns: 1fr;
  }
  .agents-grid, .blogs-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-it-works-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .feature-item {
    border-right: none;
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
  }
  .feature-item:nth-last-child(2),
  .feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid {
    grid-template-columns: 1fr;
  }

  /* Search wrapper: unglue from hero, become static block on tablets */
  .hero-search-wrapper {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2rem;
    padding: 0 1rem;
  }
  
  .hero-search-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
  }
  
  .hero-search-form > div {
    border-right: none !important;
    padding-right: 0 !important;
    width: 100% !important;
  }
  
  .hero-search-form button[type="submit"] {
    grid-column: span 2;
    width: 100%;
  }

  /* Prevent icon squishing on tablets */
  .hero-search-form > div > div:first-child {
    flex-shrink: 0;
  }
}

/* Mobile Phones */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid #d1d9e0;
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .feature-item:nth-last-child(2) {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  
  .explore-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .properties-grid, .properties-grid-4, .properties-grid-2, .agents-grid, .blogs-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: auto !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .hero-title {
    font-size: 2.1rem !important;
  }
  .hero-subtitle {
    font-size: 1rem !important;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .dropdown-list {
    width: 100% !important;
  }
  
  .hero-text-block {
    max-width: 100% !important;
  }
  
  /* Search wrapper is already static from 992px */
  
  .hero-search-form {
    grid-template-columns: 1fr;
    gap: 1rem !important;
  }
  
  .hero-search-form > div {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light) !important;
  }
  
  .hero-search-form button[type="submit"] {
    grid-column: span 1;
  }

  /* Explore cards height on mobile */
  .explore-grid a {
    height: 180px !important;
  }

  /* Navbar height + logo scaling on mobile */
  header {
    height: 60px !important;
  }

  .navbar-logo-img {
    height: 46px !important;
  }

  /* Mobile nav panel starts just below the smaller header */
  .mobile-nav-panel {
    top: 60px !important;
  }

  /* Hide tagline on mobile so logo fits in navbar */
  .logo-tagline {
    display: none !important;
  }
  
  .section-title {
    font-size: 1.5rem;
  }

  
  /* Smaller brand name on mobile */
  .logo-text-block {
    width: 95px !important;
    padding-top: 0 !important;
  }

  .logo-everest {
    font-size: 1.1rem !important;
  }

  /* PROPERTIES line smaller too */
  .logo-text-block span[style*="letter-spacing"] {
    font-size: 0.5rem !important;
    letter-spacing: 1.5px !important;
  }


  /* Footer responsive */
  footer > div:first-child > div {
    flex-wrap: wrap !important;
  }
  
  /* General padding fix for all sections on mobile */
  section, .content-grid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.8rem !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
}

/* --- HERO ANIMATIONS --- */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes searchSlideUp {
  from { opacity: 0; transform: translate(-50%, 50px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes blinkCursor {
  from, to { color: transparent; }
  50% { color: var(--accent); }
}

.hero-anim-left {
  animation: fadeInLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-anim-right {
  animation: fadeInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0; /* starts hidden before anim */
}

.hero-anim-up {
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

.hero-anim-search {
  animation: searchSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

.typing-cursor {
  font-weight: 300;
  color: var(--accent);
  animation: blinkCursor 1s step-end infinite;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-fade-up.in-view,
.scroll-fade-left.in-view,
.scroll-fade-right.in-view,
.scroll-zoom-in.in-view {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* =========================================
   NEPAL LAND CALCULATOR TOOL
   ========================================= */

/* Top navigation pill buttons */
.tool-nav-btn {
  padding: 0.55rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  color: var(--text-light-muted);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(4px);
}
.tool-nav-btn:hover {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(10,36,63,0.12);
}
.tool-nav-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(10,36,63,0.25);
}

/* System sub-buttons (Ropani / Bigha) */
.sys-btn {
  flex: 1;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-light-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.sys-btn:hover { border-color: var(--primary); color: var(--primary); }
.sys-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Section header inside each tool panel */
.tool-section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.tool-section-header i {
  font-size: 1.4rem;
  margin-top: 2px;
}

/* Labels */
.tool-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light-muted);
  margin-bottom: 0.4rem;
}

/* Inputs inside tools get full width by default */
.tool-input {
  width: 100%;
  box-sizing: border-box;
}

/* Result grid */
.tool-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.result-box {
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.result-box.accent {
  background: var(--primary-light);
  border-color: var(--primary);
}
.result-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light-muted);
  margin-bottom: 0.35rem;
}
.result-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  word-break: break-all;
}
.result-box.accent .result-val {
  color: var(--primary);
}

/* Inner result block (reverse tool) */
.tool-result-block {
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
}
.result-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light-main);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Cross-system rows */
.cross-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
  flex-wrap: wrap;
}
.cross-result-row:last-child { border-bottom: none; }

/* Reference table */
.ref-row td {
  padding: 0.55rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.ref-row td:first-child { text-align: left; }
.ref-row.alt { background: rgba(10,36,63,0.03); }

/* Copy button */
.copy-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: var(--primary);
  color: white;
}


/* ----- GLOBALLY MOVED FROM SEARCH.HTML ----- */
    /* Vertical Property Card matching screenshot */
    .prop-card {
        background: white;
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        transition: transform 0.2s, box-shadow 0.2s;
        border: 1px solid var(--border-light);
        display: flex;
        flex-direction: column;
    }
    .prop-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    .prop-img-wrap {
        position: relative;
        padding-top: 66%; /* 3:2 aspect ratio */
        overflow: hidden;
    }
    .prop-img-wrap img {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
    .prop-card:hover .prop-img-wrap img {
        transform: scale(1.08);
    }
    .prop-status-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        padding: 0.25rem 0.75rem;
        border-radius: 50px;
        color: white;
        font-size: 0.75rem;
        font-weight: 600;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .status-sold { background: #f97316; }
    .status-sale { background: var(--primary); }

    .prop-details {
        padding: 1.25rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .prop-price {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 0.25rem;
    }
    .prop-title {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-light-main);
        margin-bottom: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .prop-meta {
        font-size: 0.8rem;
        color: var(--text-light-muted);
        margin-bottom: 0.75rem;
    }
    .prop-location {
        color: #b8860b; /* Dark Goldenrod for better contrast */
        font-weight: 500;
    }
    .prop-features {
        display: flex;
        gap: 1rem;
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
        color: var(--text-light-main);
        font-size: 0.85rem;
        font-weight: 500;
    }


/* ----- GLOBALLY MOVED FROM SEARCH.HTML ----- */
    /* Vertical Property Card matching screenshot */
    .prop-card {
        background: white;
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        transition: transform 0.2s, box-shadow 0.2s;
        border: 1px solid var(--border-light);
        display: flex;
        flex-direction: column;
    }
    .prop-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    .prop-img-wrap {
        position: relative;
        padding-top: 66%; /* 3:2 aspect ratio */
        overflow: hidden;
    }
    .prop-img-wrap img {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
    .prop-card:hover .prop-img-wrap img {
        transform: scale(1.08);
    }
    .prop-status-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        padding: 0.25rem 0.75rem;
        border-radius: 50px;
        color: white;
        font-size: 0.75rem;
        font-weight: 600;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .status-sold { background: #f97316; }
    .status-sale { background: var(--primary); }

    .prop-details {
        padding: 1.25rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .prop-price {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 0.25rem;
    }
    .prop-title {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-light-main);
        margin-bottom: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .prop-meta {
        font-size: 0.8rem;
        color: var(--text-light-muted);
        margin-bottom: 0.75rem;
    }
    .prop-location {
        color: #b8860b; /* Dark Goldenrod for better contrast */
        font-weight: 500;
    }
    .prop-features {
        display: flex;
        gap: 1rem;
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
        color: var(--text-light-main);
        font-size: 0.85rem;
        font-weight: 500;
    }
    .prop-features span {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }
    .prop-features i { color: var(--text-light-muted); }


/* Added btn-hero-primary */
.btn-hero-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-hero-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* =========================================================
   LUXURY EDITORIAL CARD (Photo Hover Overlay & Minimalist)
   ========================================================= */
.luxury-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    position: relative;
    text-decoration: none !important;
    color: inherit !important;
}

.luxury-card:hover {
    transform: translateY(-4px);
}

.luxury-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.6%; /* 3:2 aspect ratio */
    overflow: hidden;
    border-radius: 4px;
    background-color: #0b1528;
}

.luxury-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.luxury-card:hover .luxury-img-wrapper img {
    transform: scale(1.08);
}

/* Status Badge */
.luxury-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 4;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.luxury-badge.badge-sold { background-color: #DC2626; }
.luxury-badge.badge-rent { background-color: #0A243F; }
.luxury-badge.badge-shortterm { background-color: #0D9488; }
.luxury-badge.badge-sale { background-color: #B8860B; }

/* The Hover Overlay */
.luxury-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 36, 63, 0.45) 0%, rgba(10, 36, 63, 0.92) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    text-align: center;
}

.luxury-card:hover .luxury-overlay {
    opacity: 1;
    visibility: visible;
}

.luxury-overlay-line {
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.85rem;
}

.luxury-overlay-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0 0 1.15rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.luxury-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.55rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.luxury-card:hover .luxury-overlay-btn:hover {
    background: var(--accent, #B8860B);
    border-color: var(--accent, #B8860B);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.4);
}

/* Minimalist Info Below Image */
.luxury-info {
    padding: 0.85rem 0 0.4rem 0;
}

.luxury-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary, #0A243F);
    margin: 0 0 0.3rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.luxury-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.luxury-loc-text {
    font-weight: 500;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.luxury-sep {
    color: #cbd5e1;
    font-weight: 300;
    margin: 0 0.15rem;
}

.luxury-price {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.luxury-specs {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.luxury-dot {
    color: #cbd5e1;
    font-weight: bold;
}
