/* Weather Pro 2.0 */
.wpx-app, .wpx-home, .wpx-search, .wpx-cities, .wpx-posts, .wpx-page {
	--wpx-ink: #0d1b2e;
	--wpx-muted: #647085;
	--wpx-line: #e2e7ef;
	--wpx-soft: #f1f4f9;
	--wpx-accent: #f05514;
	--wpx-blue: #0b5cff;
	font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
	direction: rtl;
	color: var(--wpx-ink);
	line-height: 1.6;
}
.wpx-app *, .wpx-home *, .wpx-search *, .wpx-mini *, .wpx-post *, .wpx-page * { box-sizing: border-box; }
body:has(.wpx-full) { overflow-x: hidden; }

.wpx-wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.wpx-full { margin-inline: calc(50% - 50vw); }

/* ---------- الصفحة الرئيسية ---------- */
.wpx-hero {
	position: relative; z-index: 5;
	background: linear-gradient(160deg, #06214d 0%, #0b4bb3 60%, #2b8cff 100%);
	color: #fff; text-align: center; padding: 56px 0 48px;
}
.wpx-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 46px); font-weight: 800; margin: 0 0 10px; line-height: 1.3; }
.wpx-hero p { color: #d6e4ff; font-size: 18px; margin: 0; }
.wpx-block { margin-top: 40px; }
.wpx-hero + .wpx-block { margin-top: 32px; }
.wpx-sec { font-size: 24px; font-weight: 800; margin: 0 0 16px; padding-inline-start: 14px; border-inline-start: 5px solid var(--wpx-accent); line-height: 1.2; }
.wpx-more { margin: 14px 0 0; }
.wpx-more a { color: var(--wpx-blue); font-weight: 700; text-decoration: none; }
.wpx-more a:hover { text-decoration: underline; }
.wpx-page { padding: 24px 0 40px; }
.wpx-page-search { margin-bottom: 20px; }
.wpx-page-search .wpx-search { margin-top: 0; }

/* ---------- البحث ---------- */
.wpx-search { position: relative; max-width: 700px; margin: 28px auto 0; text-align: right; }
.wpx-searchbar { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 60px; padding: 6px 20px 6px 8px; box-shadow: 0 8px 28px rgba(5, 25, 60, .28); border: 2px solid transparent; }
.wpx-searchbar:focus-within { border-color: var(--wpx-accent); }
.wpx-s-ico { font-size: 20px; padding-inline: 10px 0; }
.wpx-search input[type="search"] { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font: inherit; font-size: 18px; padding: 10px 6px; color: var(--wpx-ink); }
.wpx-geo { border: 0; background: var(--wpx-accent); color: #fff; font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 40px; cursor: pointer; white-space: nowrap; }
.wpx-geo:hover { background: #d6440a; }
.wpx-results { position: absolute; inset-inline: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(5, 25, 60, .28); z-index: 50; max-height: 380px; overflow: auto; }
.wpx-results[hidden] { display: none; }
.wpx-results li { margin: 0; }
.wpx-results a { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 10px; color: var(--wpx-ink); text-decoration: none; }
.wpx-results a:hover, .wpx-results a:focus { background: var(--wpx-soft); outline: none; }
.wpx-results b { font-weight: 700; }
.wpx-results small { color: var(--wpx-muted); }
.wpx-results .none { padding: 14px 16px; color: var(--wpx-muted); }

/* ---------- تطبيق الطقس ---------- */
.wpx-app { max-width: 1120px; margin: 0 auto 32px; }
.wpx-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.wpx-sub { font-size: 14px; }
.wpx-clock { font-variant-numeric: tabular-nums; }
.wpx-tools { display: flex; align-items: center; gap: 10px; }
.wpx-live { display: inline-flex; align-items: center; gap: 7px; background: #ffece4; color: #c93a08; font-weight: 700; font-size: 13px; border-radius: 30px; padding: 4px 12px; }
.wpx-live i { width: 9px; height: 9px; border-radius: 50%; background: #e5400d; animation: wpx-pulse 1.6s infinite; }
@keyframes wpx-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 64, 13, .6); } 70% { box-shadow: 0 0 0 8px rgba(229, 64, 13, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 64, 13, 0); } }
.wpx-unit { font: inherit; font-weight: 700; border: 1px solid var(--wpx-line); background: #fff; color: var(--wpx-ink); border-radius: 30px; padding: 4px 14px; cursor: pointer; }
.wpx-unit:hover { border-color: var(--wpx-blue); color: var(--wpx-blue); }

/* رأس البطاقة الزرقاء: اسم المدينة + الوقت الحي مدمجان داخل نفس البطاقة الملونة بدل تعليقهما فوق البانر (هذا ما كان يسبب التداخل) */
.wpx-now-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; grid-column: 1 / -1; }
.wpx-now-head .wpx-title { color: #fff; }
.wpx-now-head .wpx-sub { color: rgba(255, 255, 255, .85); margin-top: 4px; display: block; }
.wpx-now-head .wpx-live { background: rgba(255, 255, 255, .22); color: #fff; }
.wpx-now-head .wpx-live i { background: #fff; }
.wpx-now-head .wpx-unit { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; }
.wpx-now-head .wpx-unit:hover { background: rgba(255, 255, 255, .28); border-color: #fff; color: #fff; }

.wpx-now { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: center; color: #fff; border-radius: 22px; padding: 26px 32px 20px; box-shadow: 0 10px 30px rgba(10, 40, 90, .18); }
.wpx-now-main { display: flex; align-items: center; gap: 22px; }
.wpx-big-icon { font-size: 92px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .2)); }
.wpx-big-temp { font-size: 96px; font-weight: 800; line-height: .95; letter-spacing: -2px; direction: ltr; text-align: right; }
.wpx-big-temp small { font-size: 26px; font-weight: 600; letter-spacing: 0; opacity: .85; vertical-align: top; margin-inline-start: 2px; }
.wpx-phrase { font-size: 24px; font-weight: 700; margin-top: 4px; }
.wpx-feel { opacity: .9; font-size: 16px; }
.wpx-now-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wpx-now-side div { background: rgba(255, 255, 255, .16); border-radius: 14px; padding: 10px 14px; }
.wpx-now-side span { display: block; font-size: 13px; opacity: .85; }
.wpx-now-side b { font-size: 20px; font-weight: 700; }
.wpx-stamp { grid-column: 1 / -1; font-size: 12.5px; opacity: .8; }
.wpx-t-clear-day { background: linear-gradient(160deg, #1e78ff, #62bfff); }
.wpx-t-clear-night { background: linear-gradient(160deg, #0a1233, #26428f); }
.wpx-t-cloudy { background: linear-gradient(160deg, #56677d, #93a6bd); }
.wpx-t-fog { background: linear-gradient(160deg, #78858f, #b9c3cc); }
.wpx-t-rain { background: linear-gradient(160deg, #2c4360, #5f7fa3); }
.wpx-t-snow { background: linear-gradient(160deg, #6f93b3, #cfe0ec); }
.wpx-t-storm { background: linear-gradient(160deg, #191b2d, #4e4478); }

.wpx-card { background: #fff; border: 1px solid var(--wpx-line); border-radius: 18px; padding: 18px 20px; margin-top: 16px; }
.wpx-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--wpx-ink); }

/* تنبؤ الأمطار كل 15 دقيقة */
.wpx-rain-msg { font-weight: 700; margin-bottom: 10px; }
.wpx-bars { display: flex; align-items: flex-end; gap: 6px; height: 52px; direction: ltr; }
.wpx-bars i { flex: 1; background: #d7dfec; border-radius: 4px 4px 0 0; }
.wpx-bars i.on { background: var(--wpx-blue); }
.wpx-bars-l { display: flex; justify-content: space-between; direction: ltr; font-size: 12px; color: var(--wpx-muted); margin-top: 4px; }

/* ساعة بساعة */
.wpx-hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.wpx-hour { flex: 0 0 auto; min-width: 82px; text-align: center; background: var(--wpx-soft); border-radius: 14px; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; scroll-snap-align: start; }
.wpx-hour:first-child { background: #e6efff; box-shadow: inset 0 0 0 2px var(--wpx-blue); }
.wpx-h-t { font-size: 13px; color: var(--wpx-muted); font-variant-numeric: tabular-nums; }
.wpx-h-i { font-size: 28px; line-height: 1.2; }
.wpx-hour b { font-size: 19px; font-weight: 800; }
.wpx-h-p { font-size: 12px; color: var(--wpx-blue); min-height: 18px; }

/* 10 أيام */
.wpx-day { display: grid; grid-template-columns: 120px 44px 1fr 70px 210px; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--wpx-line); }
.wpx-day:first-of-type { border-top: 0; }
.wpx-d-name b { display: block; font-weight: 700; line-height: 1.2; }
.wpx-d-name small { color: var(--wpx-muted); }
.wpx-d-i { font-size: 30px; text-align: center; }
.wpx-d-t { color: var(--wpx-muted); }
.wpx-d-p { color: var(--wpx-blue); font-size: 14px; font-weight: 600; }
.wpx-d-r { display: flex; align-items: center; gap: 8px; direction: ltr; }
.wpx-d-r em { font-style: normal; font-weight: 700; min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.wpx-d-r u { position: relative; flex: 1; height: 8px; border-radius: 8px; background: var(--wpx-soft); text-decoration: none; }
.wpx-d-r s { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #4aa3ff, #ffa24a, #f05514); }

/* تفاصيل */
.wpx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wpx-stat { background: var(--wpx-soft); border-radius: 14px; padding: 14px 16px; }
.wpx-stat span { display: block; color: var(--wpx-muted); font-size: 13.5px; }
.wpx-stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.3; margin-top: 2px; }
.wpx-stat small { color: var(--wpx-muted); }
.wpx-credit { margin-top: 14px; font-size: 12px; color: var(--wpx-muted); text-align: center; }
.wpx-credit a { color: inherit; }

/* ---------- خريطة الطقس ---------- */
.wpx-map-wrap { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--wpx-line); }
.wpx-map { height: 440px; width: 100%; background: var(--wpx-soft); direction: ltr; }
.wpx-skel-map { height: 440px; border-radius: 0; }
.wpx-map-legend { position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 1000; }
.wpx-rain-toggle { border: 0; background: #fff; box-shadow: 0 4px 14px rgba(5, 25, 60, .25); font: inherit; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 30px; cursor: pointer; color: var(--wpx-ink); }
.wpx-rain-toggle:hover { color: var(--wpx-blue); }
.wpx-rain-toggle.on { background: var(--wpx-blue); color: #fff; }
.leaflet-popup-content, .leaflet-tooltip { font-family: 'Cairo', system-ui, sans-serif; direction: rtl; }

.wpx-skel { height: 340px; border-radius: 22px; display: grid; place-items: center; color: #8592a6; font-weight: 600; background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 37%, #eef1f6 63%); background-size: 400% 100%; animation: wpx-sh 1.4s infinite; }
@keyframes wpx-sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.wpx-err { padding: 28px; text-align: center; background: #fff3ee; color: #a63a10; border-radius: 16px; font-weight: 600; }

/* ---------- بطاقات المدن ---------- */
.wpx-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.wpx-mini { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--wpx-line); border-radius: 18px; padding: 18px 12px 14px; text-align: center; text-decoration: none; color: var(--wpx-ink); transition: box-shadow .2s, border-color .2s; }
.wpx-mini:hover { border-color: var(--wpx-blue); box-shadow: 0 8px 22px rgba(11, 92, 255, .12); }
.wpx-mini h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--wpx-ink); }
.wpx-mi { font-size: 40px; line-height: 1.3; }
.wpx-mt { font-size: 32px; font-weight: 800; line-height: 1; direction: ltr; }
.wpx-mini small { color: var(--wpx-muted); margin-top: 4px; }

/* ---------- المدونة ---------- */
.wpx-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.wpx-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--wpx-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--wpx-ink); }
.wpx-post:hover h3 { color: var(--wpx-blue); }
.wpx-post-img { aspect-ratio: 16 / 9; background: linear-gradient(160deg, #1e78ff, #62bfff); overflow: hidden; }
.wpx-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wpx-noimg { height: 100%; display: grid; place-items: center; font-size: 54px; }
.wpx-post-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.wpx-tag { align-self: flex-start; background: #e6efff; color: var(--wpx-blue); font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.wpx-post h3 { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 700; }
.wpx-post small { color: var(--wpx-muted); }

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 820px) {
	.wpx-now { grid-template-columns: 1fr; padding: 22px 18px 16px; }
	.wpx-big-temp { font-size: 76px; }
	.wpx-big-icon { font-size: 70px; }
	.wpx-day { grid-template-columns: 90px 36px 1fr 150px; }
	.wpx-d-t { display: none; }
	.wpx-d-p { grid-column: 3; grid-row: 1; text-align: center; }
	.wpx-grid { grid-template-columns: repeat(2, 1fr); }
	.wpx-geo { padding: 9px 12px; }
	.wpx-hero { padding: 40px 0 36px; }
	.wpx-map, .wpx-skel-map { height: 300px; }
}
@media (max-width: 480px) {
	.wpx-grid { grid-template-columns: 1fr; }
	.wpx-day { grid-template-columns: 80px 32px 1fr; }
	.wpx-d-r { grid-column: 1 / -1; }
	.wpx-title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
	.wpx-live i, .wpx-skel { animation: none; }
}
