/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,162,39,0.18) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(99,102,241,0.12) 0%, transparent 50%), linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%); }
.hero-particles { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; padding: 120px 0 60px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(201,162,39,0.1); border: 1px solid rgba(201,162,39,0.3); border-radius: 50px; color: var(--gold-400); font-size: 0.88rem; font-weight: 700; margin-bottom: 24px; }
.hero-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; }

/* Search Box */
.hero-search { max-width: 900px; margin: 0 auto 48px; }
.search-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: rgba(255,255,255,0.05); border-radius: var(--radius-md); padding: 4px; width: fit-content; margin-inline: auto; }
.search-tab { padding: 10px 28px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); }
.search-tab.active { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--navy-900); box-shadow: 0 4px 12px rgba(201,162,39,0.3); }
.search-form { display: flex; align-items: center; gap: 0; padding: 12px; background: rgba(10,22,40,0.85); border: 1.5px solid rgba(201,162,39,0.25); flex-wrap: wrap; }
.search-field { flex: 1; min-width: 160px; padding: 4px 16px; }
.search-field label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.search-select { width: 100%; background: transparent; border: none; color: var(--text-primary); font-size: 0.95rem; font-weight: 600; outline: none; cursor: pointer; direction: rtl; }
.search-select option { background: var(--navy-800); color: var(--text-primary); }
.search-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }
.search-btn { flex-shrink: 0; padding: 14px 28px; border-radius: var(--radius-md); font-size: 1rem; }

/* Hero Stats */
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 0; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 40px; width: fit-content; margin: 0 auto; flex-wrap: wrap; }
.hero-stat { text-align: center; padding: 0 32px; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; font-family: var(--font-heading); color: var(--gold-400); line-height: 1; }
.stat-label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }
.hero-scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.2); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-wheel { width: 4px; height: 8px; background: var(--gold-400); border-radius: 2px; animation: scrollWheel 2s infinite; }

/* Features Bar */
.features-bar { background: var(--navy-800); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { display: flex; align-items: center; gap: 16px; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-item h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.feature-item p { font-size: 0.78rem; color: var(--text-muted); }

/* Governorates */
.gov-section { background: var(--navy-800); }
.gov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.gov-card { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 16px; text-align: center; cursor: pointer; transition: var(--transition); text-decoration: none; display: block; }
.gov-card:hover { border-color: var(--gold-500); background: rgba(201,162,39,0.07); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.gov-card .gov-icon { font-size: 1.8rem; margin-bottom: 8px; }
.gov-card .gov-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.gov-card .gov-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* CTA */
.cta-section { padding: 80px 0; }
.cta-card { position: relative; overflow: hidden; padding: 60px; text-align: center; }
.cta-glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%); pointer-events: none; }
.cta-content { position: relative; z-index: 1; }
.cta-icon { margin: 0 auto 24px; }
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-card p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== PROPERTY CARD ===== */
.property-card { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); cursor: pointer; display: flex; flex-direction: column; }
.property-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-gold); }
.card-image { position: relative; height: 220px; overflow: hidden; background: var(--navy-700); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .card-image img { transform: scale(1.06); }
.card-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); }
.card-badges { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-fav { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); border-radius: 50%; border: none; color: #fff; cursor: pointer; transition: var(--transition); }
.card-fav:hover, .card-fav.active { background: rgba(244,63,94,0.8); color: #fff; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-location { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.85rem; }
.card-price { font-size: 1.2rem; font-weight: 800; font-family: var(--font-heading); color: var(--gold-400); }
.card-price span { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.card-meta { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.card-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--text-secondary); }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ===== FILTERS SIDEBAR ===== */
.props-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters-sidebar { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 90px; }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filter-header h3 { font-weight: 700; font-size: 1rem; }
.filter-section { margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-section h4 { font-weight: 600; font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: var(--transition); }
.filter-option:hover { background: rgba(255,255,255,0.05); }
.filter-checkbox { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 5px; transition: var(--transition); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.filter-option.selected .filter-checkbox { background: var(--gold-500); border-color: var(--gold-500); }
.filter-option span { font-size: 0.9rem; color: var(--text-secondary); }
.filter-option.selected span { color: var(--text-primary); font-weight: 600; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; padding: 8px 10px; background: rgba(255,255,255,0.05); border: 1.5px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 0.85rem; outline: none; text-align: center; }
.price-range input:focus { border-color: var(--gold-500); }

/* Results toolbar */
.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.results-count { color: var(--text-secondary); font-size: 0.9rem; }
.results-count strong { color: var(--text-primary); }
.view-toggle { display: flex; gap: 4px; }
.view-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); color: var(--text-muted); transition: var(--transition); }
.view-btn.active { background: rgba(201,162,39,0.1); border-color: var(--gold-500); color: var(--gold-400); }
.sort-select { padding: 8px 14px; background: rgba(255,255,255,0.05); border: 1.5px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 0.88rem; outline: none; cursor: pointer; }
.sort-select option { background: var(--navy-800); }

/* ===== PROPERTY DETAIL ===== */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; height: 460px; }
.detail-main-img { background: var(--navy-700); height: 100%; display: flex; align-items: center; justify-content: center; }
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-sub-imgs { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.detail-sub-img { background: var(--navy-600); display: flex; align-items: center; justify-content: center; }
.detail-sub-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 32px; align-items: start; }
.detail-sticky { position: sticky; top: 90px; }
.contact-card { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.contact-card h3 { font-weight: 700; margin-bottom: 20px; }
.agent-info { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.agent-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-500), var(--indigo)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; color: #fff; flex-shrink: 0; }
.agent-name { font-weight: 700; font-size: 0.95rem; }
.agent-title { font-size: 0.8rem; color: var(--text-muted); }
.detail-actions { display: flex; flex-direction: column; gap: 10px; }
.detail-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.spec-item { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; }
.spec-value { font-size: 1.3rem; font-weight: 800; color: var(--gold-400); font-family: var(--font-heading); }
.spec-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ===== DASHBOARD ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon.gold { background: rgba(201,162,39,0.15); }
.stat-icon.emerald { background: rgba(16,185,129,0.15); }
.stat-icon.indigo { background: rgba(99,102,241,0.15); }
.stat-icon.rose { background: rgba(244,63,94,0.15); }
.stat-value { font-size: 2rem; font-weight: 900; font-family: var(--font-heading); color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.stat-change { font-size: 0.78rem; font-weight: 700; margin-top: 6px; }
.stat-change.up { color: var(--emerald); }
.stat-change.down { color: var(--rose); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.table-card { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.table-card-header h3 { font-weight: 700; font-size: 1rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 20px; text-align: right; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.data-table td { padding: 14px 20px; font-size: 0.88rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-secondary); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.td-title { color: var(--text-primary); font-weight: 600; }

/* ===== CONTACTS ===== */
.contacts-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.contact-item { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; display: flex; gap: 14px; align-items: center; transition: var(--transition); cursor: pointer; }
.contact-item:hover { border-color: var(--border-hover); background: var(--glass-bg-hover); }
.contact-item.active { border-color: var(--gold-500); background: rgba(201,162,39,0.07); }
.contact-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.contact-role { font-size: 0.8rem; color: var(--text-muted); }
.contact-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contacts-list { display: flex; flex-direction: column; gap: 8px; }
.contact-detail-card { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-detail-avatar { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.8rem; margin: 0 auto 16px; }
.contact-detail-header { text-align: center; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.contact-detail-name { font-size: 1.4rem; font-weight: 800; }
.contact-detail-role { color: var(--text-muted); margin-top: 4px; }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.info-item label { font-size: 0.78rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 4px; }
.info-item p { font-size: 0.92rem; color: var(--text-primary); font-weight: 500; }
.contact-actions-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== SELL FORM ===== */
.sell-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.form-card { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.form-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-area { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 40px 24px; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-area:hover { border-color: var(--gold-500); background: rgba(201,162,39,0.04); }
.upload-area p { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.tips-card { background: rgba(201,162,39,0.06); border: 1px solid rgba(201,162,39,0.25); border-radius: var(--radius-lg); padding: 24px; }
.tips-card h4 { font-weight: 700; color: var(--gold-400); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tip-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.tip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); margin-top: 7px; flex-shrink: 0; }

/* ===== API DOCS ===== */
.api-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.api-nav { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 90px; }
.api-nav h4 { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; margin-top: 16px; }
.api-nav h4:first-child { margin-top: 0; }
.api-nav a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 0.88rem; color: var(--text-secondary); transition: var(--transition); }
.api-nav a:hover { color: var(--gold-400); background: rgba(201,162,39,0.08); }
.endpoint-card { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.endpoint-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.method-badge { padding: 4px 12px; border-radius: 6px; font-size: 0.78rem; font-weight: 800; font-family: monospace; }
.method-get { background: rgba(16,185,129,0.15); color: var(--emerald); }
.method-post { background: rgba(99,102,241,0.15); color: var(--indigo); }
.method-put { background: rgba(245,158,11,0.15); color: var(--amber); }
.method-delete { background: rgba(244,63,94,0.15); color: var(--rose); }
.endpoint-path { font-family: monospace; font-size: 0.92rem; color: var(--text-primary); }
.code-block { background: var(--navy-950); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; font-family: monospace; font-size: 0.85rem; color: #a8d8a8; overflow-x: auto; margin-top: 12px; line-height: 1.6; }

/* ===== SUPPORT BUTTON ===== */
.support-btn-fixed { position: fixed; bottom: 30px; left: 30px; z-index: 999; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--navy-950); box-shadow: 0 8px 32px rgba(201,162,39,0.4); border: none; cursor: pointer; transition: var(--transition); }
.support-btn-fixed:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 12px 40px rgba(201,162,39,0.6); }
.support-badge { position: absolute; top: -5px; right: -5px; background: var(--rose); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 2px 6px; border-radius: 10px; border: 2px solid var(--navy-900); }

/* Support Modal Specifics */
.support-modal-header { text-align: center; margin-bottom: 24px; }
.support-modal-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(201,162,39,0.1); color: var(--gold-400); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 2rem; }

/* Logo Styles */
.nav-logo img { height: 40px; width: auto; object-fit: contain; }
.footer-brand .nav-logo img { height: 50px; }

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .props-layout, .detail-layout, .dashboard-grid, .contacts-layout, .sell-grid, .api-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .filters-sidebar, .detail-sticky, .api-nav { position: static; }
  .detail-gallery { grid-template-columns: 1fr; height: 300px; }
  .detail-sub-imgs { display: none; }
}
@media(max-width:768px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { flex-direction: column; gap: 16px; width: 100%; }
  .hero-stat-divider { width: 60px; height: 1px; }
  .search-form { flex-direction: column; align-items: stretch; }
  .search-divider { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-info-grid, .form-row { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 24px; }
}
@media(max-width:480px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
}
