/* ═══════════════════════════════════════════════
   24/7 عقار — Professional Real Estate Stylesheet
   Arabic RTL · Mobile-first · Server-rendered
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #f7f8fa;
  color: #2d2d2d;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

/* ── Header ────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: flex; align-items: baseline; gap: 6px; font-size: 24px; font-weight: 900; }
.logo-text { color: #1a1a1a; }
.logo-accent { color: #059669; }
.main-nav { display: flex; gap: 24px; margin-right: auto; }
.nav-link { font-size: 15px; font-weight: 600; color: #555; transition: color 0.2s; padding: 4px 0; }
.nav-link:hover { color: #059669; }
.header-wa-btn {
  display: flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff;
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  transition: background 0.2s;
}
.header-wa-btn:hover { background: #1fbd5a; }
.menu-toggle { display: none; background: none; border: none; width: 28px; height: 20px; position: relative; margin-right: auto; }
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: #333;
  position: absolute; right: 0; transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 99; display: none; align-items: flex-start; justify-content: center;
  padding-top: 60px;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav {
  background: #fff; width: 100%; padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.mobile-nav-link {
  padding: 14px 16px; font-size: 17px; font-weight: 600; color: #333;
  border-radius: 10px; transition: background 0.2s;
}
.mobile-nav-link:hover { background: #f0f0f0; }
.mobile-nav-link.wa-link {
  background: #25D366; color: #fff; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; border-radius: 12px;
}

@media (max-width: 768px) {
  .main-nav, .header-wa-btn { display: none; }
  .menu-toggle { display: block; }
}

/* ── Hero ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #047857 0%, #059669 40%, #10b981 100%);
  color: #fff;
  padding: 50px 20px 40px;
  text-align: center;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 48px; margin-bottom: 8px; }
.hero-logo-text { color: #fff; }
.hero-logo-accent { color: #d1fae5; }
.hero-subtitle { font-size: 20px; opacity: 0.9; margin-bottom: 4px; }
.hero-tagline { font-size: 16px; opacity: 0.75; margin-bottom: 28px; }

/* Hero search */
.hero-search {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 16px;
}
.search-fields { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.search-select {
  flex: 1; min-width: 120px;
  padding: 12px 14px; border: none; border-radius: 10px;
  background: #fff; color: #333;
  font-size: 15px; font-weight: 600; font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
}
.search-btn {
  width: 100%; padding: 14px;
  background: #fff; color: #059669; border: none; border-radius: 10px;
  font-size: 17px; font-weight: 800; font-family: inherit;
  transition: background 0.2s;
}
.search-btn:hover { background: #f0f0f0; }

@media (max-width: 600px) {
  .hero { padding: 35px 16px 30px; }
  .hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 17px; }
  .search-fields { flex-direction: column; }
  .search-select { min-width: 100%; }
}

/* ── Stats bar ─────────────────────────────────── */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}
.stats-bar .container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.stat-badge { font-size: 15px; color: #666; }
.stat-badge strong { color: #059669; font-weight: 800; font-size: 18px; }

/* ── Sections ──────────────────────────────────── */
.latest-section { padding: 40px 0 50px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-size: 24px; font-weight: 800; color: #1a1a1a; }
.view-all-link { font-size: 15px; font-weight: 600; color: #059669; }
.section-footer { text-align: center; margin-top: 40px; padding-top: 10px; }

/* ── Property grid ─────────────────────────────── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Property card ─────────────────────────────── */
.property-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e8e8e8; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image .no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; background: #f0f0f0;
}
.card-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.card-badge.sale { background: rgba(46,125,50,0.9); color: #fff; }
.card-badge.rent { background: rgba(21,101,192,0.9); color: #fff; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-location { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; line-height: 1.4; }
.card-price { font-size: 18px; font-weight: 800; color: #059669; margin-bottom: 8px; }
.card-specs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.spec-item { font-size: 13px; color: #888; font-weight: 600; }

/* ── Card contact buttons ──────────────────────── */
.property-card-wrap { position: relative; margin-bottom: 8px; }
.property-card-wrap .property-card { display: flex; flex-direction: column; }
.property-card-wrap:has(.card-actions) .property-card { border-radius: 14px 14px 0 0; box-shadow: none; }
.card-actions {
  display: flex; gap: 6px; padding: 8px 12px 12px;
  background: #fff;
  border-radius: 0 0 14px 14px;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.card-wa-btn, .card-call-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px; border-radius: 8px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.card-wa-btn:active, .card-call-btn:active { transform: scale(0.96); }
.card-wa-btn { background: #25D366; color: #fff; }
.card-call-btn { background: #3B82F6; color: #fff; }

/* ── Buttons ───────────────────────────────────── */
.btn-primary {
  display: inline-block; padding: 12px 30px;
  background: #059669; color: #fff; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700; transition: background 0.2s;
}
.btn-primary:hover { background: #047857; }
.btn-outline {
  display: inline-block; padding: 12px 30px;
  background: transparent; color: #059669; border: 2px solid #059669; border-radius: 10px;
  font-size: 16px; font-weight: 700; transition: all 0.2s;
}
.btn-outline:hover { background: #059669; color: #fff; }

/* ── WhatsApp CTA section ──────────────────────── */
.wa-cta-section {
  background: linear-gradient(135deg, #047857, #10b981);
  color: #fff; text-align: center; padding: 50px 20px;
}
.wa-cta-section h2 { font-size: 26px; margin-bottom: 10px; }
.wa-cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.wa-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #059669;
  padding: 14px 32px; border-radius: 12px;
  font-size: 18px; font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ── Footer ────────────────────────────────────── */
.site-footer {
  background: #1a1a1a; color: #aaa; padding: 40px 0 30px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.footer-brand { font-size: 28px; font-weight: 900; color: #fff; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; color: #777; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #999; font-size: 14px; font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: #666; margin-top: 8px; }

@media (max-width: 600px) {
  .wa-cta-section h2 { font-size: 22px; }
}

/* ── Floating WhatsApp button ─────────────────── */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #25D366;
  color: #fff;
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 80;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fab-pulse 3s ease-in-out infinite;
  font-size: 14px;
  font-weight: 700;
}
.fab-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.fab-tooltip { /* label is always visible now */ }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); }
}
/* Hide FAB on property detail page (has its own sticky buttons) */
body:has(.sticky-buttons) .fab-whatsapp { display: none; }

/* ── Empty state ───────────────────────────────── */
.empty-state {
  text-align: center; padding: 50px 20px;
  background: #fff; border-radius: 14px;
}
.empty-state p { font-size: 18px; color: #888; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════
   Property Detail Page
   ═══════════════════════════════════════════════ */

.prop-page { max-width: 680px; margin: 0 auto; padding: 16px 16px 100px; }
.pending-banner { background: #fff8e1; color: #7c6600; border: 1px solid #ffe082; border-radius: 12px; padding: 12px 18px; margin-bottom: 14px; text-align: center; font-weight: 600; font-size: 14px; }

/* Gallery */
.gallery { margin-bottom: 18px; border-radius: 14px; overflow: hidden; background: #e8e8e8; }
.gallery-main { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-track { display: flex; transition: transform 0.35s cubic-bezier(.4,0,.2,1); height: 100%; direction: ltr; }
.gallery-slide { min-width: 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.gallery-counter { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.55); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; backdrop-filter: blur(4px); direction: ltr; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; border-radius: 50%; background: rgba(255,255,255,0.85); color: #333; font-size: 22px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.gallery-arrow-l { left: 10px; }
.gallery-arrow-r { right: 10px; }
.gallery-arrow:hover { background: #fff; }
@media (max-width: 600px) { .gallery-arrow { display: none; } }

.thumbnails { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; background: #fff; scrollbar-width: none; }
.thumbnails::-webkit-scrollbar { display: none; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: 0.55; transition: all 0.2s; flex-shrink: 0; }
.thumb:hover { opacity: 0.85; }
.thumb.active { opacity: 1; border-color: #059669; }
.no-images { background: #e4e4e4; height: 220px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 16px; margin-bottom: 18px; }

/* Details card */
.details-card { background: #fff; border-radius: 14px; padding: 22px 20px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.prop-title { font-size: 21px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; color: #1a1a1a; }
.prop-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.prop-id { color: #aaa; font-size: 13px; }
.prop-date { color: #888; font-size: 13px; }
.prop-price { font-size: 26px; font-weight: 800; color: #059669; margin-bottom: 16px; }
.prop-info-card { background: #f4f6f8; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.prop-stats { display: flex; justify-content: center; padding: 16px 12px; }
.stat-item { flex: 1; text-align: center; }
.stat-val { font-size: 19px; font-weight: 800; color: #1a1a1a; }
.stat-label { font-size: 12px; color: #888; margin-top: 3px; font-weight: 600; }
.stat-divider { width: 1px; background: #dce0e4; align-self: stretch; }
.info-card-sep { height: 1px; background: #dce0e4; margin: 0 16px; }
.prop-landmark-row { padding: 12px 16px; font-size: 14px; color: #555; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.prop-details { margin-bottom: 4px; }
.prop-details h3 { font-size: 16px; font-weight: 700; color: #555; margin-bottom: 6px; }
.prop-details p { font-size: 15px; color: #555; line-height: 1.8; white-space: pre-wrap; }

/* Sticky contact buttons */
.bottom-spacer { height: 10px; }
.sticky-buttons { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-top: 1px solid rgba(0,0,0,0.06); z-index: 90; max-width: 680px; margin: 0 auto; }
.cta-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: 12px; font-size: 16px; font-weight: 700; text-decoration: none; color: #fff; border: none; position: relative; overflow: hidden; transition: transform 0.15s; }
.cta-btn:active { transform: scale(0.97); }
.cta-whatsapp { background: linear-gradient(135deg, #25D366, #059669); }
.cta-call { background: linear-gradient(135deg, #3B82F6, #2563EB); }

/* Sparkle sweep animation */
.cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  animation: sparkle-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
.cta-call::after { animation-delay: 1.4s; }
@keyframes sparkle-sweep {
  0% { left: -100%; }
  40% { left: 120%; }
  100% { left: 120%; }
}

/* Phone picker bottom sheet */
.phone-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 300; display: none; align-items: flex-end; justify-content: center; }
.phone-sheet-overlay.open { display: flex; }
.phone-sheet { background: #fff; border-radius: 18px 18px 0 0; padding: 20px 16px; width: 100%; max-width: 680px; animation: sheet-up 0.25s ease-out; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.phone-sheet-title { font-size: 15px; font-weight: 700; color: #888; text-align: center; margin-bottom: 14px; }
.phone-sheet-list { display: flex; flex-direction: column; gap: 8px; }
.phone-sheet-item { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 12px; font-size: 17px; font-weight: 600; text-decoration: none; color: #fff; direction: ltr; }
.phone-sheet-item.wa { background: linear-gradient(135deg, #25D366, #059669); }
.phone-sheet-item.call { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.phone-sheet-cancel { width: 100%; padding: 14px; border: none; border-radius: 12px; background: #f0f0f0; color: #555; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 10px; font-family: inherit; }

/* Fullscreen overlay */
.fs-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; }
.fs-overlay.open { display: flex; }
.fs-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; z-index: 210; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.fs-counter { position: absolute; top: 18px; left: 18px; color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600; direction: ltr; z-index: 210; }
.fs-track { display: flex; direction: ltr; width: 100%; height: 80vh; transition: transform 0.3s cubic-bezier(.4,0,.2,1); }
.fs-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.fs-slide img { max-width: 95%; max-height: 95%; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }

/* Similar properties on detail page */
.similar-section { margin-top: 30px; }
.similar-section h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; }
.similar-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.similar-scroll::-webkit-scrollbar { display: none; }
.similar-scroll .property-card { min-width: 220px; max-width: 260px; flex-shrink: 0; }

/* Contact info on property page — visible above sticky buttons */
.contact-info-bar {
  background: #fff; border-radius: 14px; padding: 16px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  margin-top: 16px; text-align: center;
}
.contact-info-bar h3 { font-size: 15px; color: #888; margin-bottom: 12px; font-weight: 600; }
.contact-phones { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.contact-phone-row {
  display: flex; align-items: center; gap: 10px;
  background: #f4f6f8; border-radius: 10px; padding: 10px 14px;
  width: 100%; max-width: 320px;
}
.contact-phone-number {
  flex: 1; font-size: 16px; font-weight: 700; color: #333; direction: ltr; text-align: center;
}
.chip-wa, .chip-call {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff; flex-shrink: 0;
  transition: transform 0.15s;
}
.chip-wa:active, .chip-call:active { transform: scale(0.9); }
.chip-wa { background: #25D366; }
.chip-call { background: #3B82F6; }

@media (max-width: 600px) {
  .prop-page { padding: 10px 10px 95px; }
  .prop-title { font-size: 19px; }
  .prop-price { font-size: 23px; }
  .sticky-buttons { padding: 10px 12px; gap: 8px; }
  .cta-btn { padding: 15px 8px; font-size: 16px; font-weight: 800; border-radius: 14px; }
}

/* ═══════════════════════════════════════════════
   Browse / Search Page
   ═══════════════════════════════════════════════ */

/* Compact filter toggle bar */
.filter-toggle-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06); margin: 16px 0 12px;
  cursor: pointer; user-select: none;
}
.filter-toggle-right {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #333; flex-shrink: 0;
}
.filter-chip-count {
  background: #059669; color: #fff; border-radius: 50%;
  width: 20px; height: 20px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.filter-toggle-chips {
  flex: 1; display: flex; gap: 6px; overflow-x: auto; min-width: 0;
}
.filter-chip {
  background: #f0fdf4; color: #059669; border: 1px solid #bbf7d0;
  border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.filter-toggle-arrow {
  flex-shrink: 0; color: #888; transition: transform 0.2s;
}
.filter-toggle-bar.filter-open .filter-toggle-arrow { transform: rotate(180deg); }

/* Collapsible filter form */
.filter-bar.filter-collapsed { display: none; }

.filter-bar {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-group { flex: 1; min-width: 140px; }
.filter-group label { display: block; font-size: 13px; font-weight: 600; color: #888; margin-bottom: 4px; }
.filter-group select,
.filter-group input {
  width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: #333;
  appearance: none;
}
.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
}
.filter-group input:focus,
.filter-group select:focus { border-color: #059669; outline: none; }
.filter-submit {
  padding: 10px 24px; background: #059669; color: #fff; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700; font-family: inherit; transition: background 0.2s;
  min-width: 100px; align-self: flex-end;
}
.filter-submit:hover { background: #047857; }
.filter-reset {
  padding: 10px 18px; background: #f0f0f0; color: #666; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  align-self: flex-end;
}

.results-info { font-size: 15px; color: #888; margin-bottom: 20px; font-weight: 600; }
.results-info strong { color: #059669; }

.browse-section { padding: 0 0 50px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.page-btn {
  padding: 10px 16px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #555; background: #fff;
  transition: all 0.2s;
}
.page-btn:hover { border-color: #059669; color: #059669; }
.page-btn.active { background: #059669; color: #fff; border-color: #059669; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 600px) {
  .filter-form { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .filter-submit, .filter-reset { width: 100%; }
}

/* ═══════════════════════════════════════════════
   About Page
   ═══════════════════════════════════════════════ */

.about-page { padding: 40px 0 50px; }
.about-hero { text-align: center; margin-bottom: 40px; }
.about-hero h1 { font-size: 32px; font-weight: 800; color: #1a1a1a; margin-bottom: 10px; }
.about-hero p { font-size: 18px; color: #666; max-width: 600px; margin: 0 auto; }

.about-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.about-card {
  background: #fff; border-radius: 14px; padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center;
}
.about-card-icon { font-size: 40px; margin-bottom: 14px; }
.about-card h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.about-card p { font-size: 15px; color: #666; line-height: 1.8; }

.about-steps { max-width: 600px; margin: 0 auto 40px; }
.about-steps h2 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 24px; }
.step { display: flex; gap: 16px; margin-bottom: 20px; }
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #059669; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.step-text h4 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.step-text p { font-size: 14px; color: #666; }

/* ═══════════════════════════════════════════════
   Admin (kept simple — not public-facing)
   ═══════════════════════════════════════════════ */

.admin h1 { margin-bottom: 20px; }
.admin h2 { margin: 25px 0 15px; padding-bottom: 8px; border-bottom: 2px solid #eee; }
.property-list { display: flex; flex-direction: column; gap: 15px; }
.admin-card { background: white; border-radius: 12px; padding: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); display: flex; gap: 15px; flex-wrap: wrap; align-items: flex-start; }
.admin-card-images { display: flex; gap: 8px; flex-wrap: wrap; min-width: 200px; }
.admin-card-images img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.no-img-small { width: 120px; height: 90px; background: #e0e0e0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; }
.admin-card-info { flex: 1; min-width: 200px; }
.admin-card-info .desc { color: #666; font-size: 14px; margin: 5px 0; }
.admin-card-info .meta { color: #999; font-size: 12px; margin-top: 8px; }
.admin-actions { display: flex; gap: 8px; align-items: flex-start; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 10px; text-decoration: none; font-size: 16px; font-weight: bold; border: none; cursor: pointer; text-align: center; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 14px; font-weight: bold; }
.badge.sale { background: rgba(46,125,50,0.1); color: #2e7d32; }
.badge.rent { background: rgba(21,101,192,0.1); color: #1565c0; }
.approve-btn { background: #25D366; color: white; }
.reject-btn { background: #e74c3c; color: white; }
.edit-btn { background: #3498db; color: white; }
.save-btn { background: #25D366; color: white; width: 100%; font-size: 18px; margin-top: 10px; }
.back-link { display: inline-block; margin-bottom: 15px; color: #059669; text-decoration: none; }

/* Admin edit form */
.edit-form { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.edit-images { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.edit-images img { width: 150px; height: 110px; object-fit: cover; border-radius: 8px; }
.form-row { display: flex; gap: 15px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 150px; margin-bottom: 15px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 14px; color: #555; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; font-family: inherit; }
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #059669; outline: none; }

@media (max-width: 600px) {
  .admin-card { flex-direction: column; }
}

/* ── District Picker ───────────────────────────────────────────── */
.district-picker { position: relative; }
.district-picker-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; padding: 10px 14px; background: #fff; border: 1px solid #ddd;
  border-radius: 10px; font-size: 15px; font-family: inherit; cursor: pointer;
  color: #333; white-space: nowrap; overflow: hidden; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
}
.district-picker-btn:hover { border-color: #aaa; }
.dp-arrow { flex-shrink: 0; color: #888; transition: transform 0.2s; }
.district-picker.open .dp-arrow { transform: rotate(180deg); }

/* Dropdown panel — uses flex column so header/list/footer each take their role */
.district-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  width: 280px; height: 360px; background: #fff; border: 1px solid #ddd;
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); z-index: 150;
  flex-direction: column; overflow: hidden;
}
.district-picker.open .district-dropdown { display: flex; }

/* Sticky header: search + side tabs */
.dp-header { flex-shrink: 0; border-bottom: 1px solid #eee; }
.dp-top-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px 6px;
}
.dp-search-toggle {
  background: none; border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 6px 8px; cursor: pointer; color: #888; display: flex; align-items: center;
  flex-shrink: 0;
}
.dp-search-toggle:hover { border-color: #128C7E; color: #128C7E; }
.dp-search-toggle.active { border-color: #128C7E; color: #128C7E; }
.dp-search-wrap { display: none; flex: 1; min-width: 0; }
.dp-search-wrap.open { display: block; }
.dp-search-wrap input {
  width: 100%; padding: 6px 10px; border: 1px solid #e0e0e0; border-radius: 8px;
  font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box;
}
.dp-search-wrap input:focus { border-color: #128C7E; }

/* Side tabs */
.dp-tabs { display: flex; gap: 0; border-bottom: 2px solid #e0e0e0; }
.dp-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 6px; border: none; background: #fafafa; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit; color: #999;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.dp-tab.active { background: #fff; color: #128C7E; }
.dp-tab.active::after {
  content: ''; position: absolute; bottom: -2px; left: 10%; right: 10%;
  height: 3px; background: #128C7E; border-radius: 3px 3px 0 0;
}
.dp-tab:hover { background: #f5f5f5; }
.dp-tab input {
  width: 14px; height: 14px; accent-color: #128C7E; cursor: pointer; flex-shrink: 0;
}

/* Scrollable list */
.dp-list { flex: 1; overflow-y: auto; min-height: 0; }
.dp-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 13px; color: #333; cursor: pointer;
}
.dp-item:hover { background: #f5faf9; }
.dp-item.hidden { display: none; }
.dp-item label { cursor: pointer; flex: 1; }
.dp-item input {
  width: 15px; height: 15px; accent-color: #128C7E; cursor: pointer; flex-shrink: 0;
}

/* Sticky done bar at bottom */
.dp-done-bar {
  flex-shrink: 0; background: #fff;
  border-top: 1px solid #eee; padding: 8px 10px;
}
.dp-done-btn {
  width: 100%; padding: 8px; border: none; border-radius: 8px;
  background: #128C7E; color: #fff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.dp-done-btn:hover { background: #0e7a6e; }

/* Mobile: bottom sheet overlay so done button is always visible */
.dp-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 199;
}
@media (max-width: 600px) {
  .district-picker.open .dp-backdrop { display: block; }
  .district-dropdown {
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    top: auto !important;
    width: 100% !important; height: auto !important;
    max-height: 55vh;
    border-radius: 16px 16px 0 0;
    z-index: 200;
  }
}

/* Match select styling in hero + filter */
.hero-search .district-picker { flex: 1; min-width: 120px; }
.hero-search .district-picker-btn {
  padding: 10px 12px; border-radius: 10px; font-size: 15px;
  background: #fff; border-color: #ddd;
}
.filter-form .district-picker { width: 100%; }
.filter-form .district-picker-btn { border-radius: 8px; }
