/* MatruhTravel: bright, sunny beach design. Uses logical properties so RTL/LTR both work. */

:root {
	--paper: #FFFCF6;
	--mist: #E4F6F4;
	--ink: #0B3142;
	--ink-2: #4A6573;
	--faience: #00797D;      /* فيروزي البحر: الروابط والأزرار (تباين كافٍ للنص) */
	--sea: #00A3A6;          /* فيروزي فاتح للزخارف */
	--sand: #FF6B57;         /* مرجاني للزخارف */
	--coral-ink: #C8402B;    /* مرجاني داكن للنص والتمرير */
	--sun: #FFC23C;          /* أصفر الشمس */
	--palm: #1E9E6A;
	--line: rgba(11, 49, 66, .13);
	--display: 'Baloo Bhaijaan 2', 'Trebuchet MS', system-ui, sans-serif;
	--body: 'Rubik', 'Segoe UI', Tahoma, system-ui, sans-serif;
	--wrap: 1240px;
	--radius: 14px;
	--radius-lg: 22px;
	--radius-img: 6px; /* انحناء خفيف لحواف الصور */
	--surface: #fff;
	--header-bg: rgba(255, 252, 246, .92);
	--hero-from: #CFF3F1;
	--hero-to: #FFF4E2;
	--ph-from: #CBEFEF;
	--ph-to: #9EDDE0;
	--ph2-from: #FFE0BD;
	--ph2-to: #FFF1DD;
	--shadow: 0 18px 38px -24px rgba(11, 49, 66, .5);
	color-scheme: light;
}
/* الوضع الداكن: بحر ليلي (خلفية زرقاء عميقة ونص فاتح)، يُفعَّل من زر الشمس في الأعلى. */
html[data-theme="dark"] {
	--paper: #08202B;
	--mist: #0F2E3B;
	--ink: #EAF7F6;
	--ink-2: #A9C3CB;
	--faience: #4FD6D3;
	--sea: #3CCFCF;
	--sand: #FF8A73;
	--coral-ink: #FF9C86;
	--sun: #FFD166;
	--palm: #4CC98F;
	--line: rgba(234, 247, 246, .15);
	--surface: #0C2733;
	--header-bg: rgba(8, 32, 43, .92);
	--hero-from: #0D3341;
	--hero-to: #08202B;
	--ph-from: #12394A;
	--ph-to: #0D2D3A;
	--ph2-from: #163845;
	--ph2-to: #0E2A36;
	--shadow: 0 18px 38px -24px rgba(0, 0, 0, .85);
	color-scheme: dark;
}
/* الخطوط تُحدَّد لكل لغة من القالب (mt_font_plan) كمتغيرات في :root. */
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) body { line-height: 1.9; }
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) :is(h1, h2, h3, h4) { font-weight: 700; letter-spacing: 0; line-height: 1.4; }
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) .filter-label { letter-spacing: 0; text-transform: none; }
html:is([lang^="zh"], [lang^="ja"]) { word-break: normal; line-break: strict; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { line-height: 1.85; }
img, svg, iframe, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--faience); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { line-height: 1.45; }
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3 { letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.85rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; transition: top .2s; }
.skip:focus { top: 1rem; }

/* buttons and links */
.btn {
	display: inline-block;
	
	
	text-decoration: none;
	
	
	
	
}

.textlink { text-decoration: none; padding-bottom: .1rem; }


/* header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.header-in { display: flex; align-items: center; gap: 2rem; padding-block: .85rem; }
.brand {
	font-family: 'Baloo Bhaijaan 2', var(--display);
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: -.01em;
	text-decoration: none;
	direction: ltr;
	line-height: 1.2;
}
.brand--ar { font-family: var(--display); font-weight: 700; font-size: 1.75rem; letter-spacing: 0; direction: rtl; line-height: 1.3; }
.primary-nav { flex: 1; }
.nav-list, .foot-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.7rem; }
.primary-nav .nav-list { justify-content: center; }
.nav-list a, .foot-list a { text-decoration: none; font-size: .95rem; border-bottom: 1px solid transparent; padding-block: .3rem; white-space: nowrap; }
.nav-list a:hover, .nav-list .current-menu-item > a, .foot-list a:hover { border-bottom-color: var(--faience); }
.nav-list .current-menu-item > a { font-weight: 600; border-bottom-width: 2px; }

.header-tools { display: flex; gap: .5rem; }
.langbtn {
	font-size: .9rem;
	text-decoration: none;
	border: 1px solid var(--line);
	padding: .25rem 1rem;
	
}
.langbtn:hover { border-color: var(--ink); }

/* مبدّل اللغات المنسدل: يتسع لأي عدد من اللغات. */
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.langs > summary::-webkit-details-marker { display: none; }
.langs > summary::after { content: ""; width: .4em; height: .4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.langs[open] > summary { border-color: var(--ink); }
.langs__globe { position: relative; }
.langs__globe::before { position: absolute; inset: -1.5px 25%; border: 1.5px solid currentColor; border-radius: 50%; }
.langs__list {
	position: absolute; z-index: 60; top: calc(100% + .4rem);
	max-height: min(70vh, 32rem); overflow: auto;
	margin: 0; padding: .4rem; list-style: none;
	display: flex; flex-direction: column; gap: .1rem;
	background: var(--paper); border: 1px solid var(--line); 
}
.langs__a { display: block; padding: .4rem .55rem; text-decoration: none; font-size: .92rem; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langs__a { text-align: left; line-height: 1.5; }
html[dir="rtl"] .langs__a { text-align: right; }
.langs__a:hover, .langs__a:focus-visible { background: var(--mist); }
.langs__a[aria-current] { font-weight: 600; color: var(--faience); }
.langs__a.is-untranslated { color: var(--ink-2); }
@media (max-width: 860px) {
	.langs__list { max-height: calc(100vh - 6rem); }
}

.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 2.6rem; height: 2.4rem; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bars { display: block; width: 20px; height: 12px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; }
.nav-toggle .bars::after { content: ""; position: absolute; inset-inline: 0; top: 3px; border-top: 2px solid var(--ink); }

@media (max-width: 860px) {
	.header-in { gap: 1rem; }
	.header-tools { margin-inline-start: auto; }
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none;
		position: absolute;
		inset-inline: 0;
		top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		padding: .75rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
	}
	.site-header.is-open .primary-nav { display: block; }
	.primary-nav .nav-list { flex-direction: column; gap: .25rem; align-items: flex-start; }
	.primary-nav .nav-list a { font-size: 1.05rem; display: inline-block; padding-block: .45rem; }
}

/* page headings */
.page-head { padding-block: clamp(.6rem, 1.5vw, 1rem) .6rem; }
.page-head h1 { margin-bottom: .15em; line-height: 1.1; }
.page-lead { color: var(--ink-2); max-width: 40rem; font-size: 1.15rem; }
.meta { color: var(--ink-2); font-size: .9rem; }

/* cards */
.listing-body, .lm-nearby, .lm-gallery { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 1.75rem; }
.card-media {
	
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(160deg, var(--ph-from), var(--ph-to));
}
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }

.card-title { margin: 1rem 0 .3rem; }
.card-title a { text-decoration: none; transition: color .2s; }

.card-text { margin: 0; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination .page-numbers { text-decoration: none; padding: .35rem .9rem; border: 1px solid var(--line); }

.pagination a.page-numbers:hover { border-color: var(--ink); }

/* article content */
.entry-content { font-size: 1.05rem; }
.entry-content > * { margin-block: 0 1.2rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote { max-width: 68ch; }
.entry-content h2, .entry-content h3, .entry-content h4 { max-width: 40ch; margin-top: 2.2rem; margin-bottom: .5rem; }
.entry-content h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.entry-content h3 { font-size: 1.3rem; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4rem; }
.entry-content blockquote { margin-inline: 0; padding-inline-start: 1.2rem; border-inline-start: 3px solid var(--sand); color: var(--ink-2); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .lm-hero figcaption { color: var(--ink-2); font-size: .88rem; margin-top: .5rem; }

.single-page .entry-content, .single-post .entry-content { padding-bottom: 0; }
.single-page main > article > .wrap:last-child, .single-post article > .wrap:last-child { padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.single-post .matrouh-ad--content { margin-bottom: .5rem; }
.single-post .page-rate { margin-top: 1.25rem; }

/* landmark page */
.crumbs ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-inline-end: .4rem; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--faience); }
.lm-head { padding-block-end: 1.5rem; }
.lm-head .page-lead { margin-bottom: 0; }
.lm-hero { margin: 0; }
/* صورة أعلى الصفحة كاملة بنسبتها الأصلية، دون أي قص. */
.lm-hero img { display: block; }
.lm-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.lm-article .entry-content { padding-bottom: 0; }
.lm-side { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.5rem; }
body.admin-bar .lm-side { top: 8.5rem; }
.info { padding: 1.2rem 1.4rem 1.4rem; }
.info h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.info dl { margin: 0; }
.info dl > div { padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.info dl > div:last-child { border-bottom: 0; }
.info dt { color: var(--ink-2); font-size: .85rem; }
.info dd { margin: 0; font-weight: 500; }
.info-link { margin: 1rem 0 0; }
.map iframe { display: block; width: 100%; height: 260px; border: 0; background: var(--mist); }
.map p { margin: .6rem 0 0; font-size: .9rem; }
.lm-gallery h2, .lm-nearby h2 { margin-bottom: 1.2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }

@media (max-width: 900px) {
	.lm-cols { grid-template-columns: 1fr; }
	.lm-side { position: static; }
}

/* footer */
.site-footer { background: var(--mist); padding-block: 2.25rem 1.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: start; }
.foot-desc { color: var(--ink-2); max-width: 26rem; margin: .6rem 0 0; }
.foot-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: .4rem 1.6rem; }
@media (min-width: 1101px) { .foot-list { flex-wrap: nowrap; } }
.foot-list a { color: var(--ink-2); }
.fine { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 0; position: relative; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 700px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}


.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(.9rem, 2vw, 1.6rem) clamp(1.4rem, 3vw, 2.4rem); }
.mast { font-size: clamp(4.5rem, 11vw, 9rem); line-height: 1.1; margin: 0; }
html[dir="ltr"] .mast { font-weight: 800; line-height: .95; letter-spacing: -.02em; }
.lede { max-width: 30rem; margin: 1rem 0 0; font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.hero-media { margin: 0; position: relative; min-height: clamp(280px, 38vw, 470px); background: linear-gradient(160deg, var(--ph2-from), var(--ph2-to)); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.6rem 1rem .7rem; color: #fff; font-size: .8rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.sec { padding-block: clamp(1.1rem, 2.5vw, 2rem); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: .9rem; }
.sec-head h2 { margin: 0; }
.lead { color: var(--ink-2); max-width: 30rem; margin: 1rem 0 0; }

.cards.cards--editorial { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cards--editorial .card { grid-column: span 4; }
.cards--editorial .card:nth-child(1) { grid-column: span 7; }
.cards--editorial .card:nth-child(2) { grid-column: span 5; }
.cards--editorial .card:nth-child(-n+2) .card-media { aspect-ratio: auto; height: clamp(260px, 32vw, 420px); }
@media (max-width: 960px) {
	.cards.cards--editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cards--editorial .card, .cards--editorial .card:nth-child(1), .cards--editorial .card:nth-child(2) { grid-column: auto; }
	.cards--editorial .card:nth-child(-n+2) .card-media { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) { .cards.cards--editorial { grid-template-columns: 1fr; } }

.plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; }

.timeline .t { font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.4rem; margin: 0; }
.timeline p { margin: .2rem 0 0; color: var(--ink-2); }

.ess { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.ess > div { padding-top: 1.1rem; }
.ess h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.ess p { margin: 0; color: var(--ink-2); }

@media (max-width: 900px) {
	.plan { grid-template-columns: 1fr; }
	.ess { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ess { grid-template-columns: 1fr; }
	.timeline li { grid-template-columns: 5rem minmax(0, 1fr); }
}

/* ---------- listings (hotels / restaurants) ---------- */
.card-media { position: relative; }
.badge {
	position: absolute;
	inset-block-start: .75rem;
	inset-inline-start: .75rem;
	
	
	font-size: .75rem;
	
	padding: .15rem .7rem;
	
	letter-spacing: .02em;
}
.badge--inline { position: static; display: inline-block; vertical-align: middle; font-family: var(--body); font-size: .8rem; margin-inline-start: .5rem; }
.card-meta { margin: .9rem 0 0; font-size: .85rem; }
.card-meta + .card-title { margin-top: .15rem; }
.stars { letter-spacing: .1em; }
.amenities { margin: 0; padding-inline-start: 1.1rem; font-weight: 400; }
.info-link { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }

/* ---------- contact form ---------- */
.mt-form-wrap { max-width: 36rem; }
.mt-form p { margin: 0 0 1.1rem; }
.mt-form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .3rem; }
.mt-form input[type="text"], .mt-form input[type="email"], .mt-form textarea {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: .65rem .8rem;
}
.mt-form input:focus, .mt-form textarea:focus { outline: 2px solid var(--faience); outline-offset: 1px; border-color: var(--faience); }
.mt-form textarea { resize: vertical; }
.mt-form button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.mt-note { color: var(--ink-2); font-size: .85rem; }
.mt-notice { padding: .8rem 1rem; border-radius: var(--radius); margin: 0 0 1.2rem; font-size: .95rem; }
.mt-notice--ok { background: #E3F2E8; color: #14532d; border: 1px solid #b7dcc4; }
.mt-notice--err { background: #FBE9E7; color: #8a1c13; border: 1px solid #efc0ba; }

/* filters, chips and grouped listings (0.5.0) */
.filters { display: grid; gap: .65rem; margin-top: 1.6rem; }
.filter-row { display: flex; align-items: baseline; gap: .9rem; }
.filter-label { flex: 0 0 4.5rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
html[dir="rtl"] .filter-label { letter-spacing: 0; font-size: .85rem; }
.filter-row--sub { padding-inline-start: 5.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
	display: inline-block;
	font-size: .88rem;
	line-height: 1.5;
	text-decoration: none;
	padding: .3rem .9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	
	
}


.filter-row--sub .chip { font-size: .82rem; padding: .2rem .8rem; }

.lm-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: .2rem 0 1rem; }


.group + .group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.group-title { display: flex; align-items: baseline; gap: .7rem; padding-bottom: .7rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.group-count { font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.where { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.75rem; }
.where-city { padding-top: 1rem; text-align: center; }
.where-city .chips { justify-content: center; }
.where-city h3 { margin-bottom: .2rem; }
.where-city h3 a { text-decoration: none; }
.where-city h3 a:hover { color: var(--faience); }
.where-count { color: var(--ink-2); font-size: .9rem; margin-bottom: .9rem; }
@media (max-width: 600px) {
	.filter-row { flex-direction: column; align-items: stretch; gap: .35rem; }
	.filter-label { flex: none; }
	.filter-row--sub { padding-inline-start: 0; }
	.chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem)); padding-inline: clamp(1.25rem, 4vw, 3rem); scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
	.chip { flex: none; }
}
@media (max-width: 600px) {
	.chips.chips--wrap { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}


/* عداد الزيارات */
.mt-views { display: inline-flex; align-items: center; gap: .4em; margin: .75rem 0 0; font-size: .875rem; color: var(--ink); opacity: .7; }
.mt-views[hidden] { display: none; }
.mt-views svg { flex: none; }

/* صفحة الإحصائيات */
.gs { margin: 1rem 0 2rem; }
.gs-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 2.5rem; }
.gs-kpi { border: 1px solid var(--line); background: var(--mist); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.gs-kpi__n { font-family: var(--display); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gs-kpi__l { font-size: .9rem; }
a.gs-kpi--link { text-decoration: none; color: inherit; transition: border-color .2s, background-color .2s; }
a.gs-kpi--link:hover, a.gs-kpi--link:focus-visible { border-color: var(--faience); background: var(--surface); }
a.gs-kpi--link .gs-kpi__l { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a.gs-kpi--link:hover .gs-kpi__l { text-decoration-color: var(--faience); }
.gs-sec { scroll-margin-top: 6rem; }
.gs-sec { margin: 0 0 2.5rem; }
.gs-sec h2 { margin-bottom: 1rem; }
.gs-sec h3 { font-size: 1.1rem; margin: 1.25rem 0 .6rem; }
.gs-sec h3 a { color: inherit; }
.gs-count { font-size: .85em; opacity: .65; font-variant-numeric: tabular-nums; }
.gs-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gs-chips a { display: inline-flex; gap: .4em; padding: .3rem .7rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.gs-chips a:hover { border-color: var(--ink); }
.gs-chips span { opacity: .6; font-variant-numeric: tabular-nums; }
.gs-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gs-bars li { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 3.5rem; align-items: center; gap: 12px; font-size: .92rem; }
.gs-bars__track { height: 10px; background: var(--mist); }
.gs-bars__fill { display: block; height: 100%; background: var(--faience); }
.gs-bars__n { text-align: end; font-variant-numeric: tabular-nums; }
.gs-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.gs-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gs-table th { text-align: start; font-weight: 600; font-size: .8rem; letter-spacing: .04em; color: var(--ink-2); background: var(--mist); padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .gs-table th { letter-spacing: 0; }
.gs-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gs-table tbody tr:last-child td { border-bottom: 0; }
.gs-table tbody tr { transition: background-color .25s ease, box-shadow .25s ease; }
.gs-table tbody tr:hover { background: var(--mist); box-shadow: inset 3px 0 0 var(--faience); }
html[dir="rtl"] .gs-table tbody tr:hover { box-shadow: inset -3px 0 0 var(--faience); }
.gs-table tbody tr:hover .gs-name a { color: var(--faience); }
.gs-rank { width: 3.2rem; text-align: center; }
.gs-rank__n { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--ink-2); border: 1px solid var(--line); }
.gs-rank__n.is-top { font-weight: 600; }
.gs-name a { text-decoration: none; font-weight: 500; transition: color .2s; }
.gs-area { color: var(--ink-2); font-size: .88rem; white-space: nowrap; }
.gs-views { width: 12rem; text-align: end; }
.gs-views__n { display: block; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.gs-views__bar { display: block; height: 4px; margin-top: .35rem; background: var(--mist); border-radius: 2px; overflow: hidden; }
.gs-views__bar span { display: block; height: 100%; background: var(--faience); border-radius: 2px; }
@media (max-width: 560px) {
	.gs-table .gs-area { display: none; }
	.gs-views { width: 7rem; }
	.gs-table td, .gs-table th { padding: .7rem .6rem; }
}
.gs-note { font-size: .85rem; opacity: .7; }
@media (max-width: 560px) {
	.gs-kpi__n { font-size: 1.6rem; }
	.gs-bars li { grid-template-columns: 1fr 3rem; }
	.gs-bars__track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- لمسات جمالية ---------- */

/* 1) موجة مرجانية قصيرة فوق عناوين الأقسام */
.sec-head h2::before, .lm-gallery h2::before, .lm-nearby h2::before, .gs-sec h2::before {
	content: ""; display: block; 
}

/* 2) حرف أول كبير في أول فقرة من صفحات المعالم والفنادق والمطاعم (للغات اللاتينية والكيريلية) */
html:not([dir="rtl"]):not([lang^="zh"]):not([lang^="ja"]):not([lang^="ko"]) .lm-article .entry-content > p:first-of-type::first-letter {
	float: left; font-family: var(--display); font-weight: 800;
	font-size: 3.4em; line-height: .9; margin: .04em .14em 0 0; color: var(--coral-ink);
}

/* 3) أيقونات رفيعة بجوار معلومات الزيارة */
.info dt { display: flex; align-items: center; gap: .45rem; }
.info dt::before {
	content: ""; flex: none; width: 1.05rem; height: 1.05rem; 
	-webkit-mask: var(--ico) no-repeat center / contain; mask: var(--ico) no-repeat center / contain;
}
.info .i-none dt::before { display: none; }
.i-best_time { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.5%22 y=%225%22 width=%2217%22 height=%2215.5%22 rx=%222%22/%3E%3Cpath d=%22M3.5 10h17M8 3v4M16 3v4%22/%3E%3C/svg%3E"); }
.i-visit_hours { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228.5%22/%3E%3Cpath d=%22M12 7.5V12l3 2%22/%3E%3C/svg%3E"); }
.i-duration { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 3h10M7 21h10M8 3c0 4.5 8 4.5 8 9s-8 4.5-8 9M16 3c0 4.5-8 4.5-8 9s8 4.5 8 9%22/%3E%3C/svg%3E"); }
.i-tickets { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.5 7h17v3.2a1.8 1.8 0 0 0 0 3.6V17h-17v-3.2a1.8 1.8 0 0 0 0-3.6z%22/%3E%3Cpath d=%22M14.5 7.5v1.5M14.5 11.25v1.5M14.5 15v1.5%22/%3E%3C/svg%3E"); }
.i-address { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21s-6.5-6-6.5-11.5a6.5 6.5 0 0 1 13 0C18.5 15 12 21 12 21z%22/%3E%3Ccircle cx=%2212%22 cy=%229.5%22 r=%222.3%22/%3E%3C/svg%3E"); }
.i-stars { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5l2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.8l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z%22/%3E%3C/svg%3E"); }
.i-price { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.5 12.5V4h8.5l9 9-8.5 8.5z%22/%3E%3Ccircle cx=%228%22 cy=%228.5%22 r=%221.4%22/%3E%3C/svg%3E"); }
.i-nearby_loc { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228.5%22/%3E%3Cpath d=%22M15.5 8.5l-2 5-5 2 2-5z%22/%3E%3C/svg%3E"); }
.i-amenities { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4.5 12.5l4.5 4.5 10.5-10.5%22/%3E%3C/svg%3E"); }
.i-phone { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 3.5h3l1.8 4.5-2.3 1.4a10.5 10.5 0 0 0 6.1 6.1l1.4-2.3 4.5 1.8v3a2 2 0 0 1-2 2A15.5 15.5 0 0 1 4 5.5a2 2 0 0 1 2-2z%22/%3E%3C/svg%3E"); }
.i-cuisine { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 3v18M4.5 3v5a2.5 2.5 0 0 0 5 0V3M17.5 21V3c-2 0-3.5 2.5-3.5 6.5S15.5 14 17.5 14%22/%3E%3C/svg%3E"); }
.i-view_label { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2.5 19.5h19M4.5 19.5L10 9l5.5 10.5M13 14.5l2.5-4 4.5 9%22/%3E%3C/svg%3E"); }

/* 4) صندوق معلومات الزيارة: حد ذهبي وظل خفيف */
.info { border-top-color: var(--sand); }




/* 6) رسم خطي خفيف للأمواج والشمس في الواجهة الرئيسية، ومشهد الساحل في الفوتر */
.hero, .site-footer { position: relative; overflow: hidden; }
.hero > .wrap, .site-footer > .wrap { position: relative; z-index: 1; }
.hero::before, .site-footer::before {
	content: ""; position: absolute; bottom: -1px; pointer-events: none;
	aspect-ratio: 3 / 1; background: url("../img/waves.svg?v=1") no-repeat center bottom / contain;
}
.hero::before { inset-inline-start: 2%; width: min(640px, 70vw); }
.site-footer::before { inset-inline-end: 2%; width: min(760px, 92vw); aspect-ratio: 6 / 1; }
html[dir="rtl"] .hero::before, html[dir="rtl"] .site-footer::before { transform: scaleX(-1); }

/* حقوق الصورة تحت الصورة البارزة */
figcaption .credit { display: block; font-size: .78rem; opacity: .75; margin-top: .15rem; }
.hero-media figcaption .credit { opacity: .85; }

/* ---------- صفحة الإحصائيات: بطاقات المجموعات والحركة عند الوصول ---------- */
.gs-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.gs-group { background: var(--surface); border: 1px solid var(--line); padding: 1.25rem 1.35rem 1.1rem; }
.gs-group:hover { border-color: rgba(23, 121, 123, .35); }
.gs-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.gs-group__title { margin: 0; font-size: 1.35rem; }
.gs-group__title a { text-decoration: none; }
.gs-group__title a:hover { color: var(--faience); }
.gs-group__n { font-family: var(--display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.gs-group__share { display: flex; align-items: center; gap: .75rem; margin: .7rem 0 1rem; }
.gs-meter { flex: 1; height: 6px; background: var(--mist); border-radius: 3px; overflow: hidden; }

.gs-group__pct { font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.gs-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gs-rows li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 2.6rem; align-items: center; gap: .8rem; padding: .5rem .35rem; border-bottom: 1px solid var(--line); font-size: .92rem; border-radius: 4px; transition: background-color .2s; }
.gs-rows li:last-child { border-bottom: 0; }
.gs-rows li:hover { background: var(--mist); }
.gs-rows__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-rows__l a { text-decoration: none; }
.gs-rows__l a:hover { color: var(--faience); text-decoration: underline; text-underline-offset: 3px; }
.gs-rows__bar { height: 6px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.gs-rows__n { text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.gs-fill { display: block; height: 100%; background: var(--faience); border-radius: inherit; transform-origin: left center; }
html[dir="rtl"] .gs-fill { transform-origin: right center; }

/* كل المربعات والجداول ظاهرة من البداية. الأرقام وحدها تعدّ (JavaScript)، وشرائط المؤشرات تمتد حين يصل القارئ إليها. */
.gs-js .gs-reveal .gs-fill { transform: scaleX(0); transition: transform 2.6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--j, 0) * 90ms + .15s); }
.gs-js .gs-reveal.is-in .gs-fill { transform: scaleX(1); }
.gs-js .gs-table-wrap tbody tr .gs-fill { transition-delay: calc(var(--i, 0) * 120ms + .2s); }
@media (max-width: 560px) {
	.gs-rows li { grid-template-columns: minmax(0, 1fr) 64px 2.4rem; }
	.gs-group__n { font-size: 1.7rem; }
}

/* زر الوضع الداكن */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; background: none; color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; }
/* الزر يعرض الوضع الذي سينتقل إليه: في الفاتح زر داكن بهلال، وفي الداكن زر فاتح بشمس. */
html:not([data-theme="dark"]) .theme-toggle { color: var(--paper); }

html[data-theme="dark"] .theme-toggle { background: #fff; color: #14202e; border-color: #fff; }

.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; }

html[data-theme="dark"] .mt-notice--ok { background: #16301F; color: #B7E4C7; border-color: #2D5A3C; }
html[data-theme="dark"] .mt-notice--err { background: #3A1B18; color: #F5C2BC; border-color: #6B2E27; }
html[data-theme="dark"] .gs-rank__n.is-top { color: #111417; }
html.theme-anim, html.theme-anim body, html.theme-anim .site-header { transition: background-color .35s ease, color .35s ease; }

/* نعومة الحواف في كل الموقع (العناصر الممتدة بعرض الشاشة تبقى مستقيمة) */
.card-media, .hero-media, .lm-hero img, .map iframe, .gallery-grid img, .gallery-grid a,
.entry-content img, .entry-content .wp-block-image img, .pagination .page-numbers, .skip { border-radius: var(--radius); }
.info { overflow: hidden; }

.gallery-grid a { display: block; overflow: hidden; }

/* بديل الصورة الناقصة في البطاقات */
.card-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1rem;
	background: url("../img/waves.svg?v=1") no-repeat center 42% / 62% auto, linear-gradient(160deg, var(--ph-from), var(--ph-to)); }
.card-ph__label { position: relative; font-size: .78rem; letter-spacing: .05em; color: var(--ink-2); background: var(--paper); padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--line); }
html[dir="rtl"] .card-ph__label { letter-spacing: 0; }
html[data-theme="dark"] .card-ph { background-image: none, linear-gradient(160deg, var(--ph-from), var(--ph-to)); }
html[data-theme="dark"] .card-ph::before { content: ""; position: absolute; inset: 0; background: url("../img/waves.svg?v=1") no-repeat center 42% / 62% auto; filter: invert(1); opacity: .5; }

/* عداد النتائج أعلى البطاقات */
.results-count { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* المشاهدات والإعجابات على صورة البطاقة */
.card-stats { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.4rem .75rem .55rem; background: linear-gradient(to bottom, transparent, rgba(10, 16, 28, .62)); color: #fff; font-size: .8rem; line-height: 1; pointer-events: none; }
.card-stat { display: inline-flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.card-media:has(.card-stats) .card-ph { padding-bottom: 2.7rem; }
.card-stat--reacts { gap: .65rem; }
.card-react { display: inline-flex; align-items: center; gap: .3rem; }
.card-react .mr-ico { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }

/* أيقونتا الإعجاب: أعجبني (الإبهام) والقلب */
.mr-ico { flex: none; display: block; }
.mr-ico--like { fill: #4a9bff; }
.mr-ico--love { fill: #ff4d6d; }

/* أزرار الإعجاب في الصفحة */
.mr { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; font-size: .9rem; color: var(--ink-2); }
.mr-label { font-weight: 500; color: var(--ink); }
.mr-btns { display: inline-flex; gap: .5rem; }
.mr-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; line-height: 1; transition: transform .15s, border-color .15s, background-color .15s; }
.mr-btn .mr-ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: fill .15s, stroke .15s, transform .2s; }
.mr-btn--like:hover, .mr-btn--like:focus-visible { border-color: #1877f2; color: #1877f2; }
.mr-btn--love:hover, .mr-btn--love:focus-visible { border-color: #f02849; color: #f02849; }
.mr-btn:hover .mr-ico { transform: scale(1.15); }
.mr-btn:focus-visible { outline: 2px solid var(--faience); outline-offset: 2px; }
.mr-btn--like.is-on { border-color: #1877f2; background: rgba(24, 119, 242, .1); color: #1877f2; }
.mr-btn--love.is-on { border-color: #f02849; background: rgba(240, 40, 73, .1); color: #f02849; }
.mr-btn--like.is-on .mr-ico { fill: #1877f2; stroke: #1877f2; }
.mr-btn--love.is-on .mr-ico { fill: #f02849; stroke: #f02849; }
.mr.is-done .mr-btn { cursor: default; }
.mr.is-done .mr-btn:not(.is-on), .mr.is-done .mr-btn:not(.is-on):hover, .mr.is-done .mr-btn:not(.is-on):focus-visible { opacity: .6; border-color: var(--line); color: var(--ink-2); outline: 0; }
.mr.is-done .mr-btn:hover .mr-ico { transform: none; }
.mr-btn:disabled { color: inherit; }
.mr-btn--like.is-on:disabled { color: #1877f2; }
.mr-btn--love.is-on:disabled { color: #f02849; }
.mr-msg { font-size: .85rem; }
.mr-msg:empty { display: none; }
html[data-theme="dark"] .mr-btn--like.is-on { background: rgba(74, 155, 255, .16); }
html[data-theme="dark"] .mr-btn--love.is-on { background: rgba(255, 77, 109, .16); }

/* زرا الصعود والنزول: على الجانب، ويتبدلان مع اتجاه اللغة */
.scroll-btns { position: fixed; inset-inline-end: 1rem; bottom: 1.25rem; z-index: 40; display: flex; flex-direction: column; gap: .5rem; }
.sbtn { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--ink); box-shadow: 0 6px 16px -8px rgba(20, 35, 58, .5); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(6px); }
.scroll-btns.is-ready .sbtn.is-on { opacity: 1; visibility: visible; transform: none; }
.sbtn:hover, .sbtn:focus-visible { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.sbtn:focus-visible { outline: 2px solid var(--faience); outline-offset: 2px; }
@media (max-width: 600px) { .scroll-btns { inset-inline-end: .7rem; bottom: .9rem; } }
@media print { .scroll-btns { display: none; } }

/* خط الفوتر ينتهي قبل رسمة الساحل فتبقى الرسمة حرة */
.fine::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; inset-inline-end: min(760px, 70vw); border-top: 1px solid var(--line); }

/* أسفل نص الصفحة: المشاهدات والإعجابات في صندوق واحد */
.page-rate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 2rem 0 0; padding: .9rem 1.1rem; border: 1px solid var(--line); background: var(--mist); }
.page-rate .mt-views { margin: 0; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ink-2); }
.page-rate .mr { margin: 0; }
.page-rate .mt-views[hidden] { display: none; }

/* «اقرأ أيضًا»: أربع بطاقات مصغرة عشوائية */
.related { margin: 2rem 0 .5rem; }
.related-h { margin: 0 0 1.2rem; } /* نفس حجم عناوين الأقسام في صفحات المعالم */
.related-h::before { content: ""; display: block; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.rel-card { display: flex; flex-direction: column; border: 1px solid var(--line); overflow: hidden; background: var(--surface); text-decoration: none; color: var(--ink); }
.rel-card:hover, .rel-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(20, 35, 58, .45); }
.rel-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, var(--ph-from), var(--ph-to)); }
.rel-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rel-ph { display: block; width: 100%; height: 100%; background: url("../img/waves.svg?v=1") no-repeat center / 60% auto; }
html[data-theme="dark"] .rel-ph { filter: invert(1); opacity: .5; }
.rel-title { display: block; padding: .7rem .8rem .8rem; font-size: .95rem; line-height: 1.5; font-weight: 500; text-align: center; }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- متصل الآن ---------- */
.online-badge {
	display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; line-height: 1.5; white-space: nowrap;
	color: var(--ink); text-decoration: none; border: 1px solid var(--line); padding: .25rem .85rem; 
	font-variant-numeric: tabular-nums; 
}
a.online-badge:hover, a.online-badge:focus-visible { border-color: #1f9d55; color: #1f9d55; background: rgba(31, 157, 85, .07); }
.online-dot, .gs-live-dot {
	width: .5rem; height: .5rem; border-radius: 50%; background: #22b35e; flex: none;
	box-shadow: 0 0 0 0 rgba(34, 179, 94, .55); animation: mt-live 2.4s ease-out infinite;
}
@keyframes mt-live {
	0% { box-shadow: 0 0 0 0 rgba(34, 179, 94, .55); }
	70% { box-shadow: 0 0 0 .45rem rgba(34, 179, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 179, 94, 0); }
}
@media (prefers-reduced-motion: reduce) { .online-dot, .gs-live-dot { animation: none; } }
@media (max-width: 860px) { .online-badge { display: none; } }

.gs-kpi--live {
	border-color: rgba(34, 179, 94, .45);
	background: linear-gradient(180deg, rgba(34, 179, 94, .09), rgba(34, 179, 94, .02)), var(--mist);
	box-shadow: 0 0 0 3px rgba(34, 179, 94, .07), 0 6px 22px rgba(34, 179, 94, .12);
}
.gs-kpi--live .gs-kpi__l { display: inline-flex; align-items: center; gap: .45rem; }
.gs-kpi--live .gs-kpi__n { color: #1f9d55; }
html[data-theme="dark"] .gs-kpi--live .gs-kpi__n, html[data-theme="dark"] a.online-badge:hover { color: #4ade80; }

/* ---------- لمسات خفيفة ---------- */
::selection { color: inherit; }
.site-header { transition: box-shadow .3s, background-color .3s; }

html[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .8); }
.btn { transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }




/* رسم «يوم في مطروح» تحت عنوان الخطة */
.plan-art { margin: 1.6rem 0 0; }
.plan-art svg { display: block; width: 100%; height: auto; box-shadow: 0 18px 40px -28px rgba(20, 35, 58, .55); }
html[data-theme="dark"] .plan-art svg { filter: brightness(.82) saturate(.9); }
@media (max-width: 860px) { .plan-art { max-width: 520px; } }

/* القفز إلى أقسام الصفحة: يترك مسافة تحت الهيدر الثابت فلا يُقطع العنوان */
[id] { scroll-margin-top: 6rem; }

/* صفحة الإحصائيات: مربع المدن والمناطق، وقوائم التنقل، وجداول الفنادق والمطاعم */
.gs-kpi--pair { padding: 0; gap: 0; }
.gs-pair__row { display: flex; flex-direction: column; gap: .2rem; padding: .7rem 1.1rem; text-decoration: none; color: inherit; transition: background-color .2s; }
.gs-pair__row + .gs-pair__row { border-top: 1px dashed var(--line); }
.gs-pair__row .gs-kpi__n { font-size: 1.55rem; }
.gs-pair__row:hover { background: var(--surface); }
.gs-pair__row .gs-kpi__l { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.gs-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.gs-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .93rem; }
.gs-list a { text-decoration: none; color: var(--faience); }
.gs-list a:hover { text-decoration: underline; }
.gs-list__x { color: var(--ink-2); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gs-table--list .gs-cat { color: var(--sand); letter-spacing: .05em; white-space: nowrap; }

/* مربعات الإحصائيات في صفين ثابتين على الحاسب: «زيارات الموقع» تحت «متصل الآن»، و«المناطق» تحت «المدن» */
@media (min-width: 1100px) { .gs-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* الفنادق والمطاعم متجاوران */
.gs-pair-secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.gs-pair-secs .gs-sec { margin-top: 0; }
.gs-pair-secs .gs-table th, .gs-pair-secs .gs-table td { padding: .5rem .55rem; font-size: .88rem; }
.gs-pair-secs .gs-table .gs-rank { width: 2rem; }
@media (max-width: 900px) { .gs-pair-secs { grid-template-columns: 1fr; } }
.gs-more { margin: .9rem 0 0; text-align: center; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* اللوحات المرسومة للمقالات بلا صورة */
.mt-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media .card-art { position: absolute; inset: 0; }
.rel-media .mt-art { aspect-ratio: auto; }

html[data-theme="dark"] .mt-art { filter: brightness(.85) saturate(.92); }

/* ------------------------------------------------------------------
 * لغات بكلمات طويلة (الألمانية والروسية…): لا يتسع شيء خارج الشاشة.
 * ---------------------------------------------------------------- */
body { overflow-wrap: break-word; }
html:not([lang^="en"]):not([dir="rtl"]) :is(h1, h2, h3, h4, p, li, .card-title, figcaption) { hyphens: auto; -webkit-hyphens: auto; }
.filters > *, .filter-row > * { min-width: 0; }
.langs__code { display: none; }

@media (max-width: 480px) {
	.langs__name { display: none; }
	.langs__code { display: inline; font-weight: 600; letter-spacing: .04em; }



}
@media (max-width: 360px) {
	.brand { font-size: 1.35rem; }
}

/* قائمة مضغوطة تلقائيًا: إن لم تتسع روابط القائمة في سطر واحد (لغة بكلمات طويلة، أو شاشة متوسطة)
   تتحول إلى زر القائمة كما في الجوال، أيًّا كان عرض الشاشة. يضيف السكربت الصنف nav-compact. */
html.nav-compact .header-in { gap: 1rem; }
html.nav-compact .header-tools { margin-inline-start: auto; }
html.nav-compact .nav-toggle { display: inline-flex; }
html.nav-compact .online-badge { display: none; }
html.nav-compact .primary-nav {
	display: none; position: absolute; inset-inline: 0; top: 100%;
	background: var(--paper); border-bottom: 1px solid var(--line);
	padding: .75rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
}
html.nav-compact .site-header.is-open .primary-nav { display: block; }
html.nav-compact .primary-nav .nav-list { flex-direction: column; gap: .25rem; align-items: flex-start; }
html.nav-compact .primary-nav .nav-list a { font-size: 1.05rem; display: inline-block; padding-block: .45rem; }
.brand { white-space: nowrap; flex: none; }
@media (max-width: 380px) {

}
/* عناوين أصغر قليلًا على الجوال للغات ذات الكلمات الطويلة، فتتسع الكلمة الطويلة في سطر واحد غالبًا. */
@media (max-width: 480px) {
	html:not([lang^="en"]):not([dir="rtl"]):not([lang^="zh"]):not([lang^="ja"]):not([lang^="ko"]) h1 { font-size: 1.9rem; }
	html:not([lang^="en"]):not([dir="rtl"]):not([lang^="zh"]):not([lang^="ja"]):not([lang^="ko"]) h2 { font-size: 1.45rem; }
}


/* مبدّل اللغة على الجوال: الرمز وحده دون الكرة الأرضية، والقائمة المنسدلة على قدر أسماء اللغات. */
@media (max-width: 480px) {

	.langs__list { min-width: 100%; width: max-content; max-width: calc(100vw - 2rem); }
	.langs__a { padding: .35rem .6rem; }
}
/* قوائم صفحة الإحصائيات على الشاشات الضيقة: الوصف الجانبي ينزل تحت الاسم بدل أن يخرج عن الشاشة. */
@media (max-width: 480px) {
	.gs-list li { flex-wrap: wrap; gap: .1rem 1rem; }
	.gs-list__x { white-space: normal; }
}

/* ==================================================================
 * طابع مطروح: ألوان البحر والشمس، حواف مستديرة، وموجات خفيفة.
 * ================================================================== */

/* الشعار: شمس وموجة، والاسم بلونين */
.brand { display: inline-flex; align-items: center; gap: .4rem; }
.brand__mark { width: 1.9rem; height: 1.9rem; flex: none; }
.brand__a { color: var(--faience); }
.brand__b { color: var(--coral-ink); }
.brand--ar .brand__b { margin-inline-start: .25em; }
.site-footer .brand__mark { width: 2.1rem; height: 2.1rem; }

/* الأزرار: حبوب فيروزية، والتمرير مرجاني */
.btn { background: var(--faience); color: #fff; border-radius: 999px; font-weight: 600; padding: .8rem 1.7rem; }
.btn:hover { background: var(--coral-ink); color: #fff; }
html[data-theme="dark"] .btn { color: #08202B; }
html[data-theme="dark"] .btn:hover { color: #08202B; }
.btn--ghost { border-radius: 999px; }
.textlink { border-bottom: 2px solid var(--sun); font-weight: 500; }
.textlink:hover { color: var(--coral-ink); border-bottom-color: var(--coral-ink); }

/* القائمة: القسم الحالي بخلفية فيروزية فاتحة */
.nav-list a { padding: .3rem .75rem; border-radius: 999px; border-bottom: 0; transition: background-color .2s, color .2s; }
.primary-nav .nav-list { gap: .35rem; }
.nav-list a:hover { background: var(--mist); border-bottom: 0; }
.nav-list .current-menu-item > a { background: var(--faience); color: #fff; border-bottom: 0; }
html[data-theme="dark"] .nav-list .current-menu-item > a { color: #08202B; }
.foot-list a { padding: 0; border-radius: 0; }
.foot-list a:hover { background: none; color: var(--faience); }

.langbtn, .theme-toggle, .online-badge, .nav-toggle { border-radius: 999px; }
html:not([data-theme="dark"]) .theme-toggle { background: var(--ink); border-color: var(--ink); }
html:not([data-theme="dark"]) .theme-toggle:hover { background: var(--faience); border-color: var(--faience); }
html[data-theme="dark"] .theme-toggle:hover { background: var(--sun); border-color: var(--sun); }

/* الواجهة: سماء صافية تذوب في رمال دافئة، وموجة عند الحافة السفلى */
.hero { background: radial-gradient(60rem 30rem at 85% -10%, rgba(255, 194, 60, .28), transparent 60%), linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 100%); border-bottom: 0; padding-bottom: 2.2rem; }
.hero::after {
	content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 46px; pointer-events: none; background: var(--paper);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C150 6 300 6 450 24 S750 44 900 24 S1100 6 1200 20 V46 H0 Z'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C150 6 300 6 450 24 S750 44 900 24 S1100 6 1200 20 V46 H0 Z'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
}
.hero::before { opacity: .12; }
.mast {
	background: linear-gradient(100deg, #00A3A6 0%, #0A6F8F 55%, #FF6B57 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	padding-block-end: .08em;
}
html[data-theme="dark"] .mast { background-image: linear-gradient(100deg, #4FD6D3 0%, #9EE9F0 55%, #FF9C86 100%); }
.lede { color: var(--ink); opacity: .82; }

.hero-media::after { content: ""; position: absolute; inset-block-start: -28px; inset-inline-end: -28px; width: 110px; height: 110px; border-radius: 50%; background: var(--sun); opacity: .85; z-index: -1; }
.hero-media { overflow: visible; isolation: isolate; }

.hero-media figcaption { background: linear-gradient(0deg, rgba(11, 49, 66, .72), rgba(11, 49, 66, 0)); }

/* عناوين الأقسام: موجة مرجانية بدل الخط */
.sec-head h2::before, .lm-gallery h2::before, .lm-nearby h2::before, .gs-sec h2::before, .related-h::before {
	width: 4.6rem; height: 10px; margin-bottom: .45rem; background: var(--sand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 10'%3E%3Cpath d='M1 5 q4.5 -4 9 0 t9 0 t9 0 t9 0 t9 0 t9 0 t9 0 t9 0' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 10'%3E%3Cpath d='M1 5 q4.5 -4 9 0 t9 0 t9 0 t9 0 t9 0 t9 0 t9 0 t9 0' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}



.card-meta { color: var(--coral-ink); font-weight: 600; letter-spacing: .01em; }

.card-title a:hover { color: var(--faience); }
.badge { background: var(--sun); color: #0B3142; border-radius: 999px; font-weight: 700; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }



/* الرقائق */
.chip { border-color: color-mix(in srgb, var(--faience) 35%, transparent); background: var(--surface); }
.chip:hover { border-color: var(--faience); color: var(--faience); }
.chip.is-current { background: var(--faience); border-color: var(--faience); color: #fff; }
html[data-theme="dark"] .chip.is-current { color: #08202B; }
.filter-row--sub .chip.is-current { background: var(--coral-ink); border-color: var(--coral-ink); }
.lm-tags .chip { color: var(--faience); background: var(--mist); border-color: transparent; }
.lm-tags .chip:hover { background: var(--faience); color: #fff; }
.where-city { border-top: 0; background: var(--surface); border-radius: var(--radius-lg); padding: 1.3rem 1.2rem 1.4rem; position: relative; overflow: hidden; }
.where-city::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--sea), var(--sun), var(--sand)); }
.where-city .chip:hover { background: var(--faience); border-color: var(--faience); color: #fff; }

/* يوم في مطروح */
.sec--mist { background: linear-gradient(180deg, var(--mist), color-mix(in srgb, var(--mist) 55%, var(--paper))); }
.timeline li { border-top: 1px dashed color-mix(in srgb, var(--faience) 40%, transparent); }
.timeline li:last-child { border-bottom: 1px dashed color-mix(in srgb, var(--faience) 40%, transparent); }
.timeline .t { color: var(--coral-ink); font-weight: 700; }


/* قبل أن تذهب: أربع بطاقات بأربعة ألوان صيفية */
.ess > div { border-top: 0; background: var(--surface); border-radius: var(--radius-lg); padding: 1.3rem 1.3rem 1.4rem; position: relative; }
.ess > div::before { content: ""; display: block; width: 2.6rem; height: 2.6rem; border-radius: 50%; margin-bottom: .8rem; background: var(--c, var(--sea)); opacity: .9;
	-webkit-mask: none; }
.ess > div:nth-child(1) { --c: var(--sun); }
.ess > div:nth-child(2) { --c: var(--sand); }
.ess > div:nth-child(3) { --c: var(--sea); }
.ess > div:nth-child(4) { --c: var(--palm); }

/* صندوق معلومات المكان */
.info { border-top: 0; border-radius: var(--radius-lg); background: var(--mist); position: relative; }
.info::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--sea), var(--sun), var(--sand)); }
.info dt::before { background: var(--faience); }

.stars { color: var(--sun); }
html:not([data-theme="dark"]) .stars { color: #E9A800; }
.entry-content blockquote { border-inline-start-color: var(--sea); background: var(--mist); padding: .8rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; }
html[dir="rtl"] .entry-content blockquote { border-radius: var(--radius) 0 0 var(--radius); }
.entry-content a { color: var(--faience); text-decoration-color: color-mix(in srgb, var(--faience) 45%, transparent); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--coral-ink); }

/* السباحة: نقطة ملونة حسب حالة البحر */
.swim-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-inline-end: .45rem; background: #9AA5AE; vertical-align: .05em; }
.swim--calm .swim-dot { background: #22B35E; box-shadow: 0 0 0 3px rgba(34, 179, 94, .18); }
.swim--moderate .swim-dot { background: #F2B01E; box-shadow: 0 0 0 3px rgba(242, 176, 30, .2); }
.swim--caution .swim-dot { background: #E5533D; box-shadow: 0 0 0 3px rgba(229, 83, 61, .18); }
.i-water { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2.5 9c2.4 0 2.4-2 4.75-2S9.6 9 12 9s2.4-2 4.75-2S19.1 9 21.5 9M2.5 14c2.4 0 2.4-2 4.75-2S9.6 14 12 14s2.4-2 4.75-2 2.35 2 4.75 2M2.5 19c2.4 0 2.4-2 4.75-2S9.6 19 12 19s2.4-2 4.75-2 2.35 2 4.75 2%22/%3E%3C/svg%3E"); }
.i-swim { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2217%22 cy=%226.5%22 r=%222%22/%3E%3Cpath d=%22M4 12.5l5-3 3.5 2.5 3-2M2.5 17c2.4 0 2.4-1.8 4.75-1.8S9.6 17 12 17s2.4-1.8 4.75-1.8S19.1 17 21.5 17%22/%3E%3C/svg%3E"); }
.i-facilities { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 11a9 7 0 0 1 18 0z%22/%3E%3Cpath d=%22M12 11v8.5a1.8 1.8 0 0 1-3.6 0M12 4v.5%22/%3E%3C/svg%3E"); }
.i-distance { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%226%22 cy=%2218%22 r=%222.2%22/%3E%3Cpath d=%22M18 9.5c0 3-3 6-3 6s-3-3-3-6a3 3 0 0 1 6 0z%22/%3E%3Cpath d=%22M8 17.5h5.5a2.5 2.5 0 0 0 0-5H9.5a2.5 2.5 0 0 1 0-5H12%22/%3E%3C/svg%3E"); }

/* الفوتر: موجة في أعلاه، ومشهد الساحل */
.site-footer { border-top: 0; margin-top: 3.2rem; overflow: visible; }

.site-footer::after {
	content: ""; position: absolute; inset-inline: 0; top: -38px; height: 40px; pointer-events: none; background: var(--mist);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C200 2 350 2 520 20 S860 38 1020 18 S1150 8 1200 14 V40 H0 Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C200 2 350 2 520 20 S860 38 1020 18 S1150 8 1200 14 V40 H0 Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}


html[data-theme="dark"] .hero::before { filter: invert(1) hue-rotate(180deg); }

/* بقية العناصر */
.page-rate, .gs-kpi, .gs-group, .rel-card, .gs-table-wrap, .langs__list { border-radius: var(--radius); }
.gs-kpi__n, .gs-group__n, .gs-views__n { color: var(--faience); }
.gs-rank__n.is-top { background: var(--sun); border-color: var(--sun); color: #0B3142; }
.gs-meter .gs-fill { background: var(--sand); }
.rel-card:hover, .rel-card:focus-visible { border-color: var(--sea); }
.sbtn { border-radius: 999px; background: var(--faience); border-color: var(--faience); color: #fff; }
html[data-theme="dark"] .sbtn { color: #08202B; }
.pagination .page-numbers { border-radius: 999px; min-width: 2.4rem; text-align: center; }
.pagination .page-numbers.current { background: var(--faience); border-color: var(--faience); color: #fff; }
::selection { background: color-mix(in srgb, var(--sun) 55%, transparent); }
:focus-visible { outline-color: var(--coral-ink); }

/* الجوال: الشعار أصغر قليلًا حتى يتسع الهيدر مع زر القائمة */
@media (max-width: 480px) {
	.brand { font-size: 1.3rem; gap: .25rem; }
	.brand--ar { font-size: 1.4rem; }
	.brand__mark { width: 1.45rem; height: 1.45rem; }

}
@media (max-width: 380px) {
	.brand, .brand--ar { font-size: 1.15rem; }
	.brand__mark { display: none; }
}

/* ---------- زر البحث وحقله ---------- */
.search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; cursor: pointer; border-radius: 999px; border: 1px solid var(--faience); background: var(--faience); color: #fff; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--coral-ink); border-color: var(--coral-ink); }
html[data-theme="dark"] .search-toggle { color: #08202B; }
.search-toggle svg { width: 1.15rem; height: 1.15rem; }
.site-search { border-top: 1px solid var(--line); background: var(--header-bg); padding-block: .8rem; }
.site-search[hidden] { display: none; }
.site-search__form { display: flex; gap: .6rem; max-width: 46rem; margin-inline: auto; }
.site-search__form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 2px solid color-mix(in srgb, var(--faience) 45%, transparent); border-radius: 999px; padding: .6rem 1.1rem; }
.site-search__form input:focus { outline: none; border-color: var(--faience); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sea) 20%, transparent); }
.site-search__form .btn { padding: .6rem 1.4rem; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
@media (max-width: 480px) {

	.site-search__form .btn { padding-inline: 1rem; }
}

/* ---------- أيقونة الكرة الأرضية وقائمة اللغات ---------- */
.langs__globe { display: inline-block; width: 1.15rem; height: 1.15rem; border: 0; border-radius: 0; color: var(--faience); flex: none; }
.langs__globe::before { content: none; }
.langbtn { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; }
/* القائمة المنسدلة على قدر أطول اسم لغة فقط. */
.langs__list { width: max-content; min-width: 100%; max-width: calc(100vw - 2rem); inset-inline: auto 0; }
@media (max-width: 480px) {
	.langs__globe { display: inline-block; }
	.langbtn, .langs > summary.langbtn { gap: .3rem; }


}
@media (max-width: 360px) {
	.langs__globe { display: none; }

}

/* رسمة الساحل في الفوتر: رسمة ملونة كاملة الوضوح */
.site-footer::before { opacity: 1; background-image: url("../img/footer-scene.svg?v=4"); }
html[data-theme="dark"] .site-footer::before { opacity: .88; filter: brightness(.92) saturate(.95); }

/* ---------- سلايدر الصفحة الرئيسية ---------- */
.hero-slider .hs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slider .hs-slide.is-on { opacity: 1; z-index: 1; }
.hero-slider .hs-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slider .hs-link { position: absolute; inset: 0; display: block; color: inherit; }
.hero-slider .hs-link:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
/* تعليق الصورة أسفلها على عرضها كله. */
.hero-slider .hs-slide figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.6rem 1.1rem .85rem; color: #fff; font-size: .92rem; font-weight: 500; background: linear-gradient(0deg, rgba(11, 49, 66, .72), rgba(11, 49, 66, 0)); }
@media (prefers-reduced-motion: reduce) { .hero-slider .hs-slide { transition-duration: .4s; } }


/* ==================================================================
 * لمسات جمالية (1.3.0)
 * ================================================================== */

/* الشعار: مسافة صغيرة بين الألف والڤ حتى لا تلتصق النقاط الثلاث بالألف. */
.brand__k { display: inline-block; width: .12em; }

/* الواجهة: النص والأزرار أعلى قليلًا من منتصف الصورة. */
@media (min-width: 861px) {
	.hero-grid { align-items: start; }
	.hero-copy { margin-block-start: -2.6rem; }
}
/* الإنجليزية: كلمة Matruh وحدها أبعد قليلًا عن الهيدر، والنص والأزرار تحتها في مكانها. */
@media (min-width: 861px) {
	html:not([dir="rtl"]) .hero-copy .mast { position: relative; top: 2rem; }
}

/* الفوتر: نهاية رسمة الساحل من جهة الصفحة تذوب تدريجيًا في لون الفوتر بدل أن تنقطع. */
.site-footer::before {
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

/* ظلال ناعمة بلون البحر للقوائم والبلوكات. */
:root { --lift: 0 22px 44px -26px rgba(11, 49, 66, .55), 0 2px 8px -4px rgba(11, 49, 66, .12); --soft: 0 10px 26px -20px rgba(11, 49, 66, .45); }
html[data-theme="dark"] { --lift: 0 22px 44px -24px rgba(0, 0, 0, .9); --soft: 0 10px 26px -18px rgba(0, 0, 0, .8); }
.site-header.is-scrolled { box-shadow: var(--soft); }
.langs__list, .site-search { box-shadow: var(--lift); }
.langs__list { border-radius: 14px; border-color: transparent; }
.primary-nav .nav-list a { transition: background-color .2s, color .2s, transform .2s; }
.primary-nav .nav-list a:hover { transform: translateY(-1px); }
html.nav-compact .primary-nav, .site-header.is-open .primary-nav { box-shadow: var(--lift); }

/* البطاقات: رفعة أوضح وتكبير ناعم للصورة، والعنوان يتلون عند المرور. */
.card { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.card-media { box-shadow: var(--soft); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
.card:hover .card-media { transform: translateY(-6px); box-shadow: var(--lift); }
.card:hover .card-media img { transform: scale(1.06); }
.card:hover .card-title a { color: var(--faience); }

/* البلوكات (المناطق، قبل أن تسافر، صندوق المعلومات، اقرأ أيضًا، الإحصائيات): ظل ورفعة عند المرور. */
.where-city, .ess > div, .rel-card, .gs-kpi, .gs-group, .page-rate {
	box-shadow: 0 0 0 1px var(--line), var(--soft);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.where-city:hover, .ess > div:hover, .rel-card:hover, .gs-kpi:hover, .gs-group:hover {
	transform: translateY(-4px);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--sea) 35%, transparent), var(--lift);
}
.ess > div::before { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ess > div:hover::before { transform: scale(1.12) rotate(-8deg); }
.info { box-shadow: 0 0 0 1px var(--line), var(--lift); }

/* صورة الواجهة وصور الصفحات: ظل عميق، وتكبير هادئ لصور المعرض. */
.hero-media { box-shadow: var(--lift); }
.lm-hero img { box-shadow: var(--lift); }
.gallery-grid a { box-shadow: var(--soft); transition: transform .35s, box-shadow .35s; }
.gallery-grid a:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.gallery-grid a img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery-grid a:hover img { transform: scale(1.05); opacity: 1; }
.plan-art svg { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.plan-art:hover svg { transform: translateY(-4px) rotate(-.4deg); }

/* الأزرار والرقائق: رفعة صغيرة وظل ملوّن. */
.btn { box-shadow: 0 8px 18px -12px rgba(0, 121, 125, .75); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(200, 64, 43, .7); }
.chip { transition: border-color .2s, background-color .2s, color .2s, transform .2s, box-shadow .2s; }
.chip:hover { transform: translateY(-1px); box-shadow: var(--soft); }
.theme-toggle, .search-toggle, .langbtn, .online-badge, .sbtn { transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s; }
.theme-toggle:hover, .search-toggle:hover, .langbtn:hover, .sbtn:hover { transform: translateY(-1px); box-shadow: var(--soft); }

/* روابط الفوتر: خط سفلي ينمو عند المرور. */
.foot-list a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px; transition: background-size .3s, color .2s; padding-bottom: .1rem; }
html[dir="rtl"] .foot-list a { background-position: 100% 100%; }
.foot-list a:hover { background-size: 100% 1.5px; }

/* الشمس خلف صورة الواجهة تتنفس ببطء. */
@keyframes mt-sun { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 194, 60, .35); } 50% { transform: scale(1.1); box-shadow: 0 0 34px 10px rgba(255, 194, 60, .45); } }
.hero-media::after { animation: mt-sun 3.6s ease-in-out infinite; }
/* أشعة رفيعة تدور ببطء حول الشمس خلف صورة الواجهة. */
@keyframes mt-rays { to { transform: rotate(360deg); } }
.hero-media::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: 230px; height: 230px; inset-block-start: -88px; inset-inline-end: -88px; border-radius: 50%;
	background: repeating-conic-gradient(from 0deg, rgba(255, 186, 40, .75) 0deg 1.6deg, transparent 1.6deg 12deg);
	-webkit-mask: radial-gradient(circle, transparent 0 60px, #000 63px 84px, transparent 114px);
	mask: radial-gradient(circle, transparent 0 60px, #000 63px 84px, transparent 114px);
	animation: mt-rays 28s linear infinite;
}
html[data-theme="dark"] .hero-media::before { opacity: .7; }

@media (hover: none) {
	.card:hover .card-media, .where-city:hover, .ess > div:hover, .rel-card:hover, .gs-kpi:hover, .gs-group:hover, .gallery-grid a:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-media::after, .hero-media::before { animation: none; }
}

/* الفوتر: لا قص لما يعلو السطر (النقطة العليا للڤ في الشعار). */
.site-footer > .wrap { overflow: visible; }
.site-footer .brand { padding-block-start: .35em; }
/* نموذج التواصل: حقل الحماية المخفي يبقى داخل النموذج (لا شريط تمرير عرضي في الصفحات العربية). */
.mt-form-wrap { position: relative; }

/* مقالات المدونة: مسافة بين الصورة وأول سطر، وبطاقة جانبية مثل صفحات الأماكن. */
.single-post .lm-hero + * , .single-post .wrap > .entry-content:first-child { margin-block-start: 0; }
.single-post .entry-content > :first-child { margin-block-start: 0; }
.single-post .post-main, .single-post .wrap > .entry-content { padding-block-start: clamp(1.5rem, 3.5vw, 2.25rem); }
.single-post .post-cols { padding-block-start: 0; }
.single-post .post-cols .lm-side { margin-block-start: clamp(1.5rem, 3.5vw, 2.25rem); }
.info--distances dd { font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.single-post .map h2 { font-size: 1.5rem; margin: 0 0 .6rem; }
.single-post .map .btn { display: flex; width: 100%; justify-content: center; text-align: center; }

/* بطاقة المواضيع المشابهة: أزرار تحت بعضها، وفي وسطها مساحة إعلانية. */
.topic-btns { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.topic-btn { display: block; padding: .8rem 1rem; border-radius: 14px; background: var(--paper, #fff); border: 1px solid rgba(0, 121, 125, .18); color: var(--ink); font-weight: 600; line-height: 1.45; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.topic-btn:hover, .topic-btn:focus-visible { transform: translateY(-2px); border-color: var(--faience); box-shadow: var(--soft, 0 6px 16px rgba(0,0,0,.08)); }
.topic-ad:empty { display: none; }
.topic-ad > * { margin: .2rem 0; }
html[data-theme="dark"] .topic-btn { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }

/* المقال: عنوان أصغر في سطر واحد على الكمبيوتر، وصورة أقل ارتفاعًا. */
.single-post .page-head h1 { font-size: clamp(1.45rem, 2.3vw, 2.25rem); line-height: 1.3; }

@media (max-width: 860px) {

}

/* جداول المقالات (مثل جدول الطقس): واضحة ومتناوبة الألوان، وتمرر أفقيًا على الشاشات الضيقة. */
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.25rem 0 1.75rem; font-size: .95rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.entry-content th, .entry-content td { padding: .6rem .8rem; text-align: center; border-bottom: 1px solid var(--line); }
.entry-content th:first-child, .entry-content td:first-child { text-align: start; font-weight: 600; }
.entry-content thead th { background: var(--faience); color: #fff; font-weight: 700; border-bottom: 0; }
.entry-content tbody tr:nth-child(even) td { background: rgba(0, 121, 125, .06); }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:hover td { background: rgba(255, 194, 60, .16); }
@media (max-width: 600px) {
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; font-size: .9rem; }
}

/* 1.4.0: عناوين أخف وزنًا، وتقييد العنوان + المقتطف بخمسة أسطر إجمالًا. */
h1, h2, h3, h4, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-weight: 600; }
.card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--ex-lines, 2); line-clamp: var(--ex-lines, 2); overflow: hidden; }

/* أيقونات بطاقتي «معلومات سريعة» و«المسافات» في المقالات (بدل المربع الفارغ). */
.info--quick_facts dt { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228.5%22/%3E%3Cpath d=%22M12 11v5.5M12 7.6v.2%22/%3E%3C/svg%3E"); }
.info--distances dt { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222.3%22/%3E%3C/svg%3E"); }

/* 1.4.4: الجداول العريضة لا تدفع الصفحة أفقيًا على الجوال (عمود المقال في الشبكة يقبل الانكماش). */
.post-main, .entry-content { min-width: 0; }
.entry-content table { max-width: 100%; }
@media (max-width: 600px) {
	.entry-content td, .entry-content th { white-space: normal; min-width: 4.5rem; padding: .55rem .5rem; }
}

/* 1.4.6: عناوين البطاقات في كل الأقسام (المدونة والشواطئ والإقامة والمطاعم والتسوق والتنقل والرئيسية) أصغر وأخف قليلًا. */
.card-title, .card-title a { font-weight: 560; }
.card-title { font-size: 1.3rem; line-height: 1.35; }
@media (max-width: 600px) { .card-title { font-size: 1.2rem; } }

/* الهيدر على الجوال: إن لم يتسع الشعار وأزرار الهيدر في السطر (قبل تحميل خط الشعار، أو بخط بديل، أو شاشة ضيقة جدًا)
   يصغر الشعار بدل أن يدفع زر القائمة خارج الشاشة. يضيف السكربت في header.php الصنف brand-tight عند الحاجة فقط. */
.brand { min-width: 0; }
html.brand-tight .site-header .brand { font-size: 1.15rem; flex-shrink: 1; }
html.brand-tight .site-header .brand--ar { font-size: 1.25rem; }
html.brand-tight .site-header .brand__mark { width: 1.35rem; height: 1.35rem; }
html.brand-tight .header-in { gap: .45rem; }



/* ==================================================================
 * 1.6.0
 * ================================================================== */

/* حواف الصور: انحناء خفيف جدًا في كل الموقع. */
.card-media, .hero-media, .hero-media img, .lm-hero img, .lm-hero--art .mt-art, .map iframe, .gallery-grid a, .gallery-grid img,
.entry-content img, .entry-content .wp-block-image img, .plan-art svg, .hero-slider .hs-slide img, .hero-slider .hs-link:focus-visible, .rel-card { border-radius: var(--radius-img); }
.cards--editorial .card:nth-child(1) .card-media, html[dir="rtl"] .cards--editorial .card:nth-child(1) .card-media { border-radius: var(--radius-img); }
.hero-media figcaption, .hero-slider .hs-slide figcaption { border-radius: 0 0 var(--radius-img) var(--radius-img); }

/* صورة الموضوع الكبيرة: أطول وأقل عرضًا قليلًا. */
.lm-hero { max-width: 980px; margin-inline: auto; }
.lm-hero img, .single-post .lm-hero img, .single-post .lm-hero--art .mt-art, .lm-hero--art .mt-art { width: 100%; aspect-ratio: 16 / 9; max-height: 560px; height: auto; object-fit: cover; }
@media (max-width: 860px) {
	.lm-hero img, .single-post .lm-hero img, .single-post .lm-hero--art .mt-art, .lm-hero--art .mt-art { aspect-ratio: 4 / 3; max-height: 420px; }
}

/* زر «الرئيسية» يختفي من الهيدر على الكمبيوتر (الشعار يكفي)، ويبقى في قائمة الجوال. */
@media (min-width: 861px) { .primary-nav .nav-home { display: none; } }

/* شمس الشعار: تصعد وتهبط بهدوء في مكانها. */
@keyframes mt-sun-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4.4px); } }
.brand__sun { transform-box: fill-box; transform-origin: center; animation: mt-sun-bob 3.2s ease-in-out infinite; }

/* المدونة: خط خفيف يفصل فلتر المكان عن فلتر الموضوع، وتوزيع متساوٍ لأزرار الموضوع. */
.filter-row--sep { margin-top: .55rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.chip-break { flex-basis: 100%; height: 0; }

/* المشاركة: بين عداد المشاهدات والإعجاب. */
.page-rate { gap: .75rem 1.25rem; }
.share { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.share__l { font-size: .85rem; color: var(--ink-2); margin-inline-end: .15rem; }
.sh-btn { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; padding: 0; transition: transform .15s, color .15s, border-color .15s, background-color .15s; }
.sh-btn svg { fill: currentColor; }
.sh-btn--copy svg { fill: none; }
.sh-btn:hover, .sh-btn:focus-visible { transform: translateY(-1px); color: #fff; }
.sh-btn:focus-visible { outline: 2px solid var(--faience); outline-offset: 2px; }
.sh-btn--facebook:hover, .sh-btn--facebook:focus-visible { background: #1877f2; border-color: #1877f2; }
.sh-btn--whatsapp:hover, .sh-btn--whatsapp:focus-visible { background: #25d366; border-color: #25d366; }
.sh-btn--telegram:hover, .sh-btn--telegram:focus-visible { background: #229ed9; border-color: #229ed9; }
.sh-btn--x:hover, .sh-btn--x:focus-visible { background: #111; border-color: #111; }
.sh-btn--copy:hover, .sh-btn--copy:focus-visible, .sh-btn--copy.is-done { background: var(--faience); border-color: var(--faience); color: #fff; }
.share__msg { font-size: .8rem; color: var(--faience); }
.share__msg:empty { display: none; }
html[data-theme="dark"] .sh-btn--x:hover, html[data-theme="dark"] .sh-btn--x:focus-visible { background: #fff; border-color: #fff; color: #111; }

/* تمييز كلمات البحث. */
mark.mt-hl { background: color-mix(in srgb, var(--sun, #FFC23C) 55%, transparent); color: inherit; padding: 0 .1em; border-radius: 3px; }
mark.mt-hl.is-first { box-shadow: 0 0 0 2px var(--sun, #FFC23C); }
html[data-theme="dark"] mark.mt-hl { background: rgba(255, 194, 60, .35); }

/* حالة الطقس في الهيدر: بجوار زر الوضع الداكن. */
.wx-badge { display: inline-flex; align-items: center; height: 2.4rem; padding-inline: .45rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; font-variant-numeric: tabular-nums; transition: transform .2s, box-shadow .2s, border-color .2s; }
.wx-badge[hidden] { display: none; }
.wx-badge:hover, .wx-badge:focus-visible { transform: translateY(-1px); box-shadow: var(--soft); border-color: var(--faience); }

.wx-badge__ico svg { width: 22px; height: 22px; }
@media (max-width: 420px) { .wx-badge { padding-inline: .3rem .45rem; font-size: .82rem; } }

@media (prefers-reduced-motion: reduce) { .brand__sun { animation: none; } }

/* الجوال: الهيدر يتسع للشعار والطقس والأزرار في سطر واحد على كل المقاسات (حتى 320). */
.wx-badge, .theme-toggle, .langbtn, .nav-toggle, .search-toggle { flex: none; }
.site-header .brand { min-width: 0; }
@media (max-width: 480px) {
	.wx-badge { padding-inline: .45rem; font-size: .84rem; }
	.wx-badge__ico { display: none; }
	.header-tools { gap: .25rem; }
	.header-in { gap: .4rem; }
	.search-toggle, .theme-toggle, .nav-toggle { width: 2.1rem; height: 2.1rem; }
	.langbtn, .langs > summary.langbtn { height: 2.1rem; padding-inline: .5rem; }
	.langbtn svg { display: none; }
	.site-header .brand__mark { width: 1.3rem; height: 1.3rem; }
	.site-header .brand { gap: .2rem; }

}
@media (max-width: 400px) {
	.site-header .brand__mark { display: none; }
}
@media (max-width: 360px) {

	.search-toggle, .theme-toggle, .nav-toggle { width: 1.95rem; height: 1.95rem; }
	.langbtn, .langs > summary.langbtn { height: 1.95rem; padding-inline: .4rem; font-size: .8rem; }
	.wx-badge { padding-inline: .35rem; font-size: .78rem; }
	.header-tools { gap: .2rem; }
	.header-in { gap: .3rem; }
}

@media (max-width: 340px) { .site-header > .header-in { padding-inline: .75rem; } }

/* ==================================================================
 * صفحة حالة الطقس (1.7.0)
 * ================================================================== */
.wx, .wx > *, .wx-main, .wx-others, .wx-now, .wx-now > * { min-width: 0; }
.wx { display: grid; gap: 1.6rem; margin: 1rem 0 2rem; }
.wx-main { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--faience) 12%, var(--surface)), var(--surface) 55%); padding: clamp(1rem, 3vw, 1.75rem); box-shadow: var(--soft); }
.wx-now { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "place place" "main meta" "desc meta"; gap: .3rem 1.5rem; align-items: center; }
.wx-now__place { grid-area: place; display: flex; align-items: center; gap: .7rem; }
.wx-now__place h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.wx-now__main { grid-area: main; display: flex; align-items: center; gap: .6rem; }
.wx-now__t { font-family: var(--display); font-size: clamp(3.2rem, 8vw, 4.6rem); font-weight: 700; line-height: 1; color: var(--ink); }
.wx-now__desc { grid-area: desc; margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.entry-content .wx-now__meta, .wx-now__meta { grid-area: meta; list-style: none; margin: 0; padding: 0; display: grid; align-self: center; justify-self: end; max-width: none; }
.wx-now__meta li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .75rem; border-radius: var(--radius-img); background: var(--mist); font-size: .92rem; margin: 0; }
.wx-now__meta span { color: var(--ink-2); }

/* «الآن»: نقطة حية تتوهج بهدوء. */
.wx-now__lbl { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: #0d7a4f; background: color-mix(in srgb, #22c55e 12%, var(--surface)); border: 1px solid color-mix(in srgb, #22c55e 45%, transparent); border-radius: 999px; padding: .15rem .7rem; animation: wx-live-glow 2.4s ease-in-out infinite; }
.wx-live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: wx-live-dot 1.6s ease-out infinite; }
@keyframes wx-live-dot { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
@keyframes wx-live-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } 50% { box-shadow: 0 0 12px 1px rgba(34, 197, 94, .35); } }
html[data-theme="dark"] .wx-now__lbl { color: #6ee7a8; }

/* العظمى ثم الصغرى: كلٌّ في عزل اتجاه، فالعظمى أولًا في اتجاه القراءة. */
.wx-pair { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wx-pair i { font-style: normal; color: var(--ink-2); font-weight: 400; }

.wx-sub { font-size: 1.1rem; margin: 1.5rem 0 .3rem; }
.wx-hint { margin: 0 0 .8rem; font-size: .85rem; color: var(--ink-2); }
.entry-content .wx-days, .wx-days { list-style: none; margin: 0; padding: 0; max-width: none; width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .55rem; }
.entry-content .wx-days > li, .wx-day { margin: 0; }
.wx-day__btn { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: .7rem .4rem .55rem; border: 1px solid var(--line); border-radius: var(--radius-img); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.wx-day__btn:hover { border-color: var(--faience); transform: translateY(-1px); }
.wx-day__btn:focus-visible { outline: 2px solid var(--faience); outline-offset: 2px; }
.wx-day.is-open .wx-day__btn { border-color: var(--faience); box-shadow: inset 0 0 0 1px var(--faience); background: color-mix(in srgb, var(--faience) 7%, var(--surface)); }
.wx-day__n { font-weight: 700; font-size: .92rem; }
.wx-day__d { font-size: .75rem; color: var(--ink-2); }
.wx-day__desc { font-size: .78rem; color: var(--ink-2); min-height: 2.3em; line-height: 1.15; display: flex; align-items: center; }
.wx-day__t b { font-size: 1.05rem; }
.wx-day__x { font-size: .72rem; color: var(--ink-2); }
.wx-day__more { width: .6rem; height: .6rem; border-inline-end: 2px solid var(--ink-2); border-block-end: 2px solid var(--ink-2); margin-top: .15rem; transition: transform .25s; opacity: .6; }
.wx-day.is-open .wx-day__more { opacity: 1; }

/* قراءات الساعات: شريط أنيق يمرر أفقيًا. */
.wx-hours { margin-top: .8rem; border: 1px solid var(--line); border-radius: var(--radius-img); background: var(--surface); padding: .7rem .8rem .8rem; animation: wx-drop .25s ease-out; }
@keyframes wx-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wx-hours__h { font-size: .95rem; }
.entry-content .wx-hours__list, .wx-hours__list { list-style: none; margin: 0; max-width: none; overflow-x: auto; scrollbar-width: thin; }
.wx-hr { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; align-items: center; border-radius: var(--radius-img); background: var(--mist); scroll-snap-align: start; }
.wx-hr__h { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wx-hr__t { font-weight: 700; }
.wx-hr__d { font-size: .68rem; color: var(--ink-2); text-align: center; line-height: 1.15; min-height: 2.3em; }
.wx-hours__note { margin: .5rem 0 0; font-size: .8rem; color: var(--ink-2); }

@media (max-width: 860px) {
	.wx-now { grid-template-columns: 1fr; grid-template-areas: "place" "main" "desc" "meta"; }
	.entry-content .wx-now__meta, .wx-now__meta { justify-self: stretch; }
	.entry-content .wx-days, .wx-days { gap: .4rem; }
	.wx-day__btn { display: grid; grid-template-columns: minmax(0, 1fr) 44px auto 1rem; grid-template-areas: "n ico t more" "d ico t more" "desc desc desc desc" "x x x x"; align-items: center; text-align: start; padding: .55rem .8rem; gap: .1rem .7rem; }
	.wx-day__n { grid-area: n; } .wx-day__d { grid-area: d; } .wx-day__btn .wx-ico { grid-area: ico; width: 40px; height: 40px; }
	.wx-day__t { grid-area: t; } .wx-day__t b { font-size: 1.15rem; }
	.wx-day__desc { grid-area: desc; min-height: 0; padding-top: .25rem; margin-top: .3rem; border-top: 1px dashed var(--line); color: var(--ink); font-size: .85rem; }
	.wx-day__x { grid-area: x; font-size: .75rem; }
	.wx-day__more { grid-area: more; justify-self: center; margin: 0; }
	.wx-day .wx-hours { margin: .35rem 0 .2rem; }
}

/* جدول باقي المدن. */
.wx-table { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-img); }
.wx-table table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.wx-table th, .wx-table td { padding: .5rem .55rem; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wx-table thead th { background: var(--mist); font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.wx-table tbody th { text-align: start; font-weight: 700; }
.wx-table td .wx-ico { display: block; margin: 0 auto .1rem; }
.wx-table td.wx-cur { background: color-mix(in srgb, var(--faience) 8%, transparent); }
.wx-table td.wx-cur .wx-ico { display: inline-block; vertical-align: middle; margin-inline-end: .25rem; }
.wx-table tr:last-child th, .wx-table tr:last-child td { border-bottom: 0; }

.wx--empty { padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }

/* أيقونات الطقس المتحركة. */
.wx-a-sun { transform-box: fill-box; transform-origin: center; animation: wx-sun-glow 3s ease-in-out infinite; }
.wx-a-rays { transform-box: fill-box; transform-origin: center; animation: wx-rays 14s linear infinite; }
@keyframes wx-sun-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 194, 60, 0)); } 50% { filter: drop-shadow(0 0 3px rgba(255, 194, 60, .9)); } }
@keyframes wx-rays { to { transform: rotate(360deg); } }
.wx-a-cloud { animation: wx-cloud 6s ease-in-out infinite; }
@keyframes wx-cloud { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.2px); } }
.wx-a-drop { animation: wx-drop-fall 1.1s linear infinite; }
.wx-a-rain--light .wx-a-drop { animation-duration: 1.5s; }
.wx-a-rain--heavy .wx-a-drop { animation-duration: .65s; }
@keyframes wx-drop-fall { 0% { transform: translateY(-3px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
.wx-a-bolt { animation: wx-bolt 2.2s steps(1) infinite; }
@keyframes wx-bolt { 0%, 70%, 80%, 100% { opacity: 1; } 75%, 85% { opacity: .15; } }
.wx-a-flake { animation: wx-flake 2.4s linear infinite; }
@keyframes wx-flake { 0% { transform: translateY(-3px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }
.wx-a-fog path { animation: wx-fog 4s ease-in-out infinite; }
.wx-a-fog path + path { animation-delay: -2s; }
@keyframes wx-fog { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
.wx-a-moon { transform-box: fill-box; transform-origin: center; animation: wx-moon 4s ease-in-out infinite; }
@keyframes wx-moon { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }

/* رقم الطقس في الهيدر: نبضة خفيفة جدًا تلفت الانتباه. */
.wx-badge__t { animation: wx-badge-pulse 4s ease-in-out infinite; }
@keyframes wx-badge-pulse { 0%, 82%, 100% { transform: scale(1); color: inherit; } 88% { transform: scale(1.12); color: var(--coral-ink); } 94% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
	.wx-a-sun, .wx-a-rays, .wx-a-cloud, .wx-a-drop, .wx-a-bolt, .wx-a-flake, .wx-a-fog path, .wx-a-moon, .wx-badge__t, .wx-now__lbl, .wx-live-dot, .wx-hours { animation: none; }
}
/* إصلاحات: سهم لأسفل في كل اللغات، ولوحة الساعات لا توسّع اليوم على الجوال. */
.wx-day__more { border: 0; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
.wx-day.is-open .wx-day__more { transform: rotate(225deg); border-color: var(--faience); }
.entry-content .wx-hours__h, .wx-hours__h { margin: 0 0 .5rem; }
.wx-day, .wx-hours, .wx-hours__list { min-width: 0; max-width: 100%; }
@media (max-width: 860px) { .entry-content .wx-days, .wx-days { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .wx-day__btn { height: auto; } }

/* ==================================================================
 * «سجل معنا»: نموذج تسجيل المشاريع (1.7.0)
 * ================================================================== */
.jn { max-width: 760px; }
.jn-form { display: grid; gap: 1.1rem; margin: 1.2rem 0 2rem; }
.jn-set { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.2rem 1.2rem; margin: 0; display: grid; gap: .9rem; min-width: 0; }
.jn-set legend { padding: 0 .4rem; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.jn-field { display: grid; gap: .35rem; min-width: 0; }
.jn-field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.jn-req { color: var(--coral-ink); }
.jn-field input[type="text"], .jn-field input[type="tel"], .jn-field input[type="email"], .jn-field input[type="password"], .jn-field select { width: 100%; min-height: 2.9rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-img); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
.jn-field input:focus, .jn-field select:focus { outline: 2px solid color-mix(in srgb, var(--faience) 55%, transparent); outline-offset: 1px; border-color: var(--faience); }
.jn-field input[type="tel"] { text-align: start; }
html[dir="rtl"] .jn-field input[type="tel"] { text-align: right; }
.jn-hint { margin: 0; font-size: .82rem; color: var(--ink-2); }
.jn-choice { display: flex; gap: .6rem; flex-wrap: wrap; }
.jn-choice label { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 600; }
.jn-choice label:has(input:checked) { border-color: var(--faience); background: color-mix(in srgb, var(--faience) 12%, var(--paper)); color: var(--ink); }
.jn-choice input { accent-color: var(--faience); width: 1.05rem; height: 1.05rem; margin: 0; }
.jn-phones { display: grid; gap: .8rem; }
@media (max-width: 700px) { .jn-phones { grid-template-columns: 1fr; } }
.jn-field.is-bad input, .jn-field.is-bad select, .jn-field.is-bad .jn-choice label { border-color: #d63c3c; }
.jn-field.is-bad label { color: #b42323; }
.jn-note { margin: 0; font-size: .85rem; color: var(--ink-2); }
.jn-submit { justify-self: start; min-height: 2.9rem; padding-inline: 1.6rem; font-size: 1rem; }
.jn-submit[disabled] { opacity: .6; cursor: progress; }
.jn-msg:empty { display: none; }
.jn-msg { padding: .8rem 1rem; border-radius: var(--radius-img); font-weight: 600; }
.jn-msg--ok { background: color-mix(in srgb, #22c55e 14%, var(--surface)); border: 1px solid color-mix(in srgb, #22c55e 45%, transparent); color: var(--ink); }
.jn-msg--err { background: color-mix(in srgb, #ef4444 10%, var(--surface)); border: 1px solid color-mix(in srgb, #ef4444 40%, transparent); color: var(--ink); }
.jn-msg--info { background: var(--mist); }
.jn-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jn-info { list-style: none; padding: 0; display: grid; gap: .5rem; }
.jn-info a[href^="tel:"] { font-variant-numeric: tabular-nums; }
.jn-field[hidden] { display: none; }
.jn-set[hidden], .jn-submit[hidden], .jn-note[hidden] { display: none; }

/* قراءات الساعات: شبكة بلا شريط تمرير. 12 في السطر على الكمبيوتر (اليوم كله في سطرين). */
.entry-content .wx-hours__list, .wx-hours__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .3rem; overflow: visible; padding: 0; scroll-snap-type: none; }
.wx-hr { width: auto; min-width: 0; padding: .35rem .1rem .3rem; gap: 0; }
.wx-hr .wx-ico { width: 26px; height: 26px; }
.wx-hr__h { font-size: .7rem; white-space: nowrap; }
.wx-hr__t { font-size: .9rem; }
@media (max-width: 1100px) { .entry-content .wx-hours__list, .wx-hours__list { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 700px) { .entry-content .wx-hours__list, .wx-hours__list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 380px) { .entry-content .wx-hours__list, .wx-hours__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wx-date bdi, .wx-time bdi { font-variant-numeric: tabular-nums; }
.wx-credit { flex-wrap: wrap; gap: .2rem .5rem; }

.wx-sep { color: var(--ink-2); padding-inline: .1rem; }
.jn-intro { max-width: 760px; }
.jn-intro p { margin: 0 0 .8rem; }
.jn-opt { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.jn-extra[hidden] { display: none; }
.jn-add { justify-self: start; display: inline-flex; align-items: center; gap: .3rem; padding: .45rem 1rem; border: 1px dashed var(--faience); border-radius: 999px; background: transparent; color: var(--faience-ink, var(--faience)); font: inherit; font-weight: 600; cursor: pointer; }
.jn-add:hover, .jn-add:focus-visible { background: color-mix(in srgb, var(--faience) 10%, transparent); }
.jn-add[hidden] { display: none; }
.jn-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jn-field--whatsapp input { direction: ltr; }
html[dir="rtl"] .jn-field--whatsapp input { text-align: right; }

/* شريط «أضف إلى الشاشة الرئيسية» على الجوال. */
.app-bar { position: fixed; z-index: 9990; inset-inline: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11, 49, 66, .18); transform: translateY(140%); transition: transform .3s ease; }
.app-bar.is-on { transform: none; }
.app-bar img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.app-bar__t { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.app-bar__t strong { font-size: .92rem; line-height: 1.25; }
.app-bar__t span { font-size: .8rem; color: var(--ink-2); line-height: 1.35; }
.app-bar__add { flex: none; border: 0; border-radius: 999px; padding: .5rem 1.1rem; background: var(--faience); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.app-bar__x { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink-2); font-size: 1.2rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .app-bar { transition: none; } }
.wx-updated { white-space: normal; } .wx-time, .wx-date { white-space: nowrap; }

/* مصدر بيانات الطقس: شريط صغير بالإنجليزية أسفل الجدول وبعرضه، سطر واحد. */
.wx-tablebox { border: 1px solid var(--line); border-radius: var(--radius-img); overflow: hidden; }
.wx-tablebox .wx-table { border: 0; border-radius: 0; }
.wx-credit-bar { border-top: 1px solid var(--line); background: var(--mist); padding: .35rem .7rem; text-align: center; overflow: hidden; }
.wx-credit-bar--alone { border: 1px solid var(--line); border-radius: var(--radius-img); }
.wx-credit { display: inline-block; max-width: 100%; font-size: .68rem; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; margin: 0; }
@media (max-width: 480px) { .wx-credit { font-size: .6rem; } }

/* كبسولة الهيدر: ساعة القاهرة ثم الحرارة، والأرقام في منتصف السطر تمامًا. */
.wx-badge { gap: .35rem; line-height: 1; }
.wx-badge__clock, .wx-badge__w, .wx-badge__t, .wx-badge__ico { display: inline-flex; align-items: center; line-height: 1; }
.wx-badge__clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-badge__clock i { font-style: normal; font-weight: 500; font-size: .78em; margin-inline-start: .15em; }
.wx-badge__w { gap: .2rem; }
.wx-badge__w[hidden] { display: none; }
.wx-badge__sep { width: 1px; height: 1.05em; background: var(--line); margin-inline: .1rem; }
.wx-badge__t { animation-name: wx-badge-pulse-c; }
@keyframes wx-badge-pulse-c { 0%, 82%, 100% { transform: scale(1); color: inherit; } 88% { transform: scale(1.12); color: var(--coral-ink); } 94% { transform: scale(1); } }
/* الجوال: الكبسولة نفسها مضغوطة، الساعة سطر صغير أعلى والحرارة تحتها، والاثنان في المنتصف. */
@media (max-width: 480px) {
	.wx-badge { justify-content: center; }
	.wx-badge__clock { font-size: .6rem; font-weight: 600; color: var(--ink-2); }
	.wx-badge__clock i { font-size: .9em; }
	.wx-badge__sep { display: none; }
	.wx-badge__w { gap: 0; }

}
@media (max-width: 360px) { .wx-badge { height: 1.95rem; } .wx-badge__clock { font-size: .56rem; } .wx-badge__t { font-size: .78rem; } }
@media (max-width: 480px) { .site-header .brand { } .site-header .brand--ar { } .wx-badge { } }
@media (max-width: 360px) { .site-header .brand, .site-header .brand--ar { } .wx-badge { padding: 0 .32rem; } }
@media (max-width: 400px) {
	.search-toggle, .theme-toggle, .nav-toggle { width: 1.95rem; height: 1.95rem; }
	.langbtn, .langs > summary.langbtn { height: 1.95rem; padding-inline: .4rem; font-size: .8rem; }

	.header-tools { gap: .2rem; }
	.header-in { gap: .3rem; }
	.site-header .brand, .site-header .brand--ar { font-size: 1rem; }
}
/* الشاشات الصغيرة جدًا (‎350 فأقل): الحرارة وحدها، فلا مكان للساعة بجوار الشعار. */
@media (max-width: 350px) { .wx-badge__clock { display: none; } .site-header .brand, .site-header .brand--ar { font-size: .95rem; } }
@media (max-width: 480px) { .wx-badge .wx-badge__ico { display: none; } }
/* «سجل معنا»: خانات بمقاس محتواها. واتساب بمقاس خانة الهاتف، والمسؤول والمشروع أصغر. */
@media (min-width: 701px) {
	.jn-field--whatsapp { max-width: calc((100% - 1.6rem) / 3); }
	.jn-field--person { max-width: calc((100% - .8rem) * 2 / 3); max-width: 340px; }

}
@media (max-width: 700px) { .wx-credit .wx-l { display: none; } }
@media (max-width: 350px) { .wx-credit { font-size: .55rem; } .wx-credit-bar { padding-inline: .4rem; } }
.wx-credit-bar { display: flex; justify-content: center; align-items: center; line-height: 1.2; }

/* الفوتر على الشاشات الضيقة: المشهد ممتد من أسفل برمال الشاطئ، وسطر الحقوق يجلس على الرمال تحت الرسمة. */
@media (max-width: 700px) {
	.site-footer { padding-bottom: 0; }
	.site-footer::before { background-image: url("../img/footer-scene-m.svg?v=1"); inset-inline: 0; width: 100%; aspect-ratio: 1200 / 290; background-size: 100% 100%; }
	.site-footer .fine { margin-top: calc(100vw * 204 / 1200 + .6rem); padding: 0; min-height: calc(100vw * 86 / 1200); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; font-size: .8rem; color: #5A4520; font-weight: 500; }
	.site-footer .fine::before { display: none; }
	.site-footer .fine a { color: #3E2F12; text-decoration-color: rgba(62, 47, 18, .45); }
	html[data-theme="dark"] .site-footer .fine, html[data-theme="dark"] .site-footer .fine a { color: #3E2F12; }
}
@media (min-width: 701px) { .jn-field--project, .jn-field--activity, .jn-field--city, .jn-field--other { max-width: 340px; } }

/* الجوال: لا ساعة (للجوال ساعته أعلى الشاشة). الكبسولة للحرارة وحدها في سطر واحد، ويعود الشعار لحجمه. */
@media (max-width: 480px) {
	.wx-badge__clock { display: none; }
	.wx-badge { flex-direction: row; height: 2.1rem; padding: 0 .5rem; gap: 0; }
	.wx-badge__t { font-size: .86rem; }
	.site-header .brand { font-size: 1.15rem; }
	.site-header .brand--ar { font-size: 1.2rem; }
}
@media (max-width: 400px) { .wx-badge { height: 1.95rem; padding: 0 .42rem; } }
@media (max-width: 360px) { .site-header .brand, .site-header .brand--ar { font-size: 1.02rem; } }
@media (max-width: 340px) { .site-header .brand, .site-header .brand--ar { font-size: .95rem; } }
.app-bar--done { align-items: flex-start; } .app-bar--done .app-bar__t span { color: var(--ink); }

/* جدول باقي المدن على الجوال: بلا شريط تمرير. كل مدينة بطاقة: الاسم والحرارة الآن، ثم أيامها السبعة. */
@media (max-width: 700px) {
	.wx-tablebox .wx-table { overflow: visible; }
	.wx-table table, .wx-table tbody, .wx-table tr { display: block; width: 100%; }
	.wx-table thead { display: none; }
	.wx-table tbody tr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem .2rem; padding: .7rem .55rem .75rem; border-bottom: 1px solid var(--line); }
	.wx-table tbody tr:last-child { border-bottom: 0; }
	.wx-table tbody th[scope="row"], .wx-table tbody td { display: block; padding: 0; border: 0; white-space: normal; }
	.wx-table tbody th[scope="row"] { grid-column: 1 / 5; align-self: center; font-size: .98rem; }
	.wx-table tbody td.wx-cur { grid-column: 5 / -1; justify-self: end; display: inline-flex; align-items: center; gap: .3rem; background: color-mix(in srgb, var(--faience) 10%, transparent); border-radius: 999px; padding: .15rem .6rem; font-size: .95rem; }
	.wx-table tbody td.wx-cur::before { content: attr(data-d); font-size: .7rem; font-weight: 600; color: var(--ink-2); }
	.wx-table tbody td.wx-cur .wx-ico { margin: 0; width: 24px; height: 24px; }
	.wx-table tbody td:not(.wx-cur) { text-align: center; background: var(--mist); border-radius: var(--radius-img); padding: .3rem .05rem .35rem; }
	.wx-table tbody td:not(.wx-cur)::before { content: attr(data-d); display: block; font-size: .62rem; color: var(--ink-2); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: clip; }
	.wx-table tbody td:not(.wx-cur) .wx-ico { width: 24px; height: 24px; margin: .1rem auto; }
	.wx-table tbody td:not(.wx-cur) .wx-pair { display: grid; line-height: 1.15; font-size: .78rem; }
	.wx-table tbody td:not(.wx-cur) .wx-pair i { font-size: .7rem; }
}
/* جدول الطقس مستثنى من قواعد جداول المقالات (الحد الأدنى للخلية، والهوامش، والإطار). */
.entry-content .wx-table table { margin: 0; border: 0; border-radius: 0; }
.entry-content .wx-table td, .entry-content .wx-table th { min-width: 0; }
@media (max-width: 700px) { .entry-content .wx-table table { white-space: normal; } }
/* ساعة الهيدر: النقطتان تنبضان مع كل ثانية. */
.wx-colon { display: inline-block; padding-inline: .03em; animation: wx-tick 1s steps(1, end) infinite; }
@keyframes wx-tick { 0% { opacity: 1; } 50% { opacity: .18; } }
@media (prefers-reduced-motion: reduce) { .wx-colon { animation: none; } }

/* أسفل المقال: بلا عبارات، والأيقونات في المنتصف على الجوال. */
@media (max-width: 700px) {
	.page-rate { justify-content: center; text-align: center; }
	.page-rate .mt-views, .page-rate .share, .page-rate .mr { justify-content: center; width: 100%; }
	.page-rate .mr-btns { justify-content: center; }
}


.wx-now__clock { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.wx-now__clock:empty { display: none; }
.wx-now__clock i { font-style: normal; font-weight: 600; color: var(--ink-2); }

/* العظمى والصغرى والرياح والرطوبة: بطاقات بارزة بأيقونات وألوان. */
.entry-content .wx-now__meta, .wx-now__meta { gap: .6rem; min-width: 260px; }
.wx-now__meta li.wx-m { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(11, 49, 66, .06); font-size: 1rem; }
.wx-m__ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; }
.wx-m--temp .wx-m__ico { background: color-mix(in srgb, #FF6B57 15%, transparent); color: #E2553F; }
.wx-m--wind .wx-m__ico { background: color-mix(in srgb, var(--faience) 15%, transparent); color: var(--faience); }
.wx-m--hum .wx-m__ico { background: color-mix(in srgb, #1E88C8 15%, transparent); color: #1E88C8; }
.wx-now__meta li.wx-m .wx-m__l { color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.wx-now__meta li.wx-m > b, .wx-now__meta li.wx-m > .wx-pair { font-size: 1.15rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.wx-now__meta li.wx-m .wx-pair b { color: #E2553F; }
.wx-now__meta li.wx-m .wx-pair i { color: #1E88C8; font-weight: 700; }
@media (max-width: 860px) { .entry-content .wx-now__meta, .wx-now__meta { min-width: 0; } }
@media (max-width: 380px) { .wx-now__meta li.wx-m { gap: .5rem; padding: .6rem .7rem; } .wx-now__meta li.wx-m > b, .wx-now__meta li.wx-m > .wx-pair { font-size: 1rem; } }
@media (max-width: 860px) {
	.wx-now__meta li.wx-m { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; row-gap: .1rem; }
	.wx-now__meta li.wx-m .wx-m__ico { grid-row: 1 / 3; }
	.wx-now__meta li.wx-m > b, .wx-now__meta li.wx-m > .wx-pair { grid-column: 2; white-space: normal; }
}

/* الساعات: ما مضى خافت قليلًا، والساعة الحالية مميزة. */
.wx-hr.is-past { opacity: .55; }
.wx-hr.is-now { background: color-mix(in srgb, var(--faience) 16%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--faience); opacity: 1; }
.wx-hr.is-now .wx-hr__h { color: var(--faience); font-weight: 700; }

/* كبسولة الساعة بجوار «الآن»: أكبر وأوضح. */
.wx-now__clock { font-size: 1.25rem; padding: .3rem 1rem; gap: .4rem; border-width: 1.5px; box-shadow: 0 2px 10px rgba(11, 49, 66, .07); }
.wx-now__clock i { font-size: .8em; }
@media (max-width: 480px) { .wx-now__clock { font-size: 1.1rem; padding: .25rem .85rem; } }

/* تحذير الشبورة: إطار أحمر صغير بجوار الساعة. */
.wx-fog { display: inline-flex; border: 1.5px solid #d63c3c; background: color-mix(in srgb, #ef4444 8%, var(--surface)); color: var(--ink); }
.wx-fog__t { font-weight: 700; color: #b42323; }
.wx-fog__ico { margin-inline-end: .3rem; }
.wx-fog__a { color: var(--ink); }
html[data-theme="dark"] .wx-fog__t { color: #ff8a8a; }
@media (max-width: 480px) { .wx-fog { max-width: 100%; } }
/* ساعات الشبورة في قائمة الساعات. */
.wx-hr.is-fog { box-shadow: inset 0 0 0 1.5px #d63c3c; }
.wx-hr.is-fog .wx-hr__h { color: #b42323; font-weight: 700; }

/* تحذير الشبورة: كبسولة عريضة في سطر واحد، تمتد من جانب الساعة حتى نهاية المربع. */
.wx-now__place { flex-wrap: wrap; row-gap: .5rem; }
.wx-fog { flex: 1 1 auto; min-width: 0; max-width: none; flex-direction: row; align-items: center; gap: .45rem; padding: .35rem 1rem; border-radius: 999px; white-space: nowrap; line-height: 1.3; }
.wx-fog__ico { margin: 0; font-size: .95rem; }

.wx-fog__sep { color: #d63c3c; font-weight: 700; }
.wx-fog__a { font-weight: 500; }
@media (max-width: 480px) { .wx-fog { flex-basis: 100%; gap: .35rem; } .wx-fog__t { } .wx-fog__a { } }
@media (max-width: 480px) { .wx-fog { white-space: normal; border-radius: var(--radius-img); flex-wrap: wrap; row-gap: .1rem; } .wx-fog__sep { } .wx-fog__a { } }

/* الشبورة: الوصف الأطول على الشاشات الواسعة، والمختصر على الجوال. */
.wx-fog__a--short { display: none; }
@media (max-width: 480px) { .wx-fog__a--long { display: none; } .wx-fog__a--short { display: inline; } }
/* علامة الشبورة في كبسولة الهيدر: خط أحمر رفيع تحت رقم الحرارة. */
.wx-badge__t { position: relative; }
.wx-badge.has-fog .wx-badge__t::after { content: ""; position: absolute; inset-inline: 8%; bottom: -4px; height: 2px; border-radius: 2px; background: #e03131; animation: none; }

/* تحذير الشبورة بالنص الكامل: سطر واحد على الكمبيوتر، وسطران على الجوال. */
.wx-fog__t { font-size: .84rem; }
.wx-fog__a { font-size: .8rem; }
@media (max-width: 480px) { .wx-fog__a { } }
@media (max-width: 480px) {
	.wx-fog { display: block; line-height: 1.5; padding: .4rem .8rem; }
	.wx-fog__a { flex-basis: auto; padding-inline-start: 0; }
	.wx-fog__sep { display: inline; margin-inline: .3rem; }
	.wx-fog__ico { margin-inline-end: .25rem; }
	.wx-fog__t, .wx-fog__a { font-size: .78rem; }
}
@media (max-width: 380px) { .wx-fog { padding: .35rem .6rem; } .wx-fog__t, .wx-fog__a { font-size: .7rem; } .wx-fog__sep { margin-inline: .2rem; } }
.app-bar__dbg { display: block; margin-top: .2rem; font-size: .68rem; color: var(--ink-2); direction: ltr; text-align: start; font-family: ui-monospace, monospace; }

/* الهيدر على الشاشات الواسعة: تقليص طفيف للمسافات حتى تتسع القائمة الكاملة بهامش أمان
   (كانت عناصر الهيدر تفيض بنحو 7px بعد امتلاء كبسولة الطقس وعداد المتصلين). */
@media (min-width: 861px) {
	.header-in { column-gap: 1.5rem; }
	.primary-nav .nav-list a { padding-inline: .625rem; }
}

/* =====================================================================
   شبورة الطرق (منقول من صفحة طقس شاطئ النخيل بالضبط، بمتغيرات ألوان مطروح):
   لوحة التحذير، وجداول الطرق، ورسالة الشبورة الحمراء في كبسولة الهيدر.
   ===================================================================== */
.wx-tablebox {border: 1px solid var(--line); border-radius: var(--radius-img); overflow: hidden; }
.wx-tablebox .wx-table {border: 0; border-radius: 0; }
@media (max-width: 700px) {
	.wx-tablebox .wx-table {overflow: visible; }
}
.wx-road__st {font-weight: 600; font-size: .9rem; }
.wx-road__st.is-fog {color: #b42323; font-weight: 700; }
.wx-road__st.is-clear {color: #1f7a4d; }
html[data-theme="dark"] .wx-road__st.is-fog {color: #ff8a8a; }
html[data-theme="dark"] .wx-road__st.is-clear {color: #6ee7a8; }
.wx-road .wx-table tr.is-fog th, .wx-road .wx-table tr.is-fog td {background: color-mix(in srgb, #ef4444 7%, transparent); }
.wx-road .wx-table td.wx-cur {white-space: nowrap; }
.wx-road .wx-table td.wx-cur .wx-ico {display: inline-block; vertical-align: middle; margin: 0; margin-inline-end: .25rem; }
@media (max-width: 700px) {
	.wx-road .wx-table tbody td:not(.wx-cur) {grid-column: 1 / -1; text-align: start; background: none; padding: 0; }
	.wx-road .wx-table tbody td:not(.wx-cur)::before {content: none; }
	.wx-road .wx-table tbody tr.is-fog {background: color-mix(in srgb, #ef4444 7%, transparent); }
	.wx-road .wx-table tbody tr.is-fog th, .wx-road .wx-table tbody tr.is-fog td:not(.wx-cur) {background: none; }
}
.wx-alert {grid-area: fog; position: relative; align-self: stretch; justify-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .35rem; text-align: center; margin: .2rem .4rem; padding: 1rem 1.2rem; min-height: 170px; border-radius: var(--radius); background: color-mix(in srgb, #ef4444 4%, transparent); border: 1px dashed rgba(214, 60, 60, .35); overflow: hidden; }
.wx-alert__bg {position: absolute; top: 50%; left: 50%; width: 210px; height: 190px; transform: translate(-50%, -50%); opacity: .1; pointer-events: none; }
.wx-alert > :not(.wx-alert__bg) {position: relative; }
.wx-alert__t {margin: 0; font-size: 1.15rem; font-weight: 800; color: #b42323; line-height: 1.5; }
.entry-content .wx-alert__list, .wx-alert__list {list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; font-size: .95rem; color: var(--ink); max-width: none; }
.wx-alert__list li {margin: 0; }
.wx-alert__list b {color: #b42323; }
.wx-alert__a {margin: .2rem 0 0; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
html[data-theme="dark"] .wx-alert {background: rgba(239, 68, 68, .07); border-color: rgba(255, 138, 138, .35); }
html[data-theme="dark"] .wx-alert__t, html[data-theme="dark"] .wx-alert__list b {color: #ff8a8a; }
html[data-theme="dark"] .wx-alert__bg {opacity: .14; }
@media (max-width: 860px) {
	.wx-alert {margin: .6rem 0; min-height: 150px; }
}
.wx-tip {position: absolute; top: calc(100% + 12px); inset-inline-start: 0; z-index: 300; display: flex; flex-direction: column; gap: .3rem; width: max-content; max-width: min(500px, calc(100vw - 32px)); padding: .9rem 1.1rem; border-radius: 14px; background: rgba(205, 35, 35, .9); color: #fff; font-size: 1.02rem; font-weight: 600; line-height: 1.6; text-align: start; white-space: normal; box-shadow: 0 18px 40px -16px rgba(120, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; }
.wx-tip {display: none; }
@keyframes wx-tip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.wx-tip span {white-space: nowrap; }
@media (max-width: 600px) {
	.wx-tip span {white-space: normal; }
}
.wx-tip::before {content: ""; position: absolute; top: -7px; inset-inline-start: 22px; width: 14px; height: 14px; background: rgba(205, 35, 35, .9); transform: rotate(45deg); border-radius: 2px; }
.wx-tip b {font-size: 1.12rem; font-weight: 800; }
.wx-tip em {font-style: normal; font-size: .92rem; font-weight: 500; opacity: .95; }
.wx-badge:hover .wx-tip, .wx-badge:focus-visible .wx-tip {display: flex; animation: wx-tip-in .18s ease-out; }
.wx-badge--up .wx-tip {top: auto; bottom: calc(100% + 12px); }
.wx-badge--up .wx-tip::before {top: auto; bottom: -7px; }
@media (min-width: 861px) {
	.wx-alert {margin: 1rem 2.2rem .2rem; }
}
.wx-alert__a {font-size: 1rem; font-weight: 700; color: var(--faience); }
.wx-tip {gap: .2rem; max-width: min(340px, calc(100vw - 32px)); padding: .75rem 1rem; background: rgba(229, 72, 72, .72); font-size: 1rem; box-shadow: 0 14px 30px -16px rgba(120, 0, 0, .45); }
.wx-tip::before {background: rgba(229, 72, 72, .72); }
.wx-tip b {font-size: 1.08rem; }
.wx-tip span {white-space: normal; font-weight: 500; font-size: .95rem; }
.wx-alert__a, .wx-alert__t {text-wrap: balance; }
.wx-badge:hover .wx-tip {display: none; }
.wx-roads__hint {margin: 0 0 .9rem; font-size: 1.02rem; font-weight: 500; color: var(--ink); line-height: 1.7; }
.wx-roads__grid {display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; align-items: start; }
.wx-road--empty {visibility: hidden; }
.wx-road__h {margin: 0 0 .5rem; font-size: 1.02rem; font-weight: 700; color: #b42323; }
html[data-theme="dark"] .wx-road__h {color: #ff8a8a; }
.wx-roads .wx-table table {font-size: .86rem; }
.wx-roads .wx-table th, .wx-roads .wx-table td {white-space: normal; padding: .45rem .45rem; }
.wx-roads .wx-table tbody tr th, .wx-roads .wx-table tbody tr td {background: color-mix(in srgb, #ef4444 6%, transparent); }
.wx-roads .wx-table td.wx-cur {white-space: nowrap; }
.wx-roads .wx-road__st {font-size: .84rem; }
@media (max-width: 900px) {
	.wx-roads__grid {grid-template-columns: 1fr; }
	.wx-road--empty {display: none; }
}
.wx-alert__road {margin-top: .35rem !important; font-weight: 800; color: #b42323; font-size: 1rem; }
html[data-theme="dark"] .wx-alert__road {color: #ff8a8a; }
.wx-alert__more {font-size: .88rem; color: var(--ink-2); }
.wx-roads .wx-road__st {white-space: nowrap; }
@media (max-width: 700px) {
	.wx-roads .wx-table tbody tr {background: color-mix(in srgb, #ef4444 6%, transparent); }
	.wx-roads .wx-table tbody tr th, .wx-roads .wx-table tbody tr td:not(.wx-cur) {background: none; }
}
.wx-alert {min-height: 140px; gap: .6rem; }
a.wx-alert__t {color: #b42323; text-decoration: none; border-bottom: 2px dashed rgba(180, 35, 35, .45); padding-bottom: 2px; }
a.wx-alert__t:hover {color: #8f1717; border-bottom-style: solid; }
html[data-theme="dark"] a.wx-alert__t {color: #ff8a8a; }
.wx-roads {border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, #ef4444 6%, var(--surface)), var(--surface) 55%); padding: clamp(1rem, 3vw, 1.5rem); box-shadow: var(--soft); scroll-margin-top: 120px; }
.wx-roads__head {display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.wx-roads__ico {flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: color-mix(in srgb, #ef4444 14%, var(--surface)); color: #c92a2a; font-size: 1.25rem; }
.wx-roads__title {margin: 0 0 .15rem; font-size: 1.2rem; color: var(--ink); }
.wx-roads__hint {margin: 0; }
.wx-road:not(.wx-road--empty) {border: 1px solid var(--line); border-radius: var(--radius-img); background: var(--surface); overflow: hidden; box-shadow: 0 6px 18px -14px rgba(14, 36, 51, .5); }
.wx-road__h {margin: 0; padding: .55rem .8rem; font-size: 1rem; color: var(--ink); background: var(--mist); border-bottom: 1px solid var(--line); border-inline-start: 4px solid #e03131; }
html[data-theme="dark"] .wx-road__h {color: var(--ink); }
.wx-road .wx-tablebox {border: 0; border-radius: 0; }
.wx-roads__advice {margin: 1rem 0 0; padding: .65rem 1rem; border-radius: var(--radius-img); background: color-mix(in srgb, var(--faience) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--faience) 30%, transparent); color: var(--faience); font-weight: 700; font-size: 1rem; text-align: center; }
.wx-roads__advice span {color: #c92a2a; }
.wx-roads .wx-table tbody tr th, .wx-roads .wx-table tbody tr td {background: color-mix(in srgb, #ef4444 2.5%, transparent); }
.wx-roads .wx-table tbody tr:nth-child(even) th, .wx-roads .wx-table tbody tr:nth-child(even) td {background: transparent; }
.wx-roads .wx-table td.wx-road__when {text-align: center; }
@media (max-width: 700px) {
	.wx-roads .wx-table tbody tr {background: color-mix(in srgb, #ef4444 2.5%, transparent); grid-template-columns: 1fr; }
	.wx-roads .wx-table tbody th[scope="row"] {grid-column: 1 / -1; }
}
@media (max-width: 700px) {
	.wx-roads .wx-table tbody tr th, .wx-roads .wx-table tbody tr td, .wx-roads .wx-table tbody tr:nth-child(even) th, .wx-roads .wx-table tbody tr:nth-child(even) td {background: none; }
	.wx-roads .wx-table tbody tr:nth-child(even) {background: transparent; }
}
.wx-now__place .wx-alert {grid-area: auto; flex: 0 1 auto; margin: 0; margin-inline-start: auto; min-height: 0; padding: .45rem 1.1rem; gap: .15rem; align-self: center; border-radius: 12px; }
.wx-now__place .wx-alert__bg {width: 64px; height: 58px; opacity: .12; }
.wx-now__place a.wx-alert__t {font-size: 1rem; padding-bottom: 1px; }
.wx-now__place .wx-alert__a {margin: 0; font-size: .88rem; }
@media (max-width: 860px) {
	.wx-now__place .wx-alert {flex-basis: 100%; margin-inline-start: 0; }
}
.wx-road__h {display: flex; align-items: center; gap: .55rem; padding: .7rem .85rem; background: linear-gradient(180deg, color-mix(in srgb, #ef4444 5%, var(--surface)), var(--surface)); border-bottom: 1px solid var(--line); border-inline-start: 0; }
.wx-road__h h4 {margin: 0; flex: 1 1 auto; min-width: 0; font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.wx-road__ic {flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: color-mix(in srgb, #ef4444 12%, var(--surface)); color: #c92a2a; }
.wx-road__n {flex: none; font-size: .78rem; font-weight: 700; color: #b42323; background: color-mix(in srgb, #ef4444 10%, var(--surface)); border: 1px solid color-mix(in srgb, #ef4444 25%, transparent); border-radius: 999px; padding: .1rem .6rem; white-space: nowrap; }
.wx-road:not(.wx-road--empty) {border-radius: 12px; box-shadow: 0 10px 24px -18px rgba(14, 36, 51, .55); }
.wx-roads .wx-table thead th {background: transparent; color: var(--ink-2); font-size: .76rem; font-weight: 600; border-bottom: 1px solid var(--line); padding-top: .5rem; padding-bottom: .4rem; }
html[data-theme="dark"] .wx-road__ic {color: #ff8a8a; }
html[data-theme="dark"] .wx-road__n {color: #ff8a8a; }
.wx-roads {scroll-margin-top: 12px; }
.wx-road__h h4 {font-size: .96rem; }
.wx-now__place .wx-alert {display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 0; padding: .28rem 1.1rem .32rem; border: 1.5px solid #d63c3c; border-radius: 18px; background: color-mix(in srgb, #ef4444 7%, var(--surface)); box-shadow: none; overflow: visible; line-height: 1.45; }
.wx-now__place .wx-alert__bg {display: none; }
.wx-now__place a.wx-alert__t {font-size: .92rem; font-weight: 800; border-bottom: 0; padding: 0; }
.wx-now__place a.wx-alert__t:hover {text-decoration: underline; }
.wx-now__place .wx-alert__a {font-size: .8rem; font-weight: 600; margin: 0; }
html[data-theme="dark"] .wx-now__place .wx-alert {background: rgba(239, 68, 68, .1); border-color: rgba(255, 138, 138, .6); }
@media (max-width: 860px) {
	.wx-now__place .wx-alert {border-radius: 14px; }
}
@media (min-width: 861px) {
	.wx-now__place .wx-alert {margin-inline: auto; }
}
@media (min-width: 861px) {
	[dir="rtl"] .wx-now__place .wx-alert, .rtl .wx-now__place .wx-alert {position: relative; left: .35rem; }
}
.wx-now__meta li.wx-alert {display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; position: static; left: auto; margin: 0; min-height: 0; padding: .5rem .8rem; text-align: center; border: 1.5px solid #d63c3c; border-radius: var(--radius-img); background: color-mix(in srgb, #ef4444 7%, var(--surface)); box-shadow: none; overflow: visible; line-height: 1.45; }
.wx-now__meta li.wx-alert .wx-alert__bg {display: none; }
.wx-now__meta li.wx-alert a.wx-alert__t {font-size: .95rem; font-weight: 800; border-bottom: 0; padding: 0; }
.wx-now__meta li.wx-alert a.wx-alert__t:hover {text-decoration: underline; }
.wx-now__meta li.wx-alert .wx-alert__a {margin: 0; font-size: .82rem; font-weight: 600; }
html[data-theme="dark"] .wx-now__meta li.wx-alert {background: rgba(239, 68, 68, .1); border-color: rgba(255, 138, 138, .6); }
.wx-now__meta li.wx-alert {grid-area: auto; grid-column: 1 / -1; justify-self: stretch; align-self: auto; }
.wx-now__meta li.wx-alert {border-radius: var(--radius); }

/* جداول الطرق: جدولان في كل صف على الشاشات الواسعة، وجدول واحد على الجوال. */
.wx-roads__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .wx-roads__grid { grid-template-columns: 1fr; } }

/* الخط الأحمر تحت الحرارة وقت الشبورة: يتحرك ذهابًا وإيابًا بالعرض، وينبض مع الرقم كما هو. */
.wx-badge { position: relative; }
.wx-badge.has-fog .wx-badge__t::after {
	inset-inline: auto; left: 0; width: 45%; height: 2px; bottom: -4px;
	animation: mt-fog-sweep .8s ease-in-out infinite alternate;
}
@keyframes mt-fog-sweep { from { transform: translateX(0); } to { transform: translateX(122%); } }
@media (prefers-reduced-motion: reduce) {
	.wx-badge.has-fog .wx-badge__t::after { left: 8%; width: 84%; animation: none; }
}

/* رسالة الشبورة: أكبر، وبخلفية حمراء. */
.wx-tip { max-width: min(460px, calc(100vw - 24px)); padding: 1rem 1.25rem; gap: .35rem; font-size: 1.02rem; background: rgba(205, 35, 35, .94); border-radius: 16px; }
.wx-tip::before { background: rgba(205, 35, 35, .94); }
.wx-tip b { font-size: 1.15rem; }
.wx-tip span { font-size: .98rem; font-weight: 600; }
.wx-tip em { font-size: .9rem; }
/* الرسالة تظهر عند الوقوف على الكبسولة (في النخيل كانت تظهر من النقطة الحمراء، وهنا الخط المتحرك). */
.wx-badge.has-fog:hover .wx-tip, .wx-badge.has-fog:focus-visible .wx-tip { display: flex; animation: wx-tip-in .18s ease-out; }

/* سطر النصيحة أسفل جداول الطرق: في المنتصف. */
.wx-roads__advice { width: fit-content; max-width: 100%; margin-inline: auto; text-align: center; }
/* «الآن» في صفحة الطقس: أكبر درجة. */
.wx-now__lbl { font-size: .95rem; }
/* «مطروح» في واجهة الموقع العربية: أسفل قليلًا جدًا. */
@media (min-width: 861px) { html[dir="rtl"] .hero-copy .mast { position: relative; top: 1.25rem; } }

/* الشعار بجوار اسم الموقع: أكبر قليلًا في الهيدر (الشاشات الواسعة) وفي الفوتر. */
@media (min-width: 481px) { html:not(.brand-tight) .site-header .brand__mark { width: 2.4rem; height: 2.4rem; } }
.site-footer .brand__mark { width: 2.6rem; height: 2.6rem; }

/* =====================================================================
   العضويات: زر الحساب وصفحة «حسابي»
   ===================================================================== */
.acct-btn { display: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 999px; border: 1px solid var(--faience); color: var(--faience); background: var(--surface); transition: transform .2s, box-shadow .2s, background-color .2s, color .2s; }
.acct-btn:hover, .acct-btn:focus-visible { background: var(--faience); color: #fff; transform: translateY(-1px); box-shadow: var(--soft); }
@media (min-width: 861px) { .acct-btn { display: inline-flex; } .menu-acct { display: none; } }
html.nav-compact .acct-btn { display: none; }
html.nav-compact .menu-acct { display: list-item; }

.mt-acct { max-width: 34rem; margin-inline: auto; }
.mt-acct__tabs { display: flex; gap: .4rem; padding: .3rem; margin-block-end: 1.4rem; border-radius: 999px; background: color-mix(in srgb, var(--faience) 8%, var(--surface)); border: 1px solid var(--line); }
.mt-acct__tab { flex: 1; text-align: center; padding: .6rem 1rem; border-radius: 999px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.mt-acct__tab.is-on { background: var(--faience); color: #fff; box-shadow: var(--soft); }
.mt-acct__h { font-size: 1.45rem; margin: 0 0 1rem; }
.mt-acct__sec { margin-block-start: 2rem; padding-block-start: 1.6rem; border-block-start: 1px solid var(--line); }
.mt-acct__sec h3 { margin: 0 0 1rem; font-size: 1.15rem; }
.mt-acct__hello { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mt-acct__hello .mt-acct__h { margin: 0; }
.mt-acct__out { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.mt-acct__out:hover { border-color: var(--coral-ink); color: var(--coral-ink); }
.mt-acct__remember { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 .8rem; color: var(--ink-2); }
.mt-acct__lost { margin: 0 0 1rem; }
.mt-acct__lost a { color: var(--faience); }
.mt-acct input[readonly] { opacity: .7; cursor: not-allowed; }
.mt-pass { position: relative; }
.mt-pass input { width: 100%; padding-inline-end: 2.8rem; }
.mt-pass__eye { position: absolute; inset-block: 0; inset-inline-end: .35rem; margin-block: auto; height: 2.1rem; width: 2.3rem; border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; opacity: .65; }
.mt-pass__eye:hover { opacity: 1; }
.mt-acct .mt-notice { margin-block-end: 1.2rem; }

/* مساحة لزر الحساب في الهيدر الكامل (الشاشات الواسعة): تقليصات صغيرة غير ملحوظة. */
@media (min-width: 861px) {
	.header-in { column-gap: 1.125rem; }
	.header-tools { gap: .375rem; }
	.primary-nav .nav-list a { padding-inline: .5625rem; }
	.acct-btn { width: 2.1rem; height: 2.1rem; }
}

/* لوحة العضو: قائمة جانبية تتبع اتجاه اللغة (يمين في العربية، يسار في غيرها) ومحتوى بجوارها. */
.mt-acct--in { max-width: 66rem; }
.mt-dash { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.mt-dash__side { position: sticky; top: 5.5rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--soft); }
.mt-dash__who { display: flex; align-items: center; gap: .7rem; padding: .3rem .3rem 1rem; margin-block-end: .6rem; border-block-end: 1px solid var(--line); }
.mt-dash__av { display: inline-flex; align-items: center; justify-content: center; width: 2.7rem; height: 2.7rem; flex: none; border-radius: 999px; background: var(--faience); color: #fff; font-weight: 800; font-size: 1.2rem; }
.mt-dash__name { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-dash__nav { display: flex; flex-direction: column; gap: .3rem; }
.mt-dash__link { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border-radius: 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; transition: background-color .2s, color .2s; }
.mt-dash__link:hover { background: color-mix(in srgb, var(--faience) 9%, transparent); color: var(--faience); }
.mt-dash__link.is-on { background: var(--faience); color: #fff; }
.mt-dash__link--out { margin-block-start: .5rem; color: var(--coral-ink); }
.mt-dash__link--out:hover { background: color-mix(in srgb, var(--coral-ink) 10%, transparent); color: var(--coral-ink); }
.mt-dash__main { min-width: 0; }
.mt-dash__card { padding: 1.5rem 1.6rem; margin-block-end: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--soft); }
.mt-dash__card h3 { margin: 0 0 1rem; font-size: 1.15rem; }
.mt-dash__welcome { background: linear-gradient(135deg, color-mix(in srgb, var(--faience) 10%, var(--surface)), var(--surface) 60%); }
.mt-dash__lead { font-size: 1.08rem; line-height: 1.85; color: var(--ink-2); margin: 0 0 .6rem; }
.mt-dash__since { margin: 0 0 1.2rem; color: var(--ink-2); opacity: .8; font-size: .95rem; }
@media (max-width: 760px) {
	.mt-dash { grid-template-columns: 1fr; gap: 1rem; }
	.mt-dash__side { position: static; padding: .7rem; }
	.mt-dash__who { padding: .2rem .2rem .7rem; }
	.mt-dash__nav { flex-direction: row; overflow-x: auto; gap: .4rem; }
	.mt-dash__link { flex: none; padding: .55rem .85rem; }
	.mt-dash__link--out { margin-block-start: 0; margin-inline-start: auto; }
	.mt-dash__card { padding: 1.15rem; }
}

/* زر بطاقة الترحيب: نص أبيض واضح (قاعدة روابط المقالات كانت تلوّنه بلون خلفيته). */
.entry-content a.mt-dash__btn, .mt-dash__btn { color: #fff; text-decoration: none; }
.entry-content a.mt-dash__btn:hover { color: #fff; }
/* الجوال: عناصر القائمة تلتف بدل أن تُقص عند الحافة. */
@media (max-width: 760px) {
	.mt-dash__nav { flex-wrap: wrap; overflow: visible; }
	.mt-dash__link { flex: 1 1 auto; justify-content: center; }
	.mt-dash__link--out { margin-inline-start: 0; }
}

/* =====================================================================
   المفضلة و«رحلتي القادمة»: قلب وحقيبة صغيران جدًا
   ===================================================================== */
.mt-save { display: inline-flex; align-items: center; gap: .3rem; vertical-align: middle; }
.mt-save--single { margin: -.4rem 0 1rem; }
.mt-save__btn { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: transform .15s, color .15s, background-color .15s, border-color .15s; }
.mt-save__btn svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mt-save__btn:hover { transform: scale(1.12); }
.mt-save__btn--fav:hover, .mt-save__btn--fav.is-on { color: #e03b5a; border-color: color-mix(in srgb, #e03b5a 45%, transparent); }
.mt-save__btn--fav.is-on svg { fill: #e03b5a; }
.mt-save__btn--trip:hover, .mt-save__btn--trip.is-on { color: var(--coral-ink); border-color: color-mix(in srgb, var(--coral-ink) 45%, transparent); }
.mt-save__btn--trip.is-on { background: color-mix(in srgb, var(--coral-ink) 12%, var(--surface)); }
.card { position: relative; }
.mt-save--card { position: absolute; top: .5rem; inset-inline-end: .5rem; z-index: 3; }
.mt-save--card .mt-save__btn { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(4px); border-color: transparent; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* رؤوس أقسام اللوحة: رسمة وألوان لكل قسم، وعنوان ووصف مختصر. */
.mt-sec { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; margin-block-end: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.mt-sec__art { width: 6.2rem; height: auto; flex: none; }
.mt-sec__title { margin: 0 0 .3rem; font-size: 1.35rem; }
.mt-sec__desc { margin: 0; color: var(--ink-2); line-height: 1.75; font-size: .98rem; }
.mt-sec--home     { background: linear-gradient(120deg, #e3f6f7, #fff6e6); }
.mt-sec--fav      { background: linear-gradient(120deg, #fde8ec, #fff4f1); }
.mt-sec--trip     { background: linear-gradient(120deg, #fff1e0, #e6f6f7); }
.mt-sec--numbers  { background: linear-gradient(120deg, #e1f3f4, #eef6ff); }
.mt-sec--contact  { background: linear-gradient(120deg, #e6f7f9, #fdeef1); }
.mt-sec--settings { background: linear-gradient(120deg, #eef2f5, #f7f8f8); }
html[data-theme="dark"] .mt-sec { background: color-mix(in srgb, var(--faience) 14%, var(--surface)); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .mt-sec { background: color-mix(in srgb, var(--faience) 14%, var(--surface)); } }

/* القائمة الجانبية: أيقونة ملونة لكل قسم، وعدّاد للمحفوظات. */
.mt-dash__ico { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; flex: none; border-radius: 10px; color: #fff; }
.mt-dash__ico--home { background: #0b7a8a; } .mt-dash__ico--fav { background: #e03b5a; } .mt-dash__ico--trip { background: #e0883a; }
.mt-dash__ico--numbers { background: #2f80c9; } .mt-dash__ico--contact { background: #33a3b2; } .mt-dash__ico--settings { background: #6c7f8f; } .mt-dash__ico--out { background: var(--coral-ink); }
.mt-dash__link.is-on .mt-dash__ico { background: rgba(255,255,255,.22); }
.mt-dash__n { margin-inline-start: auto; min-width: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: color-mix(in srgb, var(--faience) 14%, transparent); color: var(--faience); font-style: normal; font-size: .8rem; font-weight: 700; text-align: center; }
.mt-dash__link.is-on .mt-dash__n { background: rgba(255,255,255,.25); color: #fff; }

/* بلاطات الصفحة الرئيسية للوحة. */
.mt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.mt-tile { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--soft); transition: transform .2s; }
.mt-tile:hover { transform: translateY(-2px); }
.mt-tile strong { font-size: 1.08rem; } .mt-tile span { color: var(--ink-2); font-size: .92rem; }
.mt-tile--fav { border-inline-start: 4px solid #e03b5a; } .mt-tile--trip { border-inline-start: 4px solid #e0883a; }
.mt-tile--numbers { border-inline-start: 4px solid #2f80c9; } .mt-tile--contact { border-inline-start: 4px solid #33a3b2; }

/* بطاقات المحفوظات. */
.mt-savecards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.mt-savecard { display: flex; align-items: center; gap: .75rem; padding: .55rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: opacity .25s; }
.mt-savecard__img img, .mt-savecard__ph { display: block; width: 3.6rem; height: 3.6rem; border-radius: 10px; object-fit: cover; background: color-mix(in srgb, var(--faience) 15%, var(--surface)); }
.mt-savecard__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mt-savecard__type { font-size: .78rem; color: var(--ink-2); }
.mt-savecard__title { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-savecard__x { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 1.1rem; cursor: pointer; }
.mt-savecard__x:hover { color: var(--coral-ink); border-color: var(--coral-ink); }
.mt-savegroup { margin: 1.1rem 0 .6rem; font-size: 1.02rem; color: var(--faience); }
.mt-savegroup-wrap:first-child .mt-savegroup { margin-top: 0; }
.mt-empty { margin: 0; color: var(--ink-2); line-height: 1.8; }

/* أرقام تهمك. */
.mt-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .7rem; }
.mt-num { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.mt-num__name { font-weight: 600; color: var(--ink); }
.mt-num__tel { font-size: 1.25rem; font-weight: 800; color: #2f80c9; text-decoration: none; letter-spacing: .02em; }

/* رسائل العضو السابقة. */
.mt-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.mt-msg { padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line); }
.mt-msg__date { display: block; font-size: .8rem; color: var(--ink-2); margin-block-end: .2rem; }
.mt-msg p { margin: .3rem 0 0; color: var(--ink-2); white-space: pre-line; }
.jn-field textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-img); background: var(--surface); color: var(--ink); font: inherit; }
.jn-field input[type="date"] { min-height: 2.9rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-img); background: var(--surface); color: var(--ink); font: inherit; }
@media (max-width: 760px) {
	.mt-tiles { grid-template-columns: 1fr; }
	.mt-sec { padding: .9rem 1rem; gap: .8rem; }
	.mt-sec__art { width: 4.2rem; }
	.mt-sec__title { font-size: 1.15rem; }
}

/* الزائر الذي ضغط القلب أو الحقيبة: رسالة تشرح السبب، وزرّا الدخول وإنشاء الحساب. */
.mt-need { padding: 1.1rem 1.2rem; margin-block-end: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); }
.mt-need--fav  { background: linear-gradient(120deg, #fde8ec, #fff6f2); }
.mt-need--trip { background: linear-gradient(120deg, #fff1e0, #e9f7f8); }
html[data-theme="dark"] .mt-need { background: color-mix(in srgb, var(--coral-ink) 12%, var(--surface)); }
.mt-need__t { margin: 0 0 .9rem; font-size: 1.05rem; line-height: 1.8; color: var(--ink); font-weight: 600; }
.mt-need__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.entry-content a.mt-need__btn, .mt-need__btn { flex: 1 1 10rem; justify-content: center; text-align: center; color: var(--faience); background: var(--surface); border: 1.5px solid var(--faience); text-decoration: none; }
.entry-content a.mt-need__btn.is-on, .mt-need__btn.is-on { background: var(--faience); color: #fff; }

/* صفحة الحساب بلا رأس الصفحة: مسافة علوية مريحة. */
.single-page .mt-acct { margin-block-start: 1.6rem; }
/* عداد مشاهدات صفحة الطقس بجوار حقوق المصدر. */
.wx-credit-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.wx-credit-views { flex: none; }
.wx-credit-views .views-badge, .wx-credit-views > * { margin: 0; }
/* تبويبا الدخول والتسجيل: نص التبويب المختار أبيض دائمًا (حتى أثناء مرور الماوس). */
.entry-content a.mt-acct__tab { text-decoration: none; }
.entry-content a.mt-acct__tab.is-on, .entry-content a.mt-acct__tab.is-on:hover { color: #fff; }
.entry-content a.mt-acct__tab:not(.is-on):hover { color: var(--faience); background: color-mix(in srgb, var(--faience) 10%, transparent); }

/* صفحة الطقس: العنوان الخفيف (السطر التعريفي) والمسافات المضمومة. */
.wx-title { margin: 1.5rem 0 .9rem; font-size: 1.18rem; line-height: 1.7; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.wx-week-head { margin: 1rem 0 .7rem; }
.wx-week-head .wx-sub { margin: 0 0 .2rem; }
.wx-week-head .wx-hint { margin: 0; }
@media (min-width: 861px) {
	.wx-week-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; }
	.wx-week-head .wx-sub { margin: 0; }
	.wx-week-head .wx-sub::after { content: ":"; }
	.wx-week-head .wx-hint { font-size: .95rem; }
	/* لوحة الشبورة: في نهاية صف اسم المدينة، ملاصقة لحافة المربع (على خط بطاقات البيانات). */
	.wx-now__place .wx-alert { margin-inline-start: auto; margin-inline-end: 0; }
	[dir="rtl"] .wx-now__place .wx-alert, .rtl .wx-now__place .wx-alert { position: static; left: auto; }
}
.wx-now { row-gap: .15rem; }
.wx-sub { margin-top: 1.1rem; }

/* الحقيبة المضافة: ممتلئة بالمرجاني وأيقونتها بيضاء (تحوّل واضح كالقلب الأحمر). */
.mt-save__btn--trip.is-on { background: var(--coral-ink); border-color: var(--coral-ink); color: #fff; }
.mt-save__btn--trip.is-on:hover { color: #fff; }
.mt-save--card .mt-save__btn--trip.is-on { background: var(--coral-ink); }
.mt-save__btn.is-on { animation: mt-save-pop .32s ease-out; }
@keyframes mt-save-pop { 0% { transform: scale(1); } 45% { transform: scale(1.32); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mt-save__btn.is-on { animation: none; } }

/* القلب والحقيبة في آخر نص المحتوى: نهاية السطر (يسار في العربية، يمين في غيرها). */
.mt-save--end { display: flex; justify-content: flex-end; margin: 1.4rem 0 .4rem; }

/* رحلتي القادمة: تاريخ الرحلة وتاريخ الانتهاء متجاوران. */
.mt-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 560px) { .mt-dates { grid-template-columns: 1fr; } }

/* صفحة «الخدمات»: بطاقتان رسوميتان. */
.mt-hub-intro { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 1.3rem; }
.mt-hubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.mt-hub { position: relative; display: flex; align-items: center; gap: 1.2rem; min-height: 11rem; padding: 1.5rem 1.6rem; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: var(--soft); transition: transform .25s, box-shadow .25s; }
a.mt-hub:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 58, 70, .14); }
.entry-content a.mt-hub, .entry-content a.mt-hub:hover { color: var(--ink); text-decoration: none; }
.mt-hub--services { background: linear-gradient(135deg, #fde8ec 0%, #fff4e3 100%); }
.mt-hub--realestate { background: linear-gradient(135deg, #e1f4f6 0%, #e8f0ff 100%); }
html[data-theme="dark"] .mt-hub--services { background: linear-gradient(135deg, color-mix(in srgb, #e85d75 22%, var(--surface)), var(--surface)); }
html[data-theme="dark"] .mt-hub--realestate { background: linear-gradient(135deg, color-mix(in srgb, var(--faience) 25%, var(--surface)), var(--surface)); }
.mt-hub__art { width: 8.5rem; height: auto; flex: none; filter: drop-shadow(0 6px 10px rgba(11, 58, 70, .12)); }
.mt-hub__txt { display: flex; flex-direction: column; gap: .4rem; }
.mt-hub__title { font-size: 1.32rem; line-height: 1.4; }
.mt-hub__desc { color: var(--ink-2); line-height: 1.7; }
.mt-hub__go { margin-block-start: .3rem; font-weight: 700; color: var(--faience); }
.mt-hub--realestate .mt-hub__go { color: #2f80c9; }
.mt-hub__soon { position: absolute; top: .9rem; inset-inline-end: .9rem; padding: .25rem .75rem; border-radius: 999px; background: #f2a65a; color: #fff; font-size: .8rem; font-weight: 700; }
@media (max-width: 760px) {
	.mt-hubs { grid-template-columns: 1fr; }
	.mt-hub { min-height: 0; padding: 1.2rem; }
	.mt-hub__art { width: 6rem; }
	.mt-hub__title { font-size: 1.15rem; }
}

/* صفحة العقارات المؤقتة. */
.mt-soon { max-width: 36rem; margin: 1rem auto 2rem; padding: 2rem 1.5rem; text-align: center; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: linear-gradient(135deg, #e1f4f6, #e8f0ff); }
html[data-theme="dark"] .mt-soon { background: color-mix(in srgb, var(--faience) 18%, var(--surface)); }
.mt-soon .mt-hub__art { width: 10rem; margin: 0 auto 1rem; display: block; }
.mt-soon__h { margin: 0 0 .7rem; font-size: 1.4rem; }
.mt-soon__p { margin: 0 0 1.3rem; color: var(--ink-2); line-height: 1.85; font-size: 1.05rem; }
.entry-content a.mt-soon__btn { color: #fff; text-decoration: none; }

/* رحلتي القادمة: فصل أنيق بين المجموعات (إطار لكل مجموعة، ورأس بنقطة ملونة وعدد). */
.mt-savegroup-wrap { padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--faience) 3%, var(--surface)); }
.mt-savegroup-wrap + .mt-savegroup-wrap { margin-block-start: 1.1rem; }
.mt-savegroup { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; padding-block-end: .7rem; border-block-end: 1px dashed var(--line); font-size: 1.05rem; color: var(--ink); }
.mt-savegroup-wrap:first-child .mt-savegroup { margin-top: 0; }
.mt-savegroup__dot { width: .7rem; height: .7rem; border-radius: 999px; background: var(--faience); flex: none; }
.mt-savegroup-wrap--matrouh_place .mt-savegroup__dot { background: #33b5c4; }
.mt-savegroup-wrap--matrouh_hotel .mt-savegroup__dot { background: #e0883a; }
.mt-savegroup-wrap--matrouh_restaurant .mt-savegroup__dot { background: #e85d75; }
.mt-savegroup-wrap--matrouh_shop .mt-savegroup__dot { background: #2f80c9; }
.mt-savegroup-wrap--matrouh_transport .mt-savegroup__dot { background: #6c7f8f; }
.mt-savegroup-wrap--post .mt-savegroup__dot { background: #8a63c9; }
.mt-savegroup__n { margin-inline-start: auto; min-width: 1.6rem; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--faience) 12%, transparent); color: var(--faience); font-style: normal; font-size: .82rem; font-weight: 700; text-align: center; }
/* الصورة الافتراضية: شعار الموقع على خلفية فاتحة. */
.mt-savecard__img .mt-savecard__logo { object-fit: contain; padding: .35rem; background: color-mix(in srgb, var(--faience) 10%, var(--surface)); }
/* معلومات العضوية في الإعدادات. */
.mt-info__list { margin: 0; display: grid; gap: .5rem; }
.mt-info__list div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--faience) 6%, var(--surface)); }
.mt-info__list dt { color: var(--ink-2); }
.mt-info__list dd { margin: 0; font-weight: 700; color: var(--ink); }
/* عداد مشاهدات صفحتي الأدلة: أسفل الصفحة في نهاية السطر. */
.page-views-end { display: flex; justify-content: flex-end; margin: 1.6rem 0 .4rem; }
.page-views-end .mt-views { margin: 0; }
/* رأس مجموعة الرحلة بعرض إطاره كاملًا (قاعدة عناوين المقالات كانت تقصّره). */
.entry-content .mt-savegroup { width: 100%; max-width: none; }

/* =====================================================================
   سوق البيع والشراء
   ===================================================================== */
.mt-dash__ico--market { background: #c8402b; }
.mt-sec--market { background: linear-gradient(120deg, #fff0e6, #e6f4f6); }
.mt-tile--market { border-inline-start: 4px solid #c8402b; }
:root { --mkt-sale: #0b7a8a; --mkt-rent: #e0883a; --mkt-wa: #1fa855; }

/* صفحة السوق */
.mkt-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; padding: 1.6rem 1.8rem; margin-block-end: 1.2rem; border-radius: calc(var(--radius) + 4px); background: linear-gradient(120deg, #e1f4f6 0%, #fff1e3 100%); border: 1px solid var(--line); }
html[data-theme="dark"] .mkt-hero { background: color-mix(in srgb, var(--faience) 16%, var(--surface)); }
.mkt-hero__h { margin: 0 0 .35rem; font-size: 1.55rem; }
.mkt-hero__p { margin: 0; color: var(--ink-2); line-height: 1.8; max-width: 60ch; }
.entry-content a.mkt-hero__btn, .mkt-hero__btn { color: #fff; text-decoration: none; white-space: nowrap; }
.mkt-tabs { display: flex; gap: .5rem; margin-block-end: 1rem; }
.mkt-tab { flex: 1 1 0; text-align: center; padding: .85rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.entry-content a.mkt-tab { color: var(--ink); text-decoration: none; }
.entry-content a.mkt-tab.is-on, .mkt-tab.is-on { background: var(--faience); border-color: var(--faience); color: #fff; box-shadow: var(--soft); }
.mkt-filters { padding: 1.1rem 1.2rem; margin-block-end: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--soft); }
.mkt-seg { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-end: .9rem; }
.mkt-seg label { cursor: pointer; }
.mkt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mkt-seg span { display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.mkt-seg input:checked + span { background: color-mix(in srgb, var(--faience) 14%, var(--surface)); border-color: var(--faience); color: var(--faience); }
.mkt-seg input:focus-visible + span { outline: 2px solid var(--faience); outline-offset: 2px; }
.mkt-fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem .8rem; }
.mkt-fl { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; color: var(--ink-2); }
.mkt-fl--q { grid-column: span 2; }
.mkt-fl select, .mkt-fl input { width: 100%; min-height: 2.6rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; }
.mkt-factions { display: flex; align-items: center; gap: 1rem; margin-block-start: .9rem; }
.entry-content a.mkt-reset, .mkt-reset { color: var(--ink-2); }
.mkt-count { margin: 0 0 .8rem; color: var(--ink-2); font-weight: 600; }
.mkt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.mkt-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--soft); transition: transform .2s, box-shadow .2s; }
.mkt-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11, 58, 70, .12); }
.mkt-card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--faience) 10%, var(--surface)); }
.mkt-card__img img, .mkt-card__ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-card__n { position: absolute; bottom: .5rem; inset-inline-end: .5rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; }
.mkt-badge { position: absolute; top: .6rem; inset-inline-start: .6rem; padding: .2rem .7rem; border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 700; }
.mkt-badge--sale { background: var(--mkt-sale); } .mkt-badge--rent { background: var(--mkt-rent); }
.mkt-card__b { display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem 1rem; }
.mkt-card__price { font-size: 1.15rem; color: var(--faience); }
.mkt-card__t { margin: 0; font-size: 1rem; line-height: 1.5; max-width: none; }
.mkt-card__t a, .entry-content .mkt-card__t a { color: var(--ink); text-decoration: none; }
.mkt-card__m, .mkt-card__f { margin: 0; font-size: .86rem; color: var(--ink-2); }
.mkt-none, .mkt-empty { padding: 2rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.entry-content .mkt-none a.btn, .entry-content .mkt-empty a.btn { color: #fff; text-decoration: none; }
.mkt-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin: 1.4rem 0 .5rem; }
.mkt-pages a, .mkt-pages span { min-width: 2.4rem; padding: .4rem .6rem; text-align: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mkt-pages .is-on { background: var(--faience); border-color: var(--faience); color: #fff; }

/* صفحة العرض */
.mkt-single .mkt-crumbs { margin: 1.2rem 0 1rem; display: flex; gap: .4rem; font-size: .92rem; }
.mkt-crumbs a { color: var(--ink-2); }
.mkt-s { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.6rem; align-items: start; }
.mkt-gal__main { position: relative; border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--faience) 8%, var(--surface)); aspect-ratio: 16 / 10; }
.mkt-gal__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mkt-gal__thumbs { display: flex; gap: .45rem; margin-block-start: .5rem; overflow-x: auto; padding-block-end: .2rem; }
.mkt-gal__t { flex: none; width: 4.6rem; height: 3.6rem; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.mkt-gal__t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-gal__t.is-on { border-color: var(--faience); opacity: 1; }
.mkt-s__title { margin: 1.1rem 0 .3rem; font-size: 1.6rem; line-height: 1.45; }
.mkt-s__meta { margin: 0 0 1rem; color: var(--ink-2); }
.mkt-s__h { margin: 1.4rem 0 .6rem; font-size: 1.12rem; }
.mkt-specs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.mkt-specs div { padding: .6rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--faience) 6%, var(--surface)); }
.mkt-specs dt { font-size: .8rem; color: var(--ink-2); }
.mkt-specs dd { margin: .1rem 0 0; font-weight: 700; }
.mkt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mkt-chips li { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; }
.mkt-s__desc { line-height: 1.95; }
.mkt-s__side { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: .9rem; }
.mkt-box { padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--soft); }
.mkt-price { display: block; font-size: 1.6rem; color: var(--faience); line-height: 1.3; }
.mkt-price__sub, .mkt-neg { display: block; margin-block-start: .3rem; color: var(--ink-2); font-size: .92rem; }
.mkt-neg { color: var(--mkt-rent); font-weight: 700; }
.mkt-contact { display: flex; flex-direction: column; gap: .5rem; margin-block-start: 1rem; }
.mkt-contact .btn { width: 100%; justify-content: center; text-align: center; }
.mkt-wa { background: var(--mkt-wa) !important; border-color: var(--mkt-wa) !important; color: #fff !important; text-decoration: none; }
.mkt-seller { margin: .8rem 0 0; color: var(--ink-2); font-size: .9rem; }
.mkt-box--safe { background: color-mix(in srgb, #f2a65a 12%, var(--surface)); border-color: color-mix(in srgb, #f2a65a 40%, var(--line)); font-size: .92rem; line-height: 1.8; box-shadow: none; }
.mkt-s__no { margin: 0; color: var(--ink-2); font-size: .85rem; text-align: center; }
.mkt-related { margin-block: 2rem 1rem; }

/* لوحة السوق في حساب العضو */
.mkt-sub { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-end: 1.1rem; }
.mkt-sub__a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.entry-content a.mkt-sub__a { color: var(--ink-2); text-decoration: none; }
.entry-content a.mkt-sub__a.is-on, .mkt-sub__a.is-on { background: #c8402b; border-color: #c8402b; color: #fff; }
.mkt-sub__a--out { margin-inline-start: auto; }
.mkt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-block-end: 1rem; }
.mkt-tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mkt-tile { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--soft); transition: transform .2s; }
.entry-content a.mkt-tile { color: var(--ink); text-decoration: none; }
.mkt-tile:hover { transform: translateY(-3px); }
.mkt-tile--real_estate { background: linear-gradient(135deg, #e1f4f6, #fff8e8); }
.mkt-tile--transport { background: linear-gradient(135deg, #e6f6f8, #fdeef1); }
.mkt-tile--mine { background: linear-gradient(135deg, #fff4e3, #eef6f6); }
html[data-theme="dark"] .mkt-tile { background: color-mix(in srgb, var(--faience) 12%, var(--surface)); }
.mkt-tile__art { width: 5.5rem; height: auto; }
.mkt-tile__t { display: flex; flex-direction: column; gap: .2rem; }
.mkt-tile__t strong { font-size: 1.08rem; }
.mkt-tile__t span { color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.mkt-stats { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.mkt-stat { padding: .8rem; border-radius: 14px; border: 1px solid var(--line); text-align: center; background: var(--surface); }
.mkt-stat b { display: block; font-size: 1.5rem; }
.mkt-stat span { color: var(--ink-2); font-size: .85rem; }
.mkt-stat--publish b { color: #1d8a54; } .mkt-stat--pending b { color: #c77d10; } .mkt-stat--mt_sold b { color: #2f80c9; } .mkt-stat--mt_expired b { color: #8a94a0; }
.mkt-quota { margin: 0; color: var(--ink-2); font-size: .92rem; }
.mkt-h { margin: 0 0 1rem; font-size: 1.2rem; }
.mkt-mine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.mkt-row { display: flex; gap: .9rem; padding: .7rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mkt-row__img { flex: none; width: 6.5rem; height: 5rem; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--faience) 10%, var(--surface)); }
.mkt-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-row__b { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.mkt-row__top { display: flex; align-items: center; gap: .5rem; }
.mkt-row__no { color: var(--ink-2); font-size: .8rem; }
.mkt-row__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-row__m, .mkt-row__exp { color: var(--ink-2); font-size: .86rem; }
.mkt-row__why { color: #c0392b; font-size: .88rem; }
.mkt-row__acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-start: .3rem; }
.mkt-act { padding: .25rem .75rem; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; color: var(--ink); text-decoration: none; }
.entry-content a.mkt-act { color: var(--ink); text-decoration: none; }
.entry-content a.mkt-act--del { color: #c0392b; }
.mkt-st { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; }
.mkt-st--publish { background: #1d8a54; } .mkt-st--pending { background: #c77d10; } .mkt-st--mt_sold { background: #2f80c9; }
.mkt-st--mt_expired { background: #8a94a0; } .mkt-st--mt_rejected { background: #c0392b; } .mkt-st--mt_suspended { background: #6c5a8a; }

/* نموذج إضافة العرض */
.mkt-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.mkt-f--wide { grid-column: 1 / -1; }
.mkt-f[hidden] { display: none; }
.mkt-lbl { display: block; font-weight: 600; margin-block-end: .4rem; }
.mkt-checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.mkt-check { position: relative; cursor: pointer; }
.mkt-check[hidden] { display: none; }
.mkt-check input { position: absolute; opacity: 0; }
.mkt-check span { display: inline-block; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; }
.mkt-check input:checked + span { background: color-mix(in srgb, var(--faience) 14%, var(--surface)); border-color: var(--faience); color: var(--faience); font-weight: 700; }
.mkt-check input:focus-visible + span { outline: 2px solid var(--faience); outline-offset: 2px; }
.mkt-switch { display: flex; align-items: center; gap: .5rem; margin-block: .6rem; cursor: pointer; font-weight: 600; }
.mkt-loc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.jn-field .mkt-loc select, .jn-field select { width: 100%; }
.mkt-imgs { display: flex; flex-wrap: wrap; gap: .6rem; margin-block-end: .6rem; }
.mkt-img { position: relative; display: flex; flex-direction: column; gap: .25rem; width: 6.5rem; font-size: .8rem; }
.mkt-img img { width: 100%; height: 5rem; object-fit: cover; border-radius: 10px; }
.mkt-img em { position: absolute; top: .3rem; inset-inline-start: .3rem; padding: 0 .4rem; border-radius: 6px; background: var(--faience); color: #fff; font-style: normal; font-size: .72rem; }
.mkt-drop { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.4rem 1rem; border: 2px dashed color-mix(in srgb, var(--faience) 45%, var(--line)); border-radius: 16px; text-align: center; cursor: pointer; background: color-mix(in srgb, var(--faience) 4%, var(--surface)); }
.mkt-drop input { max-width: 100%; }
.mkt-drop__t { font-weight: 700; color: var(--faience); }
.mkt-drop__h { font-size: .84rem; color: var(--ink-2); }
.mkt-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: .6rem; }
.mkt-preview img { width: 5.5rem; height: 4.2rem; object-fit: cover; border-radius: 10px; }
.mkt-preview__err { width: 100%; margin: 0; color: #c0392b; font-weight: 600; }
.mkt-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block-start: 1rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line); }
.mkt-form__foot .jn-hint { margin: 0; max-width: 40ch; }
.mt-notice ul { margin: .4rem 0 0; padding-inline-start: 1.2rem; }

@media (max-width: 980px) {
	.mkt-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mkt-s { grid-template-columns: 1fr; }
	.mkt-s__side { position: static; }
	.mkt-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.mkt-hero { padding: 1.2rem; }
	.mkt-hero__h { font-size: 1.3rem; }
	.mkt-hero__btn { width: 100%; justify-content: center; }
	.mkt-grid, .mkt-tiles, .mkt-tiles--two, .mkt-form__grid, .mkt-loc { grid-template-columns: 1fr; }
	.mkt-fl--q { grid-column: 1 / -1; }
	.mkt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mkt-row__img { width: 5rem; height: 4.2rem; }
	.mkt-s__title { font-size: 1.3rem; }
	.mkt-sub__a--out { margin-inline-start: 0; }
}

/* السوق: تصحيحات المرحلة الأولى. */
.entry-content .mkt-card__t { margin: 0; }
.mkt-hero__h { font-size: 1.7rem; }
.mkt-mob { display: none; margin-block: .2rem 1rem; }
@media (max-width: 980px) {
	.mkt-mob { display: block; }
	.mkt-s__side > .mkt-box--price { display: none; }
}
.single-page .mkt { margin-block-start: 1.4rem; }

/* =====================================================================
   سوق البيع والشراء: المراسلات
   ===================================================================== */
.mkt-sub__n { display: inline-flex; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; margin-inline-start: .3rem; align-items: center; justify-content: center; border-radius: 999px; background: #e03b5a; color: #fff; font-size: .75rem; font-weight: 800; }
.mkt-sub__n[hidden] { display: none; }
.mkt-chat { display: grid; grid-template-columns: 19rem minmax(0, 1fr); height: min(70vh, 640px); min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--soft); }
.mkt-chat__list { border-inline-end: 1px solid var(--line); overflow-y: auto; background: color-mix(in srgb, var(--faience) 3%, var(--surface)); }
.mkt-chat__threads { list-style: none; margin: 0; padding: 0; }
.mkt-chat__none { padding: 1.4rem 1rem; color: var(--ink-2); line-height: 1.8; }
.mkt-chat__th { border-block-end: 1px solid var(--line); }
.mkt-chat__a { display: flex; gap: .6rem; width: 100%; padding: .75rem .8rem; border: 0; background: none; text-align: start; cursor: pointer; font: inherit; color: var(--ink); }
.mkt-chat__a:hover { background: color-mix(in srgb, var(--faience) 7%, transparent); }
.mkt-chat__th.is-on .mkt-chat__a { background: color-mix(in srgb, var(--faience) 13%, var(--surface)); }
.mkt-chat__th.is-new .mkt-chat__who { color: var(--faience); }
.mkt-chat__th.is-closed { opacity: .6; }
.mkt-chat__img { flex: none; width: 3rem; height: 3rem; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--faience) 12%, var(--surface)); }
.mkt-chat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-chat__tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mkt-chat__who { font-size: .95rem; }
.mkt-chat__lt, .mkt-chat__pv { font-size: .8rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-chat__pv { color: var(--ink); opacity: .8; }
.mkt-chat__side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex: none; }
.mkt-chat__when { font-size: .72rem; color: var(--ink-2); }
.mkt-chat__n { min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 999px; background: #e03b5a; color: #fff; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mkt-chat__pane { display: flex; flex-direction: column; min-height: 0; }
.mkt-chat__ph { margin: auto; color: var(--ink-2); padding: 1rem; text-align: center; }
.mkt-chat__head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-block-end: 1px solid var(--line); flex-wrap: wrap; }
.mkt-chat__back { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; font: inherit; }
.mkt-chat__hw { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mkt-chat__ht { font-size: .86rem; color: var(--faience); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-chat__hp { font-size: .8rem; color: var(--ink-2); }
.mkt-chat__tools { display: flex; gap: .35rem; }
.mkt-chat__tool { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: .25rem .75rem; font: inherit; font-size: .82rem; cursor: pointer; }
.mkt-chat__tool--rep:not(:disabled):hover { color: #c0392b; border-color: #c0392b; }
.mkt-chat__tool:disabled { opacity: .55; cursor: default; }
.mkt-chat__msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .45rem; background: color-mix(in srgb, var(--faience) 3%, var(--surface)); }
.mkt-msg { max-width: 78%; align-self: flex-start; padding: .55rem .85rem; border-radius: 16px; border-end-start-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.mkt-msg.is-mine { align-self: flex-end; background: var(--faience); border-color: var(--faience); color: #fff; border-end-start-radius: 16px; border-end-end-radius: 4px; }
.mkt-msg.is-del { opacity: .6; font-style: italic; }
.mkt-msg__b { margin: 0; white-space: pre-line; line-height: 1.65; overflow-wrap: anywhere; }
.mkt-msg__t { display: block; margin-block-start: .15rem; font-size: .7rem; opacity: .75; }
.mkt-chat__form { display: flex; gap: .5rem; padding: .7rem; border-block-start: 1px solid var(--line); }
.mkt-chat__form textarea { flex: 1; resize: none; min-height: 2.8rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; }
.mkt-chat-err { margin: .2rem .9rem .6rem; color: #c0392b; font-weight: 600; font-size: .9rem; }
.mkt-chat-err[hidden] { display: none; }
.mkt-chat__closed { margin: 0; padding: .9rem 1rem; text-align: center; color: var(--ink-2); border-block-start: 1px solid var(--line); }
/* «راسل البائع» في صفحة العرض */
.mkt-chatbox { width: 100%; }
.mkt-chatbox summary { list-style: none; width: 100%; justify-content: center; text-align: center; cursor: pointer; background: var(--surface) !important; color: var(--faience) !important; border: 1.5px solid var(--faience) !important; }
.mkt-chatbox summary::-webkit-details-marker { display: none; }
.mkt-chatbox[open] summary { margin-block-end: .5rem; }
.mkt-chatform { display: flex; flex-direction: column; gap: .5rem; }
.mkt-chatform textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.mkt-chatbtn { width: 100%; justify-content: center; text-align: center; }
a.mkt-chatbtn, .entry-content a.mkt-chatbtn { background: var(--surface); color: var(--faience); border: 1.5px solid var(--faience); text-decoration: none; }
.mkt-chat-note { margin: .1rem 0 0; font-size: .8rem; color: var(--ink-2); text-align: center; }
@media (max-width: 760px) {
	.mkt-chat { grid-template-columns: 1fr; height: auto; min-height: 0; }
	.mkt-chat__list { border-inline-end: 0; max-height: none; }
	.mkt-chat__pane { display: none; height: 72vh; }
	.mkt-chat.is-open .mkt-chat__list { display: none; }
	.mkt-chat.is-open .mkt-chat__pane { display: flex; }
	.mkt-chat__back { display: inline-block; }
	.mkt-msg { max-width: 88%; }
}
/* المراسلات: زر الإرسال بحجم مناسب، وإخفاء أزرار التمرير العائمة أثناء فتح محادثة على الجوال (كانت تغطي «إرسال»). */
.mkt-chat__form .btn { align-self: flex-end; min-height: 2.8rem; padding: .5rem 1.15rem; font-size: .95rem; border-radius: 14px; }
@media (max-width: 760px) {
	body:has(.mkt-chat.is-open) .scroll-btns { display: none; }
}

/* =====================================================================
   سوق البيع والشراء: التوثيق والشارات
   ===================================================================== */
.mkt-emb { display: inline-block; vertical-align: -.2em; flex: none; }
.mkt-seller .mkt-emb { margin-inline-start: .2rem; }
.mkt-vf__state { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; margin-block-end: 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.mkt-vf__state h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.mkt-vf__state p { margin: 0; color: var(--ink-2); line-height: 1.75; }
.mkt-vf__state--approved { background: linear-gradient(120deg, #e6f4ff, var(--surface)); border-color: #b9dcf7; }
.mkt-vf__state--pending { background: linear-gradient(120deg, #fff6e6, var(--surface)); border-color: #f2d29b; }
.mkt-vf__state--fix, .mkt-vf__state--rejected, .mkt-vf__state--suspended { background: linear-gradient(120deg, #fdecec, var(--surface)); border-color: #f0b9b9; }
html[data-theme="dark"] .mkt-vf__state { background: color-mix(in srgb, var(--faience) 12%, var(--surface)); }
.mkt-vf__emb { flex: none; }
.mkt-vf__none { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 999px; background: color-mix(in srgb, var(--ink-2) 15%, var(--surface)); color: var(--ink-2); font-weight: 800; font-size: 1.3rem; }
.mkt-vf__note { margin-block-start: .5rem !important; color: #a5281b !important; }
.mkt-vf__gold { margin-block-start: .4rem !important; color: #a77406 !important; font-weight: 700; }
.mkt-tiers { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.mkt-tier { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .9rem .6rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.mkt-tier.is-on { border-color: var(--faience); box-shadow: 0 0 0 2px color-mix(in srgb, var(--faience) 30%, transparent); }
.mkt-tier strong { font-size: .95rem; }
.mkt-tier span { font-size: .84rem; color: var(--ink-2); }
.mkt-tier em { font-style: normal; font-size: .76rem; color: #a77406; }
.mkt-tier__emb { height: 30px; display: flex; align-items: center; }
.mkt-tier__dot { width: 22px; height: 22px; border-radius: 999px; border: 3px solid color-mix(in srgb, var(--ink-2) 40%, transparent); }
.mkt-vf__form { padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.mkt-vf__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-block-end: 1rem; }
.mkt-vf__type { position: relative; cursor: pointer; }
.mkt-vf__type input { position: absolute; opacity: 0; }
.mkt-vf__type > span { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem; border-radius: 16px; border: 1.5px solid var(--line); text-align: center; }
.mkt-vf__type em { font-style: normal; font-size: .84rem; color: var(--ink-2); }
.mkt-vf__type input:checked + span { border-color: var(--faience); background: color-mix(in srgb, var(--faience) 8%, var(--surface)); }
.mkt-vf__type input:focus-visible + span { outline: 2px solid var(--faience); outline-offset: 2px; }
.mkt-vf__docs[hidden] { display: none; }
.mkt-vf__form input[type="file"] { width: 100%; padding: .6rem; border: 1.5px dashed var(--line); border-radius: 12px; background: color-mix(in srgb, var(--faience) 3%, var(--surface)); }
@media (max-width: 640px) {
	.mkt-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mkt-vf__state { flex-direction: column; text-align: center; }
}

/* البلاغ عن العرض */
.mkt-rep { margin: 0; text-align: center; font-size: .86rem; }
.mkt-rep summary, .mkt-rep > a { display: inline-block; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.mkt-rep summary::-webkit-details-marker { display: none; }
.mkt-rep summary:hover, .mkt-rep > a:hover { color: #c0392b; }
.mkt-repform { display: flex; flex-direction: column; gap: .35rem; margin-block-start: .6rem; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: start; }
.mkt-rep__r { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.mkt-repform textarea { width: 100%; margin-block: .3rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.mkt-repform .btn { align-self: flex-start; }
.mkt-rep__msg { margin: .2rem 0 0; font-weight: 600; color: var(--faience); }
.mkt-rep__msg[hidden] { display: none; }

/* =====================================================================
   سوق البيع والشراء: المفضلة، والتمييز، والإحصاءات، والبائع، والتصفح حسب النوع
   ===================================================================== */
.mkt-card { position: relative; }
.mkt-card .mt-save--card { top: .55rem; inset-inline-end: .55rem; }
.mkt-badge--feat { top: auto; bottom: .6rem; inset-inline-start: .6rem; background: linear-gradient(135deg, #f7c948, #d99a0b); color: #3b2a00; }
.mkt-s__title + .mt-save { margin: -.1rem 0 .6rem; }
.mkt-chipsnav { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-end: 1rem; }
.mkt-chip, .entry-content a.mkt-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.mkt-chip span { min-width: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: color-mix(in srgb, var(--faience) 12%, transparent); color: var(--faience); font-size: .76rem; text-align: center; }
.mkt-chip:hover { border-color: var(--faience); }
.mkt-chip.is-on, .entry-content a.mkt-chip.is-on { background: var(--faience); border-color: var(--faience); color: #fff; }
.mkt-chip.is-on span { background: rgba(255,255,255,.25); color: #fff; }
.mkt-perf { margin-block: .6rem 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--faience) 7%, var(--surface)), var(--surface)); }
.mkt-perf h4 { margin: 0 0 .7rem; font-size: 1rem; }
.mkt-perf ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.mkt-perf li { text-align: center; }
.mkt-perf b { display: block; font-size: 1.35rem; color: var(--faience); }
.mkt-perf span { font-size: .8rem; color: var(--ink-2); }
.mkt-row__st { font-size: .82rem; color: var(--ink-2); }
.mkt-av { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 999px; object-fit: cover; }
.mkt-av--i { background: var(--faience); color: #fff; font-weight: 800; }
a.mkt-seller, .entry-content a.mkt-seller { display: flex; align-items: center; gap: .6rem; margin-block-start: .9rem; padding: .55rem; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.mkt-seller:hover { border-color: var(--faience); }
.mkt-seller > span { display: flex; flex-direction: column; min-width: 0; }
.mkt-seller__n { font-weight: 700; }
.mkt-seller__l { font-size: .8rem; color: var(--faience); }
.mkt-sp { display: flex; align-items: center; gap: 1.1rem; margin-block: 1rem 1.4rem; padding: 1.3rem 1.4rem; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: linear-gradient(120deg, #e1f4f6, #fff5e6); }
html[data-theme="dark"] .mkt-sp { background: color-mix(in srgb, var(--faience) 15%, var(--surface)); }
.mkt-sp__av .mkt-av { width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--surface); }
.mkt-sp__name { margin: 0 0 .4rem; font-size: 1.6rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.mkt-sp__meta { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--ink-2); }
.mkt-sp__tag { padding: .1rem .6rem; border-radius: 999px; color: #fff; font-size: .82rem; font-weight: 700; background: #1d9bf0; }
.mkt-sp__tag--company { background: #7b8a96; } .mkt-sp__tag--gold { background: #d99a0b; }
.mkt-avbox { display: flex; gap: 1rem; align-items: center; margin-block-end: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.mkt-avbox h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.mkt-avbox p { margin: 0 0 .5rem; color: var(--ink-2); font-size: .9rem; }
.mkt-avbox__msg { color: var(--faience) !important; font-weight: 700; }
.mkt-avbox form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 640px) {
	.mkt-perf ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mkt-sp { flex-direction: column; text-align: center; }
	.mkt-sp__name, .mkt-sp__meta { justify-content: center; }
	.mkt-avbox { flex-direction: column; text-align: center; }
}

/* السوق: زر «بحث» يفتح مربعات البحث ويغلقها، بجوار أزرار الغرض الظاهرة دائمًا. */
.mkt-seg { align-items: center; }
.mkt-ftoggle { display: inline-flex; align-items: center; gap: .4rem; margin-inline-start: auto; padding: .45rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--faience); background: var(--surface); color: var(--faience); font: inherit; font-weight: 700; cursor: pointer; }
.mkt-ftoggle:hover, .mkt-ftoggle[aria-expanded="true"] { background: var(--faience); color: #fff; }
.mkt-ftoggle em { font-style: normal; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #e03b5a; color: #fff; font-size: .74rem; text-align: center; }
.mkt-adv { margin-block-start: .9rem; padding-block-start: .9rem; border-block-start: 1px dashed var(--line); }
.mkt-adv[hidden] { display: none; }
.mkt-filters .mkt-seg { margin-block-end: 0; }
/* لوحة السوق: أربع بطاقات في صفين. */
.mkt-acc > .mkt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mkt-tile--verify { background: linear-gradient(135deg, #e6f4ff, #f6f9ff); }
html[data-theme="dark"] .mkt-tile--verify { background: color-mix(in srgb, #1d9bf0 14%, var(--surface)); }
/* الشارة بجوار اسم العضو في القائمة الجانبية. */
.mt-dash__who .mkt-emb { flex: none; }
@media (max-width: 640px) {
	.mkt-acc > .mkt-tiles { grid-template-columns: 1fr; }
	.mkt-ftoggle { margin-inline-start: 0; }
}

/* بالون الترحيب للزائر الجديد: يخرج من أيقونة الحساب (أو زر القائمة على الجوال). */
.acct-tip { position: fixed; z-index: 1000; padding: 1rem 1.1rem .95rem; border-radius: 18px; background: linear-gradient(140deg, #0b7a8a 0%, #13909f 55%, #1aa3a8 100%); color: #fff; box-shadow: 0 18px 40px rgba(11, 58, 70, .28), 0 2px 6px rgba(11, 58, 70, .18); opacity: 0; transform: translateY(-8px) scale(.97); transition: opacity .3s ease, transform .3s ease; overflow: hidden; }
.acct-tip.is-on { opacity: 1; transform: none; }
.acct-tip[hidden] { display: none; }
.acct-tip__arrow { position: absolute; top: -7px; left: var(--ax, 50%); width: 14px; height: 14px; margin-left: -7px; background: #0e8592; transform: rotate(45deg); border-radius: 3px; }
.acct-tip__x { position: absolute; top: .45rem; inset-inline-end: .5rem; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.acct-tip__x:hover { background: rgba(255,255,255,.28); }
.acct-tip__h { margin: 0 0 .35rem; padding-inline-end: 2rem; font-weight: 800; font-size: 1.05rem; }
.acct-tip__p { margin: 0 0 .85rem; font-size: .93rem; line-height: 1.75; color: rgba(255,255,255,.93); }
.acct-tip__btns { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.acct-tip__go { display: inline-block; padding: .5rem 1.05rem; border-radius: 999px; background: #ffd166; color: #3b2a00; font-weight: 800; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.acct-tip__go:hover { background: #ffdd85; color: #3b2a00; }
.acct-tip__later { border: 0; background: none; color: rgba(255,255,255,.88); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acct-tip__bar { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; width: 100%; background: rgba(255,209,102,.9); transform-origin: left; animation: acct-tip-bar var(--dur, 7000ms) linear forwards; }
html[dir="rtl"] .acct-tip__bar { transform-origin: right; }
.acct-tip.is-hold .acct-tip__bar { animation-play-state: paused; }
@keyframes acct-tip-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .acct-tip { transition: none; } .acct-tip__bar { animation: none; } }

/* =====================================================================
   تعديلات: الهيدر، والبالون، والقلب والحقيبة، والطقس، ولوحة العضو، والشارة الذهبية
   ===================================================================== */
/* أيقونة الحساب بمقاس دائرتي الخفوت والبحث تمامًا (38px)، بلون مميز للزائر وآخر للعضو المسجّل. */
@media (min-width: 861px) {
	.acct-btn { width: 2.375rem; height: 2.375rem; }
	html:not(.brand-tight) .site-header .brand__mark { width: 3.1rem; height: 3.1rem; } /* الشعار أكبر */
}
.acct-btn { background: linear-gradient(135deg, #f2a65a, #e0883a); border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(224, 136, 58, .35); }
.acct-btn:hover, .acct-btn:focus-visible { background: linear-gradient(135deg, #f5b46e, #e0883a); color: #fff; }
body.logged-in .acct-btn { background: linear-gradient(135deg, #2bb673, #1d8a54); box-shadow: 0 3px 10px rgba(29, 138, 84, .35); }
body.logged-in .acct-btn:hover { background: linear-gradient(135deg, #3cc985, #1d8a54); }
/* الأيقونة «تتحدث» بالبالون: حلقة نابضة حولها أثناء ظهوره. */
.acct-btn.is-talking { animation: acct-talk 1.6s ease-out infinite; }
@keyframes acct-talk { 0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .85); } 70% { box-shadow: 0 0 0 12px rgba(255, 209, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .acct-btn.is-talking { animation: none; box-shadow: 0 0 0 4px rgba(255, 209, 102, .8); } }
.acct-tip__arrow { top: -10px; width: 20px; height: 20px; margin-left: -10px; border-radius: 4px; background: #0b7a8a; }

/* القلب والحقيبة على صور المحتوى: بلا خلفية (شفافة)، وأيقونة بيضاء بظل يبرزها فوق الصورة. */
.mt-save--card .mt-save__btn, .mkt-card .mt-save--card .mt-save__btn { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.mt-save--card .mt-save__btn svg { width: 1.05rem; height: 1.05rem; }
.mt-save--card .mt-save__btn--fav.is-on svg { fill: #e03b5a; stroke: #fff; }
/* «رحلتي» بعد الاختيار: أزرق فاتح (لا أحمر كالمفضلة). */
.mt-save__btn--trip.is-on, .mt-save__btn--trip.is-on:hover { background: #4db8ec; border-color: #4db8ec; color: #fff; }
.mt-save--card .mt-save__btn--trip.is-on { background: transparent; border-color: transparent; color: #7fd0f7; }
.mt-save--card .mt-save__btn--trip.is-on svg { fill: rgba(77, 184, 236, .55); stroke: #bfe9ff; }

/* صفحة الطقس: بطاقة الشبورة بمقاس بطاقات البيانات تحتها وبحمرة خفيفة، والسطر التعريفي أكبر درجتين ومسافة سطر عن الهيدر. */
.wx-title { font-size: 1.5rem; margin-block: 1.75rem 1rem; }
/* بطاقة الشبورة وبطاقات البيانات بعرض واحد: تتسع بطاقات البيانات (لا تنكمش الشبورة)، فيبقى وصف الشبورة في سطر واحد. */
@media (min-width: 861px) {
	.wx-now__place .wx-alert { flex: 0 0 auto; width: 24.75rem; box-sizing: border-box; }
	.entry-content .wx-now__meta, .wx-now__meta { width: 24.75rem; justify-self: end; }
	.wx-now__place { margin-block-end: .45rem; } /* المسافة بين الشبورة وأول بطاقة = المسافة بين بطاقات البيانات */
}
.wx-now__place .wx-alert, .wx-alert { background: #fffafa; border: 1px solid #f3d3d3; border-radius: 16px; box-shadow: 0 2px 10px rgba(11, 58, 70, .05); }
html[data-theme="dark"] .wx-alert { background: color-mix(in srgb, #e03b5a 8%, var(--surface)); border-color: color-mix(in srgb, #e03b5a 30%, var(--line)); }
@media (max-width: 640px) { .wx-title { font-size: 1.3rem; margin-block-start: 1.25rem; } }

/* قائمة حساب العضو: لون واضح عند الوقوف (بدل الأحمر غير الظاهر). */
.entry-content a.mt-dash__link:hover, .mt-dash__link:hover { color: var(--faience); background: color-mix(in srgb, var(--faience) 10%, transparent); }
.entry-content a.mt-dash__link.is-on, .entry-content a.mt-dash__link.is-on:hover, .mt-dash__link.is-on:hover { color: #fff; background: var(--faience); }
.entry-content a.mt-dash__link--out:hover { color: #c0392b; background: color-mix(in srgb, #c0392b 8%, transparent); }

/* «حسابي»: إشعار الاستكمال، وترتيب البطاقات بالسحب والإفلات. */
.mt-complete, .entry-content a.mt-complete { display: flex; align-items: center; gap: .8rem; margin-block-end: 1rem; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid #f2d29b; background: linear-gradient(120deg, #fff6e6, var(--surface)); color: var(--ink); text-decoration: none; }
.mt-complete > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.mt-complete > span:nth-child(2) span { color: var(--ink-2); font-size: .9rem; }
.mt-complete__i { flex: none; width: 2rem; height: 2rem; border-radius: 999px; background: #e0883a; color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mt-complete em { font-style: normal; padding: .35rem .9rem; border-radius: 999px; background: #e0883a; color: #fff; font-weight: 700; white-space: nowrap; }
.mt-tiles__hint { margin: 0 0 .6rem; font-size: .84rem; color: var(--ink-2); }
.mt-tile { position: relative; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mt-tile__grip { position: absolute; top: .55rem; inset-inline-end: .7rem; color: var(--ink-2); opacity: .45; font-size: .8rem; letter-spacing: -2px; }
.mt-tiles.is-sorting .mt-tile { transition: transform .15s; }
.mt-tile.is-drag { cursor: grabbing; opacity: .85; transform: scale(1.03); box-shadow: 0 12px 28px rgba(11, 58, 70, .18); z-index: 2; outline: 2px dashed var(--faience); outline-offset: 2px; }
/* «معلوماتي» */
.mt-info__none { color: var(--ink-2); font-weight: 400; font-style: italic; }
.mt-info__lock { display: flex; align-items: flex-start; gap: .4rem; margin: .8rem 0 0; font-size: .86rem; color: var(--ink-2); line-height: 1.7; }
.mt-info__lock svg { flex: none; margin-top: .3rem; }
.mt-more { border-color: #f2d29b; }
.mt-more__note { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: #fff6e6; color: #7a4a00; font-size: .92rem; line-height: 1.75; }
html[data-theme="dark"] .mt-more__note { background: color-mix(in srgb, #e0883a 14%, var(--surface)); color: var(--ink); }
.mt-gender { display: flex; gap: .6rem; }
.mt-gender label { position: relative; cursor: pointer; }
.mt-gender input { position: absolute; opacity: 0; }
.mt-gender span { display: inline-block; padding: .5rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; }
.mt-gender input:checked + span { border-color: var(--faience); background: color-mix(in srgb, var(--faience) 12%, var(--surface)); color: var(--faience); }
.mt-gender input:focus-visible + span { outline: 2px solid var(--faience); outline-offset: 2px; }
.mt-lbl { display: block; font-weight: 600; margin-block-end: .4rem; }

/* الشارة الذهبية: لمعة متحركة. */
.mkt-emb--gold { animation: mkt-gold-glow 2.6s ease-in-out infinite; }
@keyframes mkt-gold-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(217, 154, 11, 0)); transform: rotate(0); } 50% { filter: drop-shadow(0 0 5px rgba(255, 196, 0, .75)); transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .mkt-emb--gold { animation: none; } }
.mkt-btn-gold, .entry-content a.mkt-btn-gold { background: linear-gradient(135deg, #f7c948, #d99a0b) !important; border-color: #d99a0b !important; color: #3b2a00 !important; text-decoration: none; }
/* مزايا الشارة الفضية/الزرقاء عند اختيار نوع التوثيق. */
.mkt-vf__co { display: flex; gap: .9rem; align-items: flex-start; margin-block-end: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: linear-gradient(120deg, #f1f4f7, var(--surface)); border: 1px solid #d5dde3; }
.mkt-vf__co--person { background: linear-gradient(120deg, #e8f4fe, var(--surface)); border-color: #c4e2fa; }
.mkt-vf__co h4 { margin: 0 0 .3rem; font-size: 1.05rem; }
.mkt-vf__co p { margin: 0 0 .5rem; color: var(--ink-2); line-height: 1.75; }
.mkt-vf__co ul { margin: 0; padding-inline-start: 1.1rem; }
.mkt-vf__co li { margin-block: .2rem; font-weight: 600; }
/* تبويب «الشارة الذهبية». */
.mkt-gd__hero { display: flex; align-items: center; gap: 1.1rem; padding: 1.3rem 1.4rem; border-radius: calc(var(--radius) + 4px); background: linear-gradient(120deg, #fff4d6, #fffaf0 60%, #fff); border: 1px solid #f2d79b; }
html[data-theme="dark"] .mkt-gd__hero { background: color-mix(in srgb, #d99a0b 16%, var(--surface)); }
.mkt-gd__kicker { display: inline-block; padding: .15rem .7rem; border-radius: 999px; background: #d99a0b; color: #fff; font-size: .78rem; font-weight: 700; }
.mkt-gd__hero h2 { margin: .4rem 0 .3rem; font-size: 1.5rem; }
.mkt-gd__hero p { margin: 0; color: var(--ink-2); line-height: 1.8; }
.mkt-gd__cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-block: 1rem; }
.mkt-gd__card { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .9rem .6rem; border-radius: 16px; border: 1px solid #f2d79b; background: var(--surface); text-align: center; }
.mkt-gd__card b { font-size: 1.5rem; color: #c48a00; }
.mkt-gd__card span { font-size: .84rem; line-height: 1.6; }
.mkt-gd__cmp { padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-block-end: 1rem; }
.mkt-gd__cmp h3 { margin: 0 0 .7rem; font-size: 1.05rem; }
.mkt-gd__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .7rem; border-radius: 12px; }
.mkt-gd__row + .mkt-gd__row { border-block-start: 1px solid var(--line); }
.mkt-gd__row span { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.mkt-gd__row.is-gold { background: #fff8e1; }
html[data-theme="dark"] .mkt-gd__row.is-gold { background: color-mix(in srgb, #d99a0b 14%, var(--surface)); }
.mkt-gd__dates { display: flex; gap: .7rem; flex-wrap: wrap; margin-block: .6rem; }
.mkt-gd__dates span { display: flex; flex-direction: column; padding: .5rem .9rem; border-radius: 12px; background: var(--surface); border: 1px solid #f2d79b; }
.mkt-gd__dates i { font-style: normal; font-size: .78rem; color: var(--ink-2); }
.mkt-gd__endnote { font-size: .86rem; }
.mkt-gd__contact { padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid #f2d79b; background: linear-gradient(120deg, #fffaf0, var(--surface)); }
.mkt-gd__contact h3 { margin: 0 0 .3rem; }
.mkt-gd__contact p { color: var(--ink-2); line-height: 1.75; }
.mkt-gd__contact textarea { width: 100%; margin-block-end: .7rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
/* تبويب «إحصاءات ذهبية». */
.mkt-gs__why { padding: 1.2rem; border-radius: var(--radius); background: linear-gradient(120deg, #fff4d6, var(--surface)); border: 1px solid #f2d79b; }
.mkt-gs__badge { display: inline-flex; align-items: center; gap: .4rem; color: #a77406; }
.mkt-gs__why h3 { margin: .5rem 0 .9rem; font-size: 1.2rem; line-height: 1.6; }
.mkt-gs__ben { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.mkt-gs__b { display: flex; gap: .6rem; padding: .7rem; border-radius: 14px; background: var(--surface); }
.mkt-gs__b i { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 999px; background: #d99a0b; color: #fff; font-style: normal; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mkt-gs__b div { display: flex; flex-direction: column; gap: .2rem; }
.mkt-gs__b span { font-size: .88rem; color: var(--ink-2); line-height: 1.7; }
.mkt-gs__note { margin: 1rem 0 .6rem; color: var(--ink-2); }
.mkt-gs__ex { margin-block-end: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mkt-gs__ex summary { padding: .8rem 1rem; cursor: pointer; font-weight: 700; }
.mkt-gs__frame { position: relative; padding: 2.4rem 1rem 1rem; }
.mkt-gs__tag { position: absolute; top: .6rem; inset-inline-start: 1rem; padding: .2rem .8rem; border-radius: 999px; background: #fff4d6; color: #7a5300; border: 1px solid #f2d79b; font-size: .8rem; font-weight: 700; }
.mkt-gs__what { margin-block-start: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.mkt-gs__what h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.mkt-gs__what li { margin-block: .3rem; line-height: 1.7; }
.mkt-gts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.mkt-gt, .mkt-gdist { padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.mkt-gdist { margin-block-start: .8rem; }
.mkt-gt h4, .mkt-gdist h4 { margin: 0 0 .5rem; font-size: 1rem; }
.mkt-gp { display: flex; flex-wrap: wrap; gap: .3rem; margin-block-end: .6rem; }
.mkt-gp a, .mkt-gp span { padding: .2rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--ink-2) 10%, var(--surface)); color: var(--ink); font-size: .8rem; font-weight: 700; text-decoration: none; }
.mkt-gp .is-on { background: linear-gradient(135deg, #f7c948, #d99a0b); color: #3b2a00; }
.mkt-gt table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mkt-gt th { text-align: start; color: var(--ink-2); font-weight: 600; font-size: .8rem; padding: .3rem .2rem; border-block-end: 1px solid var(--line); }
.mkt-gt td { padding: .45rem .2rem; border-block-end: 1px solid var(--line); vertical-align: top; }
.mkt-gt td:first-child { color: #c48a00; font-weight: 800; width: 1.6rem; }
.mkt-gt td:last-child { font-weight: 800; text-align: end; }
.mkt-gt td b { display: block; }
.mkt-gt td small { color: var(--ink-2); font-size: .74rem; }
.mkt-gdist__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mkt-donut { text-align: center; }
.mkt-donut h4 { font-size: .95rem; }
.mkt-donut__svg { width: min(100%, 13rem); height: auto; }
.mkt-donut__n { font-size: 20px; font-weight: 800; fill: var(--ink); }
.mkt-donut__l { font-size: 9px; fill: var(--ink-2); }
.mkt-donut__leg { list-style: none; margin: .6rem 0 0; padding: 0; text-align: start; font-size: .82rem; }
.mkt-donut__leg li { display: flex; align-items: center; gap: .4rem; padding: .15rem 0; }
.mkt-donut__leg i { flex: none; width: .7rem; height: .7rem; border-radius: 3px; }
.mkt-donut__leg span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
	.mkt-gd__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mkt-gd__hero { flex-direction: column; text-align: center; }
	.mkt-gs__ben, .mkt-gts, .mkt-gdist__grid { grid-template-columns: 1fr; }
}
/* مسافة سطر بين الهيدر وعنوان صفحة الطقس: بالحشو لا بالهامش (قاعدة «أول عنصر في المحتوى» تلغي الهامش العلوي). */
.entry-content > .wx-title:first-child { padding-block-start: 1.75rem; }
@media (max-width: 640px) { .entry-content > .wx-title:first-child { padding-block-start: 1.25rem; } }

/* أيقونة الحساب: توهج خفيف يلفت الانتباه (يتوقف لمن يفضّل تقليل الحركة). */
body:not(.logged-in) .acct-btn:not(.is-talking) { animation: acct-glow 2.8s ease-in-out infinite; } /* التوهج للزائر فقط */
@keyframes acct-glow { 0%, 100% { box-shadow: 0 3px 10px rgba(224, 136, 58, .35), 0 0 0 0 rgba(255, 196, 120, 0); } 50% { box-shadow: 0 3px 12px rgba(224, 136, 58, .5), 0 0 14px 3px rgba(255, 196, 120, .55); } }
body.logged-in .acct-btn { animation: none; } /* العضو المسجّل: لون ثابت مستقر */
@keyframes acct-glow-in { 0%, 100% { box-shadow: 0 3px 10px rgba(29, 138, 84, .35), 0 0 0 0 rgba(80, 220, 150, 0); } 50% { box-shadow: 0 3px 12px rgba(29, 138, 84, .5), 0 0 14px 3px rgba(80, 220, 150, .5); } }
@media (prefers-reduced-motion: reduce) { .acct-btn:not(.is-talking) { animation: none; } }

/* التاريخ بثلاث قوائم: اليوم والشهر والسنة. */
.mt-dsel { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: .5rem; }
.mt-dsel select { width: 100%; min-height: 2.9rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-img); background: var(--surface); color: var(--ink); font: inherit; }




/* =====================================================================
   تصميم الحساب والسوق: ثوابت ألوان وتدرجات متناسقة
   ===================================================================== */
:root {
	--g-teal: linear-gradient(135deg, #0b7a8a 0%, #13959f 55%, #1fb0b0 100%);
	--g-teal-soft: linear-gradient(135deg, #e3f5f6 0%, #f1fbfb 100%);
	--g-sunset: linear-gradient(135deg, #ffb45e 0%, #ff8455 55%, #f05d4d 100%);
	--g-gold: linear-gradient(135deg, #ffd96a 0%, #f2b33d 60%, #d99a0b 100%);
	--g-rose: linear-gradient(135deg, #ff8fa3 0%, #e0476b 100%);
	--g-sky: linear-gradient(135deg, #7fd3f7 0%, #3b9fe0 100%);
	--sh-soft: 0 2px 10px rgba(11, 58, 70, .06), 0 1px 2px rgba(11, 58, 70, .05);
	--sh-lift: 0 14px 30px rgba(11, 58, 70, .14), 0 3px 8px rgba(11, 58, 70, .08);
	--sh-teal: 0 8px 20px rgba(11, 122, 138, .28);
	--teal-ink: #065c67;
}

/* رسالة الشبورة في كبسولة الهيدر: خفيفة أنيقة بدل الأحمر المشبع. */
.wx-tip { background: #fff8f8 !important; color: #a8231b !important; border: 1px solid #f4c7c3; box-shadow: 0 12px 28px rgba(168, 35, 27, .14), 0 2px 6px rgba(0, 0, 0, .06); }
.wx-tip::before { background: #fff8f8 !important; border-top: 1px solid #f4c7c3; border-inline-start: 1px solid #f4c7c3; }
.wx-badge--up .wx-tip::before { border: 0; border-bottom: 1px solid #f4c7c3; border-inline-end: 1px solid #f4c7c3; }
.wx-tip em { color: #6b4440; }
html[data-theme="dark"] .wx-tip { background: #3a2224 !important; color: #ffb4ab !important; border-color: #6b3a3a; }
html[data-theme="dark"] .wx-tip::before { background: #3a2224 !important; }
html[data-theme="dark"] .wx-tip em { color: #f1d3cf; }

/* الشعار: لا قص في حافته (يُظهر ما يتجاوز حدود الرسم). */
.site-header .brand__mark { overflow: visible; }

/* رؤوس أقسام الحساب: بلا مسافة زائدة أعلاها، وتدرجات أرقى، و«عودة لحسابي» نصًا فقط. */
.mt-sec { position: relative; align-items: center; padding: 1rem 1.2rem; box-shadow: var(--sh-soft); border-color: color-mix(in srgb, var(--faience) 14%, var(--line)); }
.mt-sec::after { content: ""; position: absolute; width: 11rem; height: 11rem; inset-inline-end: -3.5rem; top: -4.5rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.entry-content .mt-sec .mt-sec__title, .mt-sec .mt-sec__title { margin: 0 0 .25rem; }
.mt-sec__txt { position: relative; z-index: 1; }
.mt-sec__desc { margin: 0; line-height: 1.75; }
.mt-sec__back, .entry-content a.mt-sec__back { position: absolute; z-index: 1; bottom: .85rem; inset-inline-end: 1.2rem; display: inline-flex; align-items: center; gap: .2rem; padding: 0; background: none; color: var(--teal-ink); font-size: .86rem; font-weight: 700; text-decoration: none; }
.mt-sec__back:hover { color: var(--faience); text-decoration: underline; text-underline-offset: 3px; }
.mt-sec__back { white-space: nowrap; } /* سطر واحد دائمًا */
html[dir="rtl"] .mt-sec__back svg { transform: scaleX(-1); }
@media (min-width: 1025px) {
	.mt-sec:has(.mt-sec__back) .mt-sec__txt { padding-inline-end: 8.5rem; } /* مكان «عودة لحسابي» بجوار آخر سطر من الوصف، بلا تلاحم ولا سطر إضافي */
	html:not([dir="rtl"]) .mt-sec:has(.mt-sec__back) .mt-sec__txt { padding-inline-end: 10.5rem; }
}
@media (min-width: 1025px) {
	.mt-sec__back, .entry-content a.mt-sec__back { bottom: 0; inset-inline-end: 0; } /* داخل حشو النص المحجوز: بجوار آخر سطر من الوصف */
}
@media (max-width: 1024px) {
	/* الجوال والأجهزة اللوحية: النص بجوار الأيقونة، و«عودة لحسابي» عائم في الزاوية العلوية يلتف حوله العنوان (بلا سطر إضافي ولا حجز مساحة). */
	.mt-sec__txt { flex: 1 1 0; min-width: 0; }
	.mt-sec__back, .entry-content a.mt-sec__back { position: static; float: right; margin: .2rem 0 .2rem .6rem; font-size: .8rem; }
	html[dir="rtl"] .mt-sec__back, html[dir="rtl"] .entry-content a.mt-sec__back { float: left; margin: .2rem .6rem .2rem 0; }
}
.mt-sec--home     { background: linear-gradient(120deg, #dff4f5 0%, #f4fbfb 45%, #fff3df 100%); }
.mt-sec--fav      { background: linear-gradient(120deg, #ffe4ea 0%, #fff6f4 55%, #fff 100%); }
.mt-sec--trip     { background: linear-gradient(120deg, #ffeedd 0%, #fff8ef 45%, #e2f5f6 100%); }
.mt-sec--numbers  { background: linear-gradient(120deg, #dcf1f3 0%, #f2f8ff 60%, #fff 100%); }
.mt-sec--contact  { background: linear-gradient(120deg, #e1f5f8 0%, #fdf1f4 100%); }
.mt-sec--settings { background: linear-gradient(120deg, #e9eef3 0%, #f8fafb 60%, #fff 100%); }
.mt-sec--market   { background: linear-gradient(120deg, #ffe9d8 0%, #fff7ef 45%, #e1f3f5 100%); }

/* القائمة الجانبية: وقوف واضح ومميز، والزر النشط بتدرج فيروزي. */
.mt-dash__side { box-shadow: var(--sh-soft); }
.mt-dash__link { transition: background-color .18s, color .18s, transform .18s, box-shadow .18s; }
.mt-dash__link .mt-dash__ico { transition: transform .18s; }
.entry-content a.mt-dash__link:hover, .mt-dash__link:hover { background: linear-gradient(135deg, #d8f1f3, #ecf8f8); color: var(--teal-ink); transform: translateX(0); box-shadow: inset 0 0 0 1px rgba(11, 122, 138, .18); }
.mt-dash__link:hover .mt-dash__ico { transform: scale(1.08); }
.entry-content a.mt-dash__link.is-on, .mt-dash__link.is-on { background: var(--g-teal); color: #fff; box-shadow: var(--sh-teal); }
.entry-content a.mt-dash__link.is-on:hover, .mt-dash__link.is-on:hover { background: linear-gradient(135deg, #096b79, #11888f); color: #fff; box-shadow: 0 10px 22px rgba(11, 122, 138, .35); }
.entry-content a.mt-dash__link--out:hover, .mt-dash__link--out:hover { background: linear-gradient(135deg, #fde3e1, #fff1ef); color: #b42318; box-shadow: inset 0 0 0 1px rgba(180, 35, 24, .18); }
html[data-theme="dark"] .mt-dash__link:hover { background: color-mix(in srgb, var(--faience) 22%, var(--surface)); color: #bdf0f3; }

/* بطاقات «حسابي»: حافة علوية ملونة لكل قسم، ورفع مع الظل عند الوقوف. */
.mt-tile { background: var(--surface); border: 1px solid color-mix(in srgb, var(--faience) 12%, var(--line)); box-shadow: var(--sh-soft); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mt-tile::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--g-teal); }
.mt-tile--fav::before { background: var(--g-rose); }
.mt-tile--trip::before { background: var(--g-sunset); }
.mt-tile--market::before { background: var(--g-gold); }
.mt-tile--numbers::before { background: var(--g-sky); }
.mt-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: color-mix(in srgb, var(--faience) 30%, var(--line)); }
.mt-tile strong { color: var(--teal-ink); }
html[data-theme="dark"] .mt-tile strong { color: #bdf0f3; }

/* بطاقات المحتوى في الحساب والسوق. */
.mt-dash__card, .mkt-vf__form, .mkt-gd__cmp, .mkt-gt, .mkt-gdist, .mkt-gs__what, .mkt-avbox { box-shadow: var(--sh-soft); border-color: color-mix(in srgb, var(--faience) 12%, var(--line)); }

/* الأزرار الرئيسية في الحساب والسوق: تدرج فيروزي مع ظل. */
.mt-dash .btn:not(.mkt-btn-gold):not(.mkt-chatbtn), .jn-form .jn-submit { background: var(--g-teal); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(11, 122, 138, .25); transition: transform .15s, box-shadow .15s, filter .15s; }
.mt-dash .btn:not(.mkt-btn-gold):not(.mkt-chatbtn):hover, .jn-form .jn-submit:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(11, 122, 138, .32); }

/* تبويبات السوق: النشط بتدرج فيروزي، و«تصفح السوق» بتدرج غروب مميز. */
.mkt-sub__a, .entry-content a.mkt-sub__a { box-shadow: var(--sh-soft); transition: transform .15s, box-shadow .15s, background-color .15s; }
.mkt-sub__a:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(11, 58, 70, .12); }
.mkt-sub__a.is-on, .entry-content a.mkt-sub__a.is-on { background: var(--g-teal); border-color: transparent; color: #fff; box-shadow: var(--sh-teal); }
.mkt-sub__a--out, .entry-content a.mkt-sub__a--out { background: var(--g-sunset); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(240, 93, 77, .3); }
.mkt-sub__a--out:hover, .entry-content a.mkt-sub__a--out:hover { color: #fff; filter: brightness(1.05); box-shadow: 0 10px 22px rgba(240, 93, 77, .38); }

/* تاريخا الرحلة: صندوقان منفصلان بأناقة، وسهم دائري بينهما. */
.mt-dates { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: .8rem; }
.mt-dates > .jn-field { margin: 0; padding: .85rem .9rem 1rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--faience) 16%, var(--line)); background: var(--g-teal-soft); }
.mt-dates > .jn-field:last-child { background: linear-gradient(135deg, #fff1e3 0%, #fffaf3 100%); border-color: #f5d6b4; }
.mt-dates > .jn-field .mt-lbl { display: flex; align-items: center; gap: .45rem; }
.mt-dates > .jn-field .mt-lbl::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--faience); box-shadow: 0 0 0 3px rgba(11, 122, 138, .18); }
.mt-dates > .jn-field:last-child .mt-lbl::before { background: #f08a3c; box-shadow: 0 0 0 3px rgba(240, 138, 60, .2); }
.mt-dates::before { content: "←"; order: 2; align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-soft); color: var(--faience); font-weight: 800; }
html:not([dir="rtl"]) .mt-dates::before { content: "→"; }
.mt-dates > .jn-field:first-child { order: 1; }
.mt-dates > .jn-field:last-child { order: 3; }
html[data-theme="dark"] .mt-dates > .jn-field, html[data-theme="dark"] .mt-dates > .jn-field:last-child { background: color-mix(in srgb, var(--faience) 10%, var(--surface)); border-color: var(--line); }
@media (max-width: 640px) {
	.mt-dates { grid-template-columns: 1fr; }
	.mt-dates::before { content: "↓"; justify-self: center; }
	html:not([dir="rtl"]) .mt-dates::before { content: "↓"; }
}


/* =====================================================================
   الحرارة والساعة تحت اسم الموقع (على غرار موقع النخيل): أرقام حرة بلا كبسولة
   ===================================================================== */
.brand-box { display: flex; flex-direction: column; align-items: flex-start; flex: none; min-width: 0; padding-block: 0; }
.brand-wx { display: flex; margin-block-start: -.2rem; padding-inline-start: calc(3.1rem + .55rem); line-height: 1; }
.brand-wx .wx-badge { min-height: 0; line-height: 1.2; }
@media (min-width: 861px) { .site-header .header-in { padding-block: .55rem; } }
html.brand-tight .brand-wx { padding-inline-start: calc(1.35rem + .45rem); }
.brand-wx .wx-badge { height: auto; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; gap: .35rem; font-size: .84rem; color: var(--ink-2); }
.brand-wx .wx-badge:hover { background: none !important; }
.brand-wx .wx-badge__t { color: #c0392b; font-weight: 800; }
.brand-wx .wx-tip { inset-inline-start: -.4rem; }
@media (max-width: 860px) {
	.brand-wx { padding-inline-start: calc(2.4rem + .45rem); }
	.brand-wx .wx-badge { font-size: .76rem; }
	.brand-box { padding-block: .2rem; }
}
@media (max-width: 480px) { .brand-wx { padding-inline-start: calc(1.3rem + .4rem); } }
@media (max-width: 400px) { .brand-wx { padding-inline-start: 0; } }

/* «عودة لحسابي» ثابتة في الزاوية: النص يمتد بعرض الرأس كله، فلا يتحرك الرابط مع طول الوصف. */
.mt-sec__txt { flex: 1 1 auto; min-width: 0; }

/* أرقام المفضلة والرحلة: بخط خفيف بجوار نص البطاقة. */
.mt-tile .mt-tile__n { display: inline; font-weight: 400; color: var(--ink-2); opacity: .85; white-space: nowrap; }
.mt-tile__grip { inset-inline-end: .7rem; }

/* =====================================================================
   بطاقات الشارات الدعائية (منقولة من Souq Core بألوانها)
   ===================================================================== */
/* الذهبية */
.mkt-gd__hero { display: flex; gap: 1.6rem; align-items: center; position: relative; overflow: hidden; padding: 1.85rem; margin-block-end: 1.1rem; border-radius: 22px; border: 1px solid #d9a62e; color: #fff4d2; text-align: start;
	background: radial-gradient(circle at 15% 20%, rgba(247, 190, 36, .28), rgba(247, 190, 36, 0) 55%), linear-gradient(135deg, #1b1405 0%, #3a2a07 55%, #1b1405 100%);
	box-shadow: 0 14px 40px rgba(60, 40, 0, .35), inset 0 0 0 1px rgba(255, 224, 138, .12); }
html[data-theme="dark"] .mkt-gd__hero { background: radial-gradient(circle at 15% 20%, rgba(247, 190, 36, .28), rgba(247, 190, 36, 0) 55%), linear-gradient(135deg, #1b1405 0%, #3a2a07 55%, #1b1405 100%); }
.mkt-gd__emb { flex: none; width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(247, 190, 36, .25), rgba(247, 190, 36, 0) 70%); border: 1px solid rgba(247, 190, 36, .5); }
.mkt-gd__emb svg { filter: drop-shadow(0 4px 12px rgba(247, 190, 36, .55)); }
.mkt-gd__txt { min-width: 0; }
.mkt-gd__kicker { display: inline-block; margin: 0 0 .6rem; padding: .1rem .9rem; border-radius: 20px; border: 1px solid rgba(247, 190, 36, .5); background: none; color: #f7be24; font-size: .85rem; font-weight: 700; }
.mkt-gd__hero h2 { margin: 0 0 .6rem; font-size: 2.1rem; line-height: 1.3; background: linear-gradient(90deg, #ffe9a0, #f7be24 45%, #fff3c4 70%, #f7be24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mkt-gd__hero p { margin: 0; font-size: 1.05rem; line-height: 1.95; color: #f3e6bf; }
.mkt-gd__cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.1rem; }
.mkt-gd__card { padding: 1rem .75rem; border-radius: 16px; text-align: center; background: linear-gradient(180deg, #fffdf5, #fff6d8); border: 1px solid #ebd28a; box-shadow: 0 4px 14px rgba(185, 128, 10, .1); }
.mkt-gd__card b { display: block; font-size: 1.85rem; line-height: 1.2; color: #a56f00; }
.mkt-gd__card span { display: block; margin-top: .25rem; font-size: .88rem; line-height: 1.7; color: #4a3a12; font-weight: 700; }
.mkt-gd__cmp { background: #fff; border: 1px solid #e6e9ef; border-radius: 16px; padding: 1rem 1.1rem; }
.mkt-gd__cmp h3, .mkt-gd__contact h3 { margin: 0 0 .6rem; font-size: 1.2rem; color: #0f2038; }
.mkt-gd__row { padding: .7rem .75rem; border-radius: 10px; font-size: 1rem; color: #26324a; }
.mkt-gd__row + .mkt-gd__row { border: 0; }
.mkt-gd__row:nth-child(even) { background: #f6f8fb; }
.mkt-gd__row.is-gold { background: linear-gradient(90deg, #fff3c4, #fffbea); font-weight: 700; color: #6b4a00; }
.mkt-gd__contact { padding: 1.25rem 1.4rem; border-radius: 18px; background: linear-gradient(180deg, #fffdf5, #fff8e1); border: 1px solid #ebd28a; box-shadow: 0 8px 26px rgba(185, 128, 10, .12); }
.mkt-gd__contact p { color: #4a3a12; line-height: 1.9; }
.mkt-gd__contact textarea { min-height: 110px; border-color: #dcc27a; background: #fff; }
.mkt-gd__dates span { background: #fff; border: 1px solid #bfe3ce; }
.mkt-gd__dates i { color: #5a7a66; } .mkt-gd__dates b { color: #1b4d32; }
html[data-theme="dark"] .mkt-gd__cmp { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .mkt-gd__cmp h3, html[data-theme="dark"] .mkt-gd__contact h3 { color: var(--ink); }
html[data-theme="dark"] .mkt-gd__row { color: var(--ink); }
html[data-theme="dark"] .mkt-gd__row:nth-child(even) { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }

/* الفضية (الشركات) والزرقاء (الأفراد) */
.mkt-vfh { display: flex; gap: 1.4rem; align-items: center; position: relative; overflow: hidden; margin: 0 0 1.25rem; padding: 1.6rem 1.75rem; border-radius: 20px; color: #fff; }
.mkt-vfh::before { content: ""; position: absolute; inset: auto auto -60px -60px; width: 220px; height: 220px; border-radius: 50%; }
.mkt-vfh__badge { flex: none; width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; background: rgba(255, 255, 255, .07); }
.mkt-vfh__badge svg { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); }
.mkt-vfh__txt { position: relative; min-width: 0; }
.mkt-vfh h2 { margin: 0 0 .5rem; font-size: 1.6rem; line-height: 1.4; }
.mkt-vfh__lead { margin: 0 0 .8rem; font-size: 1.05rem; line-height: 1.9; }
.mkt-vfh__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.mkt-vfh__perks li { position: relative; padding-inline-start: 1.9rem; font-size: .98rem; line-height: 1.7; text-align: start; }
.mkt-vfh__perks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.mkt-vfh--silver { background: linear-gradient(135deg, #0f2038 0%, #1a3354 100%); border: 1px solid #aeb7c4; box-shadow: 0 12px 34px rgba(15, 32, 56, .22); }
.mkt-vfh--silver::before { background: radial-gradient(circle, rgba(200, 208, 220, .28), rgba(200, 208, 220, 0) 70%); }
.mkt-vfh--silver .mkt-vfh__badge { border: 1px solid rgba(200, 208, 220, .45); }
.mkt-vfh--silver h2 { color: #d5dbe3; }
.mkt-vfh--silver .mkt-vfh__lead { color: #e8eef7; } .mkt-vfh--silver .mkt-vfh__lead strong { color: #eef2f7; }
.mkt-vfh--silver .mkt-vfh__perks li { color: #d5deec; }
.mkt-vfh--silver .mkt-vfh__perks li::before { background: #d5dbe3; color: #0f2038; }
.mkt-vfh--blue { background: linear-gradient(135deg, #062a52 0%, #0b4a8f 60%, #1166c2 100%); border: 1px solid #7fbef2; box-shadow: 0 12px 34px rgba(6, 42, 82, .25); }
.mkt-vfh--blue::before { background: radial-gradient(circle, rgba(120, 196, 255, .32), rgba(120, 196, 255, 0) 70%); }
.mkt-vfh--blue .mkt-vfh__badge { border: 1px solid rgba(140, 205, 255, .5); }
.mkt-vfh--blue h2 { color: #cfe8ff; }
.mkt-vfh--blue .mkt-vfh__lead { color: #e6f3ff; } .mkt-vfh--blue .mkt-vfh__lead strong { color: #ffffff; }
.mkt-vfh--blue .mkt-vfh__perks li { color: #d6ecff; }
.mkt-vfh--blue .mkt-vfh__perks li::before { background: #8ed0ff; color: #062a52; }
@media (max-width: 760px) {
	.mkt-gd__hero, .mkt-vfh { flex-direction: column; text-align: center; padding: 1.4rem 1.1rem; }
	.mkt-gd__hero h2 { font-size: 1.75rem; }
	.mkt-gd__emb { width: 128px; height: 128px; }
	.mkt-gd__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mkt-gd__cards > .mkt-gd__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.mkt-vfh h2 { font-size: 1.4rem; }
}

/* سطر الحرارة والساعة: لكل جزء رسالته عند الوقوف عليه.
   رقم الحرارة: رسالة الشبورة · رمز الطقس: اسم الحالة · الساعة: «الساعة الآن في مرسى مطروح». */
.wx-badge:hover .wx-tip, .wx-badge.has-fog:hover .wx-tip { display: none; } /* لا تظهر بالوقوف على أي جزء من السطر */
.wx-badge .wx-badge__tw:hover .wx-tip, .wx-badge.has-fog .wx-badge__tw:hover .wx-tip, .wx-badge.has-fog:focus-visible .wx-tip { display: flex; animation: wx-tip-in .18s ease-out; } /* رقم الحرارة فقط (ولوحة المفاتيح) */
.wx-badge__tw { cursor: help; }
.wx-badge__cw, .wx-badge__iw { position: relative; display: inline-flex; align-items: center; }
.wx-qtip { position: absolute; top: calc(100% + 10px); inset-inline-start: 50%; transform: translateX(50%); z-index: 300; display: none; padding: .35rem .75rem; border-radius: 10px; background: #fff; color: var(--teal-ink, #065c67); border: 1px solid color-mix(in srgb, var(--faience) 25%, transparent); box-shadow: 0 10px 24px rgba(11, 58, 70, .14); font-size: .82rem; font-weight: 700; white-space: nowrap; pointer-events: none; }
html:not([dir="rtl"]) .wx-qtip { transform: translateX(-50%); }
.wx-qtip::before { content: ""; position: absolute; top: -6px; inset-inline-start: 50%; width: 10px; height: 10px; margin-inline-start: -5px; background: #fff; border-top: 1px solid color-mix(in srgb, var(--faience) 25%, transparent); border-inline-start: 1px solid color-mix(in srgb, var(--faience) 25%, transparent); transform: rotate(45deg); }
html:not([dir="rtl"]) .wx-qtip::before { transform: rotate(45deg); }
.wx-badge__cw:hover .wx-qtip, .wx-badge__iw:hover .wx-qtip:not([hidden]):not(:empty) { display: block; animation: wx-tip-in .18s ease-out; }
html[data-theme="dark"] .wx-qtip, html[data-theme="dark"] .wx-qtip::before { background: #12343a; color: #c9f1f3; border-color: #2b5a60; }
@media (hover: none) { .wx-qtip { display: none !important; }
@media (hover: hover) and (pointer: fine) { .site-header .wx-tip { display: none !important; } }
.hdr-tip__al { margin-top: .3rem; padding-top: .35rem; border-top: 1px solid rgba(255,255,255,.12); color: #ffb37a; font-size: .85rem; font-weight: 700; } }

/* =====================================================================
   التوثيق: بطاقات الفئات حية (الزرقاء والفضية والذهبية تفتح تفاصيلها تحتها)
   ===================================================================== */
.mkt-tiers { list-style: none; }
.mkt-tier__li { display: flex; }
.mkt-tier.is-pick { width: 100%; font: inherit; color: inherit; cursor: pointer; position: relative; transition: transform .18s, box-shadow .18s, border-color .18s; }
.mkt-tier.is-pick:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.mkt-tier.is-pick:focus-visible { outline: 3px solid var(--faience); outline-offset: 2px; }
.mkt-tier.is-open::after { content: ""; position: absolute; bottom: -9px; inset-inline-start: 50%; width: 16px; height: 16px; margin-inline-start: -8px; transform: rotate(45deg); background: inherit; border-inline-end: inherit; border-bottom: inherit; }
.mkt-tier--person.is-open { border: 2px solid #1d9bf0; background: linear-gradient(180deg, #eef8ff, #fff); box-shadow: 0 10px 24px rgba(29, 155, 240, .22); }
.mkt-tier--company.is-open { border: 2px solid #8a98a6; background: linear-gradient(180deg, #f1f4f7, #fff); box-shadow: 0 10px 24px rgba(15, 32, 56, .16); }
.mkt-tier--gold.is-open { border: 2px solid #d9a62e; background: linear-gradient(180deg, #fff6d8, #fffdf5); box-shadow: 0 10px 24px rgba(185, 128, 10, .25); }
.mkt-tier.is-on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--faience) 35%, transparent); }
.mkt-tier__me { font-style: normal; font-size: .74rem; font-weight: 800; padding: .1rem .55rem; border-radius: 999px; background: var(--g-teal); color: #fff; }
.mkt-tier__more { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--faience); }
.mkt-tier--gold .mkt-tier__more { color: #a56f00; }
.mkt-tier.is-open .mkt-tier__more { visibility: hidden; }
.mkt-tp { margin-block-start: 1.1rem; animation: wx-tip-in .25s ease-out; }
.mkt-tp[hidden] { display: none; }
.mkt-tp__note { margin: 0; padding: .9rem 1.1rem; border-radius: 14px; background: var(--g-teal-soft); border: 1px solid color-mix(in srgb, var(--faience) 18%, var(--line)); color: var(--teal-ink); font-weight: 600; }
.mkt-tp .mkt-gs { margin-block: 1.1rem; }
.mkt-gd--end { margin-block-start: 1.1rem; }
html[data-theme="dark"] .mkt-tier--person.is-open, html[data-theme="dark"] .mkt-tier--company.is-open, html[data-theme="dark"] .mkt-tier--gold.is-open { background: var(--surface); }
/* «حسابك الحالي» و«اضغط للتفاصيل»: أقوى من قاعدة «.mkt-tier em» القديمة. */
.mkt-tier .mkt-tier__me { color: #fff; background: var(--g-teal); font-size: .74rem; font-weight: 800; }
.mkt-tier .mkt-tier__more { color: var(--faience); font-size: .76rem; font-weight: 700; }
.mkt-tier--gold .mkt-tier__more { color: #a56f00; }

/* =====================================================================
   2.2.6 — الجوال: الهيدر والقائمة المنسدلة وصفحة «حسابي»
   ===================================================================== */
/* الهيدر: البحث ينتقل إلى القائمة، والحرارة وحدها (بلا ساعة ولا رمز) بين الشعار والأزرار، واسم الموقع أكبر. */
@media (max-width: 860px) {
	.header-tools .search-toggle { display: none; }
	.site-header .brand-box { flex-direction: row; align-items: center; flex: 1 1 auto; gap: .4rem; padding-block: 0; }
	.site-header .brand-wx { margin: 0 auto; padding-inline-start: 0; }
	.brand-wx .wx-badge__cw, .brand-wx .wx-badge__sep, .brand-wx .wx-badge__iw { display: none !important; }
	.brand-wx .wx-badge { font-size: 1rem; }
	.brand-wx .wx-badge__t { font-size: 1.08rem; }
	html:not(.brand-tight) .site-header .brand, html:not(.brand-tight) .site-header .brand--ar { font-size: 1.5rem; }
}
@media (max-width: 380px) { html:not(.brand-tight) .site-header .brand, html:not(.brand-tight) .site-header .brand--ar { font-size: 1.3rem; } }
@media (max-width: 340px) { html:not(.brand-tight) .site-header .brand, html:not(.brand-tight) .site-header .brand--ar { font-size: 1.15rem; } }

/* القائمة المنسدلة: كل زر بعرض القائمة، بإطار واضح. */
@media (max-width: 860px) {
	.primary-nav .nav-list { align-items: stretch; gap: .5rem; }
	.primary-nav .nav-list > li { width: 100%; }
	.primary-nav .nav-list > li > a { display: block; width: 100%; box-sizing: border-box; padding: .7rem 1rem; border: 1.5px solid color-mix(in srgb, var(--faience) 28%, var(--line)); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 600; text-align: start; }
	.primary-nav .nav-list > li > a:hover { transform: none; background: color-mix(in srgb, var(--faience) 8%, var(--surface)); }
	.primary-nav .nav-list > .current-menu-item > a { background: var(--g-teal, var(--faience)); border-color: transparent; color: #fff; }
	/* آخر صف: «حسابي» (أو «خروج» داخل الحساب) وبجواره زر البحث. */
	.primary-nav .nav-list > li.menu-acts { display: flex; gap: .5rem; margin-block-start: .25rem; }
	.primary-nav .nav-list > li.menu-acts > a { flex: 1 1 auto; width: auto; text-align: center; }
	.primary-nav .nav-list > li.menu-acts > a.menu-acts__out { background: #fdecea; border-color: #f3bcb6; color: #b42318; }
	.primary-nav .nav-list > li.menu-acts > a.menu-acts__out:hover { background: #fbdcd8; }
	.menu-acts .menu-acts__search { flex: none; width: 3.1rem; height: auto; min-height: 2.9rem; border-radius: 12px; }
	html[data-theme="dark"] .primary-nav .nav-list > li.menu-acts > a.menu-acts__out { background: rgba(180, 35, 24, .2); border-color: rgba(255, 140, 128, .35); color: #ffb4ab; }
}
@media (min-width: 861px) { .menu-acts { display: none; } }

/* «حسابي» على الجوال: البطاقات وحدها بدل قائمة الأزرار، بترتيب ثابت، وأيقونة بجوار اسم كل بطاقة. */
.mt-tile--mob, .mt-tile__ico, .mt-tile__badge { display: none; }
@media (max-width: 760px) {
	.mt-dash__nav { display: none; }
	.mt-dash__who { padding-block-end: .2rem; margin-block-end: 0; border-block-end: 0; }
	.mt-tiles__hint, .mt-tile__grip { display: none; }
	.mt-tile { order: var(--o, 0); cursor: pointer; }
	.mt-tile--mob { display: flex; }
	.mt-tile strong { display: flex; align-items: center; gap: .6rem; }
	.mt-tile__ico { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; flex: none; border-radius: 10px; color: #fff; }
	.mt-tile__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; margin-inline-start: auto; border-radius: 999px; background: #e03b5a; color: #fff; font-style: normal; font-size: .78rem; font-weight: 800; }
	.mt-tile--settings::before { background: linear-gradient(90deg, #6c7f8f, #9aa9b6); }
	.mt-tile--out { background: #fdf3f2; border-color: #f3c9c4; }
	.mt-tile--out::before { background: linear-gradient(90deg, #d9483b, #f08a7e); }
	.mt-tile.mt-tile--out strong { color: #b42318; }
	html[data-theme="dark"] .mt-tile--out { background: rgba(180, 35, 24, .14); border-color: rgba(255, 140, 128, .3); }
	html[data-theme="dark"] .mt-tile.mt-tile--out strong { color: #ffb4ab; }
}

/* =====================================================================
   2.2.7
   ===================================================================== */
/* رقم الحرارة في هيدر الجوال: منطقة لمس أكبر حوله (بلا تغيير في شكله) كي لا تذهب اللمسة إلى زر اللغات المجاور. */
@media (max-width: 860px) {
	/* 2.2.8: الحرارة داخل مربع أبيض ناعم الحواف (هدف لمس واضح، خاصة في متصفح سامسونج). */
	.site-header .brand-wx .wx-badge { position: relative; z-index: 2; margin: 0; padding: .3rem .65rem; min-height: 2.15rem; align-items: center; border: 1px solid color-mix(in srgb, var(--faience) 20%, var(--line)) !important; border-radius: 10px; background: #fff !important; box-shadow: 0 1px 5px rgba(11, 58, 70, .1) !important; }
	html[data-theme="dark"] .site-header .brand-wx .wx-badge { background: var(--surface) !important; }
}
/* الشاشات اللمسية: رسالة الشبورة لا تظهر باللمس، فاللمسة الأولى تفتح صفحة الطقس مباشرة. */
@media (hover: none) { .wx-tip { display: none !important; } }

/* قائمة الجوال للزائر: بالون خفيف فوق «حسابي» يدعو للتسجيل، والزر ينبض بتوهج ما دامت القائمة مفتوحة. */
.menu-tip { display: none; }
@media (max-width: 860px) {
	.primary-nav .nav-list > li.menu-tip { display: block; position: relative; margin-block-start: .35rem; }
	.primary-nav .nav-list > li.menu-tip > a.menu-tip__b { position: relative; display: block; width: calc(100% - 3.6rem); box-sizing: border-box; padding: .6rem .9rem; border: 0; border-radius: 14px; background: linear-gradient(135deg, #fff4dc, #ffe6c2); color: #8a4a00; font-size: .9rem; font-weight: 700; line-height: 1.6; text-align: center; box-shadow: 0 6px 16px rgba(224, 136, 58, .2); }
	.primary-nav .nav-list > li.menu-tip > a.menu-tip__b::after { content: ""; position: absolute; bottom: -6px; inset-inline-start: 50%; width: 12px; height: 12px; margin-inline-start: -6px; background: #ffe6c2; transform: rotate(45deg); border-radius: 2px; }
	.site-header.is-open .menu-tip__b { animation: menu-tip-in .45s .2s both; }
	.primary-nav .nav-list > li.menu-acts > a.menu-acts__acct--guest { background: linear-gradient(135deg, #f2a65a, #e0883a); border-color: transparent; color: #fff; }
	.site-header.is-open .menu-acts__acct--guest { animation: menu-acct-glow 1.6s ease-out infinite; }
	html[data-theme="dark"] .primary-nav .nav-list > li.menu-tip > a.menu-tip__b { background: linear-gradient(135deg, #4a3214, #5a3a12); color: #ffe2b8; }
	html[data-theme="dark"] .primary-nav .nav-list > li.menu-tip > a.menu-tip__b::after { background: #5a3a12; }
}
@keyframes menu-tip-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes menu-acct-glow { 0% { box-shadow: 0 0 0 0 rgba(242, 166, 90, .75); } 70% { box-shadow: 0 0 0 12px rgba(242, 166, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 166, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .site-header.is-open .menu-acts__acct--guest, .site-header.is-open .menu-tip__b { animation: none; } }

/* «حسابي» على الجوال: بلا مربع الاسم والصورة (رسالة الترحيب في أعلى الصفحة تكفي). */
@media (max-width: 760px) { .mt-dash__side { display: none; } }
/* أيقونات البطاقات: الخط الداخلي أبيض (كانت قاعدة نصوص البطاقة تلوّنه بالرمادي). */
.mt-tile .mt-tile__ico, .mt-tile .mt-tile__ico svg { color: #fff; }

/* «عودة لحسابي» على الجوال: سطر مستقل أسفل رأس القسم، زر أبيض خفيف بسهم رفيع. */
@media (max-width: 760px) {
	.mt-sec .mt-sec__txt { display: flex; flex-direction: column; }
	.mt-sec .mt-sec__title { order: 1; } .mt-sec .mt-sec__desc { order: 2; }
	.mt-sec__back, .entry-content a.mt-sec__back, html[dir="rtl"] .mt-sec__back, html[dir="rtl"] .entry-content a.mt-sec__back {
		order: 3; float: none; position: static; align-self: flex-end; margin: .7rem 0 0; padding: .38rem .9rem .38rem .75rem; gap: .3rem;
		border: 1px solid color-mix(in srgb, var(--faience) 22%, var(--line)); border-radius: 999px; background: #fff; color: var(--teal-ink);
		font-size: .84rem; font-weight: 700; box-shadow: 0 2px 8px rgba(11, 58, 70, .08); }
	.mt-sec__back:hover { text-decoration: none; background: #f4fbfb; }
	.mt-sec__back svg { stroke-width: 1.6; opacity: .75; }
	html[data-theme="dark"] .mt-sec__back, html[data-theme="dark"] .entry-content a.mt-sec__back { background: var(--surface); color: #bdf0f3; }
}

/* «رحلتي القادمة»: دبوس موقع. عند الإضافة يتلون الدبوس وحده بالأزرق القوي والدائرة كما هي، تمامًا مثل القلب في المفضلة. */
.mt-save__btn--trip:hover, .mt-save__btn--trip.is-on, .mt-save__btn--trip.is-on:hover { background: var(--surface); color: #1565d8; border-color: color-mix(in srgb, #1565d8 45%, transparent); }
.mt-save__btn--trip.is-on svg { fill: #1565d8; }
.mt-save__btn--trip.is-on .pin-dot { fill: #fff; stroke: none; }
.mt-save--card .mt-save__btn--trip.is-on, .mt-save--card .mt-save__btn--trip.is-on:hover { background: transparent; border-color: transparent; color: #fff; }
.mt-save--card .mt-save__btn--trip.is-on svg { fill: #1565d8; stroke: #fff; }

/* =====================================================================
   2.2.8
   ===================================================================== */
/* الفوتر على الجوال: ثلاثة أعمدة متساوية الحواف، و«الطقس» في السطر الثاني تحت «المدونة» بالضبط. */
@media (max-width: 700px) {
	.foot-nav .foot-list { display: grid; grid-template-columns: repeat(3, max-content); gap: .5rem 1.4rem; justify-content: start; }
	.foot-nav .foot-list > .menu-item-weather { order: 1; }
}
@media (max-width: 340px) { .foot-nav .foot-list { column-gap: .9rem; } }

/* صفحة الطقس على الجوال: مربع الشبورة تحت درجة الحرارة ووصفها، قبل باقي المربعات (على الحاسب يبقى في أعلى المربع). */
.wx-now__fog { display: none; }
@media (max-width: 860px) {
	.wx-now { grid-template-areas: "place" "main" "desc" "fog" "meta"; }
	.wx-now__place .wx-alert { display: none; }
	.wx-now__fog { display: block; grid-area: fog; margin-block: .3rem .2rem; }
}

/* =====================================================================
   2.2.9
   ===================================================================== */
/* الحرارة في هيدر الجوال: المربع كله يستقبل اللمسة عبر طبقة شفافة فوقه، والنصوص داخله لا تستقبلها.
   (رقم الحرارة باتجاه LTR داخل صفحة RTL كان يزيح منطقة اللمس في بعض المتصفحات، مثل سامسونج، نحو زر الخفوت.) */
@media (max-width: 860px) {
	.site-header .brand-wx .wx-badge { isolation: isolate; }
	.site-header .brand-wx .wx-badge > * { pointer-events: none; }
	.site-header .brand-wx .wx-badge::after { content: ""; position: absolute; inset: -4px; z-index: 3; border-radius: 12px; }
	.site-header .brand-wx .wx-badge__t { unicode-bidi: isolate; }
}
/* الحاسب: سطر الساعة والحرارة يبدأ تحت آخر حرفين من الاسم ويمتد إلى داخل الصفحة،
   ولا يوسّع منطقة الشعار (فلا يدفع روابط القائمة). المسافة يضعها السكربت بالقياس. */
@media (min-width: 861px) {
	.site-header .brand-box.wx-under-end .brand-wx { contain: inline-size; align-self: stretch; white-space: nowrap; overflow: visible; }
}
@media (min-width: 861px) { .site-header .brand-box.wx-under-end .brand-wx .wx-badge { position: relative; top: 3px; } }

/* =====================================================================
   2.3.0 — الجوال
   ===================================================================== */
/* القائمة المنسدلة: «الرئيسية» سطر كامل، والأقسام الستة زران في كل سطر بأحجام ومسافات متساوية،
   وصف «حسابي/خروج» والبحث كما هو. */
@media (max-width: 860px) {
	.primary-nav .nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; align-items: stretch; }
	.primary-nav .nav-list > li { width: auto; min-width: 0; }
	.primary-nav .nav-list > li.nav-home, .primary-nav .nav-list > li.menu-tip, .primary-nav .nav-list > li.menu-acts { grid-column: 1 / -1; }
	.primary-nav .nav-list > li:not(.nav-home):not(.menu-tip):not(.menu-acts) > a { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; padding-inline: .5rem; }
}

/* الهيدر: الخفوت في المنتصف (مكان الحرارة)، والحرارة بجوار اللغة، واللغة مربع أبيض بحجم مربع الحرارة. */
@media (max-width: 860px) {
	.site-header .header-in > .brand-box, .site-header .header-in > .header-tools { display: contents; }
	.site-header .header-in > .brand-box > .brand { order: 1; }
	.site-header .header-tools > .theme-toggle { order: 2; margin-inline: auto; }
	.site-header .header-in > .brand-box > .brand-wx { order: 3; margin: 0; }
	.site-header .header-tools > * { order: 4; }
	.site-header .header-tools > .theme-toggle { order: 2; }
	.site-header .header-in > .nav-toggle { order: 5; }
	.site-header .brand-wx .wx-badge, .site-header .langs > summary.langbtn { box-sizing: border-box; height: 2.15rem; min-height: 2.15rem; min-width: 3.4rem; justify-content: center; }
	.site-header .langs > summary.langbtn { padding-inline: .55rem; border: 1px solid color-mix(in srgb, var(--faience) 20%, var(--line)); border-radius: 10px; background: #fff; box-shadow: 0 1px 5px rgba(11, 58, 70, .1); }
	html[data-theme="dark"] .site-header .langs > summary.langbtn { background: var(--surface); }
}
/* بالون التسجيل في القائمة: يلتف نصه (كان سطرًا واحدًا يخرج عن الشاشة في اللغات ذات النص الطويل). */
@media (max-width: 860px) { .primary-nav .nav-list > li.menu-tip > a.menu-tip__b { white-space: normal; } }
/* الشاشات الضيقة جدًا: الاسم لا ينضغط تحت نصه (كان الخفوت يغطي آخره على 320)، ومربعا الحرارة واللغة أصغر قليلًا بالتساوي. */
@media (max-width: 860px) { .site-header .header-in > .brand-box > .brand { flex-shrink: 0; } }
@media (max-width: 380px) {
	.site-header .header-in { gap: .3rem; }
	.site-header .brand-wx .wx-badge, .site-header .langs > summary.langbtn { height: 2rem; min-height: 2rem; min-width: 2.95rem; padding-inline: .4rem; }
	.site-header .header-tools > .theme-toggle, .site-header .header-in > .nav-toggle { width: 2rem; height: 2rem; }
	html.brand-tight .site-header .brand, html.brand-tight .site-header .brand--ar { font-size: 1.05rem; }
}
@media (max-width: 340px) { html:not(.brand-tight) .site-header .brand, html:not(.brand-tight) .site-header .brand--ar { font-size: 1.08rem; } }

/* =====================================================================
   2.3.2 — تفعيل الحساب (منقول من جيزة تراڤيل)
   ===================================================================== */
/* بطاقة «خطوة أخيرة: فعّل حسابك». */
.mt-pending { display: flex; gap: 1rem; align-items: flex-start; border-color: color-mix(in srgb, #e0883a 35%, var(--line)); background: color-mix(in srgb, #fff4dc 55%, var(--surface)); }
.mt-pending__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 14px; background: #e0883a; color: #fff; }
.mt-pending__body { min-width: 0; }
.mt-pending__body h3 { margin: 0 0 .45rem; font-size: 1.15rem; color: var(--ink); }
.mt-pending__body p { margin: 0 0 .55rem; line-height: 1.8; }
.mt-pending__body bdi { font-weight: 700; color: var(--teal-ink); overflow-wrap: anywhere; }
.mt-pending__help { color: var(--ink-2); font-size: .92rem; }
.mt-pending__wait { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.mt-pending__wait span { color: var(--ink-2); font-size: .92rem; }
html[data-theme="dark"] .mt-pending { background: color-mix(in srgb, #5a3a12 35%, var(--surface)); }
@media (max-width: 520px) { .mt-pending { flex-direction: column; } }

/* زر شفاف بإطار (إعادة الإرسال)، والمعطّل باهت. */
.btn.mt-btn-ghost { background: transparent; color: var(--teal-ink); border: 1.5px solid color-mix(in srgb, var(--faience) 45%, var(--line)); box-shadow: none; cursor: pointer; font: inherit; font-weight: 700; }
.btn.mt-btn-ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--faience) 8%, transparent); }
.btn.mt-btn-ghost:disabled { opacity: .55; cursor: not-allowed; }

/* صفحة رابط التفعيل: زر أخضر واحد «أكّد حسابك». */
.mt-confirm { max-width: 30rem; margin-inline: auto; text-align: center; padding-block: 2rem; }
.mt-confirm__h { margin: 0 0 1.2rem; }
.btn.mt-btn-ok { border: 0; cursor: pointer; font: inherit; font-size: 1.1rem; font-weight: 800; padding: .85rem 2.2rem; background: #1f9d55; color: #fff; }
.btn.mt-btn-ok:hover { background: #17824a; }

/* «معلوماتي» قبل التفعيل: خانة البريد قابلة للتعديل مع زر «حفظ». */
.mt-email-fix__f { display: flex; gap: .6rem; align-items: stretch; }
.mt-email-fix__f input { flex: 1 1 auto; min-width: 0; min-height: 2.9rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-img); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
.mt-email-fix__f input:focus { outline: 2px solid color-mix(in srgb, var(--faience) 55%, transparent); outline-offset: 1px; border-color: var(--faience); }
.mt-email-fix__f .btn { flex: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
@media (max-width: 420px) { .mt-email-fix__f { flex-direction: column; } }

/* الجوال قبل التفعيل: بطاقتا «معلوماتي» و«تسجيل الخروج» تحت بطاقة التفعيل. */
.mt-tiles--pending { display: none; }
@media (max-width: 760px) { .mt-tiles--pending { display: grid; gap: .8rem; margin-top: 1rem; } }
/* زر «إعادة الإرسال» شفاف بإطار حتى داخل لوحة الحساب (قاعدة أزرار اللوحة تلوّنها بالفيروزي). */
.mt-dash .mt-pending .btn.mt-btn-ghost { background: transparent; color: var(--teal-ink); border: 1.5px solid color-mix(in srgb, var(--faience) 45%, var(--line)); box-shadow: none; filter: none; transform: none; }
.mt-dash .mt-pending .btn.mt-btn-ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--faience) 8%, transparent); }

/* صفحة الإحصائيات: خمسة مربعات في كل سطر — «الأعضاء المسجلون» تحت «متصل الآن» و«التنقل» تحت «الخدمات». */
@media (min-width: 700px) { .gs-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* الجوال (عمودان): الترتيب يُبقي «الأعضاء المسجلون» تحت «متصل الآن» و«التنقل» تحت «الخدمات». */
@media (max-width: 699px) {
	.gs-kpis > [data-k="online"] { order: 1; } .gs-kpis > [data-k="beaches"] { order: 2; } .gs-kpis > [data-k="members"] { order: 3; }
	.gs-kpis > [data-k="hotels"] { order: 4; } .gs-kpis > [data-k="restaurants"] { order: 5; } .gs-kpis > [data-k="services"] { order: 6; }
	.gs-kpis > [data-k="cities"] { order: 7; } .gs-kpis > [data-k="transport"] { order: 8; } .gs-kpis > [data-k="articles"] { order: 9; } .gs-kpis > [data-k="areas"] { order: 10; }
}

/* =====================================================================
   2.3.3 — صف «الطقس / الإحصائيات» في القائمة المنسدلة على الجوال، وشريط تثبيت التطبيق
   ===================================================================== */
.menu-quick { display: none; }
@media (max-width: 860px) {
	.primary-nav .nav-list > li.menu-quick { display: flex; gap: .5rem; grid-column: 1 / -1; width: 100%; }
	.primary-nav .nav-list > li.menu-quick > a { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .4rem; box-sizing: border-box; padding: .7rem .6rem; border: 1.5px solid color-mix(in srgb, var(--faience) 28%, var(--line)); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 600; text-align: center; }
	.primary-nav .nav-list > li.menu-quick > a:hover { transform: none; background: color-mix(in srgb, var(--faience) 8%, var(--surface)); }
	/* كلمة «الطقس» في منتصف الزر تمامًا، والشمس بجوارها خارج حساب التوسيط، تدور باستمرار. */
	.menu-quick__lbl { position: relative; display: inline-block; }
	.menu-quick__sun { position: absolute; top: 50%; inset-inline-start: 100%; width: 1.45rem; height: 1.45rem; margin-top: -.725rem; margin-inline-start: .5rem; animation: mq-spin 6s linear infinite; }
}
@keyframes mq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .menu-quick__sun { animation-duration: 18s; } }
/* شريط التثبيت: الضغط في أي مكان منه يبدأ التثبيت؛ وزر الإغلاق صغير جدًا في الزاوية. */
.app-bar { cursor: pointer; padding-inline-end: 1.6rem; -webkit-tap-highlight-color: transparent; }
.app-bar__x { position: absolute; top: .3rem; inset-inline-end: .3rem; width: 1.05rem; height: 1.05rem; padding: 0; font-size: .75rem; line-height: 1.05rem; text-align: center; background: transparent; opacity: .6; }
.app-bar__x::before { content: ""; position: absolute; inset: -6px; }

/* =====================================================================
   2.3.5 — الفوتر على الجوال في اللغات ذات الكلمات الطويلة (البلغارية): تنكمش الأعمدة
   وينزل الاسم الطويل إلى سطرين عند المسافة بدل أن يتجاوز عرض الشاشة. باقي اللغات كما هي.
   ===================================================================== */
@media (max-width: 700px) {
	html[lang^="bg"] .foot-nav .foot-list, html[lang^="hy"] .foot-nav .foot-list { grid-template-columns: repeat(3, auto); column-gap: 1.1rem; }
	html[lang^="bg"] .foot-nav .foot-list a, html[lang^="hy"] .foot-nav .foot-list a { white-space: normal; hyphens: manual; -webkit-hyphens: manual; }
}
/* الأرمنية: كلماتها أطول، فعمودان بدل ثلاثة على الجوال. */
@media (max-width: 480px) {
	html[lang^="hy"] .foot-nav .foot-list { grid-template-columns: repeat(2, auto); }
}

/* =====================================================================
   2.3.6 — لوحة العضو: بطاقات الأقسام تحت بطاقة التفعيل، و«رحلات منوعة» بشارة «قريبًا»
   ===================================================================== */
.mt-tiles--pending { display: grid; margin-top: 1rem; }
@media (max-width: 760px) { .mt-tiles--pending { gap: .8rem; } }
.mt-tiles--pending .mt-tile__grip { display: none; }
.mt-soon { display: inline-block; margin-block: 0; margin-inline-start: .45rem; padding: .05rem .45rem; border-radius: 999px; background: #fff1dc; color: #b45f06; font-size: .68rem; font-weight: 700; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.mt-tile strong .mt-soon { margin-block: 0; margin-inline-start: .35rem; padding: 0 .4rem; font-size: .66rem; line-height: 1.5; vertical-align: 3px; }
.mt-dash__nav .mt-dash__link { position: relative; }
.mt-dash__link .mt-soon { position: absolute; top: 50%; inset-inline-end: .55rem; transform: translateY(-50%); margin: 0; padding: 0 .4rem; font-size: .64rem; line-height: 1.6; }
.mt-dash__link > span:not(.mt-dash__ico) { min-width: 0; }
.mt-dash__link.is-on .mt-soon { background: rgba(255,255,255,.25); color: #fff; }
.mt-soon--big { margin: 0 0 .6rem; padding: .2rem .8rem; font-size: .85rem; }
.mt-soon-card { text-align: center; padding-block: 2rem; }
.mt-soon-card p { max-width: 34rem; margin: 0 auto; line-height: 1.9; color: var(--ink-2); }
.mt-dash__ico--tours { background: #7c5cc4; }
.mt-tile--tours::before { background: linear-gradient(90deg, #7c5cc4, #b39ddb); }
.mt-sec--tours { background: linear-gradient(120deg, #f1ecfb, #e6f7f9); }

/* =====================================================================
   2.3.7 — بالونات أيقونات الهيدر (نفس شكل وحجم وخط البالونات المعتمدة)، صفحة «معلوماتي» وصفحة الشارات
   ===================================================================== */
.hdr-tip { position: absolute; z-index: 1000; top: 0; left: 0; max-width: min(330px, calc(100vw - 20px)); padding: .55rem .95rem; border-radius: 10px; background: #13293b; color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.55; text-align: start; box-shadow: 0 12px 28px -10px rgba(5, 20, 32, .55); opacity: 0; transform: translateY(-3px); transition: opacity .15s, transform .15s; pointer-events: none; }
.hdr-tip.is-on { opacity: 1; transform: none; }
.hdr-tip.is-rich { padding: .85rem 1.1rem .9rem; min-width: 260px; }
.hdr-tip__arrow { position: absolute; top: -6px; width: 12px; height: 12px; margin-left: -6px; background: #13293b; border-radius: 2px; transform: rotate(45deg); }
.hdr-tip__body { position: relative; display: flex; flex-direction: column; gap: .2rem; }
.hdr-tip__t { color: #d3dce4; font-size: .82rem; font-weight: 600; }
.hdr-tip__v { color: #f5c542; font-size: 1.35rem; font-weight: 800; line-height: 1.35; }
.hdr-tip__h { color: #c4ced7; font-size: .8rem; font-weight: 500; }
.hdr-tip__on { display: flex; align-items: center; gap: .4rem; color: #fff; font-size: 1.02rem; font-weight: 800; }
.hdr-tip__on b { color: #3ddc84; font-size: 1.1rem; }
.hdr-tip__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.wx-qtip { display: none !important; }
@media (hover: hover) and (pointer: fine) { .site-header .wx-tip { display: none !important; } }
.hdr-tip__al { margin-top: .3rem; padding-top: .35rem; border-top: 1px solid rgba(255,255,255,.12); color: #ffb37a; font-size: .85rem; font-weight: 700; }

/* «حسابي»: سطر التلميح وزر «الترتيب الافتراضي». */
.mt-tiles__bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-block-end: .6rem; }
.mt-tiles__bar .mt-tiles__hint { margin: 0; }
.mt-tiles__reset { padding: .25rem .75rem; border: 1px solid color-mix(in srgb, var(--faience) 35%, var(--line)); border-radius: 999px; background: var(--surface); color: var(--faience); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.mt-tiles__reset:hover { background: color-mix(in srgb, var(--faience) 10%, var(--surface)); }
@media (max-width: 760px) { .mt-tiles__bar { display: none; } }

/* «معلوماتي»: كل معلومة ناقصة في مربع مستقل يختفي بعد حفظها. */
.mt-more__item { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--faience) 3%, var(--surface)); }
.mt-more__item + .mt-more__item { margin-top: .8rem; }
.mt-more__item .jn-field { margin-bottom: .6rem; }

/* الشارات قبل التفعيل: تُرى كاملة، ومربعات الرفع وزر الإرسال مغلقة. */
.mkt-vf__locked { margin: .8rem 0; padding: .7rem 1rem; border-radius: 12px; background: #fff4e0; color: #8a4b00; font-weight: 700; border: 1px solid #f3d3a0; }
html[data-theme="dark"] .mkt-vf__locked { background: #3a2a12; color: #ffd79a; border-color: #6b4a1c; }
.mkt-vf__form.is-locked fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mkt-vf__form.is-locked input, .mkt-vf__form.is-locked button, .mkt-gd__contact textarea:disabled, .mkt-gd__contact button:disabled { opacity: .55; cursor: not-allowed; }
/* «معلومات العضوية»: البريد الطويل ينكسر داخل السطر بدل أن يتجاوز عرض الجوال. */
.mt-info__list > div { min-width: 0; }
.mt-info__list dt, .mt-info__list dd { min-width: 0; overflow-wrap: anywhere; }

/* =====================================================================
   2.3.8 — البالون الموحد خارج الهيدر: فوق الزر عند ضيق المكان، وألوان «المفضلة» و«رحلتي القادمة»
   ===================================================================== */
.hdr-tip.is-up .hdr-tip__arrow { top: auto; bottom: -6px; }
.hdr-tip--fav, .hdr-tip--fav .hdr-tip__arrow { background: #fde4e6; }
.hdr-tip--fav { color: #b3263a; box-shadow: 0 12px 26px -12px rgba(179, 38, 58, .4); }
.hdr-tip--trip, .hdr-tip--trip .hdr-tip__arrow { background: #dfeefe; }
.hdr-tip--trip { color: #1d5fa8; box-shadow: 0 12px 26px -12px rgba(29, 95, 168, .4); }

/* الساعات: النهار والليل بلونين واضحين. لوحة زرقاء فاتحة، ساعات النهار بيضاء، وساعات الليل رمادية مزرقّة. */
.wx-hours { background: #EEF5FA; border-color: #D6E4EE; }
.wx-hr { border: 1px solid #DCE6EE; }
.wx-hr.is-day { background: #fff; }
.wx-hr.is-night { background: #E6ECF1; border-color: #D3DDE5; }
.wx-hr.is-night .wx-hr__h { color: #55687A; }
.wx-hr.is-now { background: #E8F1F8; border-color: #1E6BA8; box-shadow: inset 0 0 0 1px #1E6BA8; }
.wx-hr.is-now .wx-hr__h { color: #0E3A5C; }
.wx-hr.is-fog { border-color: #d63c3c; }
html[data-theme="dark"] .wx-hours { background: #0E2C39; border-color: var(--line); }
html[data-theme="dark"] .wx-hr { border-color: rgba(234, 247, 246, .1); }
html[data-theme="dark"] .wx-hr.is-day { background: #17414F; }
html[data-theme="dark"] .wx-hr.is-night { background: #081E28; border-color: rgba(234, 247, 246, .08); }
html[data-theme="dark"] .wx-hr.is-night .wx-hr__h { color: #9DB3C0; }
html[data-theme="dark"] .wx-hr.is-now { background: #123A4C; border-color: #5AB0E8; box-shadow: inset 0 0 0 1px #5AB0E8; }
html[data-theme="dark"] .wx-hr.is-now .wx-hr__h { color: #CDEBFF; }
/* احتياط: ساعة بأيقونة قمر تُلوَّن ليلًا حتى لو وصلت قراءات محفوظة بالشكل القديم. */
.wx-hr:not(.is-day):not(.is-night) { background: #fff; }
.wx-hr:not(.is-day):has(.wx-a-moon) { background: #E6ECF1; border-color: #D3DDE5; }
.wx-hr.is-now:has(.wx-a-moon) { background: #E8F1F8; border-color: #1E6BA8; }
html[data-theme="dark"] .wx-hr:not(.is-day):not(.is-night) { background: #17414F; }
html[data-theme="dark"] .wx-hr:not(.is-day):has(.wx-a-moon) { background: #081E28; border-color: rgba(234, 247, 246, .08); }
html[data-theme="dark"] .wx-hr.is-now:has(.wx-a-moon) { background: #123A4C; border-color: #5AB0E8; }

/* بطاقة التفعيل المختصرة تحت بطاقة الاستكمال: نفس الشكل بلون أزرق وزر «إرسال رابط التفعيل». */
.mt-act { border-color: #bcd8ee; background: linear-gradient(120deg, #eaf4fc, var(--surface)); }
.mt-act__i { background: #1e6ba8; }
.mt-act bdi { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.mt-act__wait { display: block; margin-block-start: .2rem; font-size: .82rem; color: var(--ink-2); }
.mt-act__f { margin: 0; flex: none; }
.mt-act__btn { flex: none; font: inherit; font-weight: 700; padding: .35rem .9rem; border-radius: 999px; border: 0; background: #1e6ba8; color: #fff; white-space: nowrap; cursor: pointer; }
.mt-act__btn:hover { background: #17588c; }
.mt-act__btn:disabled { background: #9db6ca; cursor: default; }
html[data-theme="dark"] .mt-act { border-color: rgba(90, 176, 232, .35); background: linear-gradient(120deg, rgba(30, 107, 168, .22), var(--surface)); }
@media (max-width: 480px) {
	.mt-act { flex-wrap: wrap; }
	.mt-act > span:nth-child(2) { flex: 1 1 calc(100% - 3rem); min-width: 0; }
	.mt-act__f { flex: 1 1 100%; }
	.mt-act__btn { display: block; width: 100%; padding-block: .5rem; }
}

/* ==================================================================
 * 2.4.5: صفحة الموضوع مثل جيزة ترافيل — المسار والعنوان والمقدمة والصورة والنص في عمود واحد،
 * والبطاقة الجانبية بجوارها من أعلى الصفحة؛ والصورة أصغر قليلًا بعرض عمود النص.
 * ================================================================== */
.lm-top { padding-block-start: clamp(.6rem, 1.5vw, 1rem); }
.lm-main { min-width: 0; }
.lm-top .lm-head { padding-block-end: 1.25rem; }
.lm-top .lm-hero { max-width: none; margin: 0 0 clamp(1.5rem, 3.5vw, 2.25rem); }
.lm-top .lm-hero img, .lm-top .lm-hero--art .mt-art { width: 100%; aspect-ratio: 16 / 9; max-height: 440px; height: auto; object-fit: cover; }
.single-post .lm-hero { margin-block-end: clamp(1.5rem, 3.5vw, 2.25rem); }
.single-post .post-main, .single-post .post-cols .lm-side { padding-block-start: 0; margin-block-start: 0; }
.single-post .page-head + .entry-content { margin-block-start: 1rem; }
@media (max-width: 860px) {
	.lm-top .lm-hero img, .lm-top .lm-hero--art .mt-art { aspect-ratio: 4 / 3; max-height: 380px; }
}

/* مبدّل اللغات: عمودان متجاوران بمساحة صغيرة، ويفتح بمرور الماوس (الأسماء مقسومة نصفين: النصف الأول في العمود الأول). */
.langs > .langs__list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--langs-rows, 8), auto); grid-auto-columns: max-content; column-gap: .1rem; row-gap: 0; width: max-content; min-width: 0; max-height: none; overflow: visible; padding: .3rem; }
.langs > .langs__list::before { content: ""; position: absolute; inset-inline: 0; top: -.6rem; height: .6rem; }
.langs .langs__a { padding: .26rem .6rem; font-size: .86rem; line-height: 1.45; }

/* كلمة «مطروح» في صدر الصفحة الرئيسية بغير العربية: أصغر قليلًا ولا تنقسم الكلمة إلى سطرين مهما كان الخط أو عرض الشاشة.
   الحجم محكوم بعرض عمود النص نفسه (cqw)، والأرمنية أصغر لأن حروفها أعرض. العربية تبقى كما هي. */
@media (min-width: 861px) {
	html:not([dir="rtl"]) .hero-copy { container-type: inline-size; }
	html:not([dir="rtl"]) .hero-copy .mast { font-size: min(clamp(3.6rem, 9vw, 7.2rem), 19.5cqw); overflow-wrap: normal; word-break: keep-all; hyphens: none; -webkit-hyphens: none; }
	html[lang^="hy"] .hero-copy .mast { font-size: min(clamp(3rem, 7.4vw, 5.8rem), 16cqw); }
}
@media (max-width: 860px) {
	html:not([dir="rtl"]) .hero-copy { container-type: inline-size; }
	html:not([dir="rtl"]) .hero-copy .mast { font-size: min(clamp(4.5rem, 11vw, 9rem), 20cqw); overflow-wrap: normal; word-break: keep-all; hyphens: none; -webkit-hyphens: none; }
}

/* الأرمنية: أسماء الأقسام أطول من غيرها فكانت تحوّل الهيدر إلى قائمة. تُصغَّر قليلًا،
   وإن لم تكفِ تُصغَّر أكثر (nav-tight من سكربت الهيدر) قبل أن يلجأ القالب إلى القائمة. لا أثر لها في اللغات الأخرى ولا في قائمة الجوال. */
@media (min-width: 861px) {
	html[lang^="hy"]:not(.nav-compact) .primary-nav .nav-list { gap: .1rem; }
	html[lang^="hy"]:not(.nav-compact) .primary-nav .nav-list a { font-size: .84rem; padding-inline: .5rem; white-space: nowrap; }
	html[lang^="hy"].nav-tight:not(.nav-compact) .primary-nav .nav-list a { font-size: .76rem; padding-inline: .32rem; }
}

/* الأزرار العائمة الثلاثة (صعود، وضع داكن، نزول): عند سكون الصفحة تكاد تختفي (شفافية عالية جدًا)،
   وعند تحريك الماوس أو لمس الشاشة أو التمرير (نزولًا أو صعودًا) تصير رمادية واضحة بأيقونات بيضاء، ثم تعود للخفوت بعد لحظات من السكون.
   --float-idle: درجة الإعتام وقت السكون (.30 يعني شفافية 70%). --float-gray: لون الأزرار الواضح.
   زر الوضع الداكن دائم الظهور حتى في الصفحات القصيرة. */
.scroll-btns { --float-idle: .30; --float-gray: #98A3AE; --float-gray-hover: #7F8B96; }
html .scroll-btns .sbtn, html .scroll-btns .theme-toggle { width: 2.4rem; height: 2.4rem; border-radius: 999px; background: var(--float-gray); border: 0; color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: var(--float-idle); transition: opacity .45s ease, transform .2s, background-color .2s; }
html .scroll-btns .sbtn:not(.is-on) { opacity: 0; }
html .scroll-btns.is-ready .sbtn.is-on { opacity: var(--float-idle); }
html .scroll-btns.is-ready.is-active .sbtn.is-on, html .scroll-btns.is-ready .sbtn.is-on:hover, html .scroll-btns.is-ready .sbtn.is-on:focus-visible, html .scroll-btns.is-active .theme-toggle, html .scroll-btns .theme-toggle:hover, html .scroll-btns .theme-toggle:focus-visible { opacity: 1; transition: opacity .15s ease, transform .2s, background-color .2s; }
html .scroll-btns .sbtn:hover, html .scroll-btns .theme-toggle:hover { background: var(--float-gray-hover); color: #fff; }
html .scroll-btns .sbtn:focus-visible, html .scroll-btns .theme-toggle:focus-visible { outline: 2px solid var(--faience); outline-offset: 2px; }
@media (hover: none) { html .scroll-btns .sbtn:hover, html .scroll-btns .theme-toggle:hover { background: var(--float-gray); } }
@media (prefers-reduced-motion: reduce) { html .scroll-btns .sbtn, html .scroll-btns .theme-toggle { transition: none; } }


/* ------------------------------------------------------------------
 * صفحة التنقل: ثلاث بطاقات تعريفية (الدولي والمحلي والداخلي)
 * ---------------------------------------------------------------- */
.mt-trs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-block: .4rem 1rem; }
.mt-tr { display: flex; flex-direction: column; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: var(--soft); transition: transform .25s, box-shadow .25s; }
.mt-tr:hover, .mt-tr:focus-visible { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(11, 58, 70, .16); color: var(--ink); text-decoration: none; }
.mt-tr__pic { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mt-tr__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.mt-tr:hover .mt-tr__img { transform: scale(1.04); }
.mt-tr--international .mt-tr__pic { background: linear-gradient(180deg, #7cc4e8 0%, #bfe6f7 70%, #e6f6fc 100%); }
.mt-tr--domestic .mt-tr__pic { background: linear-gradient(180deg, #ffd9b8 0%, #fff0dc 75%); }
.mt-tr--around .mt-tr__pic { background: linear-gradient(180deg, #bfeef2 0%, #e9fbfc 70%); }
.mt-tr__txt { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.mt-tr__title { font-family: var(--display); font-size: 1.3rem; line-height: 1.35; }
.mt-tr__desc { color: var(--ink-2); line-height: 1.75; flex: 1; }
.mt-tr__go { margin-block-start: .35rem; font-weight: 700; }
.mt-tr--international .mt-tr__go { color: #2f80c9; }
.mt-tr--domestic .mt-tr__go { color: #d9485f; }
.mt-tr--around .mt-tr__go { color: var(--faience); }
html[data-theme="dark"] .mt-tr--international .mt-tr__pic { background: linear-gradient(180deg, #1d4f6e, #163b52); }
html[data-theme="dark"] .mt-tr--domestic .mt-tr__pic { background: linear-gradient(180deg, #5a3a2c, #3b2a22); }
html[data-theme="dark"] .mt-tr--around .mt-tr__pic { background: linear-gradient(180deg, #164b52, #123a40); }
@media (max-width: 900px) {
	.mt-trs { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
}

/* الواجهة: بطاقات تتبادل عشوائيًا — يظهر الثابت + العدد المطلوب فقط */
.cards[data-fixed="2"][data-rotate="3"] > :nth-child(n+6),
.cards[data-fixed="0"][data-rotate="3"] > :nth-child(n+4) { display: none; }
