/* ============================================================
   REAL ESTATE PORTAL — BASE STYLES
   ============================================================ */

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

/* --- CSS Variables --- */
:root {
  --primary: #003049;
  --primary-dark: #001f30;
  --primary-light: #e6eef2;
  --primary-glow: rgba(0, 48, 73, 0.15);
  --accent: #e85d04;
  --accent-dark: #c44e03;
  --accent-light: #fef0e6;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #e85d04;

  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --border-focus: #4d8fa8;

  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 20px 40px rgba(0, 48, 73, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --navbar-h: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.heading-xl {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.heading-lg {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

.heading-md {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.heading-sm {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}

.btn:hover::after { background: rgba(255,255,255,0.12); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 48, 73, 0.35);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 48, 73, 0.45);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.btn--accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
}
.btn--ghost:hover {
  background: var(--bg-alt);
  border-color: var(--text-light);
  color: var(--text);
}

.btn--sm { padding: 8px 16px; font-size: 0.875rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 16px 32px; font-size: 1.0625rem; border-radius: var(--radius-lg); }
.btn--full { width: 100%; }
.btn--icon { padding: 10px; border-radius: var(--radius-md); }

/* ============================================================
   BADGE / TAG
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--primary { background: var(--primary-light); color: var(--primary); }
.badge--accent { background: var(--accent-light); color: var(--accent-dark); }
.badge--success { background: #ECFDF5; color: var(--success); }
.badge--danger { background: #FEF2F2; color: var(--danger); }
.badge--dark { background: rgba(15,23,42,0.85); color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-label span {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--card);
  transition: all var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control::placeholder { color: var(--text-light); }

.form-control--error { border-color: var(--danger); }
.form-control--error:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 44px; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Range slider */
.range-slider {
  width: 100%;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--border);
  outline: none;
  appearance: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 48, 73, 0.4);
  cursor: pointer;
  transition: all var(--transition);
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* Checkbox */
.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  padding-top: 10px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0);
  transition: all var(--transition-slow);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  transition: opacity var(--transition);
}
.navbar__logo:hover { opacity: 0.85; }

.navbar__logo img {
  height: 38px;
  width: auto;
  display: block;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.navbar__link:hover { color: var(--text); background: var(--bg-alt); }
.navbar__link.active { color: var(--primary); font-weight: 600; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.navbar__hamburger:hover { background: var(--bg-alt); }
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);
  padding-bottom: 60px;
  background: linear-gradient(135deg, #F0F7FF 0%, #EEF2FF 50%, #F5F3FF 100%);
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.hero__shape--1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(0,48,73,0.18), transparent 70%);
  top: -120px; right: -120px;
  animation: float1 9s ease-in-out infinite;
}

.hero__shape--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232,93,4,0.13), transparent 70%);
  bottom: -80px; left: -60px;
  animation: float2 11s ease-in-out infinite;
}

.hero__shape--3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(77,143,168,0.12), transparent 70%);
  top: 35%; left: 25%;
  animation: float3 13s ease-in-out infinite;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content { }

.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-light), #EDE9FE);
  border: 1px solid rgba(0,48,73,0.15);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero__tagline-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero visual */
.hero__visual {
  position: relative;
}

.hero__card-float {
  background: var(--card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: heroCardFloat 6s ease-in-out infinite;
}

.hero__card-float img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero__card-badge {
  position: absolute;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__card-badge--tl {
  top: 24px;
  left: -24px;
  animation: badgeFloat1 4s ease-in-out infinite;
}

.hero__card-badge--br {
  bottom: 24px;
  right: -24px;
  animation: badgeFloat2 5s ease-in-out infinite;
}

/* ============================================================
   HERO INLINE SEARCH BAR
   ============================================================ */

.hero__search {
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

.hero__search-inner {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0, 48, 73, 0.12), 0 4px 16px rgba(0, 48, 73, 0.06);
  padding: 24px 28px 20px;
}

/* Tabs reuse .search-tab */
.search-card__tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  width: fit-content;
  margin-bottom: 24px;
}

.search-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  transition: all var(--transition);
}

.search-tab.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Form row */
.hero__search-form {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero__search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px;
  min-width: 0;
  transition: background var(--transition);
}

.hero__search-field:hover {
  background: var(--bg);
}

.hero__search-field-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.hero__search-field-label svg {
  color: var(--primary);
  flex-shrink: 0;
}

.hero__search-input {
  border: none;
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  width: 100%;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: text;
}

.hero__search-input::placeholder {
  color: var(--text-light);
}

select.hero__search-input {
  cursor: pointer;
}

.hero__search-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  flex-shrink: 0;
}

.hero__search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.hero__search-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.hero__search-btn svg {
  flex-shrink: 0;
}

/* Quick city tags */
.hero__search-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero__search-tag-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}

.hero__search-quick {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.hero__search-quick:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Legacy search card kept for any other pages that reference it */
.search-section {
  display: none; /* hidden — search is now inline in hero */
}

.search-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 28px 32px;
  border: 1px solid var(--border);
}

.search-card__form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.search-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header__title { margin-bottom: 12px; }

.section-header__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   PROPERTY CARD
   ============================================================ */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.property-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,48,73,0.15);
}

.property-card__img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-alt);
}

.property-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.property-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.5) 0%, transparent 60%);
}

.property-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.property-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
}
.property-card__wishlist:hover { color: var(--danger); transform: scale(1.1); }
.property-card__wishlist.active { color: var(--danger); }

.property-card__price-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.property-card__body { padding: 18px 20px 20px; }

.property-card__type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.property-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.property-card__divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

.property-card__meta {
  display: flex;
  gap: 16px;
}

.property-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.property-card__meta-item strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   STATS SECTION
   ============================================================ */

.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,93,4,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.stat-item:hover::before { opacity: 1; }

.stat-item__number {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 60%, rgba(232,93,4,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 0.9375rem;
  opacity: 0.75;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================================
   CATEGORIES
   ============================================================ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 16px 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card:hover,
.category-card.active {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 48, 73, 0.14);
}

.category-card:hover::after,
.category-card.active::after { transform: scaleX(1); }

.category-card__icon {
  font-size: 2.25rem;
  margin-bottom: 12px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.category-card:hover .category-card__icon { transform: scale(1.2) translateY(-2px); }

.category-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.category-card__count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================================
   BROWSE / FILTER LAYOUT
   ============================================================ */

.browse-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar filter */
.filter-sidebar {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: calc(var(--navbar-h) + 16px);
}

.filter-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-sidebar__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.filter-sidebar__reset {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
}
.filter-sidebar__reset:hover { opacity: 0.7; }

.filter-group {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-group__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-group__content { }

.filter-options { display: flex; flex-direction: column; gap: 8px; }

.price-range-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}

.beds-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.bed-btn {
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  text-align: center;
}
.bed-btn:hover { border-color: var(--primary); color: var(--primary); }
.bed-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Browse header */
.browse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.browse-result-count {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.browse-result-count strong { color: var(--text); }

.browse-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.view-btn {
  padding: 6px 8px;
  border-radius: 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.view-btn.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.removing { animation: toastOut 0.3s ease forwards; }

.toast__icon { font-size: 1.25rem; flex-shrink: 0; }
.toast__text { font-size: 0.9375rem; font-weight: 500; color: var(--text); flex: 1; }
.toast__close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.125rem;
  cursor: pointer;
  padding: 2px;
  transition: color var(--transition);
}
.toast__close:hover { color: var(--text); }

.toast--success { border-left: 4px solid var(--success); }
.toast--error { border-left: 4px solid var(--danger); }
.toast--info { border-left: 4px solid var(--primary); }

/* ============================================================
   SKELETON LOADER
   ============================================================ */

.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state__icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state__title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state__sub { font-size: 0.9375rem; margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.footer__brand-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.footer__social:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer__col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__link {
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.footer__link:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-card {
  text-align: center;
  padding: 48px 28px 36px;
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  position: relative;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  /* No overflow:hidden — number badges are positioned above the card */
}

.how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: inherit;
}

.how-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 48, 73, 0.14);
  border-color: var(--primary);
}
.how-card:hover::before { opacity: 1; }

/* .how-card__number removed */

.how-card__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), rgba(232,93,4,0.08));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin: 0 auto 22px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1.5px solid rgba(0,48,73,0.08);
  position: relative;
  z-index: 1;
}

.how-card:hover .how-card__icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 12px 28px rgba(0,48,73,0.25);
}

.how-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.how-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all 0.3s ease;
}

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

.testimonial-card__stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 14px; }
.testimonial-card__text { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-card__name { font-size: 0.9375rem; font-weight: 700; }
.testimonial-card__role { font-size: 0.8125rem; color: var(--text-muted); }

/* ============================================================
   NEWSLETTER
   ============================================================ */

.newsletter-section {
  background: linear-gradient(135deg, #e6eef2 0%, #F5F3FF 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  border: 1px solid rgba(0,48,73,0.1);
  position: relative;
  overflow: hidden;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 28px auto 0;
}

.newsletter-form .form-control { flex: 1; }

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 48px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 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: 0.4; cursor: not-allowed; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .browse-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .search-card__form { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  /* Hero search on tablet: stack form fields */
  .hero__search-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .hero__search-divider {
    width: auto;
    height: 1px;
    align-self: stretch;
  }
  .hero__search-field {
    padding: 10px 16px;
  }
  .hero__search-btn {
    padding: 14px 24px;
    justify-content: center;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
}

@media (max-width: 640px) {
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .search-card__form { grid-template-columns: 1fr; }
  .search-card { padding: 20px; }
  .section { padding: 56px 0; }
  .hero__stats { gap: 20px; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .newsletter-section { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .hero__actions { flex-direction: column; }
  /* Hero search on mobile */
  .hero__search-inner { padding: 16px; }
  .search-card__tabs { flex-wrap: wrap; gap: 6px; }
  .search-tab { padding: 7px 14px; font-size: 0.8125rem; }
  .hero__search-tags { margin-top: 12px; }
}
