/*
Theme Name: Resort City - مدينة مصيفية
Description: قالب عربي عصري فاتح لبوابة مدينة مصيفية: سلايدر كبير متحرك، تعريف بالمكان ومراحل تطوره، دليل خدمات، وبيع وشراء الوحدات. يعمل مع إضافة Resort Network.
Version: 8.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: resort-city
*/

:root {
	--ink: #0e2433;
	--mute: #4b6070;
	--line: #e6edf2;
	--bg: #fbfcfd;
	--card: #ffffff;
	--sea: #0a6fa8;
	--sea-d: #08557f;
	--sea-l: #e6f1f8;
	--gold: #a8650f;
	--gold-l: #ffd79a;
	--sand: #f3e4cc;
	--sand-ink: #3d2a0e;
	--red: #b6401f;
	--red-l: #fff3ee;
	--head: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
	--body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
	--r: 20px;
	--shadow: 0 20px 50px rgba(14, 36, 51, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--body); font-size: 17px; line-height: 1.85;
	direction: rtl; text-align: right; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-d); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.rt-skip { position: absolute; top: -60px; right: 16px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.rt-skip:focus { top: 12px; color: #fff; }

.rt-wrap { width: 100%; max-width: 1188px; margin: 0 auto; padding: 0 24px; }
.rt-narrow { max-width: 820px; }
.rt-grow { flex: 1; }

/* أزرار */
.rt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
	font: 600 16px/1 var(--body); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
	background: var(--sea); color: #fff;
}
.rt-btn:hover { background: var(--sea-d); color: #fff; }
.rt-btn-sea, .rt-btn-sun { background: var(--sea); color: #fff; }
.rt-btn-white { background: #fff; color: var(--ink); }
.rt-btn-white:hover { background: var(--sand); color: var(--ink); }
.rt-btn-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); color: #fff; }
.rt-btn-glass:hover { background: rgba(255,255,255,.2); color: #fff; }
.rt-btn-line { background: transparent; border-color: var(--sea); color: var(--sea); }
.rt-btn-line:hover { background: var(--sea); color: #fff; }

/* ---------------- الهيدر ---------------- */
.rt-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
	transition: background .3s, border-color .3s, box-shadow .3s;
}
.admin-bar .rt-header { top: 32px; }
.rt-header-in { display: flex; align-items: center; gap: 24px; min-height: 100px; }

.rt-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); flex: 0 0 auto; }
.rt-brand:hover { color: var(--ink); }
.rt-mark {
	width: 74px; height: 74px; border-radius: 50%; flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	filter: drop-shadow(0 4px 10px rgba(14,36,51,.18));
}
.rt-mark svg { width: 100%; height: 100%; display: block; }
.rt-mark-img { width: 100%; height: 100%; object-fit: contain; }
.rt-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.rt-brand-main { font-family: var(--head); font-size: 33px; font-weight: 700; }
.rt-brand-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.rt-brand-sub i { width: 22px; height: 2px; background: currentColor; display: block; }

.rt-nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.rt-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.rt-menu li { position: relative; }
.rt-menu a { display: block; padding: 10px 15px; border-radius: 10px; color: var(--ink); font-size: 18px; font-weight: 600; }
.rt-menu a:hover, .rt-menu .current-menu-item > a { color: var(--sea); background: var(--sea-l); }
.rt-menu .sub-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.rt-menu li:hover > .sub-menu, .rt-menu li:focus-within > .sub-menu { display: block; }
.rt-nav-cta { min-height: 48px; padding: 0 24px; font-size: 17px; margin-inline-start: 8px; }
.rt-acc { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 17px; font-weight: 600; margin-inline-start: 6px; transition: background .2s, color .2s, border-color .2s; }
.rt-acc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.rt-acc:hover { background: var(--sea-l); color: var(--sea); border-color: #cfe0ec; }
@media (min-width: 1141px) and (max-width: 1360px) {
	.rt-nav .rt-menu a { padding: 10px 11px; font-size: 17px; }
	.rt-nav-cta { padding: 0 18px; }
}
.rt-nav .rt-menu, .rt-nav-cta, .rt-acc { white-space: nowrap; }
.rt-nav .rt-menu { flex-wrap: nowrap; }
.rt-acc-badge { position: absolute; top: -4px; left: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }

.rt-burger { display: none; margin-inline-start: auto; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 12px; flex-direction: column; justify-content: space-between; border-radius: 12px; }
.rt-burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.rt-burger { color: var(--ink); }
.rt-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.rt-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rt-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* الهيدر شفاف فوق السلايدر */
.rt-has-hero .rt-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-brand,
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-menu a,
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-burger { color: #fff; }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-menu a:hover,
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-menu .current-menu-item > a { background: rgba(255,255,255,.14); }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-brand-sub { color: #ffe2b4; }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-nav-cta { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-acc { color: #fff; border-color: rgba(255,255,255,.45); }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-acc:hover { background: rgba(255,255,255,.14); }
.rt-has-hero .rt-header.scrolled, .rt-has-hero .rt-header.menu-open { background: rgba(255,255,255,.97); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(14,36,51,.08); }

/* ---------------- السلايدر ---------------- */
.rt-hero { position: relative; height: min(100vh, 860px); min-height: 620px; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.rt-slides, .rt-slide, .rt-slide-bg, .rt-hero-shade { position: absolute; inset: 0; }
.rt-slide { opacity: 0; transition: opacity 1.4s ease; overflow: hidden; }
.rt-slide.is-active { opacity: 1; z-index: 1; }
.rt-slide-bg { background-color: var(--c, #3d7ea6); background-size: cover; background-position: center; transform: scale(1); }
/* حركة الصور: عمق قوي، وتتبدل كل شريحة بين الدخول والخروج واليمين واليسار */
.rt-sl { --kb-dur: 8.5s; }
.rt-sl2 { --kb-dur: 7s; }
.rt-slide .rt-slide-bg, .rt-sl2 .rt-slide img { transform-origin: 50% 50%; will-change: transform; }
.rt-slide.is-active .rt-slide-bg:not([data-kb]), .rt-sl2 .rt-slide.is-active img:not([data-kb]) { animation: rt-kb-in var(--kb-dur) linear forwards; }
/* الحركة تستمر في الصورة الخارجة أثناء الانتقال، فلا تنقطع ولا تقفز */
.rt-slide [data-kb] { animation: rt-kb-in var(--kb-dur) linear forwards; }
.rt-slide [data-kb="out"] { animation-name: rt-kb-out; }
.rt-slide [data-kb="right"] { animation-name: rt-kb-right; }
.rt-slide [data-kb="left"] { animation-name: rt-kb-left; }
.rt-slide [data-kb="diag"] { animation-name: rt-kb-diag; }
@keyframes rt-kb-in { from { transform: scale(1); } to { transform: scale(1.4); } }
@keyframes rt-kb-out { from { transform: scale(1.4); } to { transform: scale(1); } }
@keyframes rt-kb-right { from { transform: scale(1.3) translateX(-7%); } to { transform: scale(1.3) translateX(7%); } }
@keyframes rt-kb-left { from { transform: scale(1.3) translateX(7%); } to { transform: scale(1.3) translateX(-7%); } }
@keyframes rt-kb-diag { from { transform: scale(1.1) translate(5%, 4%); } to { transform: scale(1.45) translate(-4%, -3%); } }
.rt-hero-shade { z-index: 2; background: linear-gradient(180deg, rgba(8,24,36,.55) 0%, rgba(8,24,36,.12) 38%, rgba(8,24,36,.7) 100%); }
.rt-hero-in { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 130px; padding-bottom: 150px; }
.rt-hero-texts { max-width: 780px; min-height: 230px; }
/* دخول العنوان والنص: اتجاه عشوائي مع كل شريحة، وكل سطر يدخل بعد الذي قبله */
.rt-hero-text.is-active > *, .rt-sl2 .rt-slide.is-active .rt-sl2-cap > * { animation: rt-tx-bottom 1.4s cubic-bezier(.2,.7,.2,1) both; }
.rt-hero-text.is-active[data-tx="right"] > *, .rt-sl2 .rt-slide.is-active .rt-sl2-cap[data-tx="right"] > * { animation-name: rt-tx-right; }
.rt-hero-text.is-active[data-tx="left"] > *, .rt-sl2 .rt-slide.is-active .rt-sl2-cap[data-tx="left"] > * { animation-name: rt-tx-left; }
.rt-hero-text.is-active[data-tx="top"] > *, .rt-sl2 .rt-slide.is-active .rt-sl2-cap[data-tx="top"] > * { animation-name: rt-tx-top; }
.rt-hero-text.is-active[data-tx="zoom"] > *, .rt-sl2 .rt-slide.is-active .rt-sl2-cap[data-tx="zoom"] > * { animation-name: rt-tx-zoom; }
.rt-hero-text.is-active[data-tx="blur"] > *, .rt-sl2 .rt-slide.is-active .rt-sl2-cap[data-tx="blur"] > * { animation-name: rt-tx-blur; }
.rt-hero-text.is-active > :nth-child(2), .rt-sl2-cap > :nth-child(2) { animation-delay: .25s; }
.rt-hero-text.is-active > :nth-child(3), .rt-sl2-cap > :nth-child(3) { animation-delay: .5s; }
.rt-hero-text.is-active > :nth-child(4), .rt-sl2-cap > :nth-child(4) { animation-delay: .75s; }
@keyframes rt-tx-bottom { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes rt-tx-top { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
@keyframes rt-tx-right { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: none; } }
@keyframes rt-tx-left { from { opacity: 0; transform: translateX(-90px); } to { opacity: 1; transform: none; } }
@keyframes rt-tx-zoom { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes rt-tx-blur { from { opacity: 0; filter: blur(10px); transform: scale(1.06); } to { opacity: 1; filter: none; transform: none; } }
.rt-hero-kicker { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--gold-l); }
.rt-hero-title { margin: 0; color: #fff; font-size: clamp(38px, 6.4vw, 72px); line-height: 1.18; font-weight: 700; text-wrap: balance; }
.rt-hero-sub { margin: 18px 0 0; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.75; opacity: .95; }
.rt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rt-hero-ctrl { position: absolute; z-index: 4; bottom: 110px; left: 0; right: 0; display: flex; align-items: center; gap: 10px; }
.rt-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.rt-arrow:hover { background: rgba(255,255,255,.15); }
.rt-arrow svg, .rt-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
	.rt-slide.is-active .rt-slide-bg, .rt-sl2 .rt-slide.is-active img, .rt-slide.is-active [data-kb], .rt-hero-text.is-active > *, .rt-sl2-cap > * { animation: none !important; }
	.rt-slide { transition: none; }
}

/* ---------------- شريط الأرقام ---------------- */
.rt-facts { position: relative; z-index: 5; margin-top: -72px; }
.rt-facts.no-hero { margin-top: 40px; }
.rt-facts-in { background: #fff; border-radius: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: hidden; }
.rt-fact { padding: 26px 28px; border-inline-start: 1px solid var(--line); }
.rt-fact:first-child { border-inline-start: 0; }
.rt-fact strong { display: block; font-family: var(--head); font-size: clamp(28px, 3vw, 36px); line-height: 1.3; color: var(--sea); }
.rt-fact span { font-size: 15px; color: var(--mute); }

/* ---------------- الأقسام ---------------- */
.rt-section { padding: 96px 0 0; }
.rt-kicker { margin: 0 0 10px; color: var(--gold); font-weight: 600; font-size: 16px; }
.rt-h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.rt-h3 { font-size: 20px; margin: 28px 0 14px; }
.rt-head { margin-bottom: 26px; }
.rt-head .rt-h2 { margin-bottom: 0; }
.rt-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rt-more { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.rt-more::after { content: "←"; transition: transform .2s; }
.rt-more:hover::after { transform: translateX(-4px); }
.rt-empty { color: var(--mute); }

/* عن المدينة */
.rt-about-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.rt-about-txt { flex: 1 1 420px; min-width: 0; }
.rt-about-txt p { font-size: 18px; line-height: 1.9; color: #34495a; }
.rt-about-img { flex: 1 1 380px; min-width: 0; min-height: 420px; border-radius: 26px; background: #dcebf3; overflow: hidden; display: flex; align-items: flex-end; }
.rt-about-img img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }

/* سلايدر 2 بجوار عن المدينة */
.rt-sl2 { position: relative; align-items: stretch; }
.rt-sl2 .rt-slides { position: relative; width: 100%; min-height: 420px; }
.rt-sl2 .rt-slide { position: absolute; inset: 0; margin: 0; background: var(--c, #dcebf3); opacity: 0; transition: opacity 1.1s ease; }
.rt-sl2 .rt-slide.is-active { opacity: 1; z-index: 1; }
.rt-sl2 .rt-slide img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.rt-sl2-cap { position: absolute; inset: auto 0 0 0; padding: 60px 22px 64px; background: linear-gradient(180deg, transparent, rgba(8,24,36,.72)); color: #fff; display: flex; flex-direction: column; gap: 4px; }
.rt-sl2-cap b { font-family: var(--head); font-size: 22px; }
.rt-sl2-cap span { font-size: 15px; opacity: .95; }
.rt-sl2-cap .rt-sl2-k { color: var(--gold-l); font-weight: 600; font-size: 14px; }
.rt-sl2-cap .rt-hero-actions { margin-top: 10px; }
.rt-sl2-cap .rt-btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.rt-sl2-ctrl { position: absolute; z-index: 3; bottom: 14px; left: 14px; display: flex; gap: 6px; }
.rt-arrow-lite { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(8,24,36,.18); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.rt-arrow-lite:hover { background: rgba(8,24,36,.38); }
.rt-arrow-lite svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .rt-sl2 .rt-slide { transition: none; } }
.rt-ph { margin: 20px; background: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--mute); }

/* مراحل التطور */
.rt-timeline { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: st; }
.rt-step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .25s, box-shadow .25s; }
.rt-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rt-step::before { counter-increment: st; content: counter(st); position: absolute; top: 22px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--sea-l); color: var(--sea); font: 600 14px/30px var(--head); text-align: center; }
.rt-step-year { display: block; font-family: var(--head); font-size: 24px; font-weight: 700; color: var(--sea); padding-left: 40px; }
.rt-step h3 { font-size: 19px; margin: 10px 0 8px; }
.rt-step p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--mute); }

/* بوابات الأقسام */
.rt-portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.rt-portal { border-radius: 26px; padding: 36px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: transform .25s, box-shadow .25s; }
.rt-portal:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rt-portal b { display: block; font-family: var(--head); font-size: 30px; }
.rt-portal b + span { display: block; margin-top: 8px; font-size: 17px; line-height: 1.7; }
.rt-portal-k { font-size: 15px; opacity: .9; }
.rt-portal-sea { background: var(--sea); color: #fff; }
.rt-portal-sea:hover { color: #fff; }
.rt-portal-sand { background: var(--sand); color: var(--sand-ink); }
.rt-portal-sand:hover { color: var(--sand-ink); }

/* بحث الدليل */
.rt-finder { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.rt-finder-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.rt-finder label { flex: 1 1 170px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--mute); }
.rt-finder label:first-child { flex-basis: 240px; }
.rt-finder input, .rt-finder select { height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: 16px var(--body); color: var(--ink); background: #fff; width: 100%; }
.rt-finder input:focus, .rt-finder select:focus { border-color: var(--sea); outline: 0; box-shadow: 0 0 0 3px var(--sea-l); }
.rt-on { align-self: center; padding-top: 22px; color: var(--mute); font-weight: 500; }
.rt-finder .rt-btn { height: 48px; border-radius: 12px; }
.rt-finder-foot { margin: 12px 4px 0; font-size: 15px; color: var(--mute); }
.rt-admin-note { background: #fff8e6; border: 1px dashed #e2b14a; padding: 12px 16px; border-radius: 12px; font-size: 15px; }

.rt-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.rt-cats a { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; color: var(--ink); transition: border-color .2s, transform .2s; }
.rt-cats a:hover { border-color: var(--sea); transform: translateY(-2px); }
.rt-cats span { display: block; font-weight: 600; font-size: 17px; }
.rt-cats b { display: block; font-weight: 400; font-size: 14px; color: var(--mute); margin-top: 2px; }

/* الوحدات */
.rt-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.rt-unit { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.rt-unit:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.rt-unit-img { display: block; aspect-ratio: 16 / 10; background: #e3eef4; overflow: hidden; }
.rt-unit-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-unit-img em { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--mute); font-style: normal; font-size: 14px; }
.rt-unit-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.rt-unit-price { font-family: var(--head); font-size: 22px; color: var(--sea); order: -1; }
.rt-unit-kind { font-weight: 600; font-size: 18px; }
.rt-unit-addr, .rt-sign { font-size: 15px; color: var(--mute); }
.rt-unit-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-unit-chips i { font-style: normal; font-size: 13px; background: var(--sea-l); color: var(--sea-d); padding: 2px 10px; border-radius: 999px; }

/* المقالات */
.rt-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.rt-post { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.rt-post-img { display: block; aspect-ratio: 16 / 10; background: #e3eef4; }
.rt-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-post-body { padding: 20px; }
.rt-post time { font-size: 14px; color: var(--mute); }
.rt-post h3 { font-size: 20px; margin: 6px 0 8px; }
.rt-post h3 a { color: var(--ink); }
.rt-post h3 a:hover { color: var(--sea); }
.rt-post p { margin: 0; font-size: 16px; color: var(--mute); }

/* الأرقام المهمة */
.rt-emerg-box { background: var(--red-l); border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.rt-emerg-head { flex: 0 0 auto; }
.rt-emerg-head h2 { margin: 0; font-size: 24px; color: #8e2f15; }
.rt-emerg-head a { font-size: 15px; font-weight: 600; color: #8e2f15; }
.rt-emerg { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rt-emerg-item { background: #fff; border-radius: 14px; padding: 12px 16px; color: var(--ink); transition: transform .2s; }
.rt-emerg-item:hover { transform: translateY(-2px); color: var(--ink); }
.rt-emerg-item span { display: block; font-size: 14px; color: #6b4a40; }
.rt-emerg-item b { display: block; font-family: var(--head); font-size: 26px; color: var(--red); text-align: right; }

/* دعوة */
.rt-cta { padding: 96px 0 0; }
.rt-cta-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.rt-cta-in > div { background: var(--sea-l); border-radius: 24px; padding: 32px; }
.rt-cta-in h2 { font-size: 24px; }
.rt-cta-in p { color: #34495a; }

/* لوحة الإعداد للمدير */
.rt-setup { margin: 40px 0 0; background: #fffbea; border: 1px solid #f0d77a; border-radius: 16px; padding: 14px 20px; font-size: 15px; }
.rt-setup summary { cursor: pointer; font-weight: 600; }
.rt-setup ul { list-style: none; padding: 0; margin: 10px 0; }
.rt-setup li { padding: 4px 0; }
.rt-setup li.ok b { color: #1a7f37; }
.rt-setup li.no b { color: #b42318; }
.rt-setup-ver, .rt-setup-note { color: var(--mute); margin: 6px 0; }

/* ---------------- الصفحات الداخلية ---------------- */
/* رأس الصفحة على شكل سلايدر (أصغر قليلاً من سلايدر الرئيسية) */
.rt-pagehero { position: relative; height: min(84vh, 760px); min-height: 580px; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.rt-pagehero .rt-slides, .rt-pagehero .rt-slide, .rt-pagehero .rt-slide-bg, .rt-pagehero .rt-hero-shade { position: absolute; inset: 0; }
.rt-pagehero .rt-hero-shade { background: linear-gradient(180deg, rgba(8,24,36,.35) 0%, rgba(8,24,36,.12) 40%, rgba(8,24,36,.7) 100%); }
.rt-pagehero-in { position: relative; z-index: 3; flex: 1; display: grid; align-content: center; padding-top: 120px; padding-bottom: 150px; }
.rt-pagehero .rt-hero-text { max-width: 780px; }
.rt-pagehero-title { margin: 0; color: #fff; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.2; text-wrap: balance; }
.rt-pagehero .rt-hero-sub { margin-top: 14px; }
.rt-pagehero .rt-hero-actions { margin-top: 28px; }
/* نصوص الشرائح فوق بعضها في نفس المكان: لا يتغير ارتفاع السلايدر عند التنقل */
.rt-hero-texts { display: grid; }
.rt-hero-texts > .rt-hero-text, .rt-pagehero-in > .rt-hero-text { grid-area: 1 / 1; }
.rt-hero-texts > .rt-hero-text[hidden], .rt-pagehero-in > .rt-hero-text[hidden] { display: block; visibility: hidden; }
/* حاوية فقرات الصفحة أسفل السلايدر */
.rt-page-nav .rt-facts-in.is-empty { min-height: 96px; }
.rt-page-nav a.rt-fact { color: var(--ink); transition: background .2s; border-top: 0; }
.rt-page-nav a.rt-fact:hover { background: var(--sea-l); }
.rt-page-nav a.rt-fact strong { font-size: clamp(17px, 1.65vw, 23px); white-space: nowrap; }
.rt-page-nav .rt-facts-in { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.rt-page-nav .rt-fact { border-bottom: 1px solid var(--line); padding: 22px 18px; }
.rt-pagehead { background: linear-gradient(180deg, var(--sea-l), var(--bg)); padding: 18px 0 4px; }
.rt-pagehead h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0; }
.rt-pagehead-meta, .rt-pagehead-sign { margin: 10px 0 0; color: var(--mute); }
.rt-content { padding-top: 14px; padding-bottom: 24px; }
.rt-crumb { font-size: 15px; }
.rt-crumb a::before { content: "→ "; }
.rt-entry { font-size: 18px; }
.rt-entry > * { max-width: 100%; }
.rt-entry h2 { font-size: 28px; margin-top: 1.4em; }
.rt-entry h3 { font-size: 22px; margin-top: 1.2em; }
.rt-entry img { border-radius: 14px; }
.rt-entry blockquote { margin: 1.4em 0; padding: 4px 22px; border-inline-start: 4px solid var(--sea); color: #34495a; }
.rt-entry table { width: 100%; border-collapse: collapse; }
.rt-entry th, .rt-entry td { border: 1px solid var(--line); padding: 8px 12px; }
.rt-feature { margin-bottom: 24px; }
.rt-feature img { width: 100%; border-radius: 22px; }
.alignwide { max-width: 1140px; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }

.rt-search { display: flex; gap: 10px; margin: 0 0 32px; }
.rt-search input { flex: 1; min-width: 0; height: 50px; border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; font: 16px var(--body); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.nav-links .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.nav-links .current { background: var(--sea); border-color: var(--sea); color: #fff; }

.rt-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.rt-comment-list { list-style: none; padding: 0; }
.rt-comments textarea, .rt-comments input[type="text"], .rt-comments input[type="email"], .rt-comments input[type="url"] { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: 16px var(--body); }
.rt-comments .submit { background: var(--sea); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font: 600 16px var(--body); cursor: pointer; }

/* ---------------- التذييل ---------------- */
.rt-footer { margin-top: 0; background: var(--ink); color: #c9d6df; font-size: 15px; }
.rt-footer-in { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.rt-fcol { flex: 1 1 180px; min-width: 0; }
.rt-fbrand { flex: 2 1 320px; }
.rt-footer .rt-brand, .rt-footer .rt-brand:hover { color: #fff; margin-bottom: 18px; }
.rt-footer .rt-mark { width: 66px; height: 66px; }
.rt-footer .rt-brand-sub { color: var(--gold-l); }
.rt-fbrand p { max-width: 420px; }
.rt-fplace { color: var(--gold-l); }
.rt-widget-title { color: #fff; font-size: 17px; margin-bottom: 14px; }
.rt-footer a { color: #c9d6df; }
.rt-footer a:hover { color: #fff; }
.rt-flinks, .rt-contact, .rt-footer .rt-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rt-footer .rt-menu a { padding: 0; color: #c9d6df; background: none; font-size: 15px; font-weight: 400; }
.rt-footer-in { column-gap: 64px; }
.rt-fcol.rt-fbrand { flex: 1 1 360px; }
.rt-footer-in > .rt-fcol:not(.rt-fbrand) { flex: 0 0 auto; min-width: 140px; }
.rt-footer .rt-menu a:hover { color: #fff; background: none; }
.rt-copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 22px; font-size: 14px; color: #93a6b4; }

.rt-top { position: fixed; bottom: 22px; left: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--sea); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.rt-top[hidden] { display: none; }
.rt-scroll { position: fixed; bottom: 22px; left: 22px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.rt-scroll .rt-top { position: static; width: 44px; height: 44px; }
.rt-scroll .rt-top, .rt-scroll .rt-top:hover, .rt-scroll .rt-top:focus, .rt-scroll .rt-top:active { background: #0a6fa8 !important; color: #fff !important; border: 0 !important; opacity: 1; filter: none; }
.rt-units-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .rt-units-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rt-page-stats .rt-fact strong, .rt-page-stats a.rt-fact strong { font-size: clamp(28px, 3vw, 36px); color: var(--sea); }
.rt-page-stats .rt-fact span { color: var(--mute); }
.rt-flink { color: inherit; text-decoration: none; }
.rt-flink:hover { color: var(--gold-l); }
.rt-copy bdi { unicode-bidi: isolate; }
.rt-fact strong .rt-cu, .rt-cu { display: inline-block; text-align: center; font-variant-numeric: tabular-nums; font-size: inherit; color: inherit; font-weight: inherit; }

/* ---------------- الجوال ---------------- */
@media (max-width: 1140px) {
	.rt-burger { display: flex; }
	.rt-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 24px 20px;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(14,36,51,.10);
	}
	.rt-nav.open { display: flex; }
	.rt-nav .rt-menu { flex-direction: column; }
	.rt-nav .rt-menu a { padding: 12px 14px; color: var(--ink) !important; }
	.rt-nav .rt-menu .sub-menu { position: static; display: block; box-shadow: none; padding: 0 16px 0 0; }
	.rt-nav-cta { margin: 6px 0 0; color: #fff !important; background: var(--sea) !important; }
	.rt-acc { margin: 6px 0 0; justify-content: center; color: var(--ink) !important; border-color: var(--line) !important; }
}
@media (max-width: 782px) {
	.rt-pagehero { min-height: 480px; height: 80vh; }
	.rt-page-nav .rt-facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rt-sl2 .rt-slides { min-height: 280px; }
	.admin-bar .rt-header { top: 46px; }
	.rt-section, .rt-cta { padding-top: 72px; }
	.rt-header-in { min-height: 78px; }
	.rt-mark { width: 58px; height: 58px; }
	.rt-brand-main { font-size: 26px; }
	.rt-brand-sub { font-size: 14px; }
	.rt-hero { min-height: 600px; height: 92vh; }
	.rt-hero-in { padding-bottom: 170px; }
	.rt-hero-ctrl { bottom: 100px; }
	.rt-arrow { width: 44px; height: 44px; }
	.rt-fact { border-inline-start: 0; border-top: 1px solid var(--line); padding: 18px 22px; }
	.rt-fact:first-child { border-top: 0; }
	.rt-facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rt-fact:nth-child(2) { border-top: 0; }
	.rt-fact:nth-child(even) { border-inline-start: 1px solid var(--line); }
	.rt-about-img, .rt-about-img img { min-height: 280px; }
	.rt-portal { padding: 28px; min-height: 200px; }
	.rt-on { display: none; }
}
@media (max-width: 600px) {
	.admin-bar .rt-header { top: 0; }
}

/* ---------------- أدوات الهيدر: الساعة والطقس، الوضع الداكن، البحث، المتواجدون الآن ---------------- */
.rt-acc:not(.is-in) { width: 46px; min-height: 46px; padding: 0; justify-content: center; }
.rt-acc .rt-acc-l { display: none; }
.rt-acc.is-in { background: var(--sea-l); border-color: #cfe0ec; color: var(--sea); padding: 0 20px; }
.rt-acc.is-in:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-acc.is-in { background: rgba(255,255,255,.16); }

.rt-brand-wrap { display: flex; flex-direction: column; align-items: flex-start; flex: 0 0 auto; }
.wx-badge.wx-badge--plain { height: auto; padding: 0; margin: 4px 0 0; margin-inline-start: 88px; border: 0; background: none; box-shadow: none; transform: none; gap: .3rem; font-size: 14px; font-weight: 600; color: var(--mute); }
.wx-badge--plain:hover, .wx-badge--plain:focus-visible { color: var(--sea); box-shadow: none; transform: none; }
.wx-badge--plain .wx-badge__w { display: inline-flex; align-items: center; gap: .3rem; }
.wx-badge--plain .wx-badge__w[hidden] { display: none; }
.wx-badge--plain .wx-badge__sep { width: 1px; height: 12px; background: currentColor; opacity: .35; margin-inline: .2rem; }
.wx-badge--plain .wx-badge__ico svg { width: 20px; height: 20px; }
.wx-badge--plain .wx-badge__t { position: relative; color: var(--ink); }
.wx-badge--plain .wx-badge__clock i { font-style: normal; }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .wx-badge--plain, .rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .wx-badge--plain .wx-badge__t { color: rgba(255,255,255,.92); }

.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.theme-toggle, .search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 999px; cursor: pointer; flex: none; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s; }
.theme-toggle svg { width: 20px; height: 20px; }
.search-toggle svg { width: 19px; height: 19px; }
.theme-toggle:hover, .search-toggle:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(14,36,51,.6); }
html:not([data-theme="dark"]) .theme-toggle { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
html:not([data-theme="dark"]) .theme-toggle:hover { background: var(--sea-d); border-color: var(--sea-d); }
html[data-theme="dark"] .theme-toggle { background: #fff; color: #0e2433; border: 1px solid #fff; }
html[data-theme="dark"] .theme-toggle:hover { background: var(--gold-l); border-color: var(--gold-l); }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.search-toggle { border: 1px solid var(--sea); background: var(--sea); color: #fff; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--sea-d); border-color: var(--sea-d); }
.header-tools .online-badge { height: 42px; padding: 0 14px; font-size: 15px; font-weight: 700; color: var(--ink); border-color: var(--line); background: var(--card); }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .online-badge { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); }

.site-search { border-top: 1px solid var(--line); background: var(--card); padding: 14px 0; box-shadow: 0 22px 44px -26px rgba(14,36,51,.55); }
.site-search[hidden] { display: none; }
.site-search__form { display: flex; gap: 10px; max-width: 760px; margin-inline: auto; }
.site-search__form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--ink); background: var(--card); border: 2px solid rgba(10,111,168,.45); border-radius: 999px; padding: 10px 20px; }
.site-search__form input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(10,111,168,.18); }
.site-search__form .rt-btn { min-height: 0; padding: 10px 28px; font-size: 17px; }
.rt-result-type { display: inline-block; margin-inline-end: 8px; padding: 0 10px; border-radius: 999px; background: var(--sea-l); color: var(--sea); font-size: 13px; font-weight: 700; line-height: 1.9; }

@media (min-width: 1141px) and (max-width: 1360px) {
	.rt-header-in { gap: 14px; }
	.rt-nav { gap: 6px; }
	.rt-nav .rt-menu a { padding: 10px 9px; font-size: 16px; }
	.rt-nav-cta { padding: 0 16px; font-size: 16px; }
	.rt-acc.is-in { padding: 0 14px; font-size: 16px; }
	.header-tools { gap: 6px; }
	.theme-toggle, .search-toggle { width: 40px; height: 40px; }
	.header-tools .online-badge { height: 40px; padding: 0 11px; }
	.rt-mark { width: 64px; height: 64px; }
	.rt-brand-main { font-size: 29px; }
	.wx-badge.wx-badge--plain { margin-inline-start: 78px; }
}
@media (max-width: 1140px) {
	.header-tools { margin-inline-start: auto; }
	.rt-burger { margin-inline-start: 6px; }
	.rt-acc:not(.is-in) { width: auto; padding: 0 16px; gap: 8px; }
	.rt-acc .rt-acc-l { display: inline; }
	.rt-acc.is-in { background: var(--sea-l) !important; color: var(--sea) !important; }
}
@media (max-width: 782px) {
	.wx-badge.wx-badge--plain { margin-inline-start: 72px; margin-top: 2px; font-size: 13px; }
	.theme-toggle, .search-toggle { width: 38px; height: 38px; }
	.header-tools { gap: 6px; }
	.site-search__form .rt-btn { padding-inline: 18px; }
}
@media (max-width: 480px) {
	.rt-header-in { gap: 10px; }
	.rt-mark { width: 48px; height: 48px; }
	.rt-brand { gap: 9px; }
	.rt-brand-main { font-size: 22px; }
	.rt-brand-sub { font-size: 12px; margin-top: 3px; }
	.rt-brand-sub i { width: 14px; }
	.wx-badge.wx-badge--plain { margin-inline-start: 57px; font-size: 12px; }
	.wx-badge--plain .wx-badge__ico { display: inline-flex; }
	.wx-badge--plain .wx-badge__ico svg { width: 17px; height: 17px; }
	.theme-toggle, .search-toggle, .rt-burger { width: 36px; height: 36px; }
	.rt-burger { padding: 9px; }
	.header-tools { gap: 5px; }
}
@media (min-width: 1141px) {
	.rt-header-in { gap: 16px; }
	.rt-nav { gap: 6px; }
	.rt-menu a { padding: 10px 11px; font-size: 17px; }
	.rt-nav-cta { padding: 0 20px; margin-inline-start: 4px; }
	.rt-acc { margin-inline-start: 2px; }
	.header-tools { gap: 6px; }
}
/* الساعة تبقى ظاهرة أسفل الاسم على الجوال (بدون كبسولة) */
.wx-badge.wx-badge--plain .wx-badge__clock { display: inline-flex; font-size: 1em; font-weight: 600; color: inherit; }
.wx-badge.wx-badge--plain .wx-badge__sep { display: inline-block; }
.wx-badge.wx-badge--plain .wx-badge__ico { display: inline-flex; }
.wx-badge.wx-badge--plain .wx-badge__ico svg { width: 22px; height: 22px; }
@media (max-width: 480px) { .wx-badge.wx-badge--plain .wx-badge__ico svg { width: 18px; height: 18px; } }

/* الساعة والحرارة في الفوتر أسفل «مدينة 6 أكتوبر · العجمي» */
.rt-brand-wrap--foot { margin-bottom: 18px; }
.rt-footer .rt-brand-wrap--foot .rt-brand { margin-bottom: 0; }
.rt-footer .wx-badge.wx-badge--plain, .rt-footer .wx-badge--plain .wx-badge__t { color: #dbe6ee; }
.rt-footer .wx-badge--plain:hover { color: var(--gold-l); }

/* القائمة في المنتصف بالضبط بين اسم الموقع وزر «حسابي» */
@media (min-width: 1141px) {
	.rt-nav { flex: 1 1 auto; margin-inline-start: 0; }
	.rt-nav .rt-menu { margin-inline: auto; }
}
@media (min-width: 1141px) { .rt-nav .rt-acc { margin-inline-start: 10px; } }
/* سلايدر 2 (بجوار «مدينة مصيفية…»): طولي، صور ثابتة بلا حركة تتبدل بتلاشٍ ناعم */
.rt-about-img.rt-sl2 { flex: 0 1 420px; min-height: 510px; }
.rt-sl2 .rt-slides { min-height: 510px; }
.rt-sl2 .rt-slide { transition: opacity 1.6s cubic-bezier(.45, 0, .55, 1); }
.rt-sl2 .rt-slide img, .rt-sl2 .rt-slide.is-active img, .rt-sl2 .rt-slide.is-active img:not([data-kb]) { animation: none !important; transform: none !important; }
.rt-sl2 .rt-slide.is-active .rt-sl2-cap > * { animation: none !important; }
@media (max-width: 900px) { .rt-about-img.rt-sl2 { flex: 1 1 100%; } }
@media (max-width: 782px) { .rt-about-img.rt-sl2, .rt-sl2 .rt-slides { min-height: 420px; } }
.rt-sl2-cap { padding-bottom: 26px; }
/* سلايدر 2: لا تظهر أي صورة قبل اختيار الترتيب العشوائي (يمنع وميض الصورة الأولى) */
.rt-js .rt-sl2:not(.is-ready) .rt-slide { opacity: 0; transition: none; }
/* الانتقال من القائمة إلى «عن المدينة»: بداية الفقرة أسفل الهيدر مباشرة */
#about { scroll-margin-top: -32px; }
@media (max-width: 782px) { #about { scroll-margin-top: -55px; } }

/* تصفح حسب النوع: بطاقات بصورة أو أيقونة في الأعلى، 6 في الصف (صفان) على الشاشات العريضة */
.rt-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.rt-cats a.rt-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px 14px; border-radius: 20px; box-shadow: 0 6px 18px -14px rgba(14, 36, 51, .4); }
.rt-cats a.rt-cat:hover { box-shadow: 0 14px 26px -16px rgba(14, 36, 51, .5); }
.rt-cat-pic { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 4px; }
.rt-cat-pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.rt-cats a.rt-cat:hover .rt-cat-pic img, .rt-cats a.rt-cat:hover .rt-cat-ic { transform: scale(1.06); }
.rt-cat-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: linear-gradient(145deg, var(--l1), var(--l2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 8px 16px -10px var(--c); transition: transform .25s; }
.rt-cat-ic svg { width: 44px; height: 44px; }
.rt-cats a.rt-cat span { font-size: 16px; line-height: 1.4; }
.rt-cats a.rt-cat b { margin-top: 0; font-size: 13px; }
@media (max-width: 1100px) { .rt-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rt-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .rt-cat-pic { width: 72px; height: 72px; } .rt-cat-ic { width: 60px; height: 60px; border-radius: 18px; } .rt-cat-ic svg { width: 34px; height: 34px; } .rt-cats a.rt-cat span { font-size: 14px; } }
@media (max-width: 380px) { .rt-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== تعديلات الجوال (K-v2.9) ===== */
/* لا مسافة بين آخر محتوى والفوتر */
#rt-main > .rt-content:last-child, #rt-main > .rt-wrap:last-child { padding-bottom: 16px !important; }
#rt-main > :last-child,
#rt-main > :last-child > :last-child,
#rt-main > :last-child > :last-child > :last-child,
#rt-main > :last-child > :last-child > :last-child > :last-child,
#rt-main > :last-child > :last-child > :last-child > :last-child > :last-child,
#rt-main > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child { margin-bottom: 0 !important; }
body:has(.wx) .rt-footer { margin-top: 0; }
/* رابط الطقس آخر القائمة: يظهر في قائمة الجوال فقط */
.rt-nav-wx { display: none; }
@media (max-width: 1140px) {
	.rt-nav-wx { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--sea) !important; font-weight: 600; text-decoration: none; background: #f3f9fc; }
	.rt-nav-wx svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
	.rt-burger { position: relative; overflow: visible; }
}
/* علامة الإغلاق كاملة في الزر الصغير (المسافة بين الخطوط 8px عند 36px) */
@media (max-width: 480px) {
	.rt-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.rt-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 782px) {
	/* النبذة على سطرين */
	.rt-br-d { display: none; }
	/* عمودا خدماتك وروابط سريعة متجاوران، وكل رابط زر */
	.rt-footer-in { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 28px; }
	.rt-footer-in > .rt-fbrand, .rt-footer-in > #rt-fcontact { grid-column: 1 / -1; }
	.rt-footer-in > .rt-fcol:not(.rt-fbrand) { min-width: 0; }
	.rt-footer-in > .rt-fcol:not(.rt-fbrand):not(#rt-fcontact) .rt-widget-title { text-align: center; }
	.rt-footer-in > .rt-fcol:not(.rt-fbrand):not(#rt-fcontact) .rt-flinks a,
	.rt-footer-in > .rt-fcol:not(.rt-fbrand):not(#rt-fcontact) .rt-menu a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; padding: 8px 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #e2ebf1; line-height: 1.35; }
	.rt-footer-in > .rt-fcol:not(.rt-fbrand):not(#rt-fcontact) .rt-flinks a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
}

/* ===== K-v3.1 ===== */
.rt-copy { text-align: center; }
.rt-more-m { display: none; }
.rt-cta { padding-bottom: 64px; }
@media (max-width: 1140px) {
	/* روابط القائمة المنسدلة أزرار خفيفة */
	.rt-nav .rt-menu { gap: 8px; }
	.rt-nav .rt-menu > li > a { display: flex; align-items: center; justify-content: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f7fafc; font-weight: 600; }
	.rt-nav .rt-menu > li > a:hover, .rt-nav .rt-menu > li.current-menu-item > a { background: #eaf4fa; border-color: #cfe3ef; color: var(--sea) !important; }
	.rt-nav .rt-menu .sub-menu { padding: 6px 0 0; display: grid; gap: 6px; }
	.rt-nav .rt-menu .sub-menu a { justify-content: center; border-radius: 10px; border: 1px dashed var(--line); background: transparent; }
	.rt-nav .rt-acc { border-radius: 12px; padding-top: 11px; padding-bottom: 11px; }
}
@media (max-width: 782px) {
	.rt-hide-m { display: none !important; }
	.rt-more-d { display: none !important; }
	.rt-more-m { display: flex; justify-content: center; margin-top: 22px; }
	.rt-more-m .rt-more { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
	.rt-kicker-guide { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
	#guide .rt-head { margin-bottom: 14px; }
	.rt-cta { padding-top: 28px; padding-bottom: 40px; }
	.rt-footer-in { padding-top: 32px; }
}
/* رسالة تحميل أيقونة الموقع (الجوال) */
.rt-a2hs { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 120; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(14, 36, 51, .18); padding: 8px; animation: rtA2up .35s ease-out; }
.rt-a2hs[hidden] { display: none; }
@keyframes rtA2up { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.rt-a2hs-go { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 0; text-align: right; cursor: pointer; font: inherit; color: var(--ink); }
.rt-a2hs-go img { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: 0 2px 6px rgba(14, 36, 51, .15); }
.rt-a2hs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.rt-a2hs-t b { font-size: 14.5px; }
.rt-a2hs-t small { font-size: 12px; color: var(--mute); }
.rt-a2hs-btn { flex: none; background: var(--sea); color: #fff; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 7px 16px; margin-inline-end: 6px; }
.rt-a2hs-x { position: absolute; top: 2px; left: 3px; width: 14px; height: 14px; padding: 0; border: 0; background: transparent; color: #a4b3bf; font-size: 11px; line-height: 14px; cursor: pointer; }
.rt-a2hs-help { margin: 8px 4px 2px; padding: 8px 10px; border-radius: 10px; background: var(--sea-l); font-size: 13px; line-height: 1.7; color: var(--ink); }
.rt-a2hs-ic { display: inline-block; padding: 0 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
html.rt-a2hs-on .rt-scroll { bottom: 92px; }
html.rt-a2hs-on body { padding-bottom: 76px; }
/* اتصال سريع أسفل سلايدر صفحة الأرقام المهمة */
.rt-page-quick .rt-fact strong { color: #b3261e !important; direction: ltr; }
.rt-page-quick .rt-fact:nth-child(4) strong { color: #a16207 !important; }

/* ===== قائمة الجوال: كل زرين في صف (K-v6.1) ===== */
.rt-nav-search { display: none; }
@media (max-width: 1140px) {
	.header-tools .search-toggle { display: none; }
	.rt-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.rt-nav .rt-menu { display: contents; }
	.rt-nav .rt-menu > li { order: 0; min-width: 0; }
	.rt-nav .rt-menu > li > a { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; }
	.rt-nav .rt-menu .sub-menu { display: none; }
	.rt-nav-wx { order: 1; margin: 0; height: 100%; font-size: 17px; }
	/* الصف الأخير: دخول / تسجيل مميز وبجواره البحث */
	.rt-nav .rt-acc { order: 2; grid-column: 1; margin: 0; min-height: 52px; background: var(--sea) !important; border-color: var(--sea) !important; color: #fff !important; font-weight: 700; box-shadow: 0 8px 18px -10px rgba(10,111,168,.7); }
	.rt-nav .rt-acc svg { stroke: #fff; }
	.rt-nav .rt-acc .rt-acc-badge { background: #fff; color: var(--sea); }
	.rt-nav .rt-nav-search { order: 3; grid-column: 2; display: inline-flex; width: auto; height: auto; min-height: 52px; border-radius: 12px; gap: 8px; font: inherit; font-size: 17px; font-weight: 600; }
	.rt-nav .rt-nav-search::after { content: "بحث"; }
	.rt-nav .rt-nav-search svg { width: 20px; height: 20px; }
}
/* مربعات الأرقام في الرئيسية أعلى قليلاً على الجوال */
@media (max-width: 782px) {
	.rt-facts:not(.no-hero) { margin-top: -118px; }
}
@media (max-width: 1140px) {
	.rt-nav-wx { white-space: nowrap; gap: 6px; padding: 11px 8px; font-size: 16.5px; }
	.rt-nav-wx svg { width: 20px; height: 20px; }
	.rt-nav .rt-nav-search { background: #f3f9fc; border: 1px solid var(--line); color: var(--sea); box-shadow: none; }
	.rt-nav .rt-nav-search:hover, .rt-nav .rt-nav-search[aria-expanded="true"] { background: var(--sea-l); color: var(--sea-d); border-color: #cfe0ec; }
}

/* أزرار تنقل السلايدر فوق مربعات الأرقام دائماً (K-v6.2) */
.rt-hero .rt-hero-ctrl { bottom: calc(var(--facts-half, 72px) + 28px); }
@media (max-width: 782px) {
	.rt-facts:not(.no-hero) { margin-top: -136px; }
	.rt-hero .rt-hero-ctrl { bottom: calc(var(--facts-half, 136px) + 22px); }
	.rt-hero .rt-hero-in { padding-bottom: calc(var(--facts-half, 136px) + 90px); }
}

/* ===== K-v6.3 ===== */
/* الجوال: الشعار ثابت مكانه، واسم الموقع ووصف المدينة والحرارة والساعة في المنتصف */
@media (max-width: 782px) {
	.rt-header .rt-brand-txt { align-items: center; text-align: center; }
	.rt-header .rt-brand-sub { justify-content: center; }
	/* الفوتر: الوصف والعنوان في المنتصف */
	.rt-footer .rt-fbrand p, .rt-footer .rt-fplace { text-align: center; margin-inline: auto; }
	/* صفحة الدخول/التسجيل: العنوان في المنتصف */
	.rn-auth-page .rt-pagehead h1 { text-align: center; }
}
/* مكان الإعلان: المسافة على قدر الإعلان فقط (ولا مسافة إن لم يوجد إعلان) */
.rn-adslot.rn-adslot-0 { margin-top: 12px; margin-bottom: 12px; }
.rt-facts + .rn-adslot-0 { margin-top: 14px; }
.rn-adslot-0 + .rt-section { padding-top: 34px; }
.rn-adslot-0 + .rt-content { padding-top: 4px; }

/* K-v6.4: الفوتر — السطر الأول عنوان صغير */
.rt-fbrand-h { font-weight: 600; color: #fff; }
/* الجوال: الشعار ثابت في مكانه، والنص (الاسم والوصف والحرارة والساعة) في منتصف المساحة المتاحة */
@media (max-width: 782px) {
	.rt-header .rt-brand-wrap { flex: 1 1 auto; min-width: 0; }
	.rt-header .rt-brand { flex: 1 1 auto; min-width: 0; }
	.rt-header .rt-brand-txt { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 782px) {
	.rt-header .rt-brand-wrap { align-items: stretch; }
	.rt-header .rt-brand-wrap > .wx-badge { align-self: flex-start; }
}

/* K-v6.5: إطار خفيف لأزرار قائمة الجوال */
@media (max-width: 1140px) {
	.rt-nav .rt-menu > li > a, .rt-nav-wx, .rt-nav .rt-nav-search { border: 1px solid #cfdde7 !important; }
}

/* ---------------- K-v6.6: زر «حسابي» في الهيدر ----------------
 * شفاف أعلى الصفحة، وعند النزول: أخضر للعضو المسجّل، وأحمر خفيف جداً للزائر */
.rt-acc.is-in, .rt-acc.is-out { width: auto; padding: 0 20px; background: transparent; border-color: var(--line); color: var(--ink); }
.rt-acc.is-in:hover { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.rt-acc.is-out:hover { background: #fdeeee; border-color: #f3caca; color: #a32424; }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-acc.is-in,
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-acc.is-out { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-acc.is-in:hover,
.rt-has-hero .rt-header:not(.scrolled):not(.menu-open) .rt-acc.is-out:hover { background: rgba(255,255,255,.14); }
.rt-header.scrolled .rt-acc.is-in { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.rt-header.scrolled .rt-acc.is-in:hover { background: #178046; border-color: #178046; }
.rt-header.scrolled .rt-acc.is-out { background: #fdeeee; border-color: #f3caca; color: #a32424; }
.rt-header.scrolled .rt-acc.is-out:hover { background: #fbe2e2; }
@media (min-width: 1141px) and (max-width: 1360px) { .rt-acc.is-in, .rt-acc.is-out { padding: 0 14px; font-size: 16px; } }
@media (max-width: 1140px) {
	.rt-acc.is-in { background: transparent !important; color: var(--ink) !important; }
	.rt-header.scrolled .rt-acc.is-in { background: #1f9d55 !important; color: #fff !important; }
}
@media (max-width: 782px) {
	.rt-nav .rt-acc.is-in { background: #1f9d55 !important; border-color: #1f9d55 !important; color: #fff !important; box-shadow: 0 8px 18px -10px rgba(31,157,85,.7); }
	.rt-nav .rt-acc.is-in .rt-acc-badge { color: #1f9d55; }
	.rt-nav .rt-acc.is-out { background: #fdeeee !important; border-color: #f3caca !important; color: #a32424 !important; box-shadow: none; }
}
html[data-theme="dark"] .rt-header.scrolled .rt-acc.is-out,
html[data-theme="dark"] .rt-acc.is-out:hover { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.35); color: #fca5a5; }
@media (max-width: 782px) { html[data-theme="dark"] .rt-nav .rt-acc.is-out { background: rgba(239,68,68,.14) !important; border-color: rgba(239,68,68,.35) !important; color: #fca5a5 !important; } }
/* روابط الخصوصية والشروط في سطر الحقوق */
.rt-legal { display: inline-flex; gap: 14px; margin-inline-start: 16px; }
.rt-legal a { color: inherit; opacity: .85; text-decoration: none; }
.rt-legal a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 640px) { .rt-legal { display: flex; justify-content: center; margin: 8px 0 0; } }
/* زر «أرسل لنا رسالة» في عمود التواصل بالفوتر */
.rt-fmsg { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 18px; border-radius: 999px; background: #e2a03c; color: #0e2433 !important; font-weight: 700; text-decoration: none; transition: filter .2s; }
.rt-fmsg:hover { filter: brightness(1.08); }

/* بالونات أيقونات الهيدر (بحث، الوضع الداكن/الفاتح، حسابي) */
.rt-header [data-tip] { position: relative; }
.rt-header [data-tip]::after,
.rt-header [data-tip]::before { position: absolute; left: 50%; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; z-index: 1001; }
.rt-header [data-tip]::after { content: attr(data-tip); top: calc(100% + 12px); transform: translate(-50%, 4px); padding: 10px 17px; border-radius: 11px; background: #0e2433; color: #fff; font-size: 15.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; box-shadow: 0 8px 22px rgba(9, 36, 52, .25); }
.rt-header [data-tip]::before { content: ""; top: calc(100% + 6px); width: 13px; height: 13px; margin-left: -6.5px; background: #0e2433; border-radius: 2px; transform: rotate(45deg) translate(3px, 3px); }
.rt-header [data-tip]:hover::after, .rt-header [data-tip]:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rt-header [data-tip]:hover::before, .rt-header [data-tip]:focus-visible::before { opacity: 1; visibility: visible; transform: rotate(45deg); }
@media (hover: none) { .rt-header [data-tip]::after, .rt-header [data-tip]::before { display: none; } }
