/* ProBroker — Design System
   Matches React Tailwind UI: Purple primary (#4D3C9A), clean white cards, subtle borders */

/* ====== CSS Variables ====== */
:root {
  --primary: #4D3C9A;
  --primary-hover: #3D2F7A;
  --primary-dark: #2D0B59;
  --primary-light: #F0EBFF;
  --primary-lighter: #FAF7FF;
  --primary-text-light: #D4C5FF;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --bg-page: #F9FAFB;
  --bg-white: #ffffff;
  --success: #10B981;
  --error: #EF4444;
  --footer-bg: #1A1A2E;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --max-w: 1280px;
  --header-h: 64px;
}

/* ====== Reset & Base ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Manrope', 'DM Sans', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ====== Layout ====== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.main-content { flex: 1; }

/* ====== Header ====== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header .container { max-width: var(--max-w); }
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.logo img { height: 28px; width: auto; }
@media (min-width: 640px) { .logo img { height: 32px; } }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo-pro { color: var(--primary); }
.logo-broker { color: var(--text-primary); }

/* Desktop Nav */
.nav-center {
  display: none; align-items: center; gap: 4px;
}
@media (min-width: 1024px) { .nav-center { display: flex; } }

.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-primary); border-radius: 6px;
  transition: all 0.15s;
}
.nav-dropdown-btn:hover { color: var(--primary); background: var(--primary-lighter); }
.nav-dropdown-btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-btn svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  display: none; position: absolute; left: 0; top: 100%;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 4px 0; min-width: 260px; z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-panel { display: block; }
.nav-dropdown-panel a {
  display: block; padding: 10px 16px; font-size: 14px;
  color: var(--text-primary); transition: all 0.15s;
}
.nav-dropdown-panel a:hover { background: var(--primary); color: white; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-post-free {
  display: none; padding: 10px 20px;
  background: var(--primary); color: white;
  font-weight: 600; font-size: 14px;
  border-radius: 10px; transition: background 0.15s;
}
.btn-post-free:hover { background: var(--primary-hover); }
@media (min-width: 640px) { .btn-post-free { display: inline-block; } }

.btn-login {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  transition: all 0.15s;
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); }
.btn-login svg { color: var(--primary); }

/* Mobile Menu */
.mobile-menu-btn {
  display: block; padding: 8px; color: var(--text-primary);
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
.mobile-menu {
  display: none; border-top: 1px solid var(--border);
  background: var(--bg-white); padding: 16px;
}
.mobile-menu.active { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu-label {
  font-size: 11px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.mobile-menu-label:not(:first-child) { margin-top: 12px; }
.mobile-menu a {
  display: block; padding: 8px 0; font-size: 14px;
  color: var(--text-primary); transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn-post-free {
  display: block; width: 100%; text-align: center;
  margin-top: 12px; padding: 12px;
  border-radius: var(--radius-sm);
}

/* ====== Hero Section ====== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2D0B59 0%, #4D3C9A 100%);
  min-height: 520px;
}
.hero-inner {
  position: relative; z-index: 10;
  max-width: 896px; margin: 0 auto;
  padding: 48px 16px 24px; text-align: center;
}
@media (min-width: 640px) { .hero-inner { padding: 80px 24px 24px; } }
.hero h1 {
  font-size: 28px; font-weight: 800; color: white;
  line-height: 1.2; margin-bottom: 12px;
}
@media (min-width: 640px) { .hero h1 { font-size: 36px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 44px; } }
.hero-sub { color: var(--primary-text-light); font-size: 16px; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .hero-sub { font-size: 18px; } }

/* City Pills */
.city-pills { margin-bottom: 20px; }
.city-pills-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.city-pills-row { display: flex; justify-content: center; gap: 12px; }
.city-pill {
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; transition: all 0.15s;
}
.city-pill.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.city-pill:not(.active) { border: 1px solid rgba(255,255,255,0.4); color: white; }
.city-pill:not(.active):hover { background: rgba(255,255,255,0.15); }

/* Category Tabs */
.cat-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-tab {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; transition: all 0.15s;
}
.cat-tab.active { background: white; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.cat-tab:not(.active) { background: rgba(255,255,255,0.2); color: white; }
.cat-tab:not(.active):hover { background: rgba(255,255,255,0.3); }

/* Search Card */
.search-card {
  max-width: 768px; margin: 0 auto;
  background: white; border-radius: 16px; padding: 8px;
  box-shadow: 0px 20px 40px rgba(0,0,0,0.12);
}
.search-row { display: flex; flex-direction: column; }
@media (min-width: 640px) { .search-row { flex-direction: row; align-items: stretch; } }
.search-field { padding: 12px 16px; flex: 1; min-width: 0; }
.search-field-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.search-field input, .search-field select {
  width: 100%; font-size: 14px; color: var(--text-primary);
  background: transparent; border: none; padding: 0;
  outline: none;
}
.search-field input::placeholder { color: var(--text-muted); }
.search-divider { display: none; width: 1px; background: var(--border); margin: 8px 0; }
@media (min-width: 640px) { .search-divider { display: block; } }
.search-btn {
  margin: 4px; padding: 0 32px;
  background: var(--primary); color: white;
  font-weight: 600; font-size: 16px;
  border-radius: 12px; transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px;
}
.search-btn:hover { background: var(--primary-hover); }
.search-btn svg { width: 18px; height: 18px; }

/* Hero Stats */
.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 24px;
}
.hero-stats-inner {
  max-width: 768px; margin: 0 auto;
  padding: 20px 16px; display: flex;
  align-items: center; justify-content: center; gap: 32px;
}
@media (min-width: 640px) { .hero-stats-inner { gap: 64px; } }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }
.hero-stat { text-align: center; }
.hero-stat-val { font-size: 24px; font-weight: 800; color: white; }
@media (min-width: 640px) { .hero-stat-val { font-size: 30px; } }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Skyline SVG */
.skyline { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; pointer-events: none; }
.skyline svg { width: 100%; height: auto; display: block; }

/* ====== Category Tiles ====== */
.category-tiles { padding: 40px 0; background: white; }
.tiles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .tiles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tiles-grid { grid-template-columns: repeat(6, 1fr); } }
.tile {
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center; transition: all 0.2s;
}
.tile:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(77,60,154,0.12); }
.tile svg { margin: 0 auto 8px; color: var(--primary); transition: transform 0.2s; }
.tile:hover svg { transform: scale(1.1); }
.tile-label { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.tile-count { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ====== Section Headings ====== */
.section { padding: 48px 0; }
.section-alt { background: var(--primary-lighter); }
.section-white { background: white; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
@media (min-width: 640px) { .section-title { font-size: 24px; } }
.section-link { font-size: 14px; font-weight: 600; color: var(--primary); }
.section-link:hover { text-decoration: underline; }

/* ====== Property Cards (Grid) ====== */
.props-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .props-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .props-grid { grid-template-columns: repeat(4, 1fr); } }

.prop-card {
  display: block; background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: box-shadow 0.2s;
}
.prop-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.prop-card-img {
  position: relative; aspect-ratio: 4/3; background: #f3f0ff; overflow: hidden;
}
.prop-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.prop-card:hover .prop-card-img img { transform: scale(1.05); }
.prop-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; border-radius: 4px; color: white;
}
.badge-sale { background: var(--primary); }
.badge-rent { background: var(--success); }
.prop-card-body { padding: 12px; }
.prop-card-price { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.prop-card-title {
  font-weight: 600; font-size: 14px; color: var(--text-primary);
  margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.15s;
}
.prop-card:hover .prop-card-title { color: var(--primary); }
.prop-card-location {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-secondary); margin-bottom: 8px;
}
.prop-card-location svg { width: 12px; height: 12px; flex-shrink: 0; }
.prop-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.prop-tag {
  padding: 2px 8px; background: #f3f4f6;
  border-radius: 4px; font-size: 12px; color: var(--text-secondary);
}
.prop-card-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--text-muted);
}
.prop-card-placeholder svg { color: #C4B5FD; margin-bottom: 4px; }
.prop-card-placeholder span { font-size: 11px; font-weight: 500; color: #7C3AED; }

/* ====== Horizontal Property Card ====== */
.h-card {
  display: flex; flex-direction: column; background: white;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px; transition: box-shadow 0.2s;
}
@media (min-width: 640px) { .h-card { flex-direction: row; } }
.h-card:hover { box-shadow: 0 4px 20px rgba(91,46,255,0.1); }
.h-card-img {
  position: relative; width: 100%; min-height: 180px;
  overflow: hidden; background: #f3f0ff; flex-shrink: 0;
}
@media (min-width: 640px) { .h-card-img { width: 260px; min-width: 260px; } }
.h-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.h-card:hover .h-card-img img { transform: scale(1.05); }
.h-card-badge {
  position: absolute; top: 0; left: 0;
  padding: 4px 12px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; background: var(--primary); color: white;
  border-radius: 0 0 8px 0;
}
.h-card-verified {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px; font-size: 10px; font-weight: 700;
  background: var(--success); color: white; border-radius: 4px;
}
.h-card-meta-bottom {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  display: flex; justify-content: space-between;
}
.h-card-meta-tag {
  padding: 2px 8px; background: rgba(0,0,0,0.6);
  color: white; font-size: 10px; border-radius: 4px;
}
.h-card-body { flex: 1; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.h-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.h-card-title {
  font-weight: 600; font-size: 15px; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.15s;
}
.h-card-title:hover { color: var(--primary); }
.h-card-id { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.h-card-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.h-card-price { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.h-card-price-sqft { font-size: 12px; color: var(--text-secondary); }
.h-card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.h-card-spec {
  padding: 2px 8px; background: var(--primary-lighter);
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 11px; color: var(--text-primary);
}
.h-card-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-card-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
}
.h-card-location svg { flex-shrink: 0; color: var(--primary); }
.h-card-actions {
  display: flex; align-items: center; gap: 8px;
  padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border);
}
.h-card-action-btn {
  padding: 6px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text-secondary);
  transition: background 0.15s;
}
.h-card-action-btn:hover { background: var(--primary-lighter); }
.h-card-action-btn svg { width: 14px; height: 14px; }
.h-card-contact {
  margin-left: auto; padding: 8px 20px;
  background: var(--primary); color: white;
  font-size: 12px; font-weight: 600;
  border-radius: var(--radius-sm); transition: background 0.15s;
}
.h-card-contact:hover { background: var(--primary-hover); }
.h-card-placeholder {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--primary-light);
}
.h-card-placeholder svg { color: #C4B5FD; margin-bottom: 8px; }
.h-card-placeholder span { font-size: 12px; font-weight: 500; color: #7C3AED; }

/* ====== Area / Society Cards ====== */
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(4, 1fr); } }
.area-card {
  padding: 16px; background: white; border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.2s;
}
.area-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(77,60,154,0.1); }
.area-card-top { display: flex; align-items: center; gap: 8px; }
.area-card-top svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.area-card-name { font-weight: 600; font-size: 14px; color: var(--text-primary); transition: color 0.15s; }
.area-card:hover .area-card-name { color: var(--primary); }
.area-card-count { font-size: 12px; color: var(--text-secondary); margin-top: 4px; margin-left: 24px; }

.society-card {
  padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.2s;
}
.society-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(77,60,154,0.1); }
.society-card-name { font-weight: 700; font-size: 14px; color: var(--text-primary); transition: color 0.15s; }
.society-card:hover .society-card-name { color: var(--primary); }
.society-card-area { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.society-card-count { font-size: 12px; font-weight: 600; color: var(--primary); margin-top: 4px; }

/* ====== Filter Bar ====== */
.filter-bar {
  background: white; border-bottom: 1px solid var(--border);
  position: sticky; top: var(--header-h); z-index: 40;
}
.filter-bar-inner { padding: 12px 0; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow: visible; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: white;
  color: var(--text-primary); white-space: nowrap;
  transition: all 0.15s; position: relative;
}
.filter-pill:hover, .filter-pill.active { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary-light); }
.filter-pill svg { width: 13px; height: 13px; transition: transform 0.2s; }
.filter-pill.open svg { transform: rotate(180deg); }

.filter-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 12px; z-index: 9999;
}
.filter-pill.open .filter-panel { display: block; }
.filter-option {
  padding: 8px 12px; border-radius: 6px; font-size: 14px;
  cursor: pointer; transition: all 0.1s;
}
.filter-option:hover { background: var(--primary-light); color: var(--primary); }
.filter-option.selected { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.filter-search-input {
  padding: 6px 12px 6px 32px; border-radius: var(--radius-full);
  border: 1px solid var(--border); font-size: 13px;
  color: var(--text-primary); background: white;
  width: 180px; outline: none;
}
@media (min-width: 640px) { .filter-search-input { width: 220px; } }
.filter-search-input:focus { border-color: var(--primary); }

.sort-dropdown {
  padding: 6px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--border); font-size: 13px; font-weight: 500;
  color: var(--text-primary); background: white;
  cursor: pointer; outline: none; margin-left: auto;
}
.sort-dropdown:focus { border-color: var(--primary); }

.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--primary-light);
  color: var(--primary); font-size: 12px; font-weight: 500;
  border-radius: var(--radius-full); border: 1px solid #D4C5FF;
}
.filter-chip button { color: inherit; padding: 0; margin-left: 2px; }
.filter-chip button:hover { color: var(--primary-hover); }
.clear-all { font-size: 12px; color: var(--error); margin-left: 4px; }
.clear-all:hover { text-decoration: underline; }

/* ====== Two Column Layout ====== */
.two-col { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .two-col { flex-direction: row; } }
.two-col-main { flex: 1; min-width: 0; }
.two-col-sidebar { width: 100%; flex-shrink: 0; }
@media (min-width: 1024px) { .two-col-sidebar { width: 340px; } }
.sidebar-sticky { position: sticky; top: 144px; }

/* ====== Sidebar Inquiry Form ====== */
.sidebar-form {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.sidebar-form h3 { font-weight: 600; font-size: 16px; color: var(--text-primary); margin-bottom: 4px; }
.sidebar-form .form-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.sidebar-form input, .sidebar-form select, .sidebar-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  outline: none; transition: all 0.15s; margin-bottom: 12px;
}
.sidebar-form input:focus, .sidebar-form select:focus, .sidebar-form textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(77,60,154,0.1);
}
.sidebar-form textarea { resize: none; }
.sidebar-form .btn-submit {
  width: 100%; padding: 12px; background: var(--primary);
  color: white; font-weight: 600; font-size: 15px;
  border-radius: var(--radius-sm); transition: background 0.15s;
}
.sidebar-form .btn-submit:hover { background: var(--primary-hover); }
.sidebar-form .btn-submit:disabled { opacity: 0.5; }
.sidebar-form .secure-text {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--text-muted); margin-top: 8px;
}
.sidebar-form .secure-text svg { width: 10px; height: 10px; }

/* ====== Breadcrumb ====== */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-secondary); flex-wrap: wrap;
  margin-bottom: 16px;
}
.breadcrumb a { transition: color 0.15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: #D1D5DB; }
.breadcrumb-current { color: var(--primary); font-weight: 500; }

/* ====== Content Cards ====== */
.content-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.content-card h2, .content-card h3 { font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.content-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ====== Property Detail Page ====== */
.property-page { background: var(--primary-lighter); min-height: 100vh; }
.property-top {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px;
}
@media (min-width: 1024px) {
  .property-top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.property-price { font-size: 24px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
@media (min-width: 768px) { .property-price { font-size: 30px; } }
.property-price-sqft { font-size: 14px; font-weight: 400; color: var(--text-secondary); margin-left: 8px; }
.property-h1 { font-size: 18px; font-weight: 700; color: var(--text-primary); }
@media (min-width: 768px) { .property-h1 { font-size: 20px; } }
.property-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.property-action-btn {
  padding: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: background 0.15s;
}
.property-action-btn:hover { background: #f3f4f6; }
.property-action-btn svg { width: 18px; height: 18px; color: var(--text-secondary); }
.property-id-badge {
  font-size: 12px; color: var(--text-secondary); background: #f3f4f6;
  padding: 4px 12px; border-radius: 4px; font-weight: 500;
}
.btn-contact-owner {
  padding: 8px 16px; background: var(--primary); color: white;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.btn-contact-owner:hover { background: var(--primary-hover); }

/* Photo Gallery */
.photo-gallery { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.photo-grid { display: grid; grid-template-columns: 1fr; gap: 4px; max-height: 420px; }
@media (min-width: 768px) { .photo-grid { grid-template-columns: 2fr 1fr; } }
.photo-main { position: relative; background: #f3f4f6; overflow: hidden; min-height: 280px; }
.photo-main img { width: 100%; height: 100%; object-fit: cover; }
.photo-side { display: none; grid-template-columns: 1fr 1fr; gap: 4px; max-height: 420px; }
@media (min-width: 768px) { .photo-side { display: grid; } }
.photo-side-item { position: relative; background: #f3f4f6; cursor: pointer; overflow: hidden; }
.photo-side-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.photo-side-item:hover img { transform: scale(1.05); }
.photo-more-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
}
.photo-thumbs {
  display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 8px;
}
@media (min-width: 768px) { .photo-thumbs { display: none; } }
.photo-thumb {
  width: 80px; height: 64px; object-fit: cover; border-radius: 4px;
  cursor: pointer; flex-shrink: 0; opacity: 0.7; transition: all 0.15s;
}
.photo-thumb.active, .photo-thumb:hover { opacity: 1; outline: 2px solid var(--primary); }

/* Key Specs */
.key-specs {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding: 16px; background: white;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.key-spec { flex: 1; min-width: 120px; }
.key-spec-label { font-size: 12px; color: var(--text-secondary); }
.key-spec-val { font-weight: 600; font-size: 14px; color: var(--text-primary); }

/* Details Grid */
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .details-grid { grid-template-columns: repeat(3, 1fr); } }
.detail-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; background: var(--primary-light); border-radius: 6px;
}
.detail-item-icon { color: var(--primary); display: flex; align-items: center; }
.detail-item-icon svg { width: 16px; height: 16px; }
.detail-item-label { font-size: 12px; color: var(--text-secondary); }
.detail-item-val { font-size: 14px; font-weight: 500; color: var(--text-primary); }

/* Amenities / Furnishing Check List */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .check-grid { grid-template-columns: repeat(3, 1fr); } }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-primary); }
.check-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.check-item .check-green { color: #16a34a; }
.check-item .check-purple { color: var(--primary); }

/* ====== Society Header Card ====== */
.society-header-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px;
}
.society-h1 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
@media (min-width: 768px) { .society-h1 { font-size: 24px; } }
.society-location { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.society-location svg { width: 14px; height: 14px; color: var(--primary); }

.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .info-cards { grid-template-columns: repeat(4, 1fr); } }
.info-card {
  background: var(--primary-lighter); border-radius: var(--radius-sm);
  padding: 12px;
}
.info-card-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.info-card-val { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 4px; }
.info-card-val svg { width: 13px; height: 13px; }

/* Amenity Pills */
.amenity-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--primary-light);
  color: var(--primary); font-size: 12px; font-weight: 500;
  border-radius: var(--radius-full);
}
.amenity-pill svg { width: 11px; height: 11px; }

/* ====== Pagination ====== */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; background: white;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-top: 24px;
}
.pagination-info { font-size: 14px; color: var(--text-secondary); }
.pagination-btns { display: flex; gap: 4px; }
.page-btn {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ====== CTA Section ====== */
.cta-section {
  padding: 56px 0; text-align: center;
  background: linear-gradient(135deg, #2D0B59 0%, #4D3C9A 100%);
}
.cta-section h2 { font-size: 24px; font-weight: 700; color: white; margin-bottom: 12px; }
@media (min-width: 640px) { .cta-section h2 { font-size: 30px; } }
.cta-section p { color: var(--primary-text-light); margin-bottom: 24px; }
.cta-btn {
  display: inline-block; padding: 16px 32px;
  background: white; color: var(--primary);
  font-weight: 700; border-radius: var(--radius);
  transition: background 0.15s;
}
.cta-btn:hover { background: var(--primary-light); }

/* ====== SEO Links Grid ====== */
.seo-links { padding: 48px 0; background: #F3F4F6; }
.seo-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 640px) { .seo-links-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .seo-links-grid { grid-template-columns: repeat(5, 1fr); } }
.seo-links-col h3 { font-weight: 600; font-size: 14px; color: var(--text-primary); margin-bottom: 12px; }
.seo-links-col a {
  display: block; font-size: 13px; color: var(--text-secondary);
  padding: 3px 0; transition: color 0.15s;
}
.seo-links-col a:hover { color: var(--primary); text-decoration: underline; }

/* ====== FAQ ====== */
.faq-section { padding: 48px 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--primary); }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px; text-align: left; font-weight: 500; font-size: 14px;
  color: var(--text-primary); transition: background 0.15s;
}
.faq-btn:hover { background: var(--primary-lighter); }
.faq-btn svg { flex-shrink: 0; }
.faq-answer { padding: 0 16px 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ====== Footer ====== */
.footer { background: var(--footer-bg); color: #9CA3AF; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 48px 16px; }
@media (min-width: 640px) { .footer-inner { padding: 48px 24px; } }
.footer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-brand { grid-column: span 2; }
@media (min-width: 640px) { .footer-brand { grid-column: span 3; } }
@media (min-width: 1024px) { .footer-brand { grid-column: span 1; } }
.footer-brand img { height: 28px; margin-bottom: 12px; mix-blend-mode: lighten; }
.footer-brand p { font-size: 14px; color: #6B7280; line-height: 1.6; }
.footer-col h4 { font-weight: 600; font-size: 14px; color: white; margin-bottom: 12px; }
.footer-col a {
  display: block; font-size: 14px; color: #6B7280; padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary-text-light); }
.footer-bottom {
  border-top: 1px solid #374151; max-width: var(--max-w);
  margin: 0 auto; padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .footer-bottom { padding: 16px 24px; } }
.footer-bottom p { font-size: 12px; color: #6B7280; }
.footer-bottom a { font-size: 12px; color: #4B5563; transition: color 0.15s; }
.footer-bottom a:hover { color: #9CA3AF; }

/* ====== Static Pages ====== */
.static-page { padding: 40px 0; max-width: 800px; margin: 0 auto; }
.page-title { font-size: 24px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
@media (min-width: 640px) { .page-title { font-size: 30px; } }
.page-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

/* ====== Post Property Form ====== */
.post-form { max-width: 800px; margin: 0 auto; }
.form-section { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.form-section h3 { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-group { margin-bottom: 0; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.form-group label .required { color: var(--error); }
.form-input, .form-select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  outline: none; transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(77,60,154,0.1);
}
.form-textarea { min-height: 80px; resize: vertical; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; font-weight: 600; font-size: 14px;
  border-radius: var(--radius-sm); transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--primary-light); color: var(--primary); }
.btn-secondary:hover { background: #E0D5FF; }
.btn-outline { border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ====== Results Header ====== */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.results-header h1 { font-size: 18px; font-weight: 700; color: var(--text-primary); }
@media (min-width: 640px) { .results-header h1 { font-size: 20px; } }

/* ====== Inquiry Modal ====== */
.inquiry-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  align-items: center; justify-content: center; padding: 16px;
}
.inquiry-overlay.active { display: flex; }
.inquiry-modal {
  background: white; border-radius: var(--radius); width: 100%;
  max-width: 400px; overflow: hidden; position: relative;
}
.inquiry-modal-bar { height: 3px; background: var(--primary); }
.inquiry-modal-body { padding: 24px; position: relative; }
.inquiry-modal-close {
  position: absolute; top: 16px; right: 16px;
  color: var(--text-secondary);
}
.inquiry-modal-close:hover { color: var(--text-primary); }
.inquiry-modal h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.inquiry-modal .subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

/* ====== No Results ====== */
.no-results {
  text-align: center; padding: 64px 24px;
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
}
.no-results p { color: var(--text-secondary); margin-bottom: 12px; }

/* ====== Utilities ====== */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-error { color: var(--error) !important; }
.bg-alt { background: var(--primary-lighter); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capitalize { text-transform: capitalize; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none; }

/* ====== Print ====== */
@media print {
  .header, .footer, .filter-bar, .sidebar-form, .h-card-actions { display: none !important; }
  body { background: white; }
}


/* ====== Login Modal ====== */
.login-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  align-items: center; justify-content: center; padding: 16px;
}
.login-overlay.active { display: flex; }
.login-modal {
  background: white; border-radius: var(--radius); width: 100%;
  max-width: 380px; overflow: hidden; position: relative;
}
.login-modal-body { padding: 24px; }
.login-modal h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; text-align: center; }
.login-modal .subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; text-align: center; }

/* ====== Logo with image ====== */
.logo { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.logo-img { height: 36px; width: auto; }
@media (min-width: 640px) { .logo-img { height: 40px; } }
.footer-logo-img { height: 36px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.9; }

/* ====== Blog Header Dropdown ====== */
.blog-dropdown-loading {
  padding: 12px 16px; font-size: 13px; color: var(--text-muted);
}
.blog-dropdown-viewall {
  display: block; padding: 10px 16px; font-size: 13px;
  font-weight: 600; color: var(--primary) !important;
  border-top: 1px solid var(--border); margin-top: 4px;
}
.blog-dropdown-viewall:hover { background: var(--primary-lighter) !important; color: var(--primary) !important; }

/* ====== Society Visual Cards (Homepage) ====== */
.society-visual-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 640px) { .society-visual-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .society-visual-grid { grid-template-columns: repeat(4, 1fr); } }
.society-visual-grid--full {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .society-visual-grid--full { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .society-visual-grid--full { grid-template-columns: repeat(4, 1fr); } }

.society-vcard {
  display: block; background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.society-vcard:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(77,60,154,0.12);
}
.society-vcard-img {
  width: 100%; height: 140px; overflow: hidden;
  background: var(--primary-lighter);
}
@media (min-width: 640px) { .society-vcard-img { height: 160px; } }
.society-vcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.society-vcard:hover .society-vcard-img img { transform: scale(1.05); }
.society-vcard-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #E8E0FF 100%);
  color: var(--primary);
  opacity: 0.5;
}
.society-vcard-body { padding: 12px; }
.society-vcard-name {
  font-weight: 700; font-size: 14px; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.15s;
}
.society-vcard:hover .society-vcard-name { color: var(--primary); }
.society-vcard-area {
  font-size: 12px; color: var(--text-secondary); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.society-vcard-count {
  display: inline-block; margin-top: 6px; padding: 2px 8px;
  background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 600; border-radius: 4px;
}

/* ====== Blog Cards (Homepage) ====== */
.blog-cards-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .blog-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: block; background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(77,60,154,0.12);
}
.blog-card-img {
  width: 100%; height: 170px; overflow: hidden;
  background: var(--primary-lighter);
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #E8E0FF 100%);
  color: var(--primary); opacity: 0.4;
}
.blog-card-body { padding: 14px; }
.blog-card-cat {
  display: inline-block; padding: 2px 8px;
  background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 600; border-radius: 4px;
  margin-bottom: 6px;
}
.blog-card-title {
  font-weight: 700; font-size: 15px; color: var(--text-primary);
  line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.15s;
}
.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-card-excerpt {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ====== Post Property Form Enhanced ====== */
.form-page { padding: 24px 0; max-width: 800px; margin: 0 auto; }
.form-page .page-title { font-size: 24px; font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; }
.form-page .page-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.form-section { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }
.form-section h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.property-form .form-group { margin-bottom: 16px; }
.property-form .form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.property-form select, .property-form input[type="text"],
.property-form input[type="number"], .property-form input[type="tel"],
.property-form input[type="email"], .property-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  outline: none; transition: border-color 0.15s; background: white;
}
.property-form select:focus, .property-form input:focus, .property-form textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(77,60,154,0.1);
}
.property-form textarea { min-height: 80px; resize: vertical; }
.btn-submit-property {
  display: block; width: 100%; padding: 14px; background: var(--primary);
  color: white; font-weight: 700; font-size: 16px; border: none;
  border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s;
}
.btn-submit-property:hover { background: var(--primary-hover); }
.bhk-options { display: flex; flex-wrap: wrap; gap: 8px; }
.bhk-option { display: none; }
.bhk-label {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 14px; cursor: pointer;
  transition: all 0.15s;
}
.bhk-option:checked + .bhk-label { background: var(--primary); color: white; border-color: var(--primary); }

/* ====== Hero Height Reduced ~5% ====== */
.hero { min-height: 490px; }
@media (min-width: 640px) { .hero-inner { padding: 64px 24px 20px; } }

/* ====== Enhanced Mobile Responsiveness ====== */

/* Mobile Header */
@media (max-width: 1023px) {
  .header-inner { height: 56px; }
  .logo-text { font-size: 18px; }
  .logo svg { width: 28px; height: 28px; }
  .btn-login { padding: 6px 10px; font-size: 13px; }
  .btn-login span { display: none; }
}

/* Mobile Hero */
@media (max-width: 639px) {
  .hero { min-height: auto; padding-bottom: 0; }
  .hero-inner { padding: 32px 16px 16px; }
  .hero h1 { font-size: 22px; }
  .hero-sub { font-size: 14px; margin-bottom: 20px; }
  .city-pills-row { gap: 8px; }
  .city-pill { padding: 6px 14px; font-size: 13px; }
  .cat-tabs { gap: 4px; }
  .cat-tab { padding: 6px 10px; font-size: 12px; }
  .search-card { padding: 4px; }
  .search-field { padding: 8px 12px; }
  .search-btn { min-height: 42px; font-size: 14px; padding: 0 20px; }
  .hero-stats-inner { gap: 16px; padding: 16px; }
  .hero-stat-val { font-size: 18px; }
  .hero-stat-label { font-size: 10px; }
  .skyline { display: none; }
}

/* Mobile Category Tiles */
@media (max-width: 639px) {
  .tiles-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { padding: 12px 8px; }
  .tile svg { width: 20px; height: 20px; }
  .tile-label { font-size: 12px; }
  .tile-count { font-size: 10px; }
}

/* Mobile Property Cards */
@media (max-width: 639px) {
  .props-grid { grid-template-columns: 1fr; }
  .h-card { flex-direction: column; }
  .h-card-img { width: 100%; min-height: 160px; max-height: 200px; }
  .h-card-body { padding: 12px; }
  .h-card-title { font-size: 14px; }
  .h-card-price { font-size: 18px; }
  .h-card-specs { gap: 4px; }
  .h-card-spec { font-size: 10px; padding: 2px 6px; }
  .h-card-actions { padding-top: 8px; margin-top: 8px; }
  .h-card-contact { padding: 8px 14px; font-size: 11px; }
}

/* Mobile Filter Bar */
@media (max-width: 639px) {
  .filter-bar-inner { padding: 8px 0; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filter-pill { flex-shrink: 0; font-size: 12px; padding: 4px 10px; }
  .sort-dropdown { font-size: 12px; flex-shrink: 0; }
  .filter-search-input { width: 140px; font-size: 12px; }
}

/* Mobile Two-Column → Stack */
@media (max-width: 1023px) {
  .two-col { flex-direction: column; }
  .two-col-sidebar { width: 100%; max-width: 100%; }
  .sidebar-sticky { position: static; }
  .sidebar-form { max-width: 100%; }
}

/* Inquiry/Login modal mobile fix */
@media (max-width: 639px) {
  .inquiry-overlay, .login-overlay { padding: 12px; }
  .inquiry-modal, .login-modal { max-width: 100%; }
  .inquiry-modal-body, .login-modal-body { padding: 20px 16px; }
}

/* Mobile Area/Society Grid */
@media (max-width: 639px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .area-card { padding: 12px; }
  .area-card-name { font-size: 13px; }
  .info-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .society-visual-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .society-vcard-img { height: 110px; }
  .society-vcard-body { padding: 10px; }
  .society-vcard-name { font-size: 13px; }
  .blog-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .blog-card-img { height: 150px; }
}

/* Mobile Section spacing */
@media (max-width: 639px) {
  .section { padding: 32px 0; }
  .section-title { font-size: 18px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Mobile Footer */
@media (max-width: 639px) {
  .footer-inner { padding: 32px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Mobile Static Pages */
@media (max-width: 639px) {
  .static-page { padding: 24px 0; }
  .page-title { font-size: 22px; }
  .form-page { padding: 16px 0; }
  .form-section { padding: 16px; }
}

/* Mobile Search Page */
@media (max-width: 639px) {
  .results-header h1 { font-size: 16px; }
  .details-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .key-specs { flex-direction: column; }
}

/* Mobile Photo Gallery */
@media (max-width: 767px) {
  .photo-grid { max-height: 260px; }
  .photo-main { min-height: 200px; }
}

/* Mobile Pagination */
@media (max-width: 639px) {
  .pagination { flex-direction: column; gap: 12px; text-align: center; }
}

/* Mobile SEO Links */
@media (max-width: 639px) {
  .seo-links-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .seo-links-col h3 { font-size: 13px; }
  .seo-links-col a { font-size: 12px; }
}

/* Mobile CTA */
@media (max-width: 639px) {
  .cta-section { padding: 40px 16px; }
  .cta-section h2 { font-size: 20px; }
}

/* Mobile Property Detail */
@media (max-width: 767px) {
  .property-top { gap: 12px; }
  .property-price { font-size: 22px; }
  .property-h1 { font-size: 16px; }
  .property-actions { flex-wrap: wrap; }
}


/* ====== Society Page Mobile ====== */
@media (max-width: 767px) {
  .soc-hero-top { flex-direction: column !important; }
  .soc-gallery { width: 100% !important; height: 200px !important; }
  .soc-hero-info { padding: 16px; }
  .soc-hero-info h1 { font-size: 18px; }
  .soc-quick-bar { grid-template-columns: repeat(3, 1fr); }
  .soc-quick-val { font-size: 14px; }
  .soc-quick-label { font-size: 10px; }
  .soc-cta-bar { padding: 12px 16px; }
  .soc-cta-btn { font-size: 12px; padding: 10px 12px; min-width: 0; }
  .content-card { padding: 16px !important; }
  .content-card h2 { font-size: 16px !important; }
}

/* ====== City Cards for /societies/ ====== */
.city-cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 640px) { .city-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.city-card {
  display: block; background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s; text-align: center;
  padding: 32px 20px;
}
.city-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(77,60,154,0.12);
}
.city-card-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  background: var(--primary-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.city-card-icon svg { width: 24px; height: 24px; }
.city-card-name {
  font-weight: 700; font-size: 18px; color: var(--text-primary);
  margin-bottom: 4px; transition: color 0.15s;
}
.city-card:hover .city-card-name { color: var(--primary); }
.city-card-count {
  font-size: 14px; color: var(--text-secondary);
}
.city-card-arrow {
  display: inline-block; margin-top: 12px; font-size: 13px;
  font-weight: 600; color: var(--primary);
}


/* ====== Multi-Step Wizard ====== */
.wizard-steps {
  display: flex; gap: 4px; margin-bottom: 20px;
}
.wizard-step {
  flex: 1; text-align: center; padding: 10px 6px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); background: white; border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.2s;
}
.wizard-step span {
  display: inline-block; width: 20px; height: 20px; line-height: 20px;
  background: var(--border); color: white; border-radius: 50%; font-size: 11px;
  margin-right: 4px;
}
.wizard-step.active { color: var(--primary); border-color: var(--primary); background: var(--primary-lighter); }
.wizard-step.active span { background: var(--primary); }
@media (max-width: 639px) {
  .wizard-step { font-size: 10px; padding: 8px 4px; }
  .wizard-step span { width: 18px; height: 18px; line-height: 18px; font-size: 10px; margin-right: 2px; }
}

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

/* Radio Pills */
.radio-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  display: inline-flex; align-items: center; padding: 10px 18px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s;
}
.radio-pill input { display: none; }
.radio-pill.active { border-color: var(--primary); background: var(--primary-lighter); color: var(--primary); }
.radio-pill:hover { border-color: var(--primary); }

/* Photo Upload */
.photo-upload-zone {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 20px; text-align: center; background: white;
}
.photo-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px;
}
.photo-preview-item {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 1; border: 1px solid var(--border);
}
.photo-preview-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-remove-btn {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%;
  font-size: 14px; line-height: 22px; text-align: center; cursor: pointer;
}
.photo-cover-badge {
  position: absolute; bottom: 4px; left: 4px; background: var(--primary);
  color: white; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
}

/* Review Table */
.review-table { width: 100%; border-collapse: collapse; }
.review-table td { padding: 8px 12px; font-size: 14px; border-bottom: 1px solid var(--border); }
.review-table td:first-child { color: var(--text-secondary); width: 40%; }
.review-table td:last-child { font-weight: 600; color: var(--text-primary); }

/* ====== My Properties Dashboard ====== */
.my-props-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .my-props-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .my-props-grid { grid-template-columns: repeat(3, 1fr); } }

.my-prop-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.my-prop-img {
  position: relative; width: 100%; height: 160px; overflow: hidden;
  background: var(--primary-lighter);
}
.my-prop-img img { width: 100%; height: 100%; object-fit: cover; }
.my-prop-status {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.my-prop-status--active { background: #D1FAE5; color: #065F46; }
.my-prop-status--pending { background: #FEF3C7; color: #92400E; }
.my-prop-status--rejected { background: #FEE2E2; color: #991B1B; }
.my-prop-status--sold { background: #DBEAFE; color: #1E40AF; }
.my-prop-status--rented { background: #E0E7FF; color: #3730A3; }

.my-prop-body { padding: 14px; }
.my-prop-title {
  font-weight: 700; font-size: 14px; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.my-prop-price { font-size: 16px; font-weight: 800; color: var(--primary); margin-top: 4px; }
.my-prop-loc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.my-prop-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.btn-sm { font-size: 12px; padding: 5px 12px; border-radius: 6px; }
.btn-success { background: #059669; color: white; border: none; cursor: pointer; }
.btn-success:hover { background: #047857; }
.btn-danger { background: white; color: #DC2626; border: 1px solid #DC2626; cursor: pointer; }
.btn-danger:hover { background: #FEE2E2; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }

/* User Menu Button */
.user-menu-btn { font-size: 13px !important; }
