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

:root {
  /* Colors */
  --dark-bg: #0f172a;
  --dark-bg-elevated: #1e293b;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-gradient: linear-gradient(135deg, #d4af37, #f3e5ab, #d4af37);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: 0 4px 30px rgba(0, 0, 0, 0.5);
  
  /* Utilities */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 20px;
  --border-radius-lg: 24px;
  
  /* Spacing Grid (8px based) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 120px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

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

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-glow);
  border-radius: var(--border-radius);
}

/* Navbar - Premium Island */
header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 1000;
  transition: var(--transition);
  pointer-events: none; /* Let clicks pass through margins */
}

.glass-nav {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  max-width: 1200px;
  width: calc(100% - 32px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  pointer-events: auto; /* Re-enable clicks */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 var(--space-md);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 20px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
  padding: var(--space-xs);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

/* Instagram Icon */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
  font-size: 20px;
  text-decoration: none;
}
.social-icon:hover {
  color: var(--gold-primary);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.text-gold { color: var(--gold-primary); }
.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Buttons */
.btn-primary {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 600;
  padding: 14px 32px;
  min-height: 48px; /* Touch target */
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  font-weight: 600;
  padding: 14px 32px;
  min-height: 48px; /* Touch target */
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.15);
}

/* Base Layout Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Forms & Inputs */
input, select, textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 16px;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 16px; /* Prevents iOS zoom */
  transition: var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

select option {
  background: var(--dark-bg);
  color: var(--text-main);
}

/* Wizard Forms */
.form-step {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.form-step.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

/* Modal / Popup */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--dark-bg);
  border: 1px solid var(--glass-border);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: calc(100% - 32px);
  transform: translateY(20px);
  transition: var(--transition);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
  padding: var(--space-xs);
}

.modal-close:hover {
  color: var(--text-main);
}

/* Animations Utility */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

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

/* Utilities */
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Responsive */
@media (max-width: 992px) {
  .logo-text { font-size: 16px; }
  .btn-primary, .btn-outline { padding: 14px 24px; }
}

@media (max-width: 768px) {
  .glass-nav {
    border-radius: 20px;
    top: 8px;
    width: calc(100% - 16px);
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    background: var(--dark-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
    box-shadow: var(--glass-glow);
    clip-path: circle(0% at 90% -100%);
    transition: clip-path 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .nav-links.active {
    clip-path: circle(150% at 50% 50%);
  }

  .nav-mobile-btn {
    display: block;
  }
  
  section {
    padding: 60px 0;
    margin-bottom: 60px;
  }
  
  .navbar { height: 60px; }

  /* Fix grid squishing on small phones */
  .category-grid, .property-grid {
    grid-template-columns: 1fr !important;
  }
  
  .glass {
    padding-left: var(--space-md) !important;
    padding-right: var(--space-md) !important;
  }
  
  .property-info {
    padding: var(--space-md) !important;
  }
  
  .founder-content {
    padding: var(--space-md) !important;
  }
}
/* ─── Budget Filter Bar ────────────────────────────────────────── */

.budget-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 28px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.03);
}

.budget-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.budget-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-primary);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.budget-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    flex: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.budget-input-wrap:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.budget-rupee {
    padding: 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
    border-right: 1px solid var(--glass-border);
    line-height: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.budget-input-wrap input[type="number"] {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    width: 100%;
    border-radius: 0;
}

.budget-input-wrap input[type="number"]:focus {
    border: none;
    box-shadow: none;
}

/* Remove number spinner arrows */
.budget-input-wrap input[type="number"]::-webkit-inner-spin-button,
.budget-input-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.budget-input-wrap input[type="number"] { -moz-appearance: textfield; }

.budget-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.preset-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
}

.preset-btn.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    font-weight: 700;
}

.preset-clear {
    border-color: rgba(148, 163, 184, 0.3);
}

.preset-clear.active {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* ─── Property Card Badges ─────────────────────────────────────── */


/* Wrap the card image so we can overlay badges */
.prop-img-wrap {
    position: relative;
    overflow: hidden;
}

/* Type badge — top-left corner of image */
.prop-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.3;
    max-width: calc(100% - 24px);
}

/* Sub-type pill inside the type badge */
.prop-sub-badge {
    display: inline-block;
    background: var(--gold-primary);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Price badge — bottom of image, full-width dark strip */
.prop-price-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(10,14,26,0.97) 0%, rgba(10,14,26,0.7) 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    padding: 10px 16px 12px;
    letter-spacing: 0.3px;
    background-image: linear-gradient(0deg, rgba(10,14,26,1) 0%, rgba(10,14,26,0.6) 100%);
}

/* Gold accent on price text */
.prop-price-badge::first-line {
    color: var(--gold-primary);
}

