:root {
  --navy: #082f49;
  --blue: #075985;
  --cyan: #0891b2;
  --cyan-light: #cffafe;
  --sand: #f8f5ef;
  --amber: #f59e0b;
  --ink: #132b3a;
  --muted: #64748b;
  --line: #dbe5ea;
  --white: #ffffff;
  --danger: #dc2626;
  --green: #059669;
  --shadow: 0 18px 48px rgba(8, 47, 73, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7fafb;
  font-family: "Tajawal", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 999; padding: 10px 16px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(8, 47, 73, .08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: var(--cyan); border-radius: 15px; background: linear-gradient(145deg, #ecfeff, #e0f2fe); }
.brand-mark svg { width: 34px; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--navy); font-size: 1.08rem; line-height: 1.2; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.main-nav { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.main-nav > a:not(.button) { color: #334155; transition: color .2s; }
.main-nav > a:not(.button):hover { color: var(--cyan); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 9px; background: var(--navy); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 12px 24px rgba(8,145,178,.22); }
.button-dark { color: #fff; background: var(--navy); }
.button-light { color: var(--blue); border: 1px solid #bfdbfe; background: #fff; }
.button-whatsapp { color: #fff; background: #16a34a; }
.button-small { min-height: 42px; padding: 8px 17px; border-radius: 12px; }
.button-block { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(34,211,238,.22), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(245,158,11,.13), transparent 23%),
    linear-gradient(135deg, #082f49 0%, #075985 58%, #0e7490 100%);
}
.hero::after { content: ""; position: absolute; inset: auto -5% -150px; height: 260px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: rotate(-5deg); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; color: #a5f3fc; border: 1px solid rgba(165,243,252,.25); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .9rem; font-weight: 700; }
.hero h1 { max-width: 670px; margin: 18px 0 14px; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: 1.18; letter-spacing: -.04em; }
.hero h1 span { color: #67e8f9; }
.hero-text { max-width: 610px; margin: 0 0 28px; color: #d8edf5; font-size: 1.08rem; }
.search-box { display: grid; grid-template-columns: 1fr 190px auto; gap: 10px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 22px 55px rgba(0,0,0,.22); }
.search-box label { position: relative; }
.search-box input, .search-box select { width: 100%; height: 52px; color: var(--ink); border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; outline: none; padding: 0 16px; }
.search-box input:focus, .search-box select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(8,145,178,.12); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: #c8e6ef; font-size: .88rem; }
.hero-visual { position: relative; min-height: 400px; display: grid; place-items: center; }
.city-card { width: min(390px, 100%); padding: 28px; color: var(--ink); border: 1px solid rgba(255,255,255,.5); border-radius: 32px; background: rgba(255,255,255,.94); box-shadow: 0 34px 75px rgba(0,0,0,.25); transform: rotate(-2deg); }
.city-scene { height: 160px; position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(#bff3ff 0 54%, #e8d9b7 54%); }
.city-scene::before { content:""; position:absolute; inset:auto 0 0; height:55%; background: linear-gradient(110deg, transparent 0 15%, #0e7490 15% 22%, transparent 22% 31%, #075985 31% 37%, transparent 37% 54%, #0891b2 54% 62%, transparent 62% 71%, #0369a1 71% 80%, transparent 80%); opacity:.85; }
.city-scene::after { content:""; position:absolute; width:85px; height:85px; top:22px; left:30px; border:4px solid rgba(255,255,255,.75); border-radius:50%; }
.city-card h2 { margin: 18px 0 3px; font-size: 1.35rem; }
.city-card p { margin: 0; color: var(--muted); }
.floating-badge { position: absolute; padding: 12px 16px; border-radius: 15px; background: #fff; box-shadow: var(--shadow); font-weight: 700; }
.badge-one { top: 48px; right: -8px; }
.badge-two { bottom: 46px; left: -5px; color: var(--green); }

.stats { position: relative; z-index: 2; margin-top: -26px; }
.stats-inner { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.stat { padding: 20px 28px; border-left: 1px solid var(--line); }
.stat:last-child { border-left: 0; }
.stat strong { display: block; color: var(--navy); font-size: 1.35rem; }
.stat span { color: var(--muted); font-size: .9rem; }

.section { padding: 78px 0; }
.section-soft { background: var(--sand); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-title { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; }
.section-subtitle { margin: 8px 0 0; color: var(--muted); }
.text-link { color: var(--blue); font-weight: 700; }

.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-card { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 10px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-5px); border-color: #67e8f9; box-shadow: var(--shadow); }
.category-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: #ecfeff; font-size: 1.8rem; }
.category-card strong { color: var(--navy); }
.category-card small { color: var(--muted); }

.ads-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ad-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.ad-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ad-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #e7eef2; }
.ad-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ad-card:hover .ad-media img { transform: scale(1.035); }
.ad-tag { position: absolute; top: 14px; right: 14px; padding: 6px 11px; color: var(--navy); border-radius: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 700; }
.favorite { position: absolute; top: 13px; left: 13px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; font-size: 1.15rem; }
.ad-content { padding: 18px; }
.ad-content h3 { margin: 0 0 7px; color: var(--navy); font-size: 1.08rem; }
.price { margin: 0; color: var(--blue); font-size: 1.25rem; font-weight: 800; }
.ad-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 13px; color: var(--muted); border-top: 1px solid #eef2f4; font-size: .82rem; }

.trust-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
.trust-panel { padding: 36px; color: #fff; border-radius: 28px; background: linear-gradient(145deg, var(--navy), var(--blue)); box-shadow: var(--shadow); }
.trust-panel .section-title { color: #fff; }
.trust-panel p { color: #cce6ef; }
.trust-list { display: grid; gap: 14px; margin-top: 25px; }
.trust-item { display: flex; gap: 13px; align-items: flex-start; }
.trust-item span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; color: var(--navy); border-radius: 10px; background: #a5f3fc; font-weight: 800; }
.trust-item strong { display: block; }
.trust-item small { color: #cce6ef; }
.cta-card { padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: #fff; }
.cta-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 2rem; }
.cta-card p { color: var(--muted); }
.cta-actions { display: flex; gap: 12px; margin-top: 22px; }

.page-hero { padding: 54px 0; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.page-hero .breadcrumbs { margin-bottom: 12px; color: #bae6fd; font-size: .9rem; }
.page-hero h1 { margin: 0; font-size: clamp(2rem,4vw,3.2rem); line-height: 1.25; }
.page-hero p { max-width: 650px; margin: 10px 0 0; color: #d7edf5; }

.filter-bar { display: grid; grid-template-columns: 1fr 180px 180px auto; gap: 10px; margin: -28px auto 38px; position: relative; z-index: 2; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-weight: 700; }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select {
  width: 100%; min-height: 50px; padding: 11px 14px; color: var(--ink); border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(8,145,178,.11); }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 18px; }
.span-2 { grid-column: 1 / -1; }
.form-shell { width: min(850px, calc(100% - 32px)); margin: 44px auto 80px; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.form-shell-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-shell-head h2 { margin: 0; color: var(--navy); font-size: 1.6rem; }
.form-shell-head p { margin: 6px 0 0; color: var(--muted); }
.upload-box { padding: 28px; text-align: center; border: 2px dashed #a5c7d3; border-radius: 16px; background: #f8fcfd; }
.upload-box input { margin-top: 12px; }
.form-note { display: flex; gap: 10px; padding: 14px; color: #854d0e; border-radius: 12px; background: #fef9c3; font-size: .9rem; }

.details-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; margin: 44px auto 80px; }
.gallery-card, .details-card { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.gallery-main { aspect-ratio: 16/11; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.details-card { padding: 28px; }
.details-card h1 { margin: 7px 0 8px; color: var(--navy); line-height: 1.35; }
.details-card .price { font-size: 1.8rem; }
.details-description { margin: 23px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 22px; }
.fact { padding: 13px; border-radius: 12px; background: #f4f8fa; }
.fact small, .fact strong { display: block; }
.fact small { color: var(--muted); }

.auth-layout { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; width: min(970px, calc(100% - 32px)); margin: 55px auto 85px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.auth-intro { padding: 48px 36px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--blue)); }
.auth-intro h1 { margin: 20px 0 10px; font-size: 2.2rem; line-height: 1.3; }
.auth-intro p { color: #d2eaf2; }
.auth-benefits { display: grid; gap: 12px; margin-top: 28px; }
.auth-benefits div { display: flex; gap: 9px; align-items: center; }
.auth-forms { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; padding: 38px 32px; }
.auth-forms h2 { margin: 0 0 20px; color: var(--navy); }
.auth-divider { border-right: 1px solid var(--line); padding-right: 30px; }

.dashboard-grid { display: grid; grid-template-columns: 250px 1fr; gap: 24px; margin: 40px auto 80px; }
.dashboard-side, .dashboard-main { border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.dashboard-side { height: max-content; padding: 24px; }
.profile-avatar { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 12px; color: #fff; border-radius: 22px; background: linear-gradient(135deg,var(--cyan),var(--blue)); font-size: 1.7rem; font-weight: 800; }
.dashboard-side h2 { margin: 0; color: var(--navy); }
.dashboard-side p { margin: 2px 0 20px; color: var(--muted); font-size: .9rem; }
.side-links { display: grid; gap: 7px; }
.side-links a { padding: 10px 12px; border-radius: 10px; }
.side-links a.active { color: var(--blue); background: #ecfeff; font-weight: 700; }
.dashboard-main { padding: 28px; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.dashboard-top h1 { margin: 0; color: var(--navy); }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin: 25px 0; }
.mini-stat { padding: 18px; border-radius: 16px; background: #f2f8fa; }
.mini-stat strong { display: block; color: var(--navy); font-size: 1.5rem; }
.empty-state { padding: 55px 20px; text-align: center; border: 1px dashed #b8ccd5; border-radius: 18px; background: #fbfdfd; }
.empty-state span { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 15px; border-radius: 22px; background: #ecfeff; font-size: 2rem; }
.empty-state h2 { margin: 0; color: var(--navy); }
.empty-state p { color: var(--muted); }

.site-footer { padding: 54px 0 20px; color: #d6e7ec; background: #06283c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 55px; }
.brand-light .brand-mark { color: #67e8f9; background: rgba(255,255,255,.08); }
.brand-light strong { color: #fff; }
.brand-light small { color: #a9cbd6; }
.footer-copy { max-width: 430px; color: #a9cbd6; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: 1rem; }
.site-footer .footer-grid > div > a:not(.brand) { display: block; width: max-content; margin: 7px 0; color: #bcd5dd; }
.site-footer .footer-grid > div > a:hover { color: #67e8f9; }
.site-footer .footer-grid > div > p { color: #a9cbd6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 38px; padding-top: 20px; color: #86aeba; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .ads-grid { grid-template-columns: repeat(2,1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar > :first-child { grid-column: 1/-1; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { padding: 34px; }
}
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; inset: 76px 16px auto; display: none; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .hero { padding-top: 55px; }
  .hero-grid, .trust-grid, .details-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
  .city-card { transform: none; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1160px); }
  .brand small { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .hero { padding: 45px 0 55px; }
  .hero h1 { font-size: 2.35rem; }
  .search-box { grid-template-columns: 1fr; }
  .hero-visual { min-height: 310px; }
  .floating-badge { font-size: .8rem; }
  .badge-one { right: 2px; }
  .badge-two { left: 2px; }
  .section { padding: 56px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .ads-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .filter-bar { grid-template-columns: 1fr; margin-top: -22px; }
  .filter-bar > :first-child { grid-column: auto; }
  .form-shell { padding: 22px 18px; }
  .form-grid, .facts, .auth-forms { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .auth-forms { padding: 28px 20px; }
  .auth-divider { padding: 25px 0 0; border-top: 1px solid var(--line); border-right: 0; }
  .details-card { padding: 21px; }
  .dashboard-main { padding: 20px 16px; }
  .dashboard-top { align-items: flex-start; flex-direction: column; }
  .mini-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
