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

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --gold: #d4a853;
  --gold-light: #f0d890;
  --bg: #fafbfe;
  --bg-white: #ffffff;
  --text: #0c1222;
  --text-secondary: #3a4560;
  --text-light: #6b7a99;
  --border: #e8edf5;
  --border-light: #f1f4f9;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 1px 3px rgba(12, 18, 34, 0.04);
  --shadow: 0 4px 20px rgba(12, 18, 34, 0.06);
  --shadow-md: 0 8px 30px rgba(12, 18, 34, 0.08);
  --shadow-lg: 0 16px 50px rgba(12, 18, 34, 0.1);
  --shadow-xl: 0 24px 60px rgba(12, 18, 34, 0.14);
  --shadow-primary: 0 8px 30px rgba(14, 165, 233, 0.2);
  --shadow-gold: 0 8px 30px rgba(212, 168, 83, 0.2);
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.dark {
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --primary-light: #7dd3fc;
  --primary-50: rgba(14, 165, 233, 0.08);
  --primary-100: rgba(14, 165, 233, 0.12);
  --primary-200: rgba(14, 165, 233, 0.18);
  --gold: #f0d890;
  --gold-light: #f5e6b0;
  --bg: #0f1320;
  --bg-white: #171c2e;
  --text: #e8ecf4;
  --text-secondary: #b0b9cf;
  --text-light: #7a86a3;
  --border: #252d42;
  --border-light: #1e2538;
  --success: #34d399;
  --success-light: rgba(16, 185, 129, 0.15);
  --danger: #f87171;
  --glass: rgba(15, 19, 32, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.4);
  --shadow-primary: 0 8px 30px rgba(56, 189, 248, 0.15);
  --shadow-gold: 0 8px 30px rgba(240, 216, 144, 0.12);
}

html.dark .nav.scrolled {
  background: rgba(15, 19, 32, 0.95);
}

html.dark .nav-toggle span {
  background: var(--text);
}

html.dark .nav-cart {
  background: var(--primary-50) !important;
}

html.dark .nav-cart:hover {
  background: var(--primary-100) !important;
}

html.dark .hero-search button {
  background: var(--bg-white);
  color: var(--text);
}

html.dark .hero-search button:hover {
  background: var(--gold);
  color: #0f1320;
}

html.dark .btn-white {
  background: var(--bg-white);
  color: var(--text);
}

html.dark .footer {
  background: #080b14;
}

html.dark .about-card:hover .about-card-icon svg {
  stroke: white;
}

html.dark .form-group input,
html.dark .form-group select,
html.dark .form-group textarea,
html.dark .filter-group select,
html.dark .filter-group input[type="text"],
html.dark .viewing-form input,
html.dark .viewing-form textarea,
html.dark .calc-grid input {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

html.dark .form-group input:focus,
html.dark .form-group select:focus,
html.dark .form-group textarea:focus {
  background: var(--bg-white);
}

html.dark .form-group input::placeholder {
  color: #4a5575;
}

html.dark .bank-detail-table {
  background: var(--bg);
  border-color: var(--border);
}

html.dark .bdt-label {
  background: #141828;
  border-color: var(--border);
}

html.dark .no-payment-msg {
  background: rgba(254, 243, 199, 0.08);
  border-color: rgba(253, 230, 138, 0.15);
  color: var(--gold);
}

html.dark .viewing-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

html.dark .alert-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

html.dark .back-to-top {
  background: var(--bg-white);
  border-color: var(--border);
}

html.dark .back-to-top svg {
  stroke: var(--text);
}

html.dark .back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
}

html.dark .back-to-top:hover svg {
  stroke: white;
}

html.dark .toast {
  background: var(--bg-white);
  color: var(--text);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.serif { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.4; transform: translate(0, 0) scale(1); }
  33% { opacity: 0.6; transform: translate(3%, -2%) scale(1.05); }
  66% { opacity: 0.3; transform: translate(-2%, 1%) scale(0.95); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== NAV RIGHT GROUP ========== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary-50);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--primary-100);
  color: var(--primary);
  transform: scale(1.05);
}

.theme-toggle .icon-moon {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-moon {
  display: block;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 3rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.nav.scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.nav-brand {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.5px;
}

.nav-brand svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.3));
}

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

.nav-links li a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 0.92rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  position: relative;
}

.nav-links li a:hover {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem !important;
  border-radius: 50% !important;
  width: 42px;
  height: 42px;
  justify-content: center;
  background: var(--primary-50) !important;
  transition: var(--transition) !important;
}

.nav-cart:hover {
  background: var(--primary-100) !important;
  transform: scale(1.05);
}

.cart-badge {
  background: var(--gold);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: absolute;
  top: -2px;
  right: -2px;
  box-shadow: 0 2px 6px rgba(212, 168, 83, 0.4);
  border: 2px solid white;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: #0c1222;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.5s ease, transform 8s ease;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 18, 34, 0.7) 0%, rgba(12, 18, 34, 0.45) 40%, rgba(12, 18, 34, 0.65) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(14, 165, 233, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse at 70% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  animation: fadeUp 1s ease;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.hero-label svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Hero Search */
.hero-search {
  display: flex;
  max-width: 680px;
  width: 100%;
  margin: 0 auto 2.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 60px;
  overflow: hidden;
  padding: 0.35rem;
}

.hero-search svg {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  color: white;
  pointer-events: none;
}

.hero-search {
  position: relative;
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.85rem 1rem 0.85rem 3rem;
  color: white;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-search button {
  background: white;
  color: var(--text);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.hero-search button:hover {
  background: var(--gold-light);
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn svg {
  opacity: 0.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: center;
  color: white;
}

.hero-stat-num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  font-size: 0.85rem;
  opacity: 0.6;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(14, 165, 233, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #c4983f);
  color: white;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(212, 168, 83, 0.35);
}

.btn-white {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: var(--danger);
}

.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1.1rem 2.8rem;
  font-size: 1rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
}

/* ========== LAYOUT ========== */
.section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-50);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.3px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

/* ========== PROPERTY CARDS ========== */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 1.75rem;
}

.house-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
}

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

.house-card:hover .house-card-img svg {
  transform: scale(1.08);
}

.house-card-img {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--border-light);
}

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

.house-card:hover .house-card-img img {
  transform: scale(1.06);
}

.house-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(12, 18, 34, 0.75);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.house-card-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.house-card-favorite:hover {
  background: white;
  transform: scale(1.1);
}

.house-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.house-card-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.house-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.house-card-address {
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.house-card-address svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.house-card-meta {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
}

.house-card-meta span {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.house-card-meta span svg {
  opacity: 0.4;
}

.house-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.house-card-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ========== HOME GALLERY (card-free image grid) ========== */
.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-gallery-item:hover img {
  transform: scale(1.06);
}

.home-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}

.home-gallery-item:hover .home-gallery-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

.home-gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(12, 18, 34, 0.75);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-gallery-overlay h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.home-gallery-price {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  letter-spacing: -0.5px;
}

.home-gallery-address {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  margin: 0;
}

@media (max-width: 900px) {
  .home-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .home-gallery { grid-template-columns: 1fr; }
}

/* ========== FILTER BAR ========== */
.filter-bar {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 150px;
}

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

.filter-group select,
.filter-group input[type="text"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7a99' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.results-count {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.results-count strong {
  color: var(--text);
  font-weight: 700;
}

/* ========== HOW IT WORKS STEPS ========== */
.how-it-works-section {
  background: var(--bg-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.step-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

/* ========== MARKET CARDS ========== */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.market-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

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

.market-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.market-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.market-card-body p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ========== WHY CHOOSE / FEATURES ========== */
.features-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-50) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0;
  transition: var(--transition);
}

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

.about-card:hover::before {
  opacity: 1;
}

.about-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.about-card:hover .about-card-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.about-card:hover .about-card-icon svg {
  stroke: white;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.about-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}

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

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-author-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-author-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== CTA BANNER ========== */
.cta-section {
  padding: 6rem 2rem;
}

.cta-card {
  max-width: 1240px;
  margin: 0 auto;
  background: linear-gradient(160deg, #0c1b3a, #0e2d5e, #0a4a7a);
  border-radius: 28px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 300px at 20% 50%, rgba(14, 165, 233, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 80% 50%, rgba(212, 168, 83, 0.15) 0%, transparent 70%);
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ========== DETAIL PAGE ========== */
.detail-hero {
  padding: 6rem 2rem 2rem;
  background: var(--bg);
}

.detail-breadcrumb {
  max-width: 1240px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.detail-breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.detail-breadcrumb a:hover {
  text-decoration: underline;
}

/* ========== GALLERY ========== */
.gallery-container {
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border-light);
  height: 520px;
  margin-bottom: 0.75rem;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  color: var(--text);
  z-index: 2;
}

.gallery-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-lg);
}

.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(12, 18, 34, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-thumb {
  border: 3px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  height: 100px;
  background: var(--border-light);
  padding: 0;
  transition: var(--transition);
}

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

.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.gallery-thumb:hover {
  border-color: var(--primary-light);
}

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

/* Detail body layout */
.detail-body-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-info-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: sticky;
  top: 100px;
}

.detail-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-50);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.detail-price {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.detail-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.detail-address {
  color: var(--text-light);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.detail-stat {
  background: var(--bg);
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border-light);
}

.detail-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.detail-stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.detail-purchase-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

.detail-body {
  padding: 3rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

.detail-section-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.detail-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.feature-tag {
  background: var(--bg-white);
  color: var(--text-secondary);
  padding: 0.55rem 1.15rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feature-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.feature-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

.similar-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.similar-section h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* ========== CART ========== */
.cart-page {
  padding: 7rem 2rem 3rem;
  max-width: 940px;
  margin: 0 auto;
}

.page-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.page-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.cart-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow-md);
}

.cart-item-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cart-item-info h3 a {
  color: var(--text);
  transition: var(--transition);
}

.cart-item-info h3 a:hover {
  color: var(--primary);
}

.cart-item-info p {
  color: var(--text-light);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-item-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cart-total {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.cart-total-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-total-amount {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.cart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.empty-state h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ========== CHECKOUT ========== */
.checkout-page {
  padding: 7rem 2rem 3rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ========== CHECKOUT STEP INDICATOR ========== */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  opacity: 0.4;
  transition: var(--transition);
}

.checkout-step.active,
.checkout-step.done {
  opacity: 1;
}

.checkout-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkout-step.active .checkout-step-num {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,165,233,0.3);
}

.checkout-step.done .checkout-step-num {
  background: #10b981;
  color: #fff;
}

.checkout-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.checkout-step-sub {
  font-size: 0.72rem;
  color: var(--text-light);
}

.checkout-step-line {
  width: 60px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 1.25rem;
  transition: background 0.4s ease;
}

.checkout-step-line.done {
  background: #10b981;
}

/* ========== CHECKOUT PANELS ========== */
.checkout-panel {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.checkout-panel-header {
  margin-bottom: 1.75rem;
}

.checkout-panel-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.checkout-panel-header p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.checkout-back:hover {
  opacity: 0.7;
}

/* ========== PROPERTY SUMMARY (in checkout) ========== */
.checkout-property-summary {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.cps-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.cps-item:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.cps-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.cps-address {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.cps-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.cps-total {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 2px solid var(--border);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

/* ========== BUYER SUMMARY (step 2) ========== */
.buyer-summary {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.buyer-summary-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.buyer-summary-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.buyer-summary-email {
  font-size: 0.82rem;
  color: var(--text-light);
}

.checkout-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.form-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.form-section-title:not(:first-child) {
  margin-top: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 0.75rem;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: white;
}

.form-group input::placeholder {
  color: #b0bcc9;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}

.order-summary-row span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.order-summary-row strong {
  font-weight: 700;
  color: var(--text);
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0 0.5rem;
  font-size: 1.25rem;
}

.order-summary-total span {
  font-weight: 600;
  color: var(--text);
}

.order-summary-total .total-amount {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.secure-badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* ========== INLINE BANK PAYMENT FORM ========== */
/* ========== PAYMENT METHOD OPTION TILES ========== */
.pm-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.pm-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pm-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}

.pm-option:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
  background: var(--bg-white);
}

.pm-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: var(--bg-white);
}

.pm-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-option-icon.bank {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.pm-option-icon.bank svg { stroke: #2563eb; }

.pm-option-icon.crypto {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.pm-option-icon.crypto svg { stroke: #d97706; }

.pm-option-info {
  flex: 1;
  min-width: 0;
}

.pm-option-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.pm-option-type {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.pm-option-arrow {
  flex-shrink: 0;
  color: var(--text-light);
  opacity: 0.4;
  transition: var(--transition);
}

.pm-option:hover .pm-option-arrow {
  opacity: 0.8;
  color: var(--primary);
  transform: translateX(2px);
}

.pm-option.selected .pm-option-label::after {
  content: 'Selected';
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--primary);
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  vertical-align: middle;
}

/* ========== PAYMENT MODAL ========== */
.pm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.pm-modal {
  background: var(--bg-white);
  border-radius: 16px;
  width: 92%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pm-modal-overlay.active .pm-modal {
  transform: translateY(0) scale(1);
}

.pm-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.pm-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: rotate(90deg);
}

.pm-modal-body {
  padding: 2rem 1.75rem 1rem;
}

.pm-modal-footer {
  padding: 0 1.75rem 1.75rem;
}

.pm-modal-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pm-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-modal-icon.bank {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.pm-modal-icon.bank svg { stroke: #2563eb; }

.pm-modal-icon.crypto {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.pm-modal-icon.crypto svg { stroke: #d97706; }

.pm-modal-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.pm-modal-type {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.pm-modal-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100, rgba(14,165,233,0.15));
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pm-modal-notice svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  stroke: var(--primary);
}

.pm-modal-body .bank-detail-table {
  margin-bottom: 0;
}

.pm-modal-body .bank-instructions {
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .pm-modal { width: 96%; border-radius: 14px; }
  .pm-modal-body { padding: 1.5rem 1.25rem 0.75rem; }
  .pm-modal-footer { padding: 0 1.25rem 1.25rem; }
}

.bank-detail-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.bank-detail-table tr {
  border-bottom: 1px solid var(--border-light);
}

.bank-detail-table tr:last-child {
  border-bottom: none;
}

.bdt-label {
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
  width: 140px;
  background: var(--bg);
  border-right: 1px solid var(--border-light);
  vertical-align: middle;
}

.bdt-value {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  vertical-align: middle;
}

.bdt-copy {
  cursor: pointer;
  transition: color 0.2s;
}

.bdt-copy svg {
  opacity: 0.3;
  vertical-align: middle;
  margin-left: 0.4rem;
  flex-shrink: 0;
}

.bdt-copy:hover {
  color: var(--primary);
}

.bdt-copy:hover svg {
  opacity: 0.7;
}

.bdt-copy.copied {
  color: var(--success);
}

.bdt-wallet {
  word-break: break-all;
  font-size: 0.78rem;
  line-height: 1.6;
}

.bank-instructions {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--primary-50);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-left: 3px solid var(--primary);
}

.no-payment-msg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  color: #92400e;
  font-size: 0.88rem;
}

.no-payment-msg a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ========== VIEWING FORM ========== */
.viewing-form-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.viewing-form {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.viewing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.viewing-form input,
.viewing-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}

.viewing-form input:focus,
.viewing-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.viewing-form textarea {
  resize: vertical;
}

.viewing-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #d1fae5;
  border-radius: var(--radius-xs);
  color: #065f46;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ========== LEGAL PAGES ========== */
.legal-page {
  padding: 3rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* ========== MORTGAGE CALCULATOR ========== */
.calc-section {
  margin-top: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.calc-section h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.calc-grid label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.calc-grid input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.calc-grid input:focus {
  border-color: var(--primary);
}

.calc-result {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1rem;
  text-align: center;
}

.calc-monthly {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.calc-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* ========== CONFIRMATION ========== */
.confirmation-page {
  padding: 7rem 2rem 3rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.confirmation-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  animation: scaleIn 0.5s ease;
}

.confirmation-icon {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  position: relative;
}

.confirmation-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.15);
  animation: pulse-ring 2s ease-out infinite;
}

.confirmation-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.confirmation-subtitle {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.confirmation-details {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: left;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.confirmation-row:last-child {
  margin-bottom: 0;
}

.confirmation-row .label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.confirmation-row .value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.confirmation-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.confirmation-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.confirmation-item .item-title {
  color: var(--text-secondary);
}

.confirmation-item .item-price {
  font-weight: 700;
  color: var(--text);
}

.confirmation-item .item-address {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.confirmation-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding-top: 0.5rem;
}

.confirmation-total .total-amount {
  color: var(--primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.35rem;
}

.confirmation-email-note {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ========== ABOUT ========== */
.about-hero {
  padding: 9rem 2rem 5rem;
  background: linear-gradient(160deg, #0c1b3a 0%, #0e2d5e 50%, #0a4a7a 100%);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 30% 60%, rgba(14, 165, 233, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 70% 40%, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
}

.about-hero > * {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-content {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 3.5rem;
  text-align: center;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

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

.about-stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.about-stat-num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.about-stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ========== CONTACT ========== */
.contact-page {
  padding: 7rem 2rem 3rem;
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.contact-info-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-info-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.contact-info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  font-size: 0.82rem;
  color: var(--text-light);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background: var(--success-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ========== PAGE HEADER ========== */
.page-header {
  padding: 7rem 2rem 2.5rem;
  background: linear-gradient(160deg, #0c1b3a 0%, #0e2d5e 50%, #0a4a7a 100%);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 250px at 50% 80%, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.page-header p {
  opacity: 0.7;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ========== FOOTER ========== */
.footer {
  background: #0c1222;
  color: rgba(255, 255, 255, 0.6);
  padding: 4.5rem 2rem 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-brand-section {
  max-width: 280px;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand svg {
  width: 28px;
  height: 28px;
}

.footer-description {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer h4 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.65rem;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  flex-shrink: 0;
}

.footer-bottom {
  max-width: 1240px;
  margin: 3rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: white;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  animation: fadeUp 0.4s ease;
  max-width: 360px;
}

.toast.hide {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(10px); }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.back-to-top:hover svg {
  stroke: white;
}

/* ========== MOBILE NAV ========== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--primary-50);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .houses-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    gap: 0.15rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xs);
  }

  /* Nav */
  .nav { padding: 0 1rem; height: 64px; }
  .nav-brand { font-size: 1.1rem; gap: 0.45rem; }
  .nav-brand svg { width: 26px; height: 26px; }
  .nav.scrolled { height: 56px; }

  /* Hero */
  .hero { padding: 6rem 1.25rem 3.5rem; min-height: auto; }
  .hero h1 { font-size: 1.85rem; margin-bottom: 1rem; }
  .hero p { font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.7; }
  .hero-label { font-size: 0.72rem; padding: 0.4rem 0.9rem; margin-bottom: 1.25rem; }
  .hero-search { flex-direction: column; border-radius: var(--radius-md); padding: 0.4rem; margin-bottom: 1.5rem; }
  .hero-search input { padding: 0.7rem 1rem 0.7rem 2.5rem; font-size: 0.85rem; }
  .hero-search button { width: 100%; padding: 0.65rem; border-radius: var(--radius-xs); font-size: 0.82rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .hero-buttons .btn { font-size: 0.85rem; padding: 0.75rem 1.5rem; }
  .hero-stats { flex-direction: row; gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.68rem; letter-spacing: 0.5px; }

  /* Sections */
  .section { padding: 3rem 1.25rem; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.85rem; }

  /* Grids */
  .houses-grid { grid-template-columns: 1fr; }
  .home-gallery { grid-template-columns: 1fr; gap: 1rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid::before { display: none; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Detail page */
  .detail-hero { padding: 5rem 1rem 1.5rem; }
  .detail-body { padding: 1.5rem 1rem; }
  .detail-body-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-info-card { padding: 1.5rem; position: static; }
  .detail-price { font-size: 1.6rem; }
  .detail-title { font-size: 1.05rem; }
  .detail-address { font-size: 0.82rem; }
  .detail-stats { gap: 0.5rem; }
  .detail-stat { padding: 0.75rem 0.5rem; }
  .detail-stat-val { font-size: 1rem; }
  .detail-stat-label { font-size: 0.65rem; }
  .detail-section-title { font-size: 1.15rem; }
  .detail-description { font-size: 0.92rem; line-height: 1.75; margin-bottom: 1.75rem; }
  .gallery-main { height: 250px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .gallery-thumb { height: 55px; }
  .gallery-nav { width: 36px; height: 36px; }
  .gallery-nav svg { width: 16px; height: 16px; }
  .feature-tag { font-size: 0.78rem; padding: 0.4rem 0.75rem; }

  /* Checkout */
  .checkout-page { padding: 5rem 1rem 2rem; }
  .checkout-panel { padding: 1.25rem; }
  .checkout-panel-header h2 { font-size: 1.2rem; }
  .checkout-panel-header p { font-size: 0.82rem; }
  .checkout-step-text { display: none; }
  .checkout-step-line { width: 40px; margin: 0 0.75rem; }
  .checkout-steps { margin-bottom: 1.5rem; }
  .cps-item { flex-direction: column; gap: 0.3rem; }
  .cps-price { align-self: flex-end; }
  .pm-option { padding: 0.85rem; gap: 0.7rem; }
  .pm-option-icon { width: 40px; height: 40px; }
  .bdt-label { width: 100px; padding: 0.5rem 0.6rem; font-size: 0.72rem; }
  .bdt-value { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
  .bdt-wallet { font-size: 0.68rem; }
  .form-grid { grid-template-columns: 1fr; }

  /* Cart */
  .cart-item { flex-direction: column; text-align: center; gap: 0.75rem; }
  .cart-item-actions { flex-direction: column; gap: 0.5rem; }
  .cart-total { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer { padding: 3rem 1.25rem 1.5rem; }

  /* Other pages */
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-info-bar { grid-template-columns: 1fr; }
  .page-header { padding: 5rem 1.25rem 1.5rem; }
  .page-header h1 { font-size: 1.5rem; }
  .filter-row { flex-direction: column; }

  /* CTA */
  .cta-section { padding: 3rem 1rem; }
  .cta-card { padding: 2.5rem 1.25rem; border-radius: 18px; }
  .cta-card h2 { font-size: 1.35rem; }
  .cta-card p { font-size: 0.85rem; max-width: 100%; }
  .cta-card .hero-buttons { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .cta-card .hero-buttons .btn { font-size: 0.85rem; padding: 0.75rem 1.5rem; }

  /* Global btn-lg on mobile */
  .btn-lg { padding: 0.85rem 1.8rem; font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.55rem; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stats { gap: 1rem; }
  .house-card-actions { flex-direction: column; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .about-stat-card { padding: 1rem 0.75rem; }
  .about-stat-num { font-size: 1.5rem; }
  .market-grid { grid-template-columns: 1fr; }
  .nav-brand { font-size: 1rem; }
  .section-header h2 { font-size: 1.3rem; }
  .detail-price { font-size: 1.4rem; }
  .gallery-main { height: 200px; }
}
