/* DIRECT — direct1line.com public site. One stylesheet for every page (RTL + LTR). */
@font-face { font-family: Tajawal; font-weight: 400; font-display: swap; src: url(fonts/tajawal-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Tajawal; font-weight: 500; font-display: swap; src: url(fonts/tajawal-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Tajawal; font-weight: 700; font-display: swap; src: url(fonts/tajawal-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Tajawal; font-weight: 400; font-display: swap; src: url(fonts/tajawal-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-024F; }
@font-face { font-family: Tajawal; font-weight: 500; font-display: swap; src: url(fonts/tajawal-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-024F; }
@font-face { font-family: Tajawal; font-weight: 700; font-display: swap; src: url(fonts/tajawal-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-024F; }

:root {
  /* colours taken from the DIRECT logo */
  --gold: #E8BF50;
  --gold-600: #D9A82A;
  --gold-50: #FDF6E3;
  --blue: #1F3A5C;
  --blue-700: #172D48;
  --blue-500: #2C5384;
  --blue-50: #EDF2F8;
  --ink: #18212E;
  --muted: #5C6777;
  --line: #E3E7ED;
  --bg: #F6F7F9;
  --white: #FFFFFF;
  --ok: #1E8A4C;
  --ok-50: #E8F6EE;
  --bad: #C0392B;
  --bad-50: #FCECEA;
  --wa: #1FAF5A;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .12);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Tajawal, 'Segoe UI', Tahoma, Arial, sans-serif; font-size: 16px; line-height: 1.7;
  color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--blue); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(232, 191, 80, .7); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700; padding: .72em 1.35em; border-radius: 999px; line-height: 1.2; text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s, transform .1s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--blue-700); }
.btn-gold:hover { background: var(--gold-600); color: var(--blue-700); box-shadow: 0 6px 18px rgba(217, 168, 42, .35); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); color: #fff; }
.btn-line { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-line:hover { border-color: var(--gold); color: var(--blue); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a47; color: #fff; box-shadow: 0 6px 18px rgba(31, 175, 90, .3); }
.btn-lg { font-size: 1.08rem; padding: .9em 1.7em; }
.btn-block { width: 100%; }
.btn i { font-size: 1.05em; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--blue); color: #DCE5F0; font-size: .86rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .tb-info { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .tb-info span { display: inline-flex; gap: 6px; align-items: center; }
.topbar .tb-info i { color: var(--gold); }
.langs { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 3px; gap: 2px; }
.langs a { color: #DCE5F0; padding: 2px 11px; border-radius: 999px; font-weight: 500; font-size: .82rem; }
.langs a.on, .langs a:hover { background: var(--gold); color: var(--blue-700); }

.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); flex-shrink: 0; }
.brand img { width: 44px; height: auto; }
.brand b { display: block; font-size: 1.35rem; letter-spacing: .06em; line-height: 1; }
.brand small { display: block; font-size: .78rem; color: var(--gold-600); font-weight: 700; letter-spacing: .02em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink); font-weight: 500; padding: .55em .85em; border-radius: 999px; }
.nav a:hover { background: var(--gold-50); color: var(--blue); }
.nav a.on { color: var(--blue); background: var(--gold-50); box-shadow: inset 0 -2px 0 var(--gold); }
.nav .btn { margin-inline-start: 8px; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 42px; cursor: pointer; color: var(--blue); font-size: 1.2rem; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: .8em 1em; border-radius: 10px; }
  .nav .btn { margin: 8px 0 0; }
  .topbar .tb-info { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #FFFDF6 0%, #FDF3D6 46%, #EEF3F9 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset-inline-end: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; border: 2px solid rgba(31, 58, 92, .08); box-shadow: 0 0 0 46px rgba(232, 191, 80, .08), 0 0 0 110px rgba(31, 58, 92, .03); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding-block: 56px 64px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--blue); padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: 16px; }
.hero .eyebrow i { color: var(--gold-600); }
.hero h1 { color: var(--blue); }
.hero h1 em { font-style: normal; color: var(--gold-600); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.hero-points i { color: var(--ok); background: var(--ok-50); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 34px 40px; gap: 26px; } }

/* ---------- cards & forms ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 26px; }
.search-card { padding: 26px; border-top: 4px solid var(--gold); }
.search-card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.search-card h2 i { color: var(--gold-600); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; color: var(--blue); font-size: .93rem; margin-bottom: 6px; }
.field .hint { font-size: .83rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #D5DBE3; border-radius: var(--radius-sm);
  padding: .7em .9em; transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input[type=file] { padding: .55em; background: var(--bg); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px rgba(232, 191, 80, .22); }
.input-err { border-color: var(--bad) !important; }
.field-err { color: var(--bad); font-size: .85rem; margin-top: 5px; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; border: 1px solid; white-space: pre-line; }
.alert-ok { background: var(--ok-50); border-color: #BFE3CD; color: #13613A; }
.alert-bad { background: var(--bad-50); border-color: #F1C4BE; color: #8E271C; }
.alert-info { background: var(--blue-50); border-color: #CBD8E8; color: var(--blue); }

/* ---------- sections ---------- */
.section { padding-block: 56px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head .kicker { display: inline-block; color: var(--gold-600); font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.page-head { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-500) 100%); color: #fff; padding-block: 40px 44px; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; inset-inline-start: -60px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(232, 191, 80, .35); }
.page-head h1 { color: #fff; margin-bottom: .2em; }
.page-head p { color: #D7E1EE; margin: 0; max-width: 40em; }
.crumbs { font-size: .88rem; color: #BFD0E4; margin-bottom: 8px; }
.crumbs a { color: var(--gold); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { padding: 24px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-50); color: var(--gold-600); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- slideshow (ads) ---------- */
.slides { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-50); aspect-ratio: 16 / 7; box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 22px 18px; color: #fff; font-weight: 700; font-size: 1.1rem; background: linear-gradient(transparent, rgba(10, 20, 35, .72)); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: #C9D3E0; cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.dots button.on { width: 28px; background: var(--gold-600); }
@media (max-width: 600px) { .slides { aspect-ratio: 4 / 3; } }

/* ---------- property results ---------- */
.props { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.prop { overflow: hidden; display: flex; flex-direction: column; }
.prop-media { position: relative; aspect-ratio: 4 / 3; background: var(--blue-50); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.prop-media .count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(15, 25, 40, .72); color: #fff; font-size: .82rem; padding: 3px 10px; border-radius: 999px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--gold-50); color: #8A6400; border: 1px solid #F1DFA6; }
.badge-ok { background: var(--ok-50); color: var(--ok); border-color: #BFE3CD; }
.badge-bad { background: var(--bad-50); color: var(--bad); border-color: #F1C4BE; }
.badge-blue { background: var(--blue-50); color: var(--blue); border-color: #CBD8E8; }
.prop-media .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.prop-body { padding: 18px 20px 6px; flex: 1; }
.prop-body h3 { margin-bottom: .3em; }
.prop-body p { color: var(--muted); font-size: .95rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; padding: 0; list-style: none; }
.facts li { background: var(--bg); border-radius: 10px; padding: 9px 12px; font-size: .9rem; }
.facts li span { display: block; color: var(--muted); font-size: .78rem; }
.facts li b { color: var(--blue); }
.facts li.full { grid-column: 1 / -1; }
.prop-actions { display: flex; gap: 10px; padding: 14px 20px 20px; flex-wrap: wrap; }
.prop-actions .btn { flex: 1; }
.thumbs { display: flex; gap: 8px; padding: 0 20px; }
.thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumbs img:hover { border-color: var(--gold); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 14, 24, .92); display: none; align-items: center; justify-content: center; padding: 70px 16px 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-bar { position: absolute; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.lb-bar img { height: 34px; width: auto; box-shadow: none; filter: drop-shadow(0 0 1px #fff); }
.lb-btn { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lb-btn:hover { background: var(--gold); color: var(--blue-700); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 14px; }
.lb-next { inset-inline-end: 14px; }
[dir=rtl] .lb-prev i, [dir=rtl] .lb-next i { transform: scaleX(-1); }

/* ---------- empty / notice ---------- */
.notice-box { max-width: 720px; margin: 0 auto; text-align: center; padding: 36px 28px; }
.notice-box .big-ico { width: 74px; height: 74px; border-radius: 50%; background: var(--gold-50); color: var(--gold-600); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 14px; }
.notice-box .big-ico.ok { background: var(--ok-50); color: var(--ok); }

/* ---------- downloads ---------- */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.doc { display: flex; gap: 16px; align-items: center; padding: 20px; color: var(--ink); transition: border-color .2s, transform .2s; }
.doc:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.doc .ico { width: 52px; height: 60px; border-radius: 10px; background: var(--bad-50); color: var(--bad); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.doc b { display: block; color: var(--blue); }
.doc span { color: var(--muted); font-size: .88rem; }
.doc .dl { margin-inline-start: auto; color: var(--gold-600); font-size: 1.2rem; }

/* ---------- about ---------- */
.quote { font-size: 1.25rem; font-weight: 500; color: var(--blue); border-inline-start: 4px solid var(--gold); padding: 6px 20px; margin: 0 0 26px; background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
[dir=rtl] .quote { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list i { color: var(--gold-600); margin-top: 5px; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-700); color: #C7D3E2; margin-top: 60px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; padding-block: 46px 30px; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.site-footer a { color: #E6EDF6; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer li { display: flex; gap: 10px; align-items: center; }
.site-footer li i { color: var(--gold); width: 18px; text-align: center; }
.f-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.f-brand img { width: 46px; background: #fff; border-radius: 12px; padding: 5px; }
.f-brand b { color: #fff; font-size: 1.25rem; letter-spacing: .06em; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, color .2s; }
.social a:hover { background: var(--gold); color: var(--blue-700); }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.f-bottom .wrap { display: flex; justify-content: space-between; gap: 10px; padding-block: 16px; grid-template-columns: none; font-size: .88rem; flex-wrap: wrap; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- floating chat + cookie bar ---------- */
.chat-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1500; }
.chat-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--blue); color: #fff; font-size: 1.5rem; box-shadow: 0 10px 28px rgba(31, 58, 92, .4); display: inline-flex; align-items: center; justify-content: center; }
.chat-btn:hover { background: var(--gold); color: var(--blue-700); }
.chat-win { position: absolute; bottom: 74px; inset-inline-end: 0; width: 370px; height: 540px; max-height: calc(100vh - 120px); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; flex-direction: column; border: 1px solid var(--line); }
.chat-win.open { display: flex; }
.chat-head { background: var(--blue); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.chat-head b { display: flex; gap: 8px; align-items: center; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
.chat-win iframe { flex: 1; width: 100%; border: 0; }
@media (max-width: 480px) { .chat-win { width: calc(100vw - 28px); height: 70vh; } .chat-fab { bottom: 14px; inset-inline-end: 14px; } }

.cookie-bar { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 1600; max-width: 760px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 18px; display: none; gap: 16px; align-items: center; }
.cookie-bar.show { display: flex; }
.cookie-bar p { margin: 0; font-size: .92rem; color: var(--muted); flex: 1; }
.cookie-bar .acts { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-bar .acts .btn { flex: 1; } }

.toast { position: fixed; top: 20px; inset-inline-end: 20px; z-index: 3000; padding: 12px 18px; border-radius: 12px; color: #fff; font-weight: 500; box-shadow: var(--shadow-lg); }
.toast.ok { background: var(--ok); }
.toast.bad { background: var(--bad); }

/* intl-tel-input inside our inputs */
.iti { width: 100%; direction: ltr; }
.iti__country-list { text-align: left; }
.iti input[type=tel] { direction: ltr; }

@media print { .site-header, .topbar, .site-footer, .chat-fab, .cookie-bar { display: none !important; } }
