/* «بوابة مدينة العين» — بوابة رسمية بنسق khabar.ae للأخبار، بألوان العين: أخضر الواحة وتراب جبل حفيت وذهب الرمل.
   كل الاتجاهات منطقية (inline-start/end) فتعمل الصفحة بالعربية والإنجليزية معاً. */
:root {
  --fs: 1;
  --bg: #fbfaf7; --card: #fff; --ink: #18211d; --muted: #5d6862; --line: #e6e2d9; --soft: #f3efe6;
  --green: #1c5c39; --green2: #2e8b57; --clay: #b5652d; --gold: #c99a3e; --sand: #f4ead6;
  --top: #13201a; --link: #1c5c39; --wa: #1f9d55;
  --r: 14px; --shadow: 0 6px 22px rgba(24, 33, 29, .08);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1512; --card: #18201c; --ink: #e9ede9; --muted: #a3ada7; --line: #2b3530; --soft: #1f2924;
  --green: #5fc48c; --green2: #4fb07b; --clay: #e08a52; --sand: #2a2a22; --top: #070b09; --link: #7fd4a4; --shadow: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1512; --card: #18201c; --ink: #e9ede9; --muted: #a3ada7; --line: #2b3530; --soft: #1f2924;
    --green: #5fc48c; --green2: #4fb07b; --clay: #e08a52; --sand: #2a2a22; --top: #070b09; --link: #7fd4a4; --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { font-size: calc(16px * var(--fs)); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: 'Readex Pro', system-ui, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gl { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.nojs { padding: 20px; text-align: center; }
[hidden] { display: none !important; }

/* ---------- الشريط العلوي والترويسة ---------- */
.topbar { background: var(--top); color: #dfe7e2; font-size: .8rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 10px; }
.topbar__tools { display: flex; align-items: center; gap: 12px; }
.hublink { color: #bfe6cf; }
.ts { display: inline-flex; gap: 2px; }
.ts button, .darkbtn { background: transparent; border: 0; color: #dfe7e2; padding: 4px 7px; border-radius: 5px; font-weight: 600; font-size: .8rem; line-height: 1; }
.ts button.is-on { background: rgba(255, 255, 255, .16); }
.darkbtn .ic { width: 15px; height: 15px; }
.mast { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.mast__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__txt b { font-size: 1.3rem; color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__txt small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mast__acts { display: flex; gap: 8px; flex: none; }
.hbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 12px; font-size: .9rem; font-weight: 600; }
.hbtn:hover { border-color: var(--green); color: var(--green); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 1200px; margin-inline: auto; padding-inline: 10px; border-top: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.nav__a { position: relative; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 11px 12px; font-weight: 600; font-size: .95rem; color: var(--ink); border-bottom: 3px solid transparent; }
.nav__a .ic { color: var(--clay); }
.nav__a:hover { color: var(--green); }
.nav__a.is-on { border-bottom-color: var(--green); color: var(--green); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--clay); color: #fff; font-size: .7rem; font-style: normal; font-weight: 700; }
.bnav { display: none; }
@media (max-width: 760px) {
  .tabs { display: none; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__txt b { font-size: 1.1rem; }
  .hbtn span { display: none; }
  .hbtn { padding: 8px; }
  #langBtn span { display: inline; }
  .hublink { display: none; }
  .bnav { display: flex; position: fixed; inset: auto 0 0 0; z-index: 950; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bnav .nav__a { flex: 1; flex-direction: column; gap: 2px; font-size: .7rem; padding: 7px 2px 6px; border-bottom: 0; border-top: 3px solid transparent; }
  .bnav .nav__a.is-on { border-top-color: var(--green); }
  .bnav .nav__a .ic { width: 22px; height: 22px; }
  .bnav .badge { position: absolute; top: 3px; inset-inline-end: 22%; }
  body { padding-bottom: 70px; }
}
.view { min-height: 60vh; outline: none; padding-bottom: 30px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; padding: 18px 0 24px; }
.foot p { margin: 4px 0; }

/* ---------- عناصر عامة ---------- */
.phead { padding: 22px 0 8px; }
.phead h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.3; }
.phead h1 .ic { color: var(--clay); width: .9em; height: .9em; }
.phead p { margin: 6px 0 0; color: var(--muted); }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.sechead h2 { margin: 0; padding-bottom: 6px; font-size: 1.35rem; position: relative; }
.sechead h2::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -2px; width: 56px; height: 4px; background: var(--clay); }
.sechead__more { color: var(--link); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.block { margin-top: 34px; }
h2.sub { font-size: 1.2rem; margin: 26px 0 12px; }
.lead { color: var(--muted); font-size: 1.05rem; }
.note { color: var(--muted); font-size: .88rem; }
.note--warn { background: #fff4e5; color: #7a4b00; padding: 10px 14px; border-radius: 10px; }
.count { color: var(--muted); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0; }
.actions--start { justify-content: flex-start; }
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--card); transition: border-color .15s, background .15s, transform .1s; }
.btn:hover { border-color: var(--green); color: var(--green); }
.btn:active, .cta:active { transform: scale(.98); }
.btn.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.btn--sm { min-height: 38px; padding: 6px 12px; font-size: .9rem; }
.btn--ghost { background: transparent; }
.btn--light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--green); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn--wa:hover { color: #fff; filter: brightness(1.08); }
.cta { background: var(--clay); border-color: var(--clay); color: #fff; }
.cta:hover { filter: brightness(1.07); }
.cta:disabled { opacity: .45; cursor: not-allowed; }
.is-busy { opacity: .6; pointer-events: none; }
.iconbtn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); }
.empty { text-align: center; padding: 36px 16px; }
.empty__ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--clay); }
.empty__ic .ic { width: 32px; height: 32px; }
.empty h2 { margin: 12px 0 4px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.noimg { display: grid !important; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--green)) 22%, var(--card)), color-mix(in srgb, var(--c, var(--green)) 8%, var(--card))); color: var(--c, var(--green)); }
.noimg .gl { width: 42%; height: 42%; }
.noimg .ic { width: 34%; height: 34%; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .85rem; padding-top: 18px; }
.crumbs a:hover { color: var(--green); }

/* ---------- الرئيسية ---------- */
.hero { position: relative; min-height: clamp(320px, 52vh, 520px); display: grid; align-items: end; background: var(--green); color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__credit { position: absolute; z-index: 2; top: 8px; inset-inline-end: 10px; color: rgba(255, 255, 255, .7); font-size: .68rem; }
.hero__img { object-position: center center; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 14, 0) 0%, rgba(10, 20, 14, .05) 40%, rgba(10, 20, 14, .72) 100%); }
.hero__copy { position: relative; padding-block: 40px 34px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-size: .85rem; backdrop-filter: blur(4px); }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1.1; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero__sub { text-shadow: 0 1px 10px rgba(0, 0, 0, .7); max-width: 640px; font-size: clamp(1rem, 2.4vw, 1.2rem); margin: 10px 0 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* الأخبار بنسق khabar.ae: خبر رئيسي كبير وقائمة جانبية */
.ngrid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.nlead__img { display: block; border-radius: 8px; overflow: hidden; background: var(--soft); }
.nlead__img img, .nlead__img .noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nlead__body h2 { margin: 6px 0 8px; font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.35; }
.nlead__body h2 a:hover, .nrow h3 a:hover { color: var(--green); }
.nlead__body p:last-child { color: var(--muted); margin: 0; }
.nside { display: flex; flex-direction: column; }
.nrow { display: grid; grid-template-columns: 1fr 120px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nrow:first-child { padding-top: 0; }
.nrow__img { order: 2; border-radius: 6px; overflow: hidden; background: var(--soft); align-self: start; }
.nrow__img img, .nrow__img .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nrow__body { min-width: 0; }
.nrow h3 { margin: 4px 0 0; font-size: 1.04rem; line-height: 1.5; }
.nrow p:last-child:not(.nmeta) { color: var(--muted); margin: 6px 0 0; font-size: .93rem; }
.nlist .nrow { grid-template-columns: 1fr 180px; }
.nlist .nrow h3 { font-size: 1.15rem; }
.nmeta { margin: 0 0 4px; color: var(--muted); font-size: .8rem; }
.nmeta b { color: var(--ink); font-weight: 600; }
.ncat { display: inline-block; font-weight: 700; font-size: .82rem; color: var(--c, var(--clay)); }
.ncat--pill { background: var(--c, var(--clay)); color: #fff; padding: 3px 12px; border-radius: 99px; margin-top: 14px; }
.ncat--hazza { --c: #8a6d1e; } .ncat--municipality { --c: #2f6fd0; } .ncat--culture { --c: #b5652d; } .ncat--education { --c: #6b4fbb; }
.ncat--health { --c: #0f8a8a; } .ncat--sport { --c: #c2185b; } .ncat--environment { --c: #2e8b57; } .ncat--economy { --c: #d38a12; } .ncat--events { --c: #e0603a; }
:root[data-theme="dark"] .ncat--hazza { --c: #e0bd5c; }
.ntools { display: flex; gap: 10px; margin: 8px 0 4px; }
.ncats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.ncat-btn { white-space: nowrap; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.ncat-btn::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--c, var(--ink)); }
.ncat-btn.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ncat--all { --c: var(--green); }

/* صفحة الخبر */
.art { max-width: 820px; }
.art__title { font-size: clamp(1.6rem, 4.4vw, 2.6rem); line-height: 1.35; margin: 6px 0 14px; }
.art__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.share { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.sbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.sbtn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.sbtn--x { background: #111; border-color: #111; color: #fff; }
.sbtn--fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.sbtn--tg { background: #2aa3df; border-color: #2aa3df; color: #fff; }
.art__fig { margin: 0 0 18px; }
.art__fig img { width: 100%; border-radius: 8px; }
.art__fig figcaption, .credit { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.art__body { font-size: 1.13rem; line-height: 2; }
.art__body p { margin: 0 0 16px; }
.art__src { font-weight: 600; }
.art__src a { color: var(--link); display: inline-flex; align-items: center; gap: 4px; }
.art__src .ic { width: .9em; height: .9em; }
.art__note { color: var(--muted); font-size: .84rem; border-inline-start: 3px solid var(--gold); padding-inline-start: 10px; }

/* رؤية العين */
.vteaser__card { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, var(--green), #13402a); color: #f6f1e4; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.vteaser__ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--gold); }
.vteaser__ic .ic { width: 28px; height: 28px; }
.vteaser__k { margin: 0; color: var(--gold); font-weight: 700; }
.vteaser blockquote { margin: 6px 0 10px; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.7; font-weight: 600; }
.vteaser__by { margin: 0; font-size: .85rem; opacity: .85; }
.vteaser__more { display: inline-block; margin-top: 10px; color: var(--gold); font-weight: 700; }
.vhero { background: linear-gradient(135deg, var(--green), #10331f); color: #f6f1e4; padding: 40px 0 34px; text-align: center; }
.vhero__ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--gold); }
.vhero__ic .ic { width: 32px; height: 32px; }
.vhero h1 { margin: 10px 0 4px; font-size: clamp(2rem, 6vw, 3rem); }
.vhero__by { margin: 0 auto; max-width: 720px; color: var(--gold); font-weight: 600; }
.vhero__intro { margin: 10px auto 0; max-width: 640px; opacity: .85; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 26px; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.quote blockquote { margin: 0 0 14px; font-size: 1.15rem; line-height: 1.95; font-weight: 600; }
.quote blockquote::before { content: '«'; color: var(--clay); } .quote blockquote::after { content: '»'; color: var(--clay); }
:root[dir="ltr"] .quote blockquote:not([lang="ar"])::before { content: '“'; } :root[dir="ltr"] .quote blockquote:not([lang="ar"])::after { content: '”'; }
.quote figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .84rem; }
.quote figcaption a { color: var(--link); display: inline-flex; align-items: center; gap: 4px; }
.quote figcaption .ic { width: .9em; height: .9em; }

/* كلمة سموه */
.vhero__in { display: flex; align-items: center; justify-content: center; gap: 26px; text-align: start; }
.vhero__img { width: 170px; height: 185px; object-fit: cover; object-position: top; border-radius: 16px; border: 3px solid var(--gold); flex: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.hhword { max-width: 860px; margin: 28px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; box-shadow: var(--shadow); border-inline-start: 5px solid var(--gold); }
.hhword h2 { margin: 0 0 12px; color: var(--green); }
.hhword__body p { font-size: 1.08rem; line-height: 2; margin: 0 0 14px; }
.hhword__src { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.hhword__src a { color: var(--link); display: inline-flex; align-items: center; gap: 4px; }
.vsub { text-align: center; margin-top: 36px; }
@media (max-width: 640px) { .vhero__in { flex-direction: column; text-align: center; } .vhero__img { width: 140px; height: 152px; } .hhword { padding: 20px; } }

/* الفعاليات */
.erow, .egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ec { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.ec:hover { transform: translateY(-3px); }
.ec__link { position: absolute; inset: 0; z-index: 2; }
.ec__img { position: relative; }
.ec__img img, .ec__img .noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ec__state { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--clay); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.ec--now .ec__state, .ec__state--now { background: #c2185b; }
.ec--past .ec__state, .ec__state--past { background: #6b7570; }
.ec--tba .ec__state, .ec__state--tba { background: #8a6d4b; }
.ec__state--upcoming { background: var(--clay); }
.evd .ec__state { position: static; display: inline-block; }
.ec--past { opacity: .85; }
.ec__body { padding: 12px 14px 14px; }
.ec__when { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--clay); font-weight: 700; font-size: .88rem; }
.ec h3 { margin: 4px 0 4px; font-size: 1.08rem; line-height: 1.45; }
.ec__where { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .85rem; }
.evd { max-width: 980px; }
.evd__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 14px; align-items: start; }
.evd__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.evd__head h1 { margin: 8px 0; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.35; }
.hl { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hl li { display: flex; gap: 8px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.hl .ic { color: var(--green2); margin-top: 4px; }
.srcs { color: var(--muted); font-size: .82rem; }
.srcs a { color: var(--link); }

/* الفئات والبطاقات */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.catcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 10px; transition: border-color .15s, transform .15s; }
.catcard:hover { border-color: var(--c); transform: translateY(-2px); }
.catcard__ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); padding: 12px; }
.catcard b { font-size: 1rem; }
.catcard--ph { position: relative; padding: 0; overflow: hidden; aspect-ratio: 4 / 3; justify-content: flex-end; color: #fff; border: 0; }
.catcard--ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.catcard--ph:hover img { transform: scale(1.05); }
.catcard--ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05) 60%); }
.catcard__txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px; width: 100%; }
.catcard--ph b { font-size: 1.05rem; color: #fff; }
.catcard--ph small { color: rgba(255,255,255,.88); }
.catcard small { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.tile:hover { border-color: var(--green); }
.tile__ic { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sand); color: var(--clay); }
.tile__ic .ic { width: 24px; height: 24px; }
.tile small { color: var(--muted); }
.tile__img { grid-row: span 2; width: 64px; height: 64px; }
.deck--row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.deck--row > * { scroll-snap-align: start; }
.deck, .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.pc:hover { transform: translateY(-3px); border-color: var(--c); }
.pc__link { position: absolute; inset: 0; z-index: 2; }
.pc__art { position: relative; background: var(--soft); }
.pc__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pc__cat { position: absolute; bottom: 8px; inset-inline-start: 8px; background: var(--c); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.pc__rank { position: absolute; top: 8px; inset-inline-start: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; }
.tag { position: absolute; top: 8px; inset-inline-end: 50px; background: #fff4e5; color: #7a4b00; font-size: .74rem; padding: 3px 9px; border-radius: 99px; }
.tag--closed { background: #fde8e8; color: #8a1c1c; inset-inline-end: auto; inset-inline-start: 8px; top: 8px; }
.fav { position: absolute; z-index: 3; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #3b4440; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.fav.is-on { background: var(--clay); color: #fff; }
.fav.is-on .ic, .btn.is-on .ic { fill: currentColor; }
.pc__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.pc__name { margin: 0; font-size: 1.06rem; line-height: 1.45; }
.pc__where { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--muted); font-size: .85rem; }
.pc__where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 700; white-space: nowrap; }
.chips, .why { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 99px; padding: 2px 10px; font-size: .78rem; color: var(--muted); }
.chip--free { background: #e3f4e9; color: #19693c; }
:root[data-theme="dark"] .chip--free { background: #1d3a29; color: #8fe0b1; }
.why span { display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--c) 12%, var(--card)); border-radius: 99px; padding: 2px 10px; font-size: .78rem; }
.why .ic { color: var(--green2); width: 14px; height: 14px; }
.pc--big .pc__img { aspect-ratio: 16 / 9; }
.pc__sum { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* التصفح */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 0 16px; margin: 10px 0; }
.search:focus-within { border-color: var(--green); }
.search input { flex: 1; border: 0; background: transparent; padding: 12px 0; outline: none; min-width: 0; }
.search--sm { flex: 1; max-width: 460px; margin: 0; }
.catpills, .intpills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 10px; }
.intpills { flex-wrap: wrap; overflow: visible; }
.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }
.pill.is-on { background: var(--c, var(--green)); border-color: var(--c, var(--green)); color: #fff; }
.pill__gl { width: 20px; height: 20px; color: var(--c); }
.pill.is-on .pill__gl { color: #fff; }
.pill .iart { width: 20px; height: 20px; }
.pill--dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pill.is-on.pill--dot i { background: #fff; }
.pill.is-static { cursor: default; font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 7px 14px; font-weight: 600; font-size: .88rem; }
.seg button.is-on { background: var(--green); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: .88rem; }
.toggle.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.more { margin: 10px 0; }
.more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; padding: 6px 0; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 14px; }
.bar p { margin: 0; color: var(--muted); font-weight: 600; }
.sort select { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 10px; }

/* بطاقة المكان */
.sheet { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(8, 14, 11, .55); opacity: 0; transition: opacity .25s; }
.sheet__card { position: relative; width: min(760px, 100%); max-height: min(92vh, 100%); overflow-y: auto; background: var(--bg); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translateY(24px); opacity: 0; transition: transform .25s, opacity .25s; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__card { transform: none; opacity: 1; }
@media (max-width: 760px) { .sheet { place-items: end center; } .sheet__card { border-radius: 18px 18px 0 0; max-height: 94vh; } }
.no-scroll { overflow: hidden; }
.sheet__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; background: rgba(255, 255, 255, .92); color: #222; border: 0; }
.d__photo { background: var(--soft); }
.d__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.d__head { padding: 14px 20px 0; }
.d__cat { display: inline-block; background: var(--c); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.d__head h2 { margin: 8px 0 4px; font-size: 1.6rem; line-height: 1.35; }
.d__where { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
.d__body { padding: 8px 20px 22px; }
.d__sum { font-size: 1.06rem; line-height: 1.9; }
.d__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 14px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fact--wide { grid-column: 1 / -1; }
.fact dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; }
.fact dd { margin: 3px 0 0; font-weight: 600; }
.fact small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; }
.d__ints { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.d__h { font-size: 1.05rem; margin: 18px 0 8px; }
.facs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.facs li { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.facs .ic { color: var(--green2); }
.nearby { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mini { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.mini:hover { border-color: var(--c); }
.mini__art { width: 54px; height: 54px; flex: none; border-radius: 8px; overflow: hidden; }
.mini__img { width: 100%; height: 100%; object-fit: cover; }
.mini b { display: block; font-size: .9rem; line-height: 1.35; }
.mini small { color: var(--green); font-weight: 600; }
.checked { color: var(--muted); font-size: .8rem; margin-top: 18px; }

/* الخريطة */
.mapbox { isolation: isolate; z-index: 0; position: relative; height: min(70vh, 620px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.mapbox__me { position: absolute; z-index: 500; bottom: 14px; inset-inline-start: 14px; box-shadow: var(--shadow); }
.catpills--map { padding-top: 0; }
.pin { background: none; border: 0; }
.pin__dot { position: absolute; inset-inline-start: 3px; top: 0; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; background: var(--c); transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.leaflet-container { font-family: 'Readex Pro', system-ui, sans-serif; }
.mpop b { display: block; font-size: .95rem; }
.mpop small { color: #666; display: block; }
.mpop a { color: #1c5c39; font-weight: 700; }

/* قريب مني وخطط يومك */
.ring { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 16px; }
.ring span { display: inline-flex; align-items: center; gap: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; }
.picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pick { display: flex; align-items: center; gap: 10px; text-align: start; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 8px; }
.pick.is-on { border-color: var(--green); }
.pick__art { width: 56px; height: 56px; flex: none; border-radius: 8px; overflow: hidden; }
.pick__img { width: 100%; height: 100%; object-fit: cover; }
.pick__t { flex: 1; min-width: 0; }
.pick__t b { display: block; line-height: 1.35; }
.pick__t small { color: var(--muted); }
.tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); color: transparent; flex: none; }
.is-on > .tick { background: var(--green); border-color: var(--green); color: #fff; }
.planbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.planbar select { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 10px; }
.planbar__n { margin-inline-start: auto; color: var(--muted); font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tl__drive { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; padding-inline-start: 120px; }
.tl__stop { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; }
.tl__time { display: flex; flex-direction: column; text-align: center; }
.tl__part { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: .78rem; }
.tl__time small { color: var(--muted); }
.tl__card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-inline-start: 5px solid var(--c); border-radius: 12px; padding: 8px; }
.tl__art { width: 56px; height: 56px; flex: none; border-radius: 8px; overflow: hidden; }
.tl__img { width: 100%; height: 100%; object-fit: cover; }
.tl__card small { display: block; color: var(--muted); }

/* المعالج والنتائج */
.wiz { max-width: 760px; }
.wiz__top { display: flex; align-items: center; gap: 14px; padding-top: 20px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); }
.dots i.done { background: var(--green2); } .dots i.cur { background: var(--clay); }
.wiz__q { font-size: clamp(1.5rem, 4vw, 2rem); margin: 24px 0 4px; }
.wiz__hint { color: var(--muted); margin: 0 0 14px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.choices--int { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 18px 10px; font-size: 1.02rem; }
.choice:hover { border-color: var(--green2); }
.choice.is-on { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--card)); }
.choice__ic { display: grid; place-items: center; width: 48px; height: 48px; color: var(--clay); }
.choice__ic .ic { width: 30px; height: 30px; }
.choice__ic .iart { width: 40px; height: 40px; }
.choice small { color: var(--muted); }
.choice .tick { position: absolute; top: 8px; inset-inline-end: 8px; width: 22px; height: 22px; }
.wiz__next { display: flex; justify-content: flex-end; gap: 10px; margin: 20px 0; }
.results__head { padding-top: 22px; }
.results__head h1 { margin: 0 0 8px; }
.sumchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.sumchips span { background: var(--sand); border-radius: 99px; padding: 3px 12px; font-size: .88rem; }

/* شاشات أعرض */
@media (max-width: 860px) {
  .ngrid { grid-template-columns: 1fr; }
  .evd__top { grid-template-columns: 1fr; }
  .nlist .nrow { grid-template-columns: 1fr 120px; }
}
@media (max-width: 520px) {
  .nrow, .nlist .nrow { grid-template-columns: 1fr 96px; gap: 10px; }
  .nlist .nrow h3 { font-size: 1.02rem; }
  .facts { grid-template-columns: 1fr; }
  .vteaser__card { flex-direction: column; padding: 20px; }
  .tl__stop { grid-template-columns: 84px 1fr; }
  .tl__drive { padding-inline-start: 90px; }
  .share { margin-inline-start: 0; }
  .topbar__date { font-size: .74rem; }
}
.toast { position: fixed; z-index: 1100; bottom: 86px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { .toast { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.hero__search { display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 14px 0 6px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18); color: #333; }
[dir="rtl"] .hero__search { padding: 6px 12px 6px 6px; }
.hero__search > span { display: grid; color: var(--muted); }
.hero__search .ic { width: 20px; height: 20px; }
.hero__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: #222; padding: 8px 4px; }
.hero__search button { border: 0; border-radius: 10px; background: var(--green); color: #fff; font: inherit; font-weight: 700; padding: 9px 16px; cursor: pointer; }
@media (max-width: 430px) {
  .mast__acts { gap: 6px; }
  .brand { gap: 8px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__txt b { font-size: 1rem; }
  #langBtn { padding: 8px 9px; }
  #langBtn .l-long { display: none; }
}
#langBtn .l-short { display: none; }
@media (max-width: 430px) { #langBtn .l-short { display: inline; font-weight: 700; } }

/* اسأل عن العين */
.chatbox { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 960; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-open { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 700; padding: 12px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.22); cursor: pointer; }
.chat-open .ic { width: 20px; height: 20px; }
.chat { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; background: var(--card); color: var(--ink, inherit); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.25); overflow: hidden; }
.chat[hidden], .chat-open[hidden] { display: none; }
.chat__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--green); color: #fff; }
.chat__head h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.chat__close { border: 0; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat__msg { margin: 0; padding: 10px 12px; border-radius: 14px; max-width: 90%; line-height: 1.7; font-size: .95rem; }
.chat__msg p { margin: 0; }
.chat__msg--bot { align-self: flex-start; background: var(--sand); }
.chat__msg--me { align-self: flex-end; background: var(--green); color: #fff; }
.chat__msg--wait { opacity: .7; }
.chat__cite { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-inline: 2px; border-radius: 6px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: 2px; }
.chat__src { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(0,0,0,.08); font-size: .85rem; }
.chat__src li { margin: 2px 0; }
.chat__src a { color: var(--green); text-decoration: underline; }
.chat__src-h { font-weight: 700; color: var(--muted); }
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: var(--card); color: inherit; }
.chat__send { border: 0; border-radius: 12px; background: var(--clay); color: #fff; font: inherit; font-weight: 700; padding: 0 16px; cursor: pointer; }
.chat__send:disabled { opacity: .6; }
@media (max-width: 760px) {
  .chatbox { bottom: calc(76px + env(safe-area-inset-bottom)); inset-inline-end: 12px; }
  .chat-open span { display: none; }
  .chat-open { padding: 14px; }
  .chat { height: min(520px, calc(100vh - 200px)); }
}

.install { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; background: var(--sand); border: 1px solid var(--line); border-radius: var(--r); }
.install[hidden] { display: none; }
.install img { flex: none; border-radius: 14px; }
.install div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.install small { color: var(--muted); line-height: 1.6; }
.install .cta { flex: none; }

/* ترشيحات البحث أثناء الكتابة */
.sg { position: fixed; z-index: 60; max-height: min(60vh, 440px); overflow-y: auto; background: var(--card, #fff); color: var(--ink, #222); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 6px; }
.sg[hidden] { display: none; }
.sg__it, .sg__all { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.sg__it:hover, .sg__all:hover, .sg [role=option].is-on { background: var(--sand, #f4ead6); }
.sg__ic { flex: none; width: 42px; height: 42px; border-radius: 9px; object-fit: cover; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--green)) 14%, transparent); color: var(--c, var(--green)); }
.sg__ic svg { width: 22px; height: 22px; }
.sg__tx { min-width: 0; display: grid; }
.sg__tx b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg__tx small { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg mark { background: transparent; color: var(--green); font-weight: 800; }
.sg__all { border-top: 1px solid var(--line); margin-top: 4px; color: var(--green); font-weight: 600; }
.sg__all .ic, .sg__all svg { width: 18px; height: 18px; }
.sg__none { margin: 6px 10px; color: var(--muted); font-size: .9rem; }
@media (max-width: 380px) { .brand__txt b { font-size: .92rem; } .mast__acts { gap: 4px; } }
