/* RachitEstate Website — Royal Amethyst & Gold (Premium) */

:root {
  --primary: #6D28D9;
  --primary-light: #9333EA;
  --primary-deep: #3B0764;
  --primary-ink: #2A0A55;
  --accent: #F5B301;
  --accent-dark: #C98A00;
  --accent-soft: #FFF4D6;

  --surface: #F4F1FC;
  --surface-2: #ECE7F8;
  --surface-warm: #FBFAFE;
  --card-bg: #ffffff;

  --text-primary: #1A1230;
  --text-secondary: #6B6385;
  --text-tertiary: #9A93AE;

  --error: #E11D48;
  --success: #10B981;
  --charcoal: #1B1330;

  --line: rgba(109, 40, 217, 0.10);
  --line-strong: rgba(109, 40, 217, 0.18);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --grad-primary: linear-gradient(135deg, #3B0764 0%, #6D28D9 55%, #9333EA 100%);
  --grad-hero: radial-gradient(120% 120% at 80% -10%, #9333EA 0%, #5B21B6 35%, #3B0764 70%, #14082E 100%);
  --grad-gold: linear-gradient(135deg, #FBC926 0%, #F5B301 45%, #E08E00 100%);

  --shadow-soft: 0 4px 14px rgba(59, 7, 100, 0.06);
  --shadow-card: 0 14px 40px rgba(76, 29, 149, 0.12);
  --shadow-lg: 0 24px 64px rgba(59, 7, 100, 0.22);
  --shadow-gold: 0 8px 24px rgba(245, 179, 1, 0.40);
  --ring: 0 0 0 4px rgba(109, 40, 217, 0.14);

  --header-h: 76px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 100% -200px, rgba(147, 51, 234, 0.08), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(245, 179, 1, 0.06), transparent 55%),
    var(--surface);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection { background: rgba(109, 40, 217, 0.18); }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }
.btn .material-symbols-outlined { font-size: 19px; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.38);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.5);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--primary-deep);
  box-shadow: var(--shadow-gold);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover { background: #fff; border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; padding: 14px; font-size: 15px; }
.btn-icon { padding: 9px; border-radius: 50%; }

.btn-google {
  width: 100%;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #3c4043;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: box-shadow 0.15s, background 0.15s, transform 0.15s;
}

.btn-google:hover { background: #f8f9fa; box-shadow: 0 4px 14px rgba(0,0,0,0.1); transform: translateY(-1px); }
.btn-google:disabled { opacity: 0.6; cursor: not-allowed; }

.saved-toggle.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.saved-toggle.active .material-symbols-outlined { font-variation-settings: 'FILL' 1; color: var(--accent); }

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.nav-link .material-symbols-outlined { display: none; font-size: 21px; }
.nav-link:hover { color: var(--primary); background: rgba(109, 40, 217, 0.07); }
.nav-link.active { color: var(--primary); background: rgba(109, 40, 217, 0.1); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-nav + .header-actions { margin-left: 0; }

.user-menu { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.user-name { font-weight: 700; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mobile-menu-btn:hover,
.mobile-menu-btn[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); background: rgba(109, 40, 217, 0.06); }
.mobile-menu-btn .material-symbols-outlined { font-size: 24px; }
.btn-label { display: inline; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 24px 76px;
  text-align: center;
  color: #fff;
  background: var(--grad-hero);
}

.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: float 14s ease-in-out infinite; }
.hero-orb-1 { width: 360px; height: 360px; top: -90px; right: -60px; background: rgba(245, 179, 1, 0.22); }
.hero-orb-2 { width: 420px; height: 420px; bottom: -120px; left: -90px; background: rgba(167, 139, 250, 0.28); animation-delay: -7s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.06); }
}

.hero-content { position: relative; max-width: 760px; margin: 0 auto; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FCE9A8;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
}
.hero-eyebrow .material-symbols-outlined { font-size: 16px; }

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub { font-size: 17px; color: rgba(255, 255, 255, 0.82); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
  padding: 7px 7px 7px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(20, 8, 46, 0.35);
}

.hero-search .material-symbols-outlined { color: var(--primary); font-size: 24px; }
.hero-search input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-size: 16px; padding: 12px 0; }
.hero-search input::placeholder { color: var(--text-tertiary); }
.hero-search .hero-search-btn { padding: 12px 26px; }

/* ─── Layout ───────────────────────────────────────────────────────────────── */
.main-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 28px 56px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.results-col { min-width: 0; }

/* ─── Filters ──────────────────────────────────────────────────────────────── */
.filters-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
}

.filters-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters-header h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.filters-header h2 .material-symbols-outlined { color: var(--primary); font-size: 22px; }

.filter-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
}
.filter-close:hover { color: var(--primary); border-color: var(--primary); }

.filter-group { margin-bottom: 16px; }

.filter-group > label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}

.filter-group select,
.filter-group input[type="number"],
.filter-group input[type="search"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface-warm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-group select:focus,
.filter-group input:focus { border-color: var(--primary); box-shadow: var(--ring); }

.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.filter-group.toggles { display: flex; flex-direction: column; gap: 10px; }

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.check input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

.amenity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 2px; }

.filters-footer {
  position: sticky;
  bottom: -22px;
  display: flex;
  gap: 10px;
  margin: 18px -22px -22px;
  padding: 14px 22px;
  background: var(--card-bg);
  border-top: 1px solid var(--line);
}
.filters-footer .btn { flex: 1 1 0; }
.filters-footer #pfApply { display: none; flex-grow: 2; }

/* ─── Listings heading + toolbar ──────────────────────────────────────────── */
.results-col {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 24px;
}
.results-col > * { flex: 1 1 100%; }

.listings-heading { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-bottom: 18px; }
.listings-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.listings-heading h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.listings-intro { margin: 0; max-width: 68ch; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

.count-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.09);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.count-pill[hidden] { display: none; }

.route-status { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text-primary); font-weight: 600; font-size: 14px; line-height: 1.45; }

.listings-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.tool-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.tool-btn:hover { border-color: var(--primary); color: var(--primary); }
.tool-btn:focus-visible,
.sort-control:focus-within { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.tool-btn .material-symbols-outlined { font-size: 19px; }
.tool-label { overflow: hidden; text-overflow: ellipsis; }
.tool-caret { margin-left: -3px; color: var(--text-secondary); }
.tool-btn .tool-caret { font-size: 18px; }

.tool-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}
.tool-badge[hidden] { display: none; }

.filter-toggle { display: none; }

.sort-short { display: none; }
.sort-prefix { color: var(--text-secondary); font-weight: 600; }
.sort-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-chips:empty { display: none; }

.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 14px;
  background: rgba(109, 40, 217, 0.08);
  color: var(--primary);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.chip-pill button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border: none; border-radius: 50%;
  background: rgba(109, 40, 217, 0.16);
  color: var(--primary);
  cursor: pointer;
}
.chip-pill button .material-symbols-outlined { font-size: 14px; }
.chip-pill button:hover { background: var(--primary); color: #fff; }

.chip-clear-all {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-weight: 700; font-size: 12.5px;
  text-decoration: underline; padding: 6px 4px;
}

.filter-backdrop { display: none; }

/* ─── Listings grid ───────────────────────────────────────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ─── Property Card ────────────────────────────────────────────────────────── */
.property-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s, border-color 0.25s;
}

.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--line-strong); }

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #EFEAFB, var(--surface));
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 8, 46, 0.35), transparent 42%);
  opacity: 0.9;
  pointer-events: none;
}

.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.22,1,.36,1); }
.property-card:hover .card-image img { transform: scale(1.07); }

.card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary); opacity: 0.4; }
.card-placeholder .material-symbols-outlined { font-size: 48px; }
.card-placeholder.large .material-symbols-outlined { font-size: 72px; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.badge-purpose { background: rgba(255, 255, 255, 0.92); color: var(--primary-deep); box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.badge-booked { top: auto; bottom: 12px; left: 12px; background: var(--grad-gold); color: var(--primary-deep); }

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform 0.15s, color 0.15s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  z-index: 2;
}

.wishlist-btn:hover { transform: scale(1.12); }
.wishlist-btn.active { color: var(--error); }
.wishlist-btn.active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

.card-body { padding: 18px 18px 20px; }

.card-type { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 7px; }

.card-title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.card-location .material-symbols-outlined { font-size: 16px; color: var(--primary-light); }

.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.card-meta span { font-size: 12px; font-weight: 600; padding: 4px 11px; background: var(--surface); border-radius: 999px; color: var(--text-secondary); }

.card-price { font-size: 21px; font-weight: 800; color: var(--primary-deep); letter-spacing: -0.02em; }
.card-price small { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* ─── Skeleton / Empty / Error ─────────────────────────────────────────────── */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.skeleton-card {
  height: 360px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #ECE7F8 25%, #F6F3FC 50%, #ECE7F8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state, .error-state { text-align: center; padding: 72px 24px; color: var(--text-secondary); grid-column: 1 / -1; }
.empty-state .material-symbols-outlined, .error-state .material-symbols-outlined { font-size: 60px; color: var(--primary); opacity: 0.35; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }

/* ─── Why-choose strip ─────────────────────────────────────────────────────── */
.about-section { background: var(--card-bg); border-top: 1px solid var(--line); padding: 64px 24px; }
.about-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.about-head .hero-eyebrow { color: var(--accent-dark); background: var(--accent-soft); border-color: rgba(245, 179, 1, 0.3); }
.about-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.about-head p { color: var(--text-secondary); font-size: 15px; }

.about-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.about-card {
  text-align: center;
  padding: 34px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface-warm);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.about-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3);
}
.about-icon .material-symbols-outlined { font-size: 30px; }

.about-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.about-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

.faq-section { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 24px 72px; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq-list summary { cursor: pointer; font-weight: 800; font-size: 16px; }
.faq-list details p { margin: 8px 0 0; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.crumbs a { color: var(--primary); text-decoration: none; }
.crumbs [aria-current="page"] { color: var(--text-primary); }
.seo-snapshot { max-width: 920px; margin: 28px auto 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.seo-snapshot h2 { font-size: 18px; font-weight: 800; margin: 22px 0 12px; }
.seo-snapshot p, .seo-snapshot li { color: var(--text-secondary); line-height: 1.6; }
.seo-snapshot .seo-shot { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 460px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.snap-location { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-primary) !important; }
.snap-location .material-symbols-outlined { color: var(--primary-light); font-size: 20px; }
.snap-ref, .detail-ref { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-tertiary) !important; margin-top: 2px; }
.detail-ref { margin: -6px 0 12px; }
.snap-desc { white-space: pre-wrap; }
.snap-amenities { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.snap-amenities li { padding: 6px 14px; border-radius: 999px; background: rgba(109, 40, 217, 0.08); color: var(--primary) !important; font-size: 13px; font-weight: 600; }
.snap-cta { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--text-primary) !important; font-weight: 600; }
.snap-links { margin-top: 14px; font-weight: 600; }
.snap-links a { color: var(--primary); }
body:has(.detail-modal) .seo-snapshot { display: none; }

/* ─── Locality cards ──────────────────────────────────────────────────────── */
.areas-section { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 24px 64px; }
.areas-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.area-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'icon name' 'icon count' 'icon price';
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 18px 18px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.area-card.current { border-color: var(--primary); box-shadow: var(--ring); }
.area-icon {
  grid-area: icon;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 24px;
}
.area-name { grid-area: name; font-size: 16px; font-weight: 800; }
.area-count { grid-area: count; font-size: 13px; font-weight: 700; color: var(--primary); }
.area-price { grid-area: price; font-size: 12.5px; color: var(--text-secondary); }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.72); padding: 48px 28px 28px; }
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px 48px;
  align-items: start;
}
.footer-areas { grid-template-columns: 1fr; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 11px; background: #fff; padding: 3px; }
.footer-brand strong { color: #fff; font-size: 16px; display: block; }
.footer-brand p { font-size: 13.5px; }
.footer-copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 24px; }
.footer-links a { color: rgba(255, 255, 255, 0.84); text-decoration: none; font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Modals ────────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 8, 46, 0.55); backdrop-filter: blur(6px); }

.modal-dialog {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
  animation: modalIn 0.28s cubic-bezier(.22,1,.36,1);
}

@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s, transform 0.15s;
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }

.login-dialog { width: 100%; max-width: 430px; padding: 44px 36px 32px; text-align: center; }
.login-logo { width: 76px; height: 76px; margin: 0 auto 18px; object-fit: contain; border-radius: 18px; }
.login-dialog h2, .login-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.login-dialog p, .login-header p { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.6; }
.login-note { margin-top: 16px; font-size: 12px; color: var(--text-secondary); }

.detail-dialog {
  width: 100%;
  max-width: 920px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

/* ─── Detail View ───────────────────────────────────────────────────────────── */
.detail-gallery { position: relative; aspect-ratio: 16/9; background: var(--surface); overflow: hidden; flex-shrink: 0; }
.gallery-track { height: 100%; position: relative; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; }
.gallery-slide.active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.92);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft); transition: transform 0.15s;
}
.gallery-nav:hover { transform: translateY(-50%) scale(1.08); }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }

.gallery-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.gallery-dots .dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.5); cursor: pointer; padding: 0; }
.gallery-dots .dot.active { background: #fff; width: 24px; border-radius: 4px; }

.detail-body { padding: 30px 34px 34px; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.detail-body > .badge { position: static; display: inline-block; margin-right: 8px; margin-bottom: 10px; }
.detail-type { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin: 8px 0; }
.detail-body h2 { font-size: clamp(1.3rem, 3vw, 1.85rem); font-weight: 800; line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 10px; }
.detail-location { display: flex; align-items: center; gap: 5px; color: var(--text-secondary); font-size: 14px; margin-bottom: 14px; }
.detail-location .material-symbols-outlined { color: var(--primary-light); font-size: 19px; }
.detail-price { font-size: 30px; font-weight: 800; color: var(--primary-deep); letter-spacing: -0.02em; margin-bottom: 6px; }
.detail-price small { font-size: 15px; font-weight: 600; color: var(--text-secondary); }

.detail-section { margin-top: 26px; }
.detail-section h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.spec-grid div { background: var(--surface); padding: 13px 15px; border-radius: var(--radius-xs); border: 1px solid var(--line); }
.spec-grid dt { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.spec-grid dd { font-size: 14.5px; font-weight: 700; margin-top: 3px; }

.amenities-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-chip { padding: 7px 15px; background: rgba(109, 40, 217, 0.08); color: var(--primary); border-radius: 999px; font-size: 13px; font-weight: 600; }

.detail-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; white-space: pre-wrap; }
.detail-actions { margin-top: 26px; }

/* ─── Desktop / laptop: photos and details side-by-side ─────────────────────── */
@media (min-width: 900px) {
  .detail-dialog {
    flex-direction: row;
    max-width: 1180px;
    width: 94vw;
    height: min(88vh, 760px);
    max-height: 88vh;
    align-items: stretch;
  }
  .detail-gallery {
    flex: 0 0 54%;
    aspect-ratio: auto;
    height: auto;
    align-self: stretch;
    border-right: 1px solid var(--line);
  }
  .detail-body {
    flex: 1 1 46%;
    height: 100%;
  }
  /* Keep the close button clear of the gallery on the right panel */
  .detail-dialog .modal-close { background: rgba(255, 255, 255, 0.96); }
}

.login-prompt {
  display: flex; align-items: center; gap: 16px;
  margin-top: 26px; padding: 20px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.login-prompt .material-symbols-outlined { font-size: 32px; color: var(--primary); }
.login-prompt strong { display: block; font-size: 15px; }
.login-prompt p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.login-prompt .btn { margin-left: auto; }

.detail-note {
  display: flex; gap: 8px; margin-top: 14px;
  font-size: 12.5px; color: var(--accent-dark);
  padding: 14px 16px; background: var(--accent-soft);
  border-radius: var(--radius-xs); line-height: 1.5;
}
.detail-note .material-symbols-outlined { font-size: 18px; color: var(--accent-dark); flex-shrink: 0; }

/* ─── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 300; padding: 14px 26px;
  background: var(--charcoal); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 36px rgba(0,0,0,0.28);
  animation: toastIn 0.3s ease;
}
.toast[hidden] { display: none; }

@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%); } }

/* ─── Near me state ───────────────────────────────────────────────────────── */
.nearby-btn.active,
.nearby-btn.active:hover { background: var(--grad-primary); color: #fff; border-color: transparent; }
.nearby-btn.active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
.nearby-btn.loading { opacity: 0.65; pointer-events: none; }

/* ─── Callback form (property detail) ─────────────────────────────────────── */
.callback-section {
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-strong);
}
.callback-section h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.callback-intro { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.55; }

.callback-form { display: grid; gap: 14px; }
.callback-form > label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--text-secondary);
}
.callback-form .req { color: var(--error); }
.callback-form .opt { color: var(--text-tertiary); font-weight: 600; }
.callback-form input[type="text"],
.callback-form input[type="tel"],
.callback-form input[type="email"] {
  padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-xs);
  background: var(--surface-warm); outline: none; font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.callback-form input:focus { border-color: var(--primary); box-shadow: var(--ring); }
.callback-form .cb-check {
  flex-direction: row; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--text-primary); cursor: pointer;
}
.callback-form .cb-check input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.callback-form button { margin-top: 6px; }

.callback-success { text-align: center; padding: 18px 10px; }
.callback-success .material-symbols-outlined { font-size: 52px; color: var(--success); }
.callback-success h3 { font-size: 19px; font-weight: 800; margin: 10px 0 6px; }
.callback-success p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* OTP verification step */
.otp-form > label { width: 100%; }
.otp-form .otp-input {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.4em;
  /* Offset the trailing letter-spacing so the digits/placeholder stay
     visually centred and line up with the full-width button below. */
  text-indent: 0.4em;
  padding: 14px 12px;
}
.otp-form .btn-full { margin-top: 6px; }
.otp-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.link-btn {
  background: none; border: none; padding: 4px 2px; cursor: pointer;
  color: var(--primary); font-size: 13px; font-weight: 700;
}
.link-btn:hover { text-decoration: underline; }
/* reCAPTCHA badge container — keep it out of the layout flow */
#recaptcha-container { display: flex; justify-content: center; }
#recaptcha-container:empty { display: none; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .main-layout { grid-template-columns: 1fr; padding: 24px 20px 48px; }

  .filters-panel {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    z-index: 250;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(.22,1,.36,1), visibility 0s linear 0.3s;
  }
  .filters-panel.open { transform: translateX(0); visibility: visible; transition: transform 0.3s cubic-bezier(.22,1,.36,1); }
  .filter-close { display: inline-flex; }
  .filters-footer #pfApply { display: inline-flex; }

  .filter-backdrop.show {
    display: block;
    position: fixed; inset: 0; z-index: 240;
    background: rgba(20, 8, 46, 0.5); backdrop-filter: blur(4px);
  }

  /* One sticky control bar: Filters left, Near me + Sort right */
  .listings-toolbar {
    position: sticky;
    top: var(--header-h);
    z-index: 60;
    flex: 1 1 100%;
    margin: 0 -20px 16px;
    padding: 10px 20px;
    background: rgba(244, 241, 252, 0.88);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
  .filter-toggle { display: inline-flex; margin-right: auto; }
  .listings-heading { flex-basis: 100%; margin-bottom: 12px; }

  .about-inner { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header-inner { padding: 0 16px; gap: 12px; }
  .brand-logo { width: 38px; height: 38px; }

  .header-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0;
    padding: 8px 12px 14px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(59, 7, 100, 0.14);
    animation: menuIn 0.2s ease-out;
  }
  .header-nav.open { display: flex; }
  .nav-link { padding: 13px 14px; border-radius: 12px; font-size: 15px; color: var(--text-primary); }
  .nav-link .material-symbols-outlined { display: inline-block; color: var(--primary); }
  .mobile-menu-btn { display: inline-flex; }
  .user-name { display: none; }

  .header-nav + .header-actions,
  .header-actions { margin-left: auto; }

  .hero { padding: 44px 16px 52px; }
  .hero-sub { font-size: 15.5px; margin-bottom: 24px; }

  .properties-grid, .skeleton-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
  .filter-row { grid-template-columns: 1fr 1fr; }

  .detail-body { padding: 22px; }
  .login-prompt { flex-direction: column; text-align: center; }
  .login-prompt .btn { margin-left: 0; }

  .site-footer { padding: 40px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-areas { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .areas-section { padding: 44px 16px 52px; }
  .seo-snapshot { margin: 16px 16px 0; padding: 18px; }
}

@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .main-layout { padding: 18px 16px 40px; }

  .hero { padding: 32px 16px 44px; }
  .hero-eyebrow { font-size: 10.5px; letter-spacing: 0.1em; padding: 6px 12px; margin-bottom: 14px; }
  .hero h1 { font-size: 2rem; margin-bottom: 10px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 20px; }
  .hero-search { padding: 5px 5px 5px 14px; gap: 8px; }
  .hero-search .material-symbols-outlined { font-size: 22px; }
  .hero-search input { font-size: 15px; padding: 10px 0; min-width: 0; }
  .hero-search .hero-search-btn { padding: 11px 18px; }

  .listings-heading h2 { font-size: 19px; }
  .listings-intro { font-size: 13.5px; }

  /* Three equal controls in one row */
  .listings-toolbar { margin: 0 -16px 14px; padding: 10px 16px; }
  .listings-toolbar .tool-btn { flex: 1 1 0; min-width: 0; padding: 0 8px; gap: 6px; }
  .tool-btn .tool-caret { display: none; }
  .filter-toggle { margin-right: 0; }
  .sort-long { display: none; }
  .sort-short { display: inline; }

  .properties-grid, .skeleton-grid { grid-template-columns: 1fr; }

  /* Property details open as a full-screen sheet */
  .modal { padding: 0; align-items: stretch; }
  .detail-dialog { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .detail-dialog .modal-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .gallery-nav { width: 38px; height: 38px; }
  .gallery-nav.prev { left: 12px; }
  .gallery-nav.next { right: 12px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 360px) {
  .brand-text { font-size: 17px; }
  .listings-toolbar { gap: 6px; }
  .listings-toolbar .tool-btn { padding: 0 6px; gap: 4px; font-size: 13px; }
  .listings-toolbar .tool-btn .material-symbols-outlined { font-size: 18px; }
}
