/* DYHIA eldjazair — public website */
:root {
  --navy: #0f2a3d; --navy-2: #163a54; --gold: #c8a24a; --gold-2: #e3c574; --sand: #f7f3ea;
  --text: #1d2733; --muted: #66727f; --line: #e5e9ee; --bg: #fff; --green: #1f8a5b; --red: #c0392b;
  --radius: 14px; --shadow: 0 6px 24px rgba(15, 42, 61, .08);
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
[dir="rtl"] { --font: Cairo, Tahoma, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }
a { color: var(--navy-2); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 12px; }
h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; }
.muted { color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; margin-top: 10px; }
.btn-block { width: 100%; }

/* Top line & header */
.topline { background: var(--navy); color: #b8c7d4; font-size: 13px; }
.topline .wrap { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topline a { color: #dfe8ef; text-decoration: none; margin-inline-start: 12px; }
.topline a.lang.on { color: var(--gold-2); font-weight: 700; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.logo-text b { color: var(--gold); font-weight: 600; }
.logo-light { color: #fff; }
.logo-light .logo-mark { background: var(--gold); color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.site-nav a:hover, .site-nav a.on { color: var(--navy); background: var(--sand); }
.site-nav a.btn { margin-inline-start: 8px; padding: 9px 14px; }
.site-nav a.btn:hover { background: var(--gold-2); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(120deg, rgba(15,42,61,.92), rgba(15,42,61,.7)), var(--hero-img, none) center/cover no-repeat, var(--navy); color: #fff; padding: 80px 0 110px; }
.hero h1 { color: #fff; max-width: 760px; font-size: clamp(30px, 5vw, 52px); }
.hero p { font-size: 18px; color: #dbe5ee; max-width: 640px; }
.hero .kicker { color: var(--gold-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.search-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-top: -60px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.search-box label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.search-box select, .search-box input { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.section-head a { font-weight: 700; text-decoration: none; }
.page-hero { background: var(--navy); color: #fff; padding: 46px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfdbe6; margin: 0; max-width: 720px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card-item:hover { transform: translateY(-3px); }
.card-media { display: block; position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9eef3, #dfe6ed); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-image { position: absolute; inset: 0; display: grid; place-items: center; color: #8a98a6; font-weight: 700; }
.tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--navy); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.tag-verified { top: auto; bottom: 12px; background: var(--green); }
.tag-status { inset-inline-start: auto; inset-inline-end: 12px; background: var(--red); }
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 17px; margin: 4px 0; }
.card-body h3 a { text-decoration: none; color: var(--navy); }
.price { color: var(--gold); font-weight: 800; font-size: 18px; }
.price small { color: var(--muted); font-weight: 500; }
.loc { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.facts { list-style: none; padding: 0; margin: auto 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.facts li { background: var(--sand); padding: 3px 9px; border-radius: 8px; font-size: 13px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.service { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); text-decoration: none; color: var(--text); display: block; }
.service:hover { border-color: var(--gold); }
.service h3 { margin-top: 0; font-size: 18px; }
.service p { color: var(--muted); margin: 0; }
.service .num { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .1em; }

.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.stats-band strong { display: block; font-size: 36px; color: var(--gold-2); }
.band { background: var(--navy); color: #fff; padding: 50px 0; }
.band h2 { color: #fff; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta p { color: #cfdbe6; margin: 0; }
.banner { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--navy) center/cover; color: #fff; padding: 40px; min-height: 180px; display: flex; flex-direction: column; justify-content: center; margin-bottom: 20px; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,42,61,.88), rgba(15,42,61,.35)); }
.banner > * { position: relative; }
.banner h3 { color: #fff; font-size: 24px; margin: 0 0 6px; }

/* Listing layout */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; }
.filter-panel h3 { margin-top: 0; font-size: 16px; }
.filter-panel .field { margin-bottom: 12px; }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.results-head select { padding: 8px; border-radius: 8px; border: 1px solid var(--line); font: inherit; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; grid-column: span 3; }
.field-full { grid-column: span 6; }
.field-third { grid-column: span 2; }
.field label { font-weight: 700; font-size: 14px; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd7e0; border-radius: 10px; font: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-2); border-color: var(--gold); }
.field .help { color: var(--muted); font-size: 12px; }
.field .error { color: var(--red); font-size: 13px; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.req { color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400 !important; }
fieldset { border: 0; margin: 0 0 22px; padding: 0; }
legend { font-weight: 800; color: var(--navy); font-size: 18px; margin-bottom: 12px; }
.form-note { background: var(--sand); padding: 14px; border-radius: 10px; font-size: 14px; color: var(--muted); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 10px; margin: 18px 0; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-inline-start: 20px; }
.alert-success { background: #e9f7f0; border-color: #bfe5d1; color: #14653f; }
.alert-error { background: #fdf0ee; border-color: #f3c7c1; color: #8f2a1f; }
.alert-info { background: #eaf2fb; border-color: #c4daf2; color: #1f4e82; }

/* Detail pages */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; padding: 30px 0 60px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #e9eef3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs img { width: 96px; height: 68px; object-fit: cover; border-radius: 8px; }
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 20px 0; }
.spec div { background: var(--sand); border-radius: 10px; padding: 12px; }
.spec span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.spec strong { font-size: 16px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.side-card .price { font-size: 26px; }
.side-card .field { margin-bottom: 10px; grid-column: auto; }
.prose { font-size: 16px; }
.prose p { margin: 0 0 14px; }
.breadcrumb { font-size: 13px; color: var(--muted); padding-top: 18px; }
.breadcrumb a { color: var(--muted); }
.doc-list { list-style: none; padding: 0; }
.doc-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.units { width: 100%; border-collapse: collapse; margin: 10px 0 20px; }
.units th, .units td { border-bottom: 1px solid var(--line); padding: 8px; text-align: start; }
.units th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.badge { padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; background: #eef1f5; }
.badge-available { background: #e3f4ec; color: var(--green); }
.badge-reserved { background: #fff3df; color: #a8650f; }
.badge-sold { background: #fdecea; color: var(--red); }

.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.empty-state { text-align: center; padding: 50px 20px; background: var(--sand); border-radius: var(--radius); color: var(--muted); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 13px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; }

/* Footer */
.site-footer { background: #0b1f2d; color: #b8c7d4; padding: 50px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { display: block; color: #b8c7d4; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer a.btn { display: inline-flex; }
.footer-promise { color: #dfe8ef; font-size: 15px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #1d3a50; margin-top: 30px; padding: 16px 20px; font-size: 13px; }
.wa-float { position: fixed; bottom: 18px; inset-inline-end: 18px; background: #25d366; color: #fff; padding: 12px 16px; border-radius: 30px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); z-index: 40; }

@media (max-width: 1000px) {
  .search-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing, .detail { grid-template-columns: 1fr; }
  .filter-panel, .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); }
  body.nav-open .site-nav { display: flex; }
  .site-nav a.btn { margin: 8px 0 0; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .field, .field-full, .field-third { grid-column: span 1; }
  .search-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 90px; }
  .topline span:first-child { display: none; }
}

/* ---- Public accounts ("My account") ---- */
.narrow { max-width: 620px; }
.alert-warning { background: #fff7e6; border-color: #f4d9a6; color: #7a4f06; }
.account { padding: 28px 0 60px; background: var(--sand); min-height: 60vh; }
.account-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 12px; }
.account-who { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.account-who small { display: block; color: var(--muted); font-size: 12px; }
.account-who small.ok { color: var(--green); font-weight: 700; }
.account-who small.warn { color: #a8650f; font-weight: 700; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-nav { display: flex; flex-direction: column; }
.account-nav a, .account-nav .linklike { padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; }
.account-nav a:hover, .account-nav a.on { background: var(--sand); color: var(--navy); }
.account-nav em { font-style: normal; background: var(--red); color: #fff; border-radius: 20px; padding: 0 7px; font-size: 12px; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; width: 100%; text-align: start; color: var(--red) !important; }
.account-main { min-width: 0; }
.account-title { margin: 0 0 16px; font-size: 26px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.panel h2 { font-size: 18px; margin: 0 0 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--text); }
.kpi b { display: block; font-size: 26px; color: var(--navy); }
.kpi span { color: var(--muted); font-size: 13px; }
.tabs-line { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-line a { padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text); }
.tabs-line a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs-line em { font-style: normal; opacity: .7; }
.list-table { width: 100%; border-collapse: collapse; background: #fff; }
.list-table th, .list-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; font-size: 14px; }
.list-table th { font-size: 12px; text-transform: uppercase; color: var(--muted); background: #fafbfc; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.st { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: #eef1f5; color: #44505c; }
.st-published, .st-active, .st-paid, .st-verified { background: #e3f4ec; color: var(--green); }
.st-pending, .st-under_review, .st-approved, .st-processing, .st-awaiting_payment, .st-pending_fulfilment { background: #e6effa; color: #1f4e82; }
.st-needs_changes, .st-expiring { background: #fff3df; color: #a8650f; }
.st-rejected, .st-failed, .st-cancelled, .st-suspended, .st-expired { background: #fdecea; color: var(--red); }
.st-refunded, .st-partially_refunded { background: #efe9fb; color: #5b3b9b; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: #eef1f5; display: block; }
.inline { display: inline; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: #fff; border: 1px solid #f0c9c4; color: var(--red); }
.note-box { background: #fff7e6; border: 1px solid #f4d9a6; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.img-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.img-grid img { width: 100%; height: 100px; object-fit: cover; display: block; }
.img-grid figcaption { padding: 6px; display: flex; gap: 6px; justify-content: space-between; font-size: 12px; }
.img-grid figure.main { outline: 3px solid var(--gold); }
.otp-input { font-size: 28px !important; letter-spacing: 10px; text-align: center; max-width: 260px; }
.test-banner { background: #7a1f1f; color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; margin-bottom: 14px; }
.invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.invoice table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.invoice th, .invoice td { border-bottom: 1px solid var(--line); padding: 8px; text-align: start; }
.invoice .total td { font-weight: 800; font-size: 17px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.plan-card.current { outline: 3px solid var(--gold); }
.plan-card ul { padding-inline-start: 18px; font-size: 14px; }
@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .account-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
}
@media print {
  .topline, .site-header, .site-footer, .account-side, .no-print, .wa-float { display: none !important; }
  .account { background: #fff; padding: 0; }
  .account-grid { display: block; }
}
.tag-featured { top: 12px; inset-inline-start: auto; inset-inline-end: 12px; background: var(--gold); color: var(--navy); }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; background: #f5f7fa; }
.msg-list li.me { background: #fbf6e8; }
.msg-list li.unread { font-weight: 700; }
details.optional { margin: 14px 0; }
details.optional summary { cursor: pointer; font-weight: 700; color: var(--navy-2); margin-bottom: 10px; }
