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

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #DBEAFE;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #EF4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 24px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.95rem; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* NAVBAR */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.navbar-logo { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 700; color: var(--primary); flex: 1; }
.navbar-logo svg { width: 28px; height: 28px; }
.navbar-links { display: flex; align-items: center; gap: 28px; justify-content: center; }
.navbar-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); }

/* Single “Search Property” nav link with search icon */
.navbar-links a.nav-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.navbar-links a.nav-with-icon .nav-link-icon {
  flex-shrink: 0;
  opacity: 0.88;
  transform: translateY(-1px); /* Optical alignment fix */
}
.navbar-links a.nav-with-icon:hover .nav-link-icon,
.navbar-links a.nav-with-icon.active .nav-link-icon {
  opacity: 1;
}

/* Back button used on Search Property page */
.nav-back-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  flex-shrink:0;
  border:1.5px solid var(--border);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  color: var(--text-muted);
  transition: border-color .2s, color .2s, background .2s;
}
.nav-back-btn:hover,
.nav-back-btn:focus-visible{
  border-color: var(--primary);
  color: var(--primary);
  outline:none;
}
.nav-back-btn svg{display:block}
.navbar-actions { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* NAVBAR PROFILE DROPDOWN */
.profile-menu-wrap { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 8px; background: none; border: none;
  cursor: pointer; padding: 4px 8px; border-radius: 40px; transition: 0.2s;
}
.profile-btn:hover { background: var(--bg-alt); }
.profile-btn img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--border); flex-shrink: 0; }
.profile-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.profile-btn-text strong { font-size: 0.85rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.profile-btn-text small { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.profile-chevron { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }

/* Compact + icon for List Property after login */
.btn-add-icon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: 0.2s; text-decoration: none;
  white-space: nowrap;
}
.btn-add-icon:hover { background: var(--primary-hover); color: #fff; }
.btn-add-icon svg { flex-shrink: 0; }
.add-icon-label { font-size: 0.85rem; }

/* Owner List Property CTA (desktop + mobile) */
.owner-list-btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
  white-space: nowrap;
}
.owner-list-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.profile-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all 0.2s; z-index: 1000;
}
.profile-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown-header { padding: 16px; border-bottom: 1px solid var(--border); overflow: hidden; }
.profile-dropdown-header p { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-dropdown-header span { font-size: 0.75rem; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-dropdown-list { list-style: none; padding: 8px 0; }
.profile-dropdown-list li a {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  color: var(--text); font-size: 0.85rem; font-weight: 500; transition: 0.2s;
}
.profile-dropdown-list li a:hover { background: var(--bg-alt); color: var(--primary); }
.profile-dropdown-list li a svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.profile-dropdown-list li a:hover svg { color: var(--primary); }
.profile-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.profile-dropdown-list li a.text-danger { color: #EF4444; }
.profile-dropdown-list li a.text-danger:hover { background: #FEF2F2; }
.profile-dropdown-list li a.text-danger svg { color: #EF4444; }
/* BADGE */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #DCFCE7; color: var(--success); }
.badge-warning { background: #FEF3C7; color: #D97706; }

/* CARDS */
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.card-text { font-size: 0.85rem; color: var(--text-muted); }
.card-price { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.card-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.card-tag { padding: 3px 8px; background: var(--bg-alt); border-radius: 4px; font-size: 0.75rem; color: var(--text-muted); }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 12px; }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.card-rating svg { color: var(--warning); }
.heart-btn { background: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); position: absolute; top: 12px; right: 12px; transition: 0.2s; }
.heart-btn:hover { transform: scale(1.1); }
.heart-btn.active svg { fill: #EF4444; color: #EF4444; }
.featured-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }

/* INPUT */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; transition: border 0.2s; background: #fff;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-input::placeholder { color: #94A3B8; }

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.otp-inputs input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.otp-inputs input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  outline: none;
}


/* SECTION */
.section { padding: 80px 0; }
.section-title { font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 0.95rem; }

/* DIVIDER */
.divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 0.85rem; color: var(--text-muted); }
