/* ==========================================================
   مسافر (Musafer)  |  public site theme
   Identity from the logo: deep green + gradient green + gold
   Font: Tajawal (self-hosted, no CDN)
   ========================================================== */

@font-face {
  font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/tajawal-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08A0-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/tajawal-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/tajawal-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08A0-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/tajawal-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/tajawal-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08A0-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/tajawal-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/tajawal-800-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08A0-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/tajawal-800-latin.woff2') format('woff2');
}

:root {
  --green-900: #0b3d2e;
  --green-800: #0f5138;
  --green-700: #14664f;   /* primary */
  --green-500: #2e8b62;
  --green-400: #4caf8e;   /* globe teal */
  --green-100: #e6f3ed;
  --gold: #ad8b4e;
  --gold-light: #d8bd8a;
  --text: #16241f;
  --muted: #5f6f68;
  --bg: #f6f9f8;
  --card: #ffffff;
  --border: #e0e9e5;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(11, 61, 46, .06);
  --shadow-hover: 0 10px 30px rgba(11, 61, 46, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green-500); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }

/* ---------- App download banner (native iOS "smart banner" style) ---------- */
.app-banner {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
}
.app-banner-inner {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem 1rem;
}
.app-banner-icon {
  width: 44px; height: 44px; border-radius: 22.5%; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(11, 61, 46, .18);
}
.app-banner-text {
  display: flex; flex-direction: column; gap: .05rem; min-width: 0; flex: 1;
}
.app-banner-name { font-size: .92rem; color: var(--text); font-weight: 700; }
.app-banner-tagline {
  font-size: .78rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-banner-cta {
  background: var(--gold); color: #fff; font-weight: 700;
  padding: .35rem 1.1rem; border-radius: 999px; font-size: .82rem; flex-shrink: 0;
}
.app-banner-cta:hover { background: var(--green-700); color: #fff; }
.app-banner-close {
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  font-size: 1.05rem; line-height: 1; padding: .25rem; flex-shrink: 0;
}
.app-banner-close:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 3px solid var(--green-700);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: .5rem 1rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 64px; width: auto; display: block; }
.main-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.main-nav a {
  color: var(--text); font-weight: 700; font-size: 1rem;
  padding: .45rem .85rem; border-radius: 10px;
}
.main-nav a:hover { color: var(--green-700); background: var(--green-100); }
.header-tools { display: flex; align-items: center; gap: .75rem; margin-inline-start: auto; }
.search-form { display: flex; align-items: center; position: relative; }
.search-form input {
  border: 1.5px solid var(--border); border-radius: 999px;
  padding: .5rem 1rem; padding-inline-end: 2.4rem;
  font-family: inherit; font-size: .9rem; background: var(--bg); min-width: 190px;
  transition: border-color .15s, box-shadow .15s;
}
.search-form input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(46,139,98,.15); }
.search-form button {
  position: absolute; inset-inline-end: .6rem; background: none; border: 0; cursor: pointer;
  color: var(--muted); display: flex; align-items: center;
}
.search-form button svg { width: 18px; height: 18px; }
.lang-switch a {
  font-weight: 800; font-size: .85rem; color: var(--green-700);
  border: 1.5px solid var(--green-700); border-radius: 999px; padding: .3rem .85rem;
  transition: all .15s;
}
.lang-switch a:hover { background: var(--green-700); color: #fff; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin: 1.75rem 0; }
.hero-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-500));
  min-height: 420px; box-shadow: var(--shadow);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem; gap: .5rem;
  background: linear-gradient(to top, rgba(11,61,46,.92) 0%, rgba(11,61,46,.35) 55%, transparent 100%);
}
.hero-badge {
  align-self: flex-start; background: var(--gold); color: #fff;
  font-size: .78rem; font-weight: 800; border-radius: 999px; padding: .15rem .8rem; letter-spacing: .3px;
}
.hero-title { color: #fff; font-size: 1.7rem; font-weight: 800; line-height: 1.45; }
.hero-excerpt { color: #d9e8e1; font-size: .98rem; }
.hero-side { display: flex; flex-direction: column; gap: 1.25rem; }
.hero-side .post-card { flex: 1; }
.hero-side .card-img { aspect-ratio: 21/9; }
.hero-side .card-excerpt { display: none; }

/* ---------- Sections & grid ---------- */
.section { margin: 2.5rem 0; }
.section-title {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.45rem; font-weight: 800; margin-bottom: 1.25rem;
}
.section-title::before {
  content: ''; width: 6px; height: 1.6rem; border-radius: 4px;
  background: linear-gradient(180deg, var(--green-500), var(--green-800));
}
.section-title::after {
  content: ''; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(to var(--flow-end, left), var(--gold-light), transparent);
}
[dir="ltr"] .section-title::after { --flow-end: right; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.4rem; }

/* ---------- Cards ---------- */
.post-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-link { display: flex; flex-direction: column; color: inherit; height: 100%; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-body { padding: 1.05rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-cat {
  align-self: flex-start; font-size: .74rem; font-weight: 800; color: var(--green-700);
  background: var(--green-100); border-radius: 999px; padding: .1rem .7rem;
}
.card-title { font-size: 1.06rem; font-weight: 700; line-height: 1.55; }
.post-card:hover .card-title { color: var(--green-700); }
.card-excerpt { font-size: .88rem; color: var(--muted); }
.card-date { font-size: .78rem; color: var(--muted); margin-top: auto; display: flex; align-items: center; gap: .3rem; }
.card-date::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Article ---------- */
.article {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem); margin: 2rem 0; box-shadow: var(--shadow);
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { font-weight: 700; }
.article-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; line-height: 1.45; margin-bottom: .8rem; }
.article-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .87rem;
  padding-bottom: 1.1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border);
}
.article-image { margin: 0 0 1.4rem; }
.article-image img { border-radius: var(--radius); width: 100%; }
.article-lead {
  font-size: 1.12rem; font-weight: 500; color: var(--green-900);
  background: var(--green-100); border-inline-start: 4px solid var(--green-500);
  border-radius: 10px; padding: .9rem 1.2rem; margin-bottom: 1.4rem;
}
.article-body { font-size: 1.08rem; }
.article-body p { margin-bottom: 1.05rem; }
.article-body h2, .article-body h3 { margin: 1.75rem 0 .8rem; font-weight: 800; }
.article-body h2 { font-size: 1.4rem; padding-inline-start: .7rem; border-inline-start: 4px solid var(--gold); }
.article-body img { border-radius: var(--radius); margin: 1.1rem 0; }
.article-body ul, .article-body ol { margin: 0 1.5rem 1.05rem; }
.article-body a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  border-inline-start: 4px solid var(--green-500); padding: .7rem 1.2rem;
  background: var(--bg); border-radius: 10px; margin-bottom: 1.05rem; color: var(--muted);
}

/* ---------- Page head / misc ---------- */
.page-head { margin: 2.25rem 0 1.5rem; }
.page-head h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: .4rem; }
.page-desc { color: var(--muted); max-width: 640px; }
.empty-note { color: var(--muted); margin: 2.5rem 0; text-align: center; }
.search-form-lg input { width: 100%; max-width: 500px; font-size: 1rem; padding: .75rem 1.2rem; margin-top: .75rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin: 2.5rem 0; font-weight: 700; }
.pagination a {
  background: var(--card); border: 1.5px solid var(--border); border-radius: 999px; padding: .45rem 1.2rem;
  transition: all .15s;
}
.pagination a:hover { border-color: var(--green-700); background: var(--green-100); }
.pagination span { color: var(--muted); }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-code {
  font-size: 6rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--green-500), var(--green-900));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { margin: .75rem 0 .4rem; font-weight: 800; }
.btn {
  display: inline-block; background: var(--green-700); color: #fff; border-radius: 999px;
  padding: .65rem 1.7rem; font-weight: 800; margin-top: 1.25rem; transition: background .15s;
}
.btn:hover { background: var(--green-800); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfe2da; margin-top: 3.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding: 2.75rem 1rem 2rem;
}
.footer-about p { font-size: .92rem; max-width: 380px; margin: .9rem 0 1.1rem; }
.footer-logo {
  height: 88px; width: auto; background: #fff; border-radius: 12px; padding: .5rem .8rem;
}
.footer-social { display: flex; gap: .7rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; transition: all .15s;
}
.footer-social a:hover { background: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links h3 {
  color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: .5rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--gold); align-self: flex-start;
}
.footer-links a { color: #cfe2da; font-size: .92rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { min-height: 320px; }
  .hero-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header-inner { gap: .5rem; padding: .5rem .75rem; }
  .brand-logo { height: 50px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
  .main-nav a { white-space: nowrap; }
  .header-tools { margin-inline-start: auto; }
  .search-form input { min-width: 130px; width: 130px; }
  .hero-title { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

/* ---------- Geo guide ---------- */
.geo-placeholder {
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  background: linear-gradient(135deg, var(--green-100), #d3e8de);
}
.geo-head { display: flex; gap: 1.5rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.facts-box {
  display: flex; gap: 1.5rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .9rem 1.3rem; box-shadow: var(--shadow); flex-shrink: 0;
}
.facts-box dt { font-size: .76rem; color: var(--muted); font-weight: 700; }
.facts-box dd { font-weight: 800; color: var(--green-800); }
.section-title-sm {
  font-size: 1.15rem; font-weight: 800; margin-bottom: .8rem;
  padding-inline-start: .6rem; border-inline-start: 4px solid var(--gold);
}
.guide-content { margin: 1.5rem 0; }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.continent-chips { margin: 1.6rem 0 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--card); border: 1.5px solid var(--border); border-radius: 999px;
  padding: .45rem 1.05rem; font-weight: 700; font-size: .92rem; color: var(--text);
  transition: all .15s;
}
.chip:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-100); }
.chip-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip-active:hover { background: var(--green-800); color: #fff; }
.chip-count {
  background: var(--green-100); color: var(--green-700); border-radius: 999px;
  font-size: .72rem; padding: 0 .5rem; font-weight: 800;
}
.chip-active .chip-count { background: rgba(255,255,255,.2); color: #fff; }
.place-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.place-actions .btn { margin-top: 0; }
.btn-outline { background: transparent; color: var(--green-700); border: 2px solid var(--green-700); }
.btn-outline:hover { background: var(--green-100); color: var(--green-800); }
.guide-backlink { margin-top: 1.5rem; font-weight: 700; }

/* City guide box inside articles */
.city-ref-box {
  display: flex; gap: .9rem; align-items: center;
  background: var(--green-100); border: 1px solid #cbe5d9; border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-top: 1.5rem;
}
.city-ref-box span { font-size: 1.6rem; }
.city-ref-box p { margin: 0; }

/* ---------- Correction request ---------- */
.correction { margin-top: 1.75rem; border-top: 1px dashed var(--border); padding-top: 1.1rem; }
.correction summary {
  cursor: pointer; font-weight: 700; color: var(--muted); font-size: .92rem;
  list-style: none; display: inline-block;
}
.correction summary:hover { color: var(--gold); }
.correction-form { margin-top: 1rem; background: var(--bg); border-radius: var(--radius); padding: 1.1rem; }
.correction-form label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .8rem; }
.correction-form textarea, .correction-form input[type=email] {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: .6rem .9rem;
  font-family: inherit; font-size: .95rem; margin-top: .3rem; background: #fff;
}
.correction-form .btn { margin-top: .25rem; }
.correction-intro { color: var(--muted); font-size: .88rem; margin-bottom: .9rem; }
.correction-thanks {
  background: var(--green-100); border: 1px solid #bfe5d6; color: var(--green-800);
  border-radius: 10px; padding: .8rem 1.1rem; font-weight: 700;
}
.correction-error {
  background: #fdeceb; border: 1px solid #f5c9c4; color: #93261a;
  border-radius: 10px; padding: .6rem 1rem; font-weight: 700; margin-bottom: .75rem;
}
.hp-field { position: fixed !important; top: -200px !important; inset-inline-start: 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }

/* Facts box refinements (v3) */
.facts-box { flex-wrap: wrap; }
.facts-box div { min-width: 90px; }
#live-temp { color: var(--gold); }

/* ---------- Country hero (v4) ---------- */
.country-hero {
  display: grid; grid-template-columns: 340px 1fr; gap: 1.75rem; align-items: start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; margin: 1.75rem 0;
}
.country-media img {
  width: 100%; border-radius: 10px; border: 1px solid var(--border);
  aspect-ratio: 3/2; object-fit: cover;
}
.country-info h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .4rem; }
.stats-chips { display: flex; gap: .6rem; flex-wrap: wrap; margin: .9rem 0 1.1rem; }
.stat-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--green-100); color: var(--green-800); border-radius: 999px;
  padding: .35rem 1rem; font-size: .88rem; font-weight: 700; transition: all .15s;
}
.stat-chip:hover { background: var(--green-700); color: #fff; }
.stat-chip strong { font-size: 1.05rem; }
.facts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem;
}
.fact-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: .6rem .9rem;
}
.fact-card dt { font-size: .74rem; color: var(--muted); font-weight: 700; }
.fact-card dd { font-weight: 800; color: var(--green-800); font-size: .95rem; }
.fact-temp { background: linear-gradient(135deg, var(--green-100), #fdf6e8); border-color: var(--gold-light); }
.fact-temp dd { color: var(--gold); font-size: 1.25rem; }
.fact-wide { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .country-hero { grid-template-columns: 1fr; padding: 1.1rem; }
  .country-media img { max-height: 220px; }
}
.country-hero.no-media { grid-template-columns: 1fr; }

/* Weather card (v5) */
.weather-card { min-width: 190px; }
.weather-card dd { line-height: 1.2; }
.weather-extra {
  display: flex; gap: .7rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted); font-weight: 700; margin-top: .3rem;
}
.weather-cond { color: var(--green-800); }
.osm-credit { opacity: .75; font-size: .78rem; } .osm-credit a { color: var(--gold-light); }
.version-tag { opacity: .6; font-size: .78rem; }

/* ---------- Place hero (v7 redesign) ---------- */
.place-hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.75rem; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; margin: 1.75rem 0;
}
.place-media { position: relative; }
.place-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; display: block; }
.place-star {
  position: absolute; top: .8rem; inset-inline-start: .8rem;
  background: var(--gold); color: #fff; font-size: .78rem; font-weight: 800;
  border-radius: 999px; padding: .2rem .8rem;
}
.place-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.4; margin: .6rem 0 .5rem; }
.place-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.place-lead { color: var(--muted); font-size: 1.02rem; margin-bottom: .8rem; }
.place-address { font-weight: 700; color: var(--green-800); font-size: .92rem; margin-bottom: 1rem; }
.place-address a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.place-address a:hover { color: var(--green-700); }
.place-content { margin-top: 0; }
.section-more { margin-top: 1.25rem; text-align: center; }

/* ---------- Comments ---------- */
.comments-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; margin: 2rem 0;
}
.comments-list { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0 1.5rem; }
.comment { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.comment:last-child { border-bottom: 0; }
.comment-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.comment-head time { color: var(--muted); font-size: .78rem; }
.comment p { color: var(--text); font-size: .95rem; }
.comment-form { border-top: 2px solid var(--border); padding-top: 1.25rem; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; margin-bottom: .75rem; }
.comment-form label { font-weight: 700; font-size: .88rem; }
.comment-form input[type=text], .comment-form textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: .6rem .9rem;
  font-family: inherit; font-size: .95rem; margin-top: .3rem; background: var(--bg);
}
.comment-form .btn { margin: 0 0 .5rem; }
.hint-note { display: block; color: var(--muted); font-size: .82rem; }

@media (max-width: 800px) {
  .place-hero { grid-template-columns: 1fr; padding: 1.1rem; }
  .comment-form-grid { grid-template-columns: 1fr; }
}

/* ---------- City sub-navigation (mini-site feel) ---------- */
.city-nav {
  display: flex; align-items: center; gap: .75rem;
  background: linear-gradient(120deg, var(--green-800), var(--green-700));
  border-radius: var(--radius); padding: .55rem .9rem; margin: 1.25rem 0;
  box-shadow: var(--shadow); overflow: hidden;
}
.city-nav-brand {
  color: #fff; font-weight: 800; font-size: .98rem; white-space: nowrap;
  padding-inline-end: .75rem; border-inline-end: 1px solid rgba(255,255,255,.25);
}
.city-nav-brand:hover { color: var(--gold-light); }
.city-nav-links { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.city-nav-links::-webkit-scrollbar { display: none; }
.city-nav-links a {
  color: #d9e8e1; font-weight: 700; font-size: .88rem; white-space: nowrap;
  padding: .35rem .8rem; border-radius: 999px; transition: all .15s;
}
.city-nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.city-nav-links a.active { background: var(--gold); color: #fff; }

/* ---------- Prayer times (compact strip inside city hero) ---------- */
.prayer-strip {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--green-100), #fdf6e8);
  border: 1px solid var(--gold-light); border-radius: 12px;
  padding: .55rem .9rem; margin-top: .8rem;
}
.prayer-strip-title { font-size: .8rem; font-weight: 800; color: var(--green-800); white-space: nowrap; }
.prayer-items { display: flex; gap: .35rem .8rem; flex-wrap: wrap; }
.p-item { display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap; }
.p-item b { font-size: .72rem; color: var(--muted); font-weight: 700; }
.p-item i { font-style: normal; font-weight: 800; font-size: .82rem; color: var(--green-800); direction: ltr; }
.p-next b { color: var(--gold); }
.p-next b::before { content: '● '; font-size: .55rem; vertical-align: middle; }
.p-next i { color: var(--gold); }

/* Mobile refinements (v8) */
@media (max-width: 760px) {
  .city-nav { padding: .45rem .7rem; margin: 1rem 0; }
  .city-nav-brand { font-size: .88rem; }
  .city-nav-links a { font-size: .82rem; padding: .3rem .65rem; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .fact-card { padding: .5rem .7rem; }
  .fact-card dd { font-size: .88rem; }
  .fact-temp dd { font-size: 1.05rem; }
  .stats-chips { gap: .4rem; }
  .stat-chip { font-size: .8rem; padding: .3rem .8rem; }
  .prayer-strip { padding: .5rem .7rem; gap: .5rem; }
  .prayer-strip-title { width: 100%; }
  .prayer-items { justify-content: space-between; width: 100%; }
}

/* Compact article image for topic pages (v8.1) */
.article-image-sm { max-width: 400px; }
.article-image-sm img { max-height: 220px; width: auto; max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 600px) {
  .article-image-sm { max-width: 100%; }
  .article-image-sm img { max-height: 180px; }
}

/* ==================== City page portal redesign (v9) ==================== */
.cityx-hero {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-900), var(--green-500));
  background-size: cover; background-position: center;
  color: #fff; margin: 1.25rem 0 0;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 6rem);
  box-shadow: var(--shadow);
}
.cityx-hero-inner { max-width: 640px; }
.cityx-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; line-height: 1.35; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.cityx-lead { color: #e2efe9; font-size: clamp(.95rem, 2.2vw, 1.1rem); margin: .6rem 0 1rem; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.cityx-chips .stat-chip { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.cityx-chips .stat-chip:hover { background: var(--gold); }

.cityx-facts {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(11,61,46,.12);
  margin: -2.75rem 1rem 0; position: relative; z-index: 2;
  padding: 1rem 1.25rem;
}
.fact-wide2 { grid-column: span 2; }

/* بلاطات التصنيفات */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: 1.4rem 1rem; border-radius: var(--radius); text-align: center;
  color: var(--green-900); border: 1px solid var(--border);
  background: linear-gradient(160deg, #ffffff, var(--green-100));
  transition: transform .18s, box-shadow .18s;
}
.cat-tile:nth-child(2) { background: linear-gradient(160deg, #ffffff, #fdf3e0); }
.cat-tile:nth-child(3) { background: linear-gradient(160deg, #ffffff, #e8f2f8); }
.cat-tile:nth-child(4) { background: linear-gradient(160deg, #ffffff, #f3ecf9); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--green-700); }
.cat-tile-icon { font-size: 2.1rem; line-height: 1; }
.cat-tile strong { font-size: 1.02rem; font-weight: 800; }
.cat-tile-count { font-size: .78rem; color: var(--muted); font-weight: 700; }

/* شريط الأماكن المنزلق */
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head-row .section-title { flex: 1; }
.btn-sm2 { padding: .4rem 1rem; font-size: .82rem; margin: 0 0 1.25rem; }
.scroll-strip {
  display: flex; gap: 1rem; overflow-x: auto; padding: .25rem .25rem 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.scroll-strip::-webkit-scrollbar { height: 6px; }
.scroll-strip::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }
.strip-card { flex: 0 0 250px; scroll-snap-align: start; }
.strip-card .card-img { aspect-ratio: 16/10; }

/* نطاق الصفحات الخاصة */
.topics-band {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  border-radius: var(--radius); padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
  margin: 2.5rem 0; color: #fff; box-shadow: var(--shadow);
}
.topics-band-head h2 { font-size: 1.35rem; font-weight: 800; }
.topics-band-head p { color: #bcd9cd; font-size: .9rem; margin: .25rem 0 1.25rem; }
.topics-band-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; }
.topic-glass {
  display: flex; flex-direction: column; gap: .3rem; position: relative;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 1rem 1.1rem; color: #fff; transition: background .18s, transform .18s;
}
.topic-glass:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); color: #fff; }
.topic-glass strong { font-size: 1rem; font-weight: 800; }
.topic-glass span { color: #cfe5da; font-size: .82rem; }
.topic-glass em { position: absolute; inset-inline-end: .9rem; top: .9rem; font-style: normal; color: var(--gold-light); font-weight: 800; }

/* عن المدينة */
.about-panel {
  background: linear-gradient(180deg, #ffffff, #f3faf6);
  border: 1px solid var(--border); border-inline-start: 5px solid var(--gold);
  border-radius: var(--radius); padding: 1.5rem clamp(1.25rem, 3vw, 2rem); margin: 2.5rem 0;
  box-shadow: var(--shadow);
}

/* الأخبار بأسلوب الصحيفة */
.news-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-row { display: flex; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); color: inherit; transition: background .15s; }
.news-row:last-child { border-bottom: 0; }
.news-row:hover { background: var(--green-100); }
.news-thumb { width: 92px; height: 68px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.news-row-body h3 { font-size: 1rem; font-weight: 800; line-height: 1.5; }
.news-row:hover h3 { color: var(--green-700); }
.news-row-body p { color: var(--muted); font-size: .85rem; margin: .15rem 0; }
.news-row-body time { color: var(--gold); font-size: .75rem; font-weight: 700; }

@media (max-width: 700px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .cat-tile { padding: 1rem .7rem; }
  .cityx-facts { margin: -2.25rem .5rem 0; padding: .8rem .9rem; }
  .fact-wide2 { grid-column: 1 / -1; }
  .strip-card { flex-basis: 210px; }
  .news-row { padding: .8rem .9rem; }
  .news-thumb { width: 74px; height: 56px; }
}

/* City nav dropdowns (v10) */
.city-nav { overflow: visible; }
.city-nav-links { overflow: visible; flex-wrap: wrap; }
.nav-dd { position: relative; }
.nav-dd-btn {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: #d9e8e1; font-weight: 700; font-size: .88rem; white-space: nowrap;
  padding: .35rem .8rem; border-radius: 999px; transition: all .15s;
  display: inline-flex; align-items: center; gap: .3rem;
}
.nav-dd-btn i { font-style: normal; font-size: .6rem; transition: transform .15s; }
.nav-dd.open .nav-dd-btn i { transform: rotate(180deg); }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { background: rgba(255,255,255,.12); color: #fff; }
.dd-active .nav-dd-btn { background: var(--gold); color: #fff; }
.nav-dd-menu {
  display: none; position: absolute; top: calc(100% + 10px); inset-inline-start: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(11,61,46,.18); padding: .4rem; min-width: 210px; z-index: 90;
}
.nav-dd.open .nav-dd-menu { display: block; }
.nav-dd-menu::before {
  content: ''; position: absolute; top: -6px; inset-inline-start: 1.4rem;
  width: 12px; height: 12px; background: #fff; transform: rotate(45deg);
  border-top: 1px solid var(--border); border-inline-start: 1px solid var(--border);
}
.nav-dd-menu a {
  display: flex; align-items: center; gap: .5rem;
  color: var(--text); font-weight: 700; font-size: .9rem;
  padding: .5rem .8rem; border-radius: 8px; white-space: nowrap;
}
.nav-dd-menu a:hover { background: var(--green-100); color: var(--green-700); }
.nav-dd-menu a.active { background: var(--green-100); color: var(--green-700); }
.dd-count { margin-inline-start: auto; background: var(--green-100); color: var(--green-700); border-radius: 999px; font-size: .72rem; padding: 0 .5rem; font-weight: 800; }
@media (max-width: 760px) {
  .nav-dd-menu { min-width: 180px; }
}

/* ==================== v11: ratings + cohesive city page ==================== */
/* شد المسافات - كل شيء ملموم */
.section { margin: 1.6rem 0; }
.cityx-hero { margin-bottom: 0; }
.cityx-facts { margin-bottom: 1.6rem; }
.city-nav { margin: 1rem 0; }

/* كتلة تعرف على المدينة (النبذة + الصفحات التعريفية معاً) */
.about-block {
  background: var(--card); border: 1px solid var(--border);
  border-inline-start: 5px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.4rem clamp(1.1rem, 3vw, 1.9rem); margin: 1.6rem 0;
}
.about-block-head h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: .9rem; }
.about-block-content { font-size: 1rem; }
.about-block-content h2 { font-size: 1.1rem; border-inline-start-width: 3px; }
.about-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; margin-top: 1.1rem; }
.about-topic-pill {
  position: relative; display: flex; flex-direction: column; gap: .15rem;
  background: linear-gradient(120deg, var(--green-800), var(--green-700));
  border-radius: 12px; padding: .85rem 2.2rem .85rem 1rem; color: #fff;
  transition: transform .15s, box-shadow .15s;
}
[dir="rtl"] .about-topic-pill { padding: .85rem 1rem .85rem 2.2rem; }
.about-topic-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: #fff; }
.about-topic-pill strong { font-size: .95rem; font-weight: 800; }
.about-topic-pill span { color: #cfe5da; font-size: .78rem; }
.about-topic-pill em { position: absolute; inset-inline-end: .8rem; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--gold-light); font-weight: 800; }

/* شارة التقييم */
.rate-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .25rem;
  background: #fdf6e8; border: 1px solid var(--gold-light); color: #8a6a2f;
  border-radius: 999px; font-size: .78rem; font-weight: 800; padding: .1rem .6rem;
}
.rate-badge i { font-style: normal; font-weight: 700; color: var(--muted); }

/* ودجت التقييم في صفحة المكان */
.rate-box {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  background: #fdf9f0; border: 1px solid var(--gold-light); border-radius: 12px;
  padding: .5rem .9rem; margin: .6rem 0 .9rem; font-size: .9rem;
}
.rate-summary b { color: var(--gold); font-size: 1.05rem; }
.rate-summary.rate-none b { color: var(--muted); }
.rate-cnt { color: var(--muted); font-style: normal; font-size: .8rem; }
.rate-divider { color: var(--border); }
.rate-label { font-weight: 700; font-size: .82rem; color: var(--muted); }
.rate-stars { display: inline-flex; direction: ltr; }
.rate-star {
  background: none; border: 0; cursor: pointer; font-size: 1.35rem; line-height: 1;
  color: #d8d2c2; padding: 0 .1rem; transition: color .1s, transform .1s;
}
.rate-star.lit { color: var(--gold); }
.rate-star:hover { transform: scale(1.15); }
.rate-msg { font-style: normal; color: var(--green-700); font-weight: 700; font-size: .8rem; }

/* استكشف (يمين) مقابل تعرف على المدينة (يسار) - v11.1 */
.city-duo {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 1.25rem;
  align-items: start; margin: 1.6rem 0;
}
.city-duo .duo-col { margin: 0; }
.city-duo .about-block { margin: 0; }
.duo-tiles { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.duo-tiles .cat-tile { padding: 1.1rem .8rem; }
.city-duo .about-block-content {
  font-size: .95rem; max-height: 340px; overflow: hidden; position: relative;
}
.city-duo .about-block-content::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--card));
}
@media (max-width: 860px) {
  .city-duo { grid-template-columns: 1fr; }
  .city-duo .about-block-content { max-height: none; }
  .city-duo .about-block-content::after { display: none; }
}
.about-block-content.expanded { max-height: none !important; }
.about-block-content.expanded::after { display: none; }
.about-more {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: var(--green-700); font-weight: 800; font-size: .85rem; padding: .4rem 0 0;
}
.about-more:hover { color: var(--gold); }
@media (max-width: 860px) { .about-more { display: none; } }

/* ==================== v12: الرئيسية الموسوعية ==================== */
.home-hero {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(216,189,138,.28), transparent 55%),
    radial-gradient(ellipse at 85% 110%, rgba(76,175,142,.25), transparent 55%),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  border-radius: 18px; color: #fff; text-align: center;
  padding: clamp(2.2rem, 6vw, 4rem) 1.2rem;
  margin: 1.2rem 0 1.6rem;
}
.home-hero-inner { max-width: 720px; margin: 0 auto; }
.hh-eyebrow {
  display: inline-block; background: rgba(255,255,255,.14); backdrop-filter: blur(4px);
  color: var(--gold-light); font-weight: 800; font-size: .82rem;
  border: 1px solid rgba(216,189,138,.45); border-radius: 999px; padding: .32rem 1rem; margin-bottom: 1rem;
}
.home-hero h1 {
  font-size: clamp(1.6rem, 4.6vw, 2.7rem); font-weight: 800; line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0,0,0,.25); margin-bottom: .6rem;
}
.hh-sub { color: rgba(255,255,255,.88); font-size: clamp(.95rem, 2.2vw, 1.1rem); line-height: 1.9; margin-bottom: 1.3rem; }
.hh-stats { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hh-stat {
  background: rgba(255,255,255,.12); backdrop-filter: blur(4px); color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  padding: .55rem 1.1rem; font-size: .85rem; display: flex; flex-direction: column; gap: .1rem; min-width: 86px;
}
.hh-stat strong { font-size: 1.35rem; color: var(--gold-light); }
.hh-stat:hover { background: rgba(255,255,255,.2); color: #fff; }
.hh-actions { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.btn-gold {
  background: var(--gold); color: #fff; font-weight: 800; border-radius: 999px;
  padding: .65rem 1.7rem; font-size: .95rem; transition: background .15s;
}
.btn-gold:hover { background: var(--gold-light); color: var(--green-900); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.55); color: #fff; font-weight: 700;
  border-radius: 999px; padding: .65rem 1.7rem; font-size: .95rem;
}
.btn-ghost:hover { background: #fff; color: var(--green-800); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sec-more { font-weight: 800; font-size: .88rem; white-space: nowrap; }
.sec-note { color: var(--muted); font-size: .85rem; }

.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
.season-card {
  background: #fff; border: 1px solid var(--line, #e3ebe7); border-radius: 14px;
  padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .3rem;
  transition: transform .15s, box-shadow .15s; color: inherit;
}
.season-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,61,46,.12); color: inherit; }
.season-emoji { font-size: 1.7rem; }
.season-name { font-weight: 800; font-size: 1.05rem; color: var(--green-800); }
.season-desc { color: var(--muted); font-size: .85rem; line-height: 1.7; }

.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.guide-row {
  display: flex; align-items: center; gap: .8rem; background: #fff;
  border: 1px solid var(--line, #e3ebe7); border-radius: 12px; padding: .55rem .7rem;
  transition: border-color .15s, box-shadow .15s; color: inherit;
}
.guide-row:hover { border-color: var(--green-500); box-shadow: 0 6px 16px rgba(11,61,46,.1); color: inherit; }
.guide-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.guide-thumb-ph { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--green-100); }
.guide-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.guide-info strong { font-size: .93rem; font-weight: 800; color: var(--green-900); line-height: 1.5; }
.guide-info small { color: var(--muted); font-size: .78rem; }

@media (max-width: 640px) {
  .hh-stat { min-width: 72px; padding: .45rem .8rem; }
  .hh-stat strong { font-size: 1.1rem; }
  .guides-grid { grid-template-columns: 1fr; }
}

/* ==================== v13: السلايدر الافتتاحي ==================== */
.hero-slider {
  position: relative; border-radius: 18px; overflow: hidden;
  height: clamp(300px, 46vw, 470px); margin: 1.2rem 0 1.4rem;
  background: var(--green-900);
}
.hs-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease; display: flex; align-items: flex-end;
  color: #fff; pointer-events: none;
}
.hs-slide.is-active { opacity: 1; pointer-events: auto; }
.hs-slide:hover { color: #fff; }
.hs-overlay {
  width: 100%; padding: clamp(1.2rem, 4vw, 2.4rem);
  background: linear-gradient(to top, rgba(7,35,26,.88) 0%, rgba(7,35,26,.35) 55%, transparent 100%);
  display: flex; flex-direction: column; gap: .35rem;
}
.hs-tagline {
  color: var(--gold-light); font-weight: 700; font-size: clamp(.85rem, 2vw, 1.05rem);
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hs-city {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 800; line-height: 1.3;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hs-meta { color: rgba(255,255,255,.85); font-size: clamp(.8rem, 1.8vw, .95rem); }
.hs-cta {
  margin-top: .5rem; align-self: flex-start; background: var(--gold); color: #fff;
  font-weight: 800; font-size: .85rem; border-radius: 999px; padding: .45rem 1.2rem;
  transition: background .15s;
}
.hs-slide:hover .hs-cta { background: var(--gold-light); color: var(--green-900); }
.hs-dots {
  position: absolute; bottom: .9rem; inset-inline-end: 1.2rem; display: flex; gap: .45rem; z-index: 3;
}
.hs-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: background .2s, transform .2s; padding: 0;
}
.hs-dot.is-active { background: var(--gold-light); transform: scale(1.3); }
.hs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(7,35,26,.45); color: #fff; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .15s; padding-bottom: 4px;
}
.hs-arrow:hover { background: var(--gold); }
.hs-prev { inset-inline-start: .8rem; }
.hs-next { inset-inline-end: .8rem; }
[dir="rtl"] .hs-arrow { transform: translateY(-50%) scaleX(-1); }
@media (max-width: 640px) {
  .hero-slider { height: 320px; border-radius: 14px; }
  .hs-arrow { display: none; }
  .hs-dots { inset-inline-end: 50%; transform: translateX(50%); }
  [dir="rtl"] .hs-dots { transform: translateX(-50%); }
}

/* ==================== v14: البوابة (طراز غرف التحرير الكبرى) ==================== */
.ticker {
  display: flex; align-items: center; gap: .8rem; overflow: hidden;
  background: var(--green-900); color: #fff; border-radius: 10px;
  padding: .45rem .8rem; margin: 1rem 0 .9rem; font-size: .85rem;
}
.ticker-label {
  flex-shrink: 0; background: var(--gold); color: #fff; font-weight: 800;
  border-radius: 6px; padding: .18rem .7rem; font-size: .78rem;
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track { display: inline-flex; align-items: center; gap: 1.2rem; white-space: nowrap; animation: tickmove 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { color: #fff; font-weight: 500; }
.ticker-item:hover { color: var(--gold-light); }
.ticker-sep { color: var(--gold-light); font-size: .7rem; }
@keyframes tickmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.portal-top { display: grid; grid-template-columns: 2.1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; align-items: stretch; }
.portal-top .hero-slider { margin: 0; height: auto; min-height: 380px; }
.portal-rail { display: flex; flex-direction: column; gap: 1rem; }

.wx-board {
  background: #fff; border: 1px solid var(--line, #e3ebe7); border-radius: 14px;
  padding: .9rem 1rem; flex: 1; display: flex; flex-direction: column;
}
.rail-title { font-size: .95rem; font-weight: 800; color: var(--green-800); margin-bottom: .6rem; }
.wx-rows { display: flex; flex-direction: column; flex: 1; }
.wx-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .42rem .2rem; border-bottom: 1px dashed var(--green-100); color: inherit;
}
.wx-row:last-child { border-bottom: 0; }
.wx-row:hover .wx-city { color: var(--green-700); }
.wx-city { font-weight: 700; font-size: .88rem; }
.wx-temp { font-weight: 800; color: var(--green-800); font-size: .92rem; white-space: nowrap; }
.wx-note { color: var(--muted); font-size: .72rem; margin-top: .5rem; }

.pitch-mini {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  border-radius: 14px; color: #fff; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.pitch-mini > strong { font-size: 1.02rem; font-weight: 800; line-height: 1.6; }
.pitch-stats { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: rgba(255,255,255,.85); }
.pitch-stats b { color: var(--gold-light); font-size: .95rem; }
.btn-sm { padding: .45rem 1.2rem; font-size: .85rem; align-self: flex-start; }

.spot-card {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line, #e3ebe7); border-radius: 16px;
}
.spot-media { position: relative; min-height: 300px; }
.spot-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-flag {
  position: absolute; top: .9rem; inset-inline-start: .9rem;
  background: rgba(7,35,26,.72); color: #fff; backdrop-filter: blur(4px);
  font-weight: 700; font-size: .8rem; border-radius: 999px; padding: .3rem .9rem;
}
.spot-body { padding: 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.spot-name a { font-size: 1.6rem; font-weight: 800; color: var(--green-900); }
.spot-name a:hover { color: var(--green-700); }
.spot-facts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); font-size: .82rem; }
.spot-lede { font-weight: 700; color: var(--green-800); line-height: 1.9; }
.spot-extract { color: var(--muted); line-height: 2; font-size: .92rem; }
.spot-places { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.spot-places-label { font-weight: 800; font-size: .82rem; color: var(--green-800); }
.spot-places .chip { font-size: .78rem; padding: .25rem .75rem; }

.edit-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.edit-col {
  background: #fff; border: 1px solid var(--line, #e3ebe7); border-radius: 14px;
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem;
}
.col-title {
  font-size: 1rem; font-weight: 800; color: var(--green-900);
  border-bottom: 2px solid var(--gold-light); padding-bottom: .5rem; margin-bottom: .2rem;
}
.col-row { display: flex; gap: .6rem; align-items: center; color: inherit; padding: .2rem 0; }
.col-row:hover strong { color: var(--green-700); }
.col-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.col-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.col-info strong { font-size: .85rem; font-weight: 700; color: var(--ink, #1c2b26); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col-info small { color: var(--muted); font-size: .74rem; }

@media (max-width: 900px) {
  .portal-top { grid-template-columns: 1fr; }
  .portal-top .hero-slider { min-height: 0; height: clamp(280px, 50vw, 400px); }
  .portal-rail { flex-direction: row; }
  .portal-rail > * { flex: 1; }
  .edit-cols { grid-template-columns: 1fr; }
  .spot-card { grid-template-columns: 1fr; }
  .spot-media { min-height: 220px; }
}
@media (max-width: 640px) {
  .portal-rail { flex-direction: column; }
  .ticker { font-size: .8rem; }
}

/* ==================== v16: الهيدر المتجاوب الجديد ==================== */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(11,61,46,.08); }
.header-inner { flex-wrap: nowrap; }
.main-nav a { font-weight: 700; }
body.no-scroll { overflow: hidden; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 0; background: var(--green-100);
  border-radius: 10px; cursor: pointer; padding: 0 10px; flex-shrink: 0;
}
.nav-burger span {
  display: block; height: 2.6px; border-radius: 2px; background: var(--green-800);
  transition: transform .25s, opacity .2s;
}
.menu-open .nav-burger span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

.mobile-panel {
  display: none; border-top: 1px solid var(--green-100);
  background: #fff; padding: 1rem;
  max-height: calc(100vh - 70px); overflow-y: auto;
}
.menu-open .mobile-panel { display: block; animation: panelDown .22s ease; }
@keyframes panelDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.mobile-search { display: flex; gap: .5rem; margin-bottom: .9rem; }
.mobile-search input {
  flex: 1; border: 1.5px solid var(--green-100); border-radius: 10px;
  padding: .65rem .9rem; font-family: inherit; font-size: .95rem; background: var(--bg);
}
.mobile-search input:focus { outline: none; border-color: var(--green-500); }
.mobile-search button {
  width: 46px; border: 0; border-radius: 10px; background: var(--green-700);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mobile-search svg { width: 20px; height: 20px; }

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  padding: .8rem .6rem; font-weight: 700; font-size: 1rem; color: var(--green-900);
  border-bottom: 1px solid #f0f5f2; border-radius: 8px;
}
.mobile-nav a:active, .mobile-nav a:hover { background: var(--green-100); color: var(--green-700); }
.mobile-lang { padding-top: .8rem; }
.mobile-lang a {
  display: inline-block; font-weight: 800; font-size: .9rem; color: var(--green-700);
  border: 1.5px solid var(--green-700); border-radius: 999px; padding: .4rem 1.1rem;
}

/* الجوال: صف واحد نظيف — شعار + برغر، والباقي في اللوحة */
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .header-inner { gap: .6rem; padding: .45rem .9rem; }
  .site-header .main-nav { display: none; }
  .site-header .header-tools .search-form { display: none; }
  .site-header .header-tools .lang-switch { display: none; }
  .brand { margin-inline-start: auto; margin-inline-end: auto; }
  .brand-logo { height: 46px; }
  .header-tools { margin-inline-start: 0; width: 42px; }
}

/* ==================== v17: قائمة بروح — ميغا منيو الوجهات ==================== */
.main-nav a { position: relative; }
.main-nav > a::after, .nav-item > a::after {
  content: ''; position: absolute; bottom: .2rem; inset-inline-start: .8rem; inset-inline-end: .8rem;
  height: 2.5px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .2s; transform-origin: center;
}
.main-nav > a:hover::after, .nav-item > a:hover::after { transform: scaleX(1); }
.nav-caret { font-size: .7rem; color: var(--gold); transition: transform .2s; display: inline-block; }
.has-mega:hover .nav-caret { transform: rotate(180deg); }

.nav-item { position: relative; }
.nav-item > a {
  display: inline-block; padding: .55rem .8rem; border-radius: 8px;
  font-weight: 700; color: var(--ink, #1c2b26);
}
.nav-item > a:hover { color: var(--green-700); background: var(--green-100); }

.mega-menu {
  position: absolute; top: 100%; inset-inline-start: 50%; transform: translateX(50%) translateY(8px);
  width: min(640px, 92vw); background: #fff; border: 1px solid var(--green-100);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(11,61,46,.18);
  padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s;
  z-index: 60;
}
[dir="rtl"] .mega-menu { transform: translateX(50%) translateY(8px); }
.has-mega:hover .mega-menu, .has-mega:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateX(50%) translateY(0);
}
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.mega-link {
  display: flex; flex-direction: column; gap: .1rem; padding: .5rem .65rem;
  border-radius: 10px; transition: background .15s;
}
.mega-link:hover { background: var(--green-100); }
.mega-link strong { font-size: .88rem; font-weight: 700; color: var(--green-900); }
.mega-link:hover strong { color: var(--green-700); }
.mega-link small { color: var(--muted); font-size: .72rem; }
.mega-all {
  display: block; text-align: center; margin-top: .6rem; padding: .5rem;
  border-top: 1px dashed var(--green-100); font-weight: 800; font-size: .85rem; color: var(--gold);
}
.mega-all:hover { color: var(--green-700); }

.mobile-countries { padding-top: .9rem; border-top: 1px solid #f0f5f2; margin-top: .6rem; }
.mc-title { display: block; font-weight: 800; font-size: .9rem; color: var(--green-900); margin-bottom: .55rem; }
.mc-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.mc-chips a {
  background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: .82rem;
  border-radius: 999px; padding: .35rem .85rem;
}
.mc-chips a:active { background: var(--green-700); color: #fff; }

@media (max-width: 860px) { .mega-menu { display: none; } }

/* ==================== v18: ركن الأخبار الصحفي ==================== */
.newsroom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.nr-lead {
  position: relative; border-radius: 14px; overflow: hidden; min-height: 280px;
  display: flex; align-items: flex-end; background: var(--green-900); color: #fff;
}
.nr-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nr-lead-body {
  position: relative; padding: 1.2rem 1.3rem; width: 100%;
  background: linear-gradient(to top, rgba(7,35,26,.92), rgba(7,35,26,.4) 60%, transparent);
  display: flex; flex-direction: column; gap: .35rem;
}
.nr-badge {
  align-self: flex-start; background: #c0392b; color: #fff; font-weight: 800;
  font-size: .72rem; border-radius: 6px; padding: .18rem .6rem; letter-spacing: .02em;
}
.nr-lead-body strong { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 800; line-height: 1.6; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.nr-lead-body small { color: rgba(255,255,255,.85); line-height: 1.8; }
.nr-lead:hover strong { color: var(--gold-light); }
.nr-side { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e3ebe7); border-radius: 14px; padding: .5rem .9rem; }
.nr-row {
  display: flex; align-items: baseline; gap: .7rem; padding: .65rem .1rem;
  border-bottom: 1px dashed var(--green-100); color: inherit;
}
.nr-row:last-child { border-bottom: 0; }
.nr-date {
  flex-shrink: 0; font-weight: 800; font-size: .72rem; color: var(--gold);
  background: #faf6ee; border-radius: 6px; padding: .15rem .5rem;
}
.nr-title { font-weight: 700; font-size: .9rem; line-height: 1.65; color: var(--ink, #1c2b26); }
.nr-row:hover .nr-title { color: var(--green-700); }
@media (max-width: 800px) {
  .newsroom { grid-template-columns: 1fr; }
  .nr-lead { min-height: 220px; }
}

/* ==================== v19: الصف الثنائي — أخبار يمين والمجهر يسار ==================== */
.duo-row { display: grid; grid-template-columns: 1fr 1.55fr; gap: 1.1rem; align-items: start; }
.duo-news, .duo-spot { min-width: 0; }

.nr-slider {
  position: relative; height: 240px; border-radius: 14px; overflow: hidden;
  background: var(--green-900); margin-bottom: .7rem;
}
.nr-slide {
  position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff;
  opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.nr-slide.is-active { opacity: 1; pointer-events: auto; }
.nr-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nr-slide:hover strong { color: var(--gold-light); }
.duo-row .nr-side { border-radius: 12px; }

/* المجهر داخل العمود: صورة فوق ومحتوى تحت */
.duo-row .spot-card { grid-template-columns: 1fr; }
.duo-row .spot-media { min-height: 0; height: 240px; }
.duo-row .spot-media img { height: 240px; }
.duo-row .spot-body { padding: 1.1rem 1.2rem; gap: .5rem; }
.duo-row .spot-name a { font-size: 1.35rem; }
.duo-row .spot-extract { font-size: .88rem; -webkit-line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 860px) {
  .duo-row { grid-template-columns: 1fr; }
  .nr-slider { height: 210px; }
}

/* ==== v20: صفحة المدينة — صفوف الأقسام وبطاقات الأدلة ==== */
.place-cat-row { margin-bottom: 34px; }
.place-cat-row:last-child { margin-bottom: 0; }
.pcr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pcr-title { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.pcr-title h3 { margin: 0; font-size: 1.15rem; color: var(--ink, #12261d); }
.pcr-title:hover h3 { color: var(--gold-700, #a07c2c); }
.pcr-icon { font-size: 1.3rem; background: var(--paper-2, #eef5f1); border-radius: 12px; width: 42px; height: 42px; display: grid; place-items: center; }
.pcr-count { font-size: .8rem; color: var(--ink-3, #6b7f76); background: var(--paper-2, #eef5f1); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.section-note { color: var(--ink-3, #6b7f76); margin: -6px 0 16px; font-size: .92rem; }
.topic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.topic-card { display: flex; align-items: center; gap: 14px; background: var(--paper, #fff); border: 1px solid var(--line, #e3ebe6); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.topic-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 61, 46, .10); border-color: var(--gold-700, #a07c2c); }
.topic-card-icon { font-size: 1.5rem; background: linear-gradient(135deg, #f3ede0, #eef5f1); width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.topic-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.topic-card-body strong { font-size: .98rem; line-height: 1.45; }
.topic-card-body span { font-size: .8rem; color: var(--ink-3, #6b7f76); line-height: 1.55; }
.topic-card-arrow { margin-inline-start: auto; color: var(--gold-700, #a07c2c); font-style: normal; font-size: 1.1rem; flex-shrink: 0; }
.about-full .about-block-content { max-height: 320px; overflow: hidden; position: relative; }
.about-full .about-block-content:not(.expanded)::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 90px; background: linear-gradient(to top, var(--bg, #f7faf8), transparent); }
.about-full .about-block-content.expanded { max-height: none; }
.about-full .about-block-content.expanded::after { display: none; }
@media (max-width: 860px) {
  .about-full .about-block-content { max-height: none; }
  .about-full .about-block-content::after { display: none; }
}
@media (max-width: 640px) {
  .topic-cards { grid-template-columns: 1fr; }
}

/* v21: hub tabs (يجمع نبذة/أدلة/عن المدينة أو الدولة بقسم واحد) */
.hub-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 18px; }
.hub-tab { background: var(--paper, #fff); border: 1px solid var(--line, #e3ebe6); border-radius: 999px; padding: .55rem 1.2rem; font-weight: 700; font-size: .92rem; color: var(--ink-2, #435a4f); cursor: pointer; transition: all .15s ease; }
.hub-tab:hover { border-color: var(--gold-700, #a07c2c); }
.hub-tab.active { background: var(--green-900, #0b3d2e); color: #fff; border-color: var(--green-900, #0b3d2e); }
.hub-panel { display: none; }
.hub-panel.active { display: block; }

.spotlight-title { margin-top: .3rem; }

/* شارة رمز مربّعة الشكل بجانب العلم — بديل غير دائري */
.flag-symbol-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.flag-symbol-badge { width: 40px; height: 40px; border-radius: 10px; background: var(--green-100, #e3f5ee); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }

/* v22: طابع تحريري لصفحتي المدينة والدولة — كل قسم بهوية بصرية مستقلة */

/* ترقيم الأقسام (شعور "فصول" لا بطاقات مكدّسة) */
.section-title-row { display: flex; align-items: center; gap: .7rem; margin-bottom: .3rem; }
.section-num { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--green-900, #0b3d2e); color: #fff; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.section-title-row .section-title { margin: 0; }

/* بطاقة الدليل المميّز: تصميم غير متماثل — عنصر بارز + شبكة صغيرة */
.guide-featured {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--green-900, #0b3d2e), var(--green-700, #14664f));
  border-radius: 20px; color: #fff; margin-bottom: 16px; min-height: 200px;
}
.guide-featured-icon { display: grid; place-items: center; font-size: 4.2rem; background: rgba(255,255,255,.08); }
.guide-featured-body { padding: 1.7rem 1.9rem; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.guide-featured-eyebrow { font-size: .78rem; font-weight: 800; color: var(--gold-light, #d8bd8a); }
.guide-featured-title { font-size: 1.4rem; font-weight: 800; line-height: 1.4; }
.guide-featured-excerpt { color: rgba(255,255,255,.85); line-height: 1.85; font-size: .92rem; }
.guide-featured-cta { align-self: flex-start; background: var(--gold, #ad8b4e); color: #fff; padding: .5rem 1.3rem; border-radius: 999px; font-weight: 800; font-size: .83rem; margin-top: .3rem; }
@media (max-width: 640px) {
  .guide-featured { grid-template-columns: 1fr; }
  .guide-featured-icon { min-height: 120px; }
}

/* شريط حقائق مرقّم لصفحات "عن المدينة/الدولة" — هوية مختلفة عن بطاقات الأدلة */
.fact-strip { display: flex; flex-direction: column; background: var(--paper, #fff); border: 1px solid var(--line, #e3ebe6); border-radius: 16px; overflow: hidden; }
.fact-strip-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line, #e3ebe6); text-decoration: none; color: inherit; transition: background .15s ease; }
.fact-strip-item:last-child { border-bottom: 0; }
.fact-strip-item:hover { background: var(--green-100, #e6f3ed); }
.fact-strip-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--green-100, #e6f3ed); color: var(--green-800, #0f4d3b); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.fact-strip-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fact-strip-body strong { font-size: 1rem; }
.fact-strip-body span { color: var(--ink-3, #6b7f76); font-size: .85rem; line-height: 1.6; }
.fact-strip-arrow { flex-shrink: 0; color: var(--gold-700, #a07c2c); font-style: normal; font-size: 1.1rem; }

/* صفوف تمرير أفقي (بطاقات الأماكن حسب التصنيف) — إحساس تصفّح لا قوائم ثابتة */
.h-scroll-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.h-scroll-row::-webkit-scrollbar { height: 6px; }
.h-scroll-row::-webkit-scrollbar-thumb { background: var(--green-100, #e6f3ed); border-radius: 999px; }
.h-scroll-row > * { scroll-snap-align: start; flex: 0 0 220px; }
@media (max-width: 640px) { .h-scroll-row > * { flex-basis: 168px; } }

/* بطاقات مدن كبيرة (صورة + تراكب) لصفحة الدولة — بدل شبكة بطاقات عامة */
.city-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.city-tile {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5;
  display: flex; align-items: flex-end; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--green-800, #0f4d3b), var(--green-900, #0b3d2e));
}
.city-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.city-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,32,24,.92) 8%, rgba(6,32,24,.35) 55%, rgba(6,32,24,.05) 100%);
}
.city-tile-body { position: relative; z-index: 2; padding: 1.1rem; display: flex; flex-direction: column; gap: .3rem; width: 100%; }
.city-tile-body h3 { font-size: 1.2rem; font-weight: 800; }
.city-tile-body span { font-size: .8rem; color: rgba(255,255,255,.85); }
.city-tile-count {
  position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 2;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px); color: #fff;
  font-size: .74rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px;
}

/* بطاقة تحتوي نص "نبذة" بدل نص عائم بلا حدود */
.overview-card { background: var(--paper, #fff); border: 1px solid var(--line, #e3ebe6); border-radius: 16px; padding: 1.6rem 1.8rem; }
.overview-card .about-block-content { margin: 0; }
.overview-card .about-block-content:not(.expanded)::after { background: linear-gradient(to top, var(--paper, #fff), transparent); }
.overview-card p { line-height: 1.9; margin: 0 0 .8rem; }
.about-more-link { display: inline-block; color: var(--green-700); font-weight: 800; font-size: .9rem; }
.about-more-link:hover { color: var(--gold); }

/* علم صغير بجانب اسم الدولة بالعنوان */
.country-head-row { display: flex; align-items: center; gap: 1.3rem; }
.flag-hero { width: 130px; height: 87px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border, #dde5e2); box-shadow: 0 6px 18px rgba(0,0,0,.18); flex-shrink: 0; }
.country-head-text { min-width: 0; }
.country-head-text h1 { margin: 0 0 .3rem; }
.country-head-text .page-desc { margin: 0; }
@media (max-width: 640px) {
  .country-head-row { gap: .9rem; }
  .flag-hero { width: 84px; height: 56px; border-radius: 8px; }
}

/* بطاقة أوقات غروب الشمس لمدن الدولة — نفس هيكل لوحة الحرارة */
.sunset-board { margin-top: 1rem; }

/* صف واحد ثابت للبطاقات (سطح المكتب) — تتقاسم العرض بالتساوي، والنص داخل كل بطاقة يلتف بدل ما تلتف البطاقات لصف ثانٍ */
.facts-row { display: flex; flex-wrap: nowrap; gap: 12px; }
.facts-row > * { flex: 1 1 0; min-width: 0; }
/* على الجوال: صف واحد يعني بطاقات لا تُقرأ (٤٧px) — نسمح بالالتفاف لصفين لعرض مريح بدل الزحمة */
@media (max-width: 760px) {
  .facts-row { flex-wrap: wrap; }
  .facts-row > * { flex: 1 1 auto; min-width: 140px; }
}

/* صفين مربّعين: العلم + الأنظمة والحكم، بلا تبويب — دائماً ظاهرين */
.about-boxes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 640px) { .about-boxes-grid { grid-template-columns: 1fr; } }

/* أبرز الأماكن بجانب الأدلة — عمودان بنفس أسلوب الرئيسية */
.country-duo { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; align-items: start; }
.country-duo-guides { display: flex; flex-direction: column; gap: .6rem; background: var(--paper, #fff); border: 1px solid var(--line, #e3ebe6); border-radius: 16px; padding: 1.2rem 1.3rem; }
@media (max-width: 860px) { .country-duo { grid-template-columns: 1fr; } }

/* v20: dev credit + honeypot fix */
.dev-credit { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; opacity: .8; text-decoration: none; color: inherit; font-size: .85rem; }
.dev-credit img { height: 34px; width: auto; }
.dev-credit:hover { opacity: 1; }
.dev-credit-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dev-credit-wrap .dev-credit { margin-top: 0; }
.dev-sep { opacity: .5; }
.dev-prog { font-size: .85rem; opacity: .85; }
.dev-prog a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.dev-prog a:hover { opacity: 1; color: #c9a227; }
/* v21: dev credit white badge replacing footer text */
.dev-credit-wrap { margin: 0 0 10px; }
.dev-credit { background: #fff; padding: 7px 16px; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.15); color: #1f3d2b; font-weight: 700; }
.dev-credit img { height: 38px; }

/* v22: kill horizontal overflow site-wide */
html, body { overflow-x: clip; }

/* v23: بطاقتان بالصف لأماكن صفحة المدينة على الجوال */
@media (max-width: 640px) {
  .pcr-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .pcr-grid .card-body { padding: .6rem .65rem; gap: .25rem; }
  .pcr-grid .card-title { font-size: .82rem; line-height: 1.45; }
  .pcr-grid .card-cat { font-size: .68rem; }
  .pcr-grid .rate-badge { font-size: .7rem; }
  .pcr-grid .card-excerpt { display: none; }
}
/* v24: أعلام اللغات فقط */
.lang-switch a { font-size: 1.25rem; line-height: 1; padding: .35rem .5rem; }
.mobile-lang a { font-size: 1.5rem; }

/* v26: قسم "عن المدينة" الحقيقي — التسمية والعلم والحكم */
.about-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.about-fact-card { background: var(--paper, #fff); border: 1px solid var(--line, #e3ebe6); border-radius: 16px; padding: 18px 20px; }
.about-fact-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--ink, #12261d); }
.about-fact-card p { margin: 0; color: var(--ink-2, #435a4f); line-height: 1.85; font-size: .95rem; }
.about-fact-flag { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.about-fact-flag img { max-width: 100%; max-height: 90px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.about-fact-flag span { font-size: .8rem; color: var(--ink-3, #6b7f76); }
@media (max-width: 640px) {
  .about-facts-grid { grid-template-columns: 1fr; }
}
