/* =============================================
   NEST - Premium Real Estate Platform CSS
   ============================================= */

:root {
  /* Color Psychology: Emerald Green & Slate */
  --primary: #059669;        /* emerald-600 */
  --primary-dark: #047857;   /* emerald-700 */
  --primary-light: #d1fae5;  /* emerald-100 */
  --secondary: #0f766e;      /* teal-700 */
  --accent: #10b981;         /* emerald-500 */
  
  --dark: #0f172a;           /* slate-900 */
  --dark-2: #1e293b;         /* slate-800 */
  --dark-3: #334155;         /* slate-700 */
  --gray: #475569;           /* slate-600 */
  --gray-light: #94a3b8;     /* slate-400 */
  --border: #e2e8f0;         /* slate-200 */
  --bg: #ffffff;             /* Pure White */
  --bg-alt: #f8fafc;         /* slate-50 */
  
  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Shapes & Borders */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 24px;         /* rounded-3xl */
  --radius-full: 9999px;     /* pill shape */
  
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,.5);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; color: var(--primary); }
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.logo-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-menu { display: contents; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-full); font-weight: 500; font-size: .9rem;
  color: var(--gray); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-nav-login {
  padding: 8px 24px; border-radius: var(--radius-full); border: 1.5px solid var(--primary);
  color: var(--primary); font-weight: 600; font-size: .9rem; transition: var(--transition);
}
.btn-nav-login:hover { background: var(--primary); color: #fff; }
.btn-nav-signup {
  padding: 8px 24px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 600; font-size: .9rem; transition: var(--transition);
  box-shadow: 0 4px 15px rgba(5,150,105,.3);
}
.btn-nav-signup:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(5,150,105,.4); }
.nav-dashboard-btn {
  display: flex; align-items: center; gap: 8px; padding: 6px 16px;
  border-radius: var(--radius-full); background: var(--primary-light); color: var(--primary);
  font-weight: 600; font-size: .9rem; transition: var(--transition);
}
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
.btn-add-property {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 22px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff; font-weight: 600; font-size: .875rem; transition: var(--transition);
}
.btn-add-property:hover { transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a6e 50%, #0d9488 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding-top: 70px;
  box-sizing: border-box;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shape {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.03);
  animation: floatShape 8s ease-in-out infinite;
}
.hero-shape:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -150px; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 400px; height: 400px; bottom: -100px; left: -100px; animation-delay: -3s; }
.hero-shape:nth-child(3) { width: 200px; height: 200px; top: 40%; left: 30%; animation-delay: -6s; }
@keyframes floatShape { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 860px; width: 100%; padding: 40px 16px; box-sizing: border-box; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50px;
  padding: 8px 20px; color: rgba(255,255,255,.9); font-size: .85rem;
  font-weight: 500; margin-bottom: 28px; animation: fadeInDown .8s ease;
}
.hero-badge i { color: var(--accent); }
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800; color: #fff; line-height: 1.1;
  margin-bottom: 20px; animation: fadeInUp .8s ease .2s both;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #34d399);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,.75);
  margin-bottom: 36px; animation: fadeInUp .8s ease .4s both;
  word-break: break-word;
}
.hero-stats {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 36px; animation: fadeInUp .8s ease .6s both;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: #fff; font-family: 'Poppins', sans-serif; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }

/* ── SEARCH BOX ── */
.hero-search-box {
  background: rgba(255,255,255,.12); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg);
  padding: 20px; animation: fadeInUp .8s ease .5s both;
  width: 100%; box-sizing: border-box;
}
.search-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: rgba(255,255,255,.1); border-radius: 10px; padding: 4px; }
.search-tab {
  flex: 1; padding: 10px; border-radius: 8px; border: none; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.7);
  background: transparent; transition: var(--transition);
}
.search-tab.active { background: #fff; color: var(--primary); }
.search-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label { color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 500; text-align: left; }
.search-field input,
.search-field select {
  padding: 14px 16px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.15); color: #fff; font-size: .95rem;
  backdrop-filter: blur(10px); transition: var(--transition); outline: none;
}
.search-field input::placeholder { color: rgba(255,255,255,.5); }
.search-field select option { color: var(--dark); background: #fff; }
.search-field input:focus, .search-field select:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.2); }
.btn-search-hero {
  padding: 14px 34px; border-radius: var(--radius-full); border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(5,150,105,.4); transition: var(--transition); white-space: nowrap;
}
.btn-search-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(5,150,105,.5); }

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 6px 16px; border-radius: 50px; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px;
}
.section-title { font-family: 'Poppins', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.section-subtitle { color: var(--gray); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── PROPERTY CARDS ── */
.properties-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.property-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); position: relative;
  border: 1px solid var(--border);
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-image { position: relative; height: 220px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .card-image img { transform: scale(1.06); }
.card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.badge {
  padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 600;
  backdrop-filter: blur(10px);
}
.badge-type { background: var(--primary); color: #fff; }
.badge-sale { background: var(--success); color: #fff; }
.badge-rent { background: var(--warning); color: #fff; }
.badge-featured { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.card-wishlist {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: var(--transition); color: var(--gray);
}
.card-wishlist:hover, .card-wishlist.active { color: var(--danger); transform: scale(1.1); }
.card-body { padding: 20px; }
.card-price { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.card-price span { font-size: .8rem; color: var(--gray); font-weight: 400; font-family: 'Inter', sans-serif; }
.card-title { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-location { display: flex; align-items: center; gap: 6px; color: var(--gray); font-size: .875rem; margin-bottom: 16px; }
.card-location i { color: var(--primary); font-size: .8rem; }
.card-features { display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.card-feat { display: flex; align-items: center; gap: 5px; color: var(--gray); font-size: .8rem; }
.card-feat i { color: var(--primary); }
.card-footer { padding: 14px 20px; background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn-view-card {
  flex: 1; padding: 9px 16px; border-radius: var(--radius-full);
  background: var(--primary-light); color: var(--primary-dark);
  border: none; cursor: pointer; font-weight: 600; font-size: .85rem; transition: var(--transition);
}
.btn-view-card:hover { background: var(--primary); color: #fff; }
.btn-book-card {
  padding: 9px 20px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff; border: none; cursor: pointer;
  font-weight: 600; font-size: .85rem; transition: var(--transition);
}
.btn-book-card:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,0,0,.2); }

/* ── PROPERTY TYPE CARDS ── */
.types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.type-card {
  background: #fff; border-radius: var(--radius); padding: 28px 16px;
  text-align: center; cursor: pointer; transition: var(--transition);
  border: 2px solid var(--border); text-decoration: none;
}
.type-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.type-icon {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.type-icon.blue { background: #dbeafe; color: var(--primary); }
.type-icon.green { background: #d1fae5; color: var(--success); }
.type-icon.orange { background: #ffedd5; color: #f97316; }
.type-icon.purple { background: #ede9fe; color: #7c3aed; }
.type-icon.teal { background: #ccfbf1; color: var(--secondary); }
.type-icon.yellow { background: #fef3c7; color: var(--warning); }
.type-name { font-weight: 700; font-size: .95rem; color: var(--dark); margin-bottom: 4px; }
.type-count { font-size: .8rem; color: var(--gray); }

/* ── FEATURES SECTION ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--border); transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary-light), #c7d2fe);
  color: var(--primary);
}
.feature-title { font-weight: 700; font-size: 1.1rem; color: var(--dark); margin-bottom: 10px; }
.feature-desc { color: var(--gray); font-size: .9rem; line-height: 1.7; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-full); font-weight: 600; font-size: .95rem; border: none; cursor: pointer; transition: var(--transition); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 15px rgba(5,150,105,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(5,150,105,.4); }
.btn-secondary { background: var(--primary-light); color: var(--primary-dark); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: .875rem; color: var(--dark-3); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: .95rem; color: var(--dark); transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,110,245,.1); }
.form-control::placeholder { color: var(--gray-light); }
.form-select {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: .95rem; color: var(--dark); transition: var(--transition); outline: none;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px;
}
.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,110,245,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a6e 60%, #0d4f4a 100%);
  padding: 100px 24px 40px; position: relative; overflow: hidden;
}
.auth-page::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.auth-card {
  background: #fff; border-radius: 24px; padding: 48px 40px;
  width: 100%; max-width: 480px; box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo a { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 800; font-size: 1.8rem; font-family: 'Poppins', sans-serif; }
.auth-title { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.auth-subtitle { color: var(--gray); font-size: .9rem; margin-bottom: 32px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-option input { display: none; }
.role-label {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border: 2px solid var(--border); border-radius: 10px; cursor: pointer;
  transition: var(--transition); font-weight: 500; font-size: .9rem;
}
.role-label:hover { border-color: var(--primary); background: var(--primary-light); }
.role-option input:checked + .role-label { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.role-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .85rem; background: var(--bg); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--gray); font-size: .85rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-link { color: var(--primary); font-weight: 600; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--gray); font-size: .9rem; }

/* ── ALERT / TOAST ── */
.alert {
  padding: 14px 18px; border-radius: 10px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; }

/* ── DASHBOARD ── */
.dashboard-page { display: flex; min-height: 100vh; padding-top: 70px; }
.sidebar {
  width: 265px; background: var(--dark); position: fixed;
  top: 70px; left: 0; bottom: 0; overflow-y: auto; z-index: 100;
  padding: 28px 0; transition: var(--transition);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.sidebar-profile { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 16px; }
.sidebar-avatar {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.3rem;
}
.sidebar-name { color: #fff; font-weight: 600; font-size: .95rem; }
.sidebar-role { color: rgba(255,255,255,.5); font-size: .8rem; text-transform: capitalize; }
.sidebar-nav { padding: 0 12px; }
.sidebar-section { color: rgba(255,255,255,.3); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 16px 8px 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.7);
  font-weight: 500; font-size: .9rem; transition: var(--transition); margin-bottom: 2px;
}
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active { background: var(--primary); color: #fff; }
.sidebar-link i { width: 18px; text-align: center; font-size: .9rem; }
.sidebar-badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 50px;
}
.dash-content { flex: 1; margin-left: 265px; padding: 32px; min-height: calc(100vh - 70px); }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.dash-title { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--dark); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: #fff; border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--border); display: flex; align-items: center; gap: 18px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.stat-icon.blue { background: #dbeafe; color: var(--primary); }
.stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-icon.orange { background: #ffedd5; color: #f97316; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-value { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.stat-label { color: var(--gray); font-size: .85rem; }

/* ── TABLE ── */
.table-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.table-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-card-title { font-weight: 700; font-size: 1rem; color: var(--dark); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 13px 20px; text-align: left; font-size: .8rem; font-weight: 600;
  color: var(--gray); text-transform: uppercase; letter-spacing: .5px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.data-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--dark-3); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 50px; font-size: .78rem; font-weight: 600;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-sold { background: #ede9fe; color: #5b21b6; }
.status-completed { background: #d1fae5; color: #065f46; }

/* ── FILTER BAR ── */
.filter-bar {
  background: #fff; border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 32px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 1; }
.filter-label { font-size: .8rem; font-weight: 600; color: var(--gray); }
.filter-control {
  padding: 10px 14px; border-radius: 9px; border: 1.5px solid var(--border);
  background: #fff; font-size: .9rem; color: var(--dark); outline: none; transition: var(--transition);
}
.filter-control:focus { border-color: var(--primary); }
.filter-btn-group { display: flex; gap: 8px; }
.btn-filter { padding: 10px 20px; border-radius: 9px; border: none; cursor: pointer; font-weight: 600; font-size: .9rem; transition: var(--transition); }
.btn-filter-apply { background: var(--primary); color: #fff; }
.btn-filter-reset { background: var(--bg); color: var(--gray); border: 1.5px solid var(--border); }

/* ── PROPERTY DETAIL ── */
.detail-gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 480px; margin-bottom: 32px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 8px; }
.gallery-thumb { height: 80px; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .7; transition: var(--transition); }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; outline: 2px solid var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.detail-info-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); margin-bottom: 20px; }
.detail-price { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.detail-title { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.detail-location { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: .95rem; margin-bottom: 20px; }
.detail-specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.spec-item { text-align: center; }
.spec-value { font-weight: 700; font-size: 1.1rem; color: var(--dark); margin-bottom: 4px; }
.spec-label { font-size: .8rem; color: var(--gray); }
.contact-sidebar { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); position: sticky; top: 90px; }
.contact-owner-info { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.owner-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.owner-name { font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.owner-role { font-size: .8rem; color: var(--gray); text-transform: capitalize; }
.contact-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-contact {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px; border-radius: 10px; font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; transition: var(--transition);
}
.btn-call { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-email { background: var(--bg); color: var(--dark); border: 1.5px solid var(--border); }
.btn-book-visit { background: linear-gradient(135deg, var(--secondary), #0d7a70); color: #fff; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff; border-radius: 20px; padding: 40px;
  max-width: 520px; width: 100%; transform: scale(.95) translateY(20px);
  transition: transform .3s ease; max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.modal-title { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.modal-close { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray); transition: var(--transition); }
.modal-close:hover { background: var(--danger); color: #fff; }

/* ── STAR RATING ── */
.star-rating { display: flex; gap: 4px; }
.star { font-size: 1.2rem; color: var(--border); cursor: pointer; transition: var(--transition); }
.star.filled, .star:hover, .star.hover { color: var(--accent); }
.rating-display { display: flex; align-items: center; gap: 4px; }
.rating-display .star { font-size: .9rem; cursor: default; }

/* ── UPLOAD ── */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px;
  text-align: center; cursor: pointer; transition: var(--transition);
  background: var(--bg);
}
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: var(--primary-light); }
.upload-icon { font-size: 2.5rem; color: var(--gray-light); margin-bottom: 12px; }
.upload-text { color: var(--gray); font-size: .9rem; }
.upload-text span { color: var(--primary); font-weight: 600; }
.preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.preview-item { position: relative; width: 90px; height: 90px; border-radius: 10px; overflow: hidden; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,0,0,.6); color: #fff;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .65rem;
}

/* ── ADMIN ── */
.admin-page { display: flex; min-height: 100vh; padding-top: 70px; }
.admin-sidebar { background: linear-gradient(180deg, #0f172a, #1e293b); }
.admin-sidebar .sidebar-link.active { background: rgba(26,110,245,.3); }

/* ── WISHLIST TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  background: var(--dark); color: #fff; padding: 14px 20px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }
.animate-in { animation: fadeInUp .6s ease both; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }

/* ── SKELETON LOADER ── */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 32px 0; }
.page-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border);
  background: #fff; color: var(--dark); cursor: pointer; font-weight: 600; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: .4; cursor: not-allowed; }

/* ── NO RESULTS ── */
.no-results { text-align: center; padding: 80px 24px; color: var(--gray); }
.no-results i { font-size: 4rem; margin-bottom: 16px; opacity: .3; }
.no-results h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: 8px; }

/* ── BUY/RENT TOGGLE ── */
.toggle-switch { display: flex; background: var(--bg-alt); border-radius: var(--radius-full); padding: 5px; border: 1.5px solid var(--border); }
.toggle-btn { padding: 8px 26px; border-radius: var(--radius-full); border: none; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--gray); background: transparent; transition: var(--transition); }
.toggle-btn.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,.3); }

/* ── FOOTER ── */
.footer { background: var(--dark); color: rgba(255,255,255,.75); }
.footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand .footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.6rem; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.8; max-width: 300px; color: rgba(255,255,255,.6); margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-links-col h4 { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 20px; }
.footer-links-col ul li { margin-bottom: 10px; }
.footer-links-col ul li a { color: rgba(255,255,255,.6); font-size: .875rem; transition: var(--transition); }
.footer-links-col ul li a:hover { color: #fff; padding-left: 4px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .875rem; }
.contact-list i { color: var(--primary); margin-top: 2px; width: 14px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom p { text-align: center; font-size: .85rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ── WHATSAPP FLOATING ── */
.whatsapp-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 1500;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5); transition: var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,.6); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 1500;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: 0 4px 15px rgba(26,110,245,.4); transition: var(--transition);
  opacity: 0; transform: translateY(20px);
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; margin-top: 32px; }
  #gallerySection { grid-template-columns: 1fr; }
  .gallery-main { height: 350px !important; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
  .prop-slider-wrap { margin-bottom: 20px; }
  .prop-slide { height: 400px; }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-container { padding: 0 14px; height: 64px; justify-content: space-between; }
  .nav-logo { font-size: 1.25rem; }
  .logo-icon { width: 32px; height: 32px; font-size: .85rem; }
  /* Mobile menu: slide down from top */
  .nav-menu {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    padding: 16px;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 990;
    align-items: stretch;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links {
    display: flex; flex-direction: column; width: 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px; margin-bottom: 10px;
    gap: 2px;
  }
  .nav-link { width: 100%; text-align: center; padding: 12px; font-size: 1rem; border-radius: 10px; }
  .nav-actions { display: flex; flex-direction: column; width: 100%; gap: 10px; align-items: stretch; }
  .btn-nav-login, .btn-nav-signup {
    display: flex !important; width: 100%;
    justify-content: center; padding: 12px;
    border-radius: var(--radius-full);
  }
  .nav-dashboard-btn { justify-content: center; width: 100%; }
  .btn-add-property { justify-content: center; width: 100%; }
  .nav-hamburger { display: flex; z-index: 1000; position: relative; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero */
  .hero { min-height: 100svh; padding-top: 64px; padding-bottom: 32px; }
  .hero-content { padding: 24px 16px; }
  .hero-badge { font-size: .78rem; padding: 6px 14px; margin-bottom: 20px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); margin-bottom: 14px; }
  .hero-subtitle { font-size: .95rem; margin-bottom: 24px; }
  .hero-stats { gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: .7rem; }
  .hero-search-box { padding: 16px; border-radius: 16px; margin: 0 0; }
  .search-tabs { margin-bottom: 14px; }
  .search-tab { padding: 8px 6px; font-size: .85rem; }
  .search-fields { grid-template-columns: 1fr; gap: 10px; }
  .search-field input, .search-field select { padding: 12px 14px; font-size: .9rem; }
  .btn-search-hero { width: 100%; justify-content: center; padding: 13px; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: .9rem; }
  .container { padding: 0 14px; }

  /* Forms */
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }

  /* Property Cards */
  .properties-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-image { height: 200px; }
  .card-body { padding: 16px; }
  .card-price { font-size: 1.25rem; }
  .card-footer { padding: 12px 16px; }

  /* Property Types */
  .types-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .type-card { padding: 20px 12px; }
  .type-icon { width: 48px; height: 48px; font-size: 1.3rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px 20px; }

  /* Auth */
  .auth-card { padding: 28px 18px; border-radius: 16px; }
  .auth-title { font-size: 1.5rem; }

  /* Dashboard */
  .dashboard-page { padding-top: 64px; display: block; }
  .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 4px 0 20px rgba(0,0,0,.1); }
  .dash-content { margin-left: 0; padding: 16px 14px; min-height: auto; }
  .dash-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-item { width: 100%; }
  .filter-btn-group { display: flex; width: 100%; }
  .filter-btn-group button, .filter-btn-group a { flex: 1; text-align: center; }

  /* Tables */
  .table-card { overflow-x: auto; }
  .data-table { min-width: 600px; }

  /* Detail Page */
  .detail-layout { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; margin-top: 24px; }
  .detail-specs { grid-template-columns: 1fr 1fr; }
  .detail-gallery { height: 260px; margin-bottom: 20px; }
  .detail-price { font-size: 1.7rem; }
  .detail-title { font-size: 1.2rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand p { margin: 0 auto 20px; }
  .footer-social { justify-content: center; }
  .contact-list li { justify-content: center; }
  .footer-top { padding: 48px 0 32px; }

  /* Slider */
  .prop-slide { height: 280px; }
  .slider-btn { width: 36px; height: 36px; font-size: .85rem; }
  .thumb-item { width: 60px; height: 44px; }

  /* Floating buttons */
  .whatsapp-float { bottom: 16px; left: 16px; width: 48px; height: 48px; font-size: 1.3rem; }
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: .9rem; }

  /* Modal */
  .modal-box { padding: 24px 18px; border-radius: 16px; }
  .modal-overlay { padding: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-stats { gap: 8px; }
  .stat-item { min-width: 60px; }
  .properties-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .detail-specs { grid-template-columns: 1fr; border-top: none; padding: 10px 0; gap: 8px; }
  .spec-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--bg); border-radius: 8px; }
  .spec-value { font-size: .9rem; margin-bottom: 0; }
  .prop-slide { height: 240px; }
  .btn-lg { padding: 13px 24px; font-size: .95rem; }
  .section-title { font-size: 1.4rem; }
  .hero-search-box { border-radius: 12px; }
  .auth-page { padding: 80px 14px 32px; }
}
