:root {
  color-scheme: light;
  --green-950: #063d31;
  --green-900: #075743;
  --green-800: #087a5b;
  --green-700: #0b926d;
  --green-100: #dff5ec;
  --navy-950: #071a26;
  --navy-900: #0b2535;
  --navy-800: #123449;
  --sand-50: #fbfaf6;
  --sand-100: #f5f1e7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f5f8f7;
  --text: #14231e;
  --text-soft: #55635e;
  --border: #dfe7e3;
  --warning: #b96822;
  --danger: #b54747;
  --shadow: 0 16px 44px rgba(21, 53, 43, .09);
  --radius-sm: .75rem;
  --radius-md: 1.15rem;
  --radius-lg: 1.65rem;
  --header-height: 4.5rem;
  font-family: var(--font-arabic-body, "Alexandria", "Noto Sans Arabic", system-ui, sans-serif);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0b2535;
  --surface-raised: #102f41;
  --surface-soft: #0e2a3a;
  --text: #f4f7f5;
  --text-soft: #b9c8c3;
  --border: #294757;
  --green-100: #143f3b;
  --green-800: #31c89a;
  --green-900: #45d6aa;
  --sand-50: #071a26;
  --sand-100: #0a2130;
  --shadow: 0 18px 50px rgba(0, 0, 0, .26);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; background: var(--sand-50); color: var(--text); line-height: 1.75; transition: background-color .75s ease, color .75s ease; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid #efad45; outline-offset: 3px; }
.shell-width { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-block-start: .5rem; inset-inline-start: .5rem; z-index: 1000; transform: translateY(-180%); background: var(--surface); padding: .7rem 1rem; border-radius: .6rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 76%, transparent); backdrop-filter: blur(12px); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--green-900); text-decoration: none; font-weight: 800; font-size: 1.08rem; line-height: 1; white-space: nowrap; }
.brand img { width: 2.625rem; height: 2.625rem; flex: 0 0 auto; object-fit: contain; }
.brand > span { display: grid; gap: .16rem; font-family: var(--font-arabic-display); font-size: 1.02rem; font-weight: 800; letter-spacing: 0; }
.brand > span::after { content: "MOWASALATNA"; direction: ltr; color: var(--text-soft); font-family: var(--font-latin-brand); font-size: .46rem; font-weight: 500; letter-spacing: .15em; line-height: 1; opacity: .82; unicode-bidi: isolate; }
html[data-theme="dark"] .brand img,
.brand--footer img { padding: 2px; border-radius: 50%; background: rgba(255,255,255,.94); }
.desktop-nav { display: flex; align-items: center; gap: clamp(.7rem, 1.7vw, 1.4rem); }
.desktop-nav a { color: var(--text-soft); text-decoration: none; font-size: .88rem; font-weight: 600; position: relative; }
.desktop-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -.45rem; height: 2px; background: var(--green-800); transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--green-900); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.theme-control { position: relative; }
.theme-trigger { min-height: 2.65rem; display: inline-flex; align-items: center; gap: .45rem; color: var(--text); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.theme-trigger time { min-width: 3.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
[data-theme-icon] svg { width: 1.1rem; height: 1.1rem; color: var(--warning); }
.theme-menu { position: absolute; inset-block-start: calc(100% + .55rem); inset-inline-end: 0; min-width: 9rem; background: var(--surface-raised); border: 1px solid var(--border); border-radius: .9rem; box-shadow: var(--shadow); padding: .35rem; }
.theme-menu button { width: 100%; border: 0; background: transparent; color: var(--text); text-align: start; padding: .6rem .75rem; border-radius: .65rem; cursor: pointer; }
.theme-menu button:hover, .theme-menu button[aria-checked="true"] { background: var(--green-100); color: var(--green-900); }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--border); background: var(--surface-soft); border-radius: .75rem; padding: .7rem; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle span + span { margin-top: .28rem; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(.42rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.42rem) rotate(-45deg); }
.mobile-menu { position: fixed; top: var(--header-height); inset-inline: 0; background: var(--surface-raised); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: .75rem 1rem 1rem; }
.mobile-menu nav { width: min(34rem, 100%); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.mobile-menu a { text-decoration: none; padding: .8rem .9rem; border-radius: .7rem; font-weight: 700; }
.mobile-menu a:hover { background: var(--green-100); color: var(--green-900); }

.hero { position: relative; isolation: isolate; min-height: clamp(34rem, 76vh, 43rem); display: grid; align-items: center; overflow: hidden; background: var(--navy-900); }
.hero__media, .hero__overlay, .hero__stars { position: absolute; inset: 0; }
.hero__media { z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: filter .8s ease, opacity .8s ease, transform 6s ease; }
.hero__overlay { z-index: -2; background: linear-gradient(90deg, rgba(4, 37, 28, .08) 0%, rgba(7, 30, 26, .30) 44%, rgba(7, 30, 26, .87) 100%); transition: background .8s ease; }
html[data-theme="dark"] .hero__media img { filter: brightness(.42) saturate(.8) contrast(1.08) hue-rotate(8deg); }
html[data-theme="dark"] .hero__overlay { background: linear-gradient(90deg, rgba(4, 17, 30, .42) 0%, rgba(5, 25, 40, .65) 48%, rgba(4, 20, 32, .94) 100%); mix-blend-mode: multiply; }
html[data-daypart="sunset"] .hero__overlay { background: linear-gradient(90deg, rgba(79, 35, 15, .18), rgba(41, 35, 30, .48), rgba(14, 42, 34, .9)); }
.hero__content { padding-block: 5rem; color: #fff; }
.hero__copy { max-width: 39rem; margin-inline-start: auto; }
.hero h1 { margin: 0 0 .35rem; font-size: clamp(2.7rem, 8vw, 5.25rem); line-height: 1.05; letter-spacing: 0; }
.hero h2 { margin: 0 0 1rem; max-width: 34rem; font-size: clamp(1.35rem, 3vw, 2.25rem); line-height: 1.45; font-weight: 700; }
.hero p { max-width: 35rem; color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero__stars { z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
html[data-theme="dark"] .hero__stars { opacity: 1; }
.star { position: absolute; width: var(--star-size, 2px); height: var(--star-size, 2px); border-radius: 50%; background: rgba(255,255,255,.78); animation: twinkle var(--star-duration, 5s) ease-in-out var(--star-delay, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .28; transform: scale(.75); } 55% { opacity: .95; transform: scale(1.15); } }

.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: .85rem; padding: .7rem 1.15rem; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--green-800); color: #fff; }
.button--primary:hover { background: var(--green-900); }
.button--secondary { background: var(--surface-raised); color: var(--green-900); border-color: var(--border); }
.button--ghost { background: transparent; color: var(--green-900); border-color: var(--border); }
.hero .button--secondary { background: rgba(255,255,255,.94); color: #075743; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--soft { background: var(--surface-soft); border-block: 1px solid var(--border); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.2rem; margin-bottom: 2rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.3; }
.section-heading p { margin: .5rem 0 0; color: var(--text-soft); max-width: 42rem; }
.eyebrow { margin: 0 0 .4rem; color: var(--green-800); font-size: .82rem; font-weight: 800; letter-spacing: 0; }
.text-link { color: var(--green-900); text-decoration: none; font-weight: 750; }
.text-link:hover { text-decoration: underline; }

.quick-search { position: relative; z-index: 5; margin-top: -3.2rem; }
.quick-search__panel { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 1.6rem); }
.quick-search__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.quick-search__head h2 { margin: 0; font-size: 1.25rem; }
.journey-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; align-items: end; }
.field { display: grid; gap: .35rem; position: relative; }
.field label, .report-dialog label { font-size: .82rem; font-weight: 700; }
.field input, .field select, .report-dialog input, .report-dialog select, .report-dialog textarea { width: 100%; min-height: 3rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: .75rem; padding: .65rem .8rem; }
.search-results { position: absolute; top: calc(100% + .35rem); inset-inline: 0; z-index: 20; margin: 0; padding: .35rem; list-style: none; background: var(--surface-raised); border: 1px solid var(--border); border-radius: .8rem; box-shadow: var(--shadow); max-height: 19rem; overflow: auto; }
.search-results a { display: grid; gap: .1rem; padding: .65rem .75rem; text-decoration: none; border-radius: .6rem; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--green-100); }
.search-results small { color: var(--text-soft); }

.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.region-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; text-align: center; text-decoration: none; box-shadow: 0 10px 28px rgba(20, 55, 44, .04); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.region-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--green-800) 45%, var(--border)); box-shadow: var(--shadow); }
.region-card img { width: min(100%, 8rem); aspect-ratio: 1; object-fit: contain; margin: 0 auto .65rem; }
.region-card strong { display: block; }
.region-card small { display: block; color: var(--text-soft); margin-top: .15rem; }

.map-preview { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 27rem; overflow: hidden; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.map-preview__visual { position: relative; background: linear-gradient(145deg, #dcebe5, #bfd8cf); overflow: hidden; }
html[data-theme="dark"] .map-preview__visual { background: linear-gradient(145deg, #102f41, #0b2434); }
.map-preview__visual::before, .map-preview__visual::after { content: ""; position: absolute; border: 2px solid color-mix(in srgb, var(--green-800) 45%, transparent); width: 120%; height: 40%; border-radius: 50%; transform: rotate(-18deg); inset: 20% -10%; }
.map-preview__visual::after { transform: rotate(23deg); inset: 48% -20%; }
.map-pin { position: absolute; inset: 50% auto auto 48%; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green-800); color: #fff; box-shadow: 0 10px 25px rgba(8, 122, 91, .3); }
.map-pin svg { width: 1.3rem; transform: rotate(45deg); }
.map-preview__content { padding: clamp(1.5rem, 4vw, 3.25rem); align-self: center; }
.map-preview__content h2 { margin: 0 0 .65rem; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.map-preview__content p { color: var(--text-soft); }
.stat-row { display: flex; gap: 1.25rem; margin-block: 1.4rem; }
.stat { min-width: 7rem; }
.stat strong { display: block; font-size: 1.65rem; color: var(--green-900); }
.stat span { color: var(--text-soft); font-size: .8rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card-grid--news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-card { overflow: hidden; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); }
.content-card > a img, .news-card > a img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.content-card__body { padding: 1.2rem; }
.content-card h2 { margin: .35rem 0; font-size: 1.15rem; }
.content-card h2 a { text-decoration: none; }
.content-card p { margin: .4rem 0 1rem; color: var(--text-soft); }
.meta-row { display: flex; justify-content: space-between; gap: .75rem; color: var(--text-soft); font-size: .76rem; }
.status-badge { display: inline-flex; align-items: center; min-height: 1.8rem; padding: .2rem .65rem; border-radius: 999px; background: var(--green-100); color: var(--green-900); font-size: .75rem; font-weight: 800; }
.status-badge--paused { background: #fff0dd; color: #8a4d14; }
html[data-theme="dark"] .status-badge--paused { background: #50341d; color: #ffd4a8; }
.empty-state { grid-column: 1 / -1; text-align: center; background: var(--surface-raised); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4.5rem); }
.empty-state__icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1rem; color: var(--green-800); background: var(--green-100); border-radius: 1.2rem; }
.empty-state__icon svg { width: 2rem; }
.empty-state h1, .empty-state h2 { margin: 0 0 .5rem; }
.empty-state p { max-width: 38rem; margin: 0 auto 1.3rem; color: var(--text-soft); }
.empty-state > .brand { margin: 0 auto 1.15rem; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.3rem; }
.feature-card__icon { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; color: var(--green-900); background: var(--green-100); border-radius: .8rem; }
.feature-card__icon svg { width: 1.35rem; }
.feature-card h3 { margin: .9rem 0 .35rem; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: .9rem; }
.report-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; background: var(--green-950); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 5vw, 3rem); }
.report-cta h2 { margin: 0; }
.report-cta p { margin: .4rem 0 0; color: rgba(255,255,255,.74); }

.page-hero { padding-block: 4.5rem 3rem; background: linear-gradient(145deg, var(--surface-soft), var(--sand-100)); border-bottom: 1px solid var(--border); }
.page-hero--compact h1, .page-hero--station h1 { margin: .25rem 0 .5rem; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.15; }
.page-hero p { max-width: 46rem; color: var(--text-soft); }
.region-hero__layout { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: 2rem; align-items: center; }
.region-hero__illustration { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(11, 66, 49, .1)); }
.region-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.4rem; }
.region-stat { padding: .8rem 1rem; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border); border-radius: .8rem; }
.region-stat strong { display: block; color: var(--green-900); font-size: 1.25rem; }
.region-stat span { color: var(--text-soft); font-size: .75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; list-style: none; color: var(--text-soft); font-size: .78rem; }
.breadcrumbs li { display: inline-flex; gap: .45rem; }
.breadcrumbs a { text-decoration: none; }
.article-header { padding-block: 4.5rem 2rem; }
.article-header h1 { max-width: 54rem; margin: .5rem 0; font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.35; }
.article-lead { max-width: 48rem; color: var(--text-soft); font-size: 1.12rem; }
.article-header time { color: var(--text-soft); font-size: .85rem; }
.article-cover { overflow: hidden; border-radius: var(--radius-lg); }
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article-content { max-width: 48rem; padding-block: 2.5rem 6rem; font-size: 1.03rem; }
.article-content p { margin: 0 0 1.4rem; }
.source-card { display: grid; gap: .35rem; margin-top: 2rem; padding: 1rem; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; }
.source-card a { color: var(--green-900); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); gap: 2rem; align-items: start; }
.detail-section { margin-bottom: 1.5rem; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.4rem; }
.detail-section h2 { margin-top: 0; }
.detail-table { margin: 0; }
.detail-table > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: .75rem; border-bottom: 1px solid var(--border); }
.detail-table > div:last-child { border-bottom: 0; }
.detail-table dt { color: var(--text-soft); }
.detail-table dd { margin: 0; }
.detail-list { display: grid; gap: .65rem; padding: 0; list-style: none; }
.detail-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem; padding: .8rem; background: var(--surface-soft); border-radius: .7rem; }
.detail-list span { color: var(--text-soft); font-size: .85rem; }
.detail-aside { position: sticky; top: calc(var(--header-height) + 1rem); }
.map-placeholder { min-height: 13rem; display: grid; place-content: center; gap: .35rem; text-align: center; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-md); }
.map-placeholder span { color: var(--text-soft); }
.button-stack { display: grid; gap: .55rem; margin-block: .8rem; }
.notice { color: var(--text-soft); font-size: .88rem; border-inline-start: 3px solid var(--warning); padding-inline-start: .8rem; }
.data-table-wrap { overflow-x: auto; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; min-width: 42rem; border-collapse: collapse; text-align: start; }
.data-table th, .data-table td { padding: .95rem 1rem; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--text-soft); background: var(--surface-soft); font-size: .82rem; font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-soft); }
.data-note { margin-top: 1rem; color: var(--text-soft); font-size: .86rem; }

.report-dialog { width: min(34rem, calc(100% - 1rem)); max-height: calc(100dvh - 1rem); border: 0; border-radius: var(--radius-md); padding: 0; color: var(--text); background: var(--surface-raised); box-shadow: 0 35px 90px rgba(0,0,0,.32); }
.report-dialog::backdrop { background: rgba(3, 18, 25, .68); backdrop-filter: blur(3px); }
.report-dialog__card { display: grid; gap: .85rem; padding: 1.4rem; }
.report-dialog h2 { margin: 0; }
.report-dialog p { margin: -.4rem 0 .2rem; color: var(--text-soft); }
.report-dialog label { display: grid; gap: .3rem; }
.report-dialog textarea { min-height: 7rem; resize: vertical; }
.dialog-close { position: absolute; inset-block-start: .65rem; inset-inline-end: .65rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; color: var(--text); background: var(--surface-soft); cursor: pointer; }
.honeypot { position: absolute !important; inset-inline-start: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-message { min-height: 1.3rem; color: var(--text-soft); font-size: .85rem; }
.form-message[data-state="error"] { color: var(--danger); }
.form-message[data-state="success"] { color: var(--green-900); }

.site-footer { background: var(--navy-950); color: #fff; margin-top: 4rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-block: 3.5rem; }
.brand--footer { color: #fff; }
.brand--footer img { width: 3.25rem; height: 3.25rem; }
.brand--footer > span::after { color: rgba(255,255,255,.7); }
.site-footer p { color: rgba(255,255,255,.68); max-width: 30rem; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 2rem; align-content: start; }
.site-footer nav a { text-decoration: none; color: rgba(255,255,255,.8); }
.site-footer__bottom { padding: 1rem; text-align: center; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.58); font-size: .8rem; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid--news { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-height: 4rem; }
  .shell-width { width: min(100% - 1.25rem, 1120px); }
  .brand img { width: 2.375rem; height: 2.375rem; }
  .brand > span { font-size: .96rem; }
  .brand > span::after { font-size: .42rem; }
  .brand--footer img { width: 3rem; height: 3rem; }
  .theme-trigger { padding-inline: .6rem; }
  .theme-trigger time { min-width: 3.2rem; font-size: .78rem; }
  .hero { min-height: 37rem; align-items: end; }
  .hero__content { padding-block: 5rem 6.5rem; }
  .hero__copy { margin: 0; }
  .hero__media img { object-position: 44% center; }
  .hero__overlay, html[data-theme="dark"] .hero__overlay { background: linear-gradient(0deg, rgba(5,29,23,.96), rgba(5,29,23,.58) 55%, rgba(5,29,23,.18)); }
  .quick-search { margin-top: -4.4rem; }
  .journey-fields { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .region-card { padding: .75rem; }
  .map-preview { grid-template-columns: 1fr; }
  .map-preview__visual { min-height: 15rem; }
  .map-preview__content { padding: 1.4rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .card-grid, .card-grid--news, .feature-grid { grid-template-columns: 1fr; }
  .report-cta { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .detail-table > div { grid-template-columns: 1fr; gap: .15rem; }
  .region-hero__layout { grid-template-columns: 1fr 7rem; gap: .75rem; }
  .region-stats { grid-template-columns: 1fr 1fr; }
  .region-stat:last-child { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .brand > span { font-size: .9rem; }
  .theme-trigger time { display: none; }
  .hero h1 { font-size: 2.55rem; }
  .mobile-menu nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

html[data-save-data="true"] .hero__stars { display: none; }

/* Premium Arabic product layer — homepage v2 */
:root {
  --gold-500: #d5a557;
  --gold-100: #fbf2df;
  --ink-deep: #10251e;
  --shadow-deep: 0 24px 70px rgba(10, 50, 39, .13);
  --shadow-float: 0 16px 38px rgba(11, 55, 43, .10);
}

html[data-theme="dark"] {
  --gold-500: #edbd70;
  --gold-100: #3a3024;
  --ink-deep: #f4f8f6;
  --shadow-deep: 0 28px 76px rgba(0, 0, 0, .38);
  --shadow-float: 0 18px 44px rgba(0, 0, 0, .28);
}

body { text-align: start; }
.site-header { box-shadow: 0 1px 0 rgba(7, 87, 67, .04); }
.site-header__inner { width: min(1180px, calc(100% - 2rem)); }
.brand { letter-spacing: 0; }
.desktop-nav { gap: clamp(.8rem, 2vw, 1.65rem); }
.desktop-nav a { font-weight: 650; }
.header-map-link { min-height: 2.65rem; display: inline-flex; align-items: center; padding: .4rem 1rem; border-radius: 999px; color: #fff; background: var(--green-800); text-decoration: none; font-size: .8rem; font-weight: 800; box-shadow: 0 8px 22px rgba(8, 122, 91, .18); }
.header-map-link:hover { background: var(--green-900); }
.theme-trigger { min-height: 2.8rem; padding: .32rem .72rem; border-color: color-mix(in srgb, var(--border) 72%, transparent); background: color-mix(in srgb, var(--surface-raised) 86%, transparent); }
.theme-trigger__icon { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold-100); }
.theme-trigger__time { display: grid; gap: 0; line-height: 1.2; text-align: start; }
.theme-trigger__time time { min-width: 3.65rem; font-size: .78rem; }
.theme-trigger__time small { color: var(--text-soft); font-size: .58rem; font-weight: 700; }
.theme-menu { min-width: 12.5rem; padding: .5rem; border-radius: 1rem; box-shadow: var(--shadow-float); }
.theme-menu > p { margin: .15rem .55rem .35rem; color: var(--text-soft); font-size: .68rem; font-weight: 800; }
.theme-menu button { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 2.6rem; }
.theme-menu button small { color: var(--text-soft); font-size: .62rem; }

.home-page main { overflow: clip; }
.home-page .hero { min-height: clamp(37rem, 76vh, 44rem); align-items: center; }
.home-page .hero__media { overflow: hidden; }
.hero__picture { position: absolute; inset: 0; opacity: 1; transition: opacity 1.1s cubic-bezier(.2,.7,.2,1); }
.hero__picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; filter: none !important; transform: none !important; }
.hero__picture--night { opacity: 0; }
html[data-theme="dark"] .hero__picture--day { opacity: 0; }
html[data-theme="dark"] .hero__picture--night { opacity: 1; }
.home-page .hero__overlay { background:
  linear-gradient(to left, rgba(4, 38, 29, .92) 0%, rgba(4, 38, 29, .75) 33%, rgba(4, 38, 29, .22) 67%, rgba(4, 38, 29, .05) 100%),
  linear-gradient(to top, rgba(4, 26, 21, .33), transparent 45%); }
html[data-theme="dark"] .home-page .hero__overlay { background:
  linear-gradient(to left, rgba(3, 20, 31, .91) 0%, rgba(4, 25, 37, .70) 34%, rgba(4, 25, 37, .16) 69%, transparent 100%),
  linear-gradient(to top, rgba(2, 13, 22, .46), transparent 50%); mix-blend-mode: normal; }
html[data-daypart="sunset"] .home-page .hero__overlay { background: linear-gradient(to left, rgba(49,31,17,.88), rgba(40,32,24,.56) 42%, rgba(68,37,16,.08) 76%); }
.home-page .hero__content { padding-block: 5.25rem 6.5rem; }
.home-page .hero__copy { width: min(40rem, 58%); max-width: none; margin-inline: 0 auto; text-align: right; }
.home-page .hero h1 { margin: 0 0 .2rem; font-size: clamp(3.2rem, 7vw, 5.8rem); letter-spacing: 0; text-shadow: 0 4px 28px rgba(0,0,0,.16); }
.home-page .hero h2 { max-width: 36rem; margin: 0 0 .85rem; font-size: clamp(1.55rem, 3.3vw, 2.6rem); line-height: 1.46; }
.home-page .hero__copy > p:not(.eyebrow) { max-width: 34rem; margin: 0; color: rgba(255,255,255,.84); line-height: 2; }
.eyebrow--on-dark { display: inline-flex; align-items: center; gap: .55rem; color: #fff2d3; }
.eyebrow--on-dark span { width: 1.75rem; height: 1px; background: var(--gold-500); }
.home-page .hero__actions { justify-content: flex-start; margin-top: 1.55rem; }
.button--with-icon span { font-size: 1.2rem; transition: transform .2s ease; }
.button--with-icon:hover span { transform: translateX(-3px); }
.home-page .hero__facts { width: min(35rem, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2rem; padding: .72rem .85rem; border: 1px solid rgba(255,255,255,.16); border-radius: 1.15rem; background: rgba(5, 39, 31, .34); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.home-page .hero__facts > div { padding: .15rem .8rem; border-inline-end: 1px solid rgba(255,255,255,.14); text-align: right; }
.home-page .hero__facts > div:last-child { border-inline-end: 0; }
.home-page .hero__facts strong, .home-page .hero__facts span { display: block; }
.home-page .hero__facts strong { color: #fff; font-size: .95rem; }
.home-page .hero__facts span { color: rgba(255,255,255,.67); font-size: .66rem; }
.home-page .hero__stars { inset: 0; clip-path: polygon(42% 0, 100% 0, 100% 35%, 91% 36%, 82% 34%, 73% 31%, 65% 27%, 57% 22%, 49% 14%); }
.home-page .star { box-shadow: 0 0 8px rgba(218,234,255,.65); animation-timing-function: cubic-bezier(.4,0,.2,1); }
@keyframes twinkle { 0%, 100% { opacity: .18; transform: scale(.72); } 37% { opacity: .58; transform: scale(.96); } 61% { opacity: .9; transform: scale(1.12); } 78% { opacity: .34; transform: scale(.8); } }

.home-page .quick-search { width: min(1080px, calc(100% - 2rem)); margin-top: -3.4rem; }
.home-page .quick-search__panel { padding: 1.15rem 1.3rem 1.3rem; border-color: color-mix(in srgb, var(--border) 75%, transparent); border-radius: 1.35rem; box-shadow: var(--shadow-deep); }
.home-page .quick-search__head { margin-bottom: .8rem; }
.home-page .quick-search__head h2 { font-size: 1.2rem; }
.home-page .journey-fields { grid-template-columns: 1fr 2.7rem 1fr auto; gap: .65rem; }
.home-page .field label { color: var(--text-soft); font-size: .72rem; }
.home-page .field input { min-height: 3.35rem; padding-inline-start: 2.65rem; border-radius: .9rem; background: var(--surface-soft); }
.field__icon { position: absolute; inset-inline-start: .85rem; bottom: .94rem; width: 1.2rem; color: var(--green-800); pointer-events: none; }
.journey-swap { width: 2.65rem; height: 2.65rem; display: grid; place-items: center; align-self: end; margin-bottom: .35rem; border: 1px solid var(--border); border-radius: 50%; color: var(--green-900); background: var(--surface-raised); }
.journey-swap svg { width: 1.15rem; }

.home-page .section { padding-block: clamp(3.5rem, 6.5vw, 5rem); }
.home-page .section-heading { text-align: right; }
.section-heading--compact { margin-bottom: 1.5rem; }
.section-heading--compact h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.home-page .section-heading p { max-width: 34rem; }
.home-page .text-link { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }

.section--map { background:
  radial-gradient(circle at 13% 20%, color-mix(in srgb, var(--green-100) 64%, transparent), transparent 30%),
  var(--surface-soft); border-block: 1px solid var(--border); }
.map-showcase { min-height: 31rem; display: grid; grid-template-columns: minmax(19rem, .78fr) minmax(0, 1.35fr); overflow: hidden; border: 1px solid color-mix(in srgb, var(--border) 78%, transparent); border-radius: 1.75rem; background: var(--surface-raised); box-shadow: var(--shadow-deep); }
.map-showcase__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.6rem, 4vw, 3rem); text-align: right; }
.map-showcase__badge { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .35rem .65rem; border-radius: 999px; color: var(--green-900); background: var(--green-100); font-size: .68rem; font-weight: 800; }
.map-showcase__badge i { width: .42rem; height: .42rem; border-radius: 50%; background: var(--green-800); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-800) 15%, transparent); }
.map-showcase__content h3 { margin: 0; color: var(--ink-deep); font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.5; }
.map-showcase__content > p { margin: .65rem 0 1.25rem; color: var(--text-soft); }
.map-showcase__stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1rem; }
.map-showcase__stats div { padding: .75rem .9rem; border: 1px solid var(--border); border-radius: .9rem; background: var(--surface-soft); }
.map-showcase__stats strong, .map-showcase__stats span { display: block; }
.map-showcase__stats strong { color: var(--green-900); font-size: 1.35rem; }
.map-showcase__stats span { color: var(--text-soft); font-size: .67rem; }
.map-showcase__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.3rem; }
.map-showcase__chips span { padding: .35rem .55rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); font-size: .64rem; }
.map-showcase__visual { position: relative; min-height: 31rem; overflow: hidden; background-color: #e7eee9; background-image: linear-gradient(rgba(39,82,68,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(39,82,68,.055) 1px, transparent 1px), radial-gradient(circle at 72% 20%, rgba(255,255,255,.9), transparent 26%), linear-gradient(145deg, #eef2ed, #dce8e2); background-size: 48px 48px, 48px 48px, auto, auto; }
html[data-theme="dark"] .map-showcase__visual { background-color: #0c2a38; background-image: linear-gradient(rgba(133,197,178,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(133,197,178,.07) 1px, transparent 1px), radial-gradient(circle at 72% 20%, rgba(50,126,106,.18), transparent 28%), linear-gradient(145deg, #12394a, #0a2634); }
.map-showcase__visual::before { content: ""; position: absolute; inset: 9% 8% 12%; border: 1px solid color-mix(in srgb, var(--green-800) 22%, transparent); border-radius: 48% 52% 57% 43% / 45% 42% 58% 55%; transform: rotate(-7deg); }
.map-showcase__toolbar { position: absolute; inset: 1rem 1rem auto; z-index: 4; display: flex; justify-content: space-between; gap: .6rem; }
.map-showcase__toolbar span, .map-showcase__toolbar button { min-height: 2.55rem; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border: 1px solid rgba(255,255,255,.68); border-radius: .75rem; color: var(--text); background: color-mix(in srgb, var(--surface-raised) 88%, transparent); box-shadow: var(--shadow-float); backdrop-filter: blur(12px); font-size: .7rem; font-weight: 700; }
.map-showcase__toolbar span { width: min(15rem, 58%); color: var(--text-soft); }
.map-showcase__toolbar svg { width: 1rem; }
.map-showcase__routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { fill: none; stroke-linecap: round; }
.route--primary { stroke: var(--green-800); stroke-width: 7; filter: drop-shadow(0 5px 6px rgba(8,122,91,.18)); }
.route--secondary { stroke: color-mix(in srgb, var(--gold-500) 76%, #fff); stroke-width: 3; stroke-dasharray: 3 10; }
.route--thin { stroke: rgba(66,103,91,.24); stroke-width: 2; }
.map-dot { position: absolute; z-index: 3; display: grid; justify-items: center; gap: .2rem; color: var(--text); font-size: .65rem; }
.map-dot i { width: 1rem; height: 1rem; border: 3px solid #fff; border-radius: 50%; background: var(--green-800); box-shadow: 0 6px 14px rgba(8,122,91,.3); }
.map-dot b { padding: .16rem .4rem; border-radius: .35rem; background: color-mix(in srgb, var(--surface-raised) 84%, transparent); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.map-dot--one { inset: 36% 33% auto auto; }
.map-dot--two { inset: 61% auto auto 25%; }
.map-dot--three { inset: 69% 55% auto auto; }
.map-showcase__station-card { position: absolute; z-index: 4; inset: auto 1rem 1rem auto; width: min(16rem, calc(100% - 5.5rem)); display: grid; gap: .3rem; padding: .85rem; border: 1px solid rgba(255,255,255,.7); border-radius: 1rem; background: color-mix(in srgb, var(--surface-raised) 91%, transparent); box-shadow: var(--shadow-float); backdrop-filter: blur(16px); text-align: right; }
.map-showcase__station-card .status-badge { width: max-content; }
.map-showcase__station-card small { color: var(--text-soft); font-size: .65rem; }
.map-showcase__station-card a { color: var(--green-900); font-size: .68rem; font-weight: 800; text-decoration: none; }
.map-showcase__zoom { position: absolute; z-index: 4; inset: auto auto 1rem 1rem; display: grid; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: .75rem; background: var(--surface-raised); box-shadow: var(--shadow-float); }
.map-showcase__zoom span { width: 2.5rem; height: 2.3rem; display: grid; place-items: center; }
.map-showcase__zoom span + span { border-top: 1px solid var(--border); }

.home-page .region-grid--featured { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.home-page .region-card { position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; min-height: 10.2rem; overflow: hidden; padding: 0; border-color: color-mix(in srgb, var(--border) 82%, transparent); border-radius: 1.25rem; text-align: right; box-shadow: 0 10px 30px rgba(12,57,44,.055); }
.home-page .region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.home-page .region-card > img { width: 100%; height: 100%; min-height: 10.2rem; margin: 0; padding: .6rem; object-fit: contain; background: linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--green-100) 36%, var(--surface-soft))); }
.region-card__status { position: absolute; inset: .7rem .7rem auto auto; z-index: 2; padding: .2rem .45rem; border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent); border-radius: 999px; color: #80571c; background: color-mix(in srgb, var(--gold-100) 91%, transparent); font-size: .56rem; font-weight: 800; }
html[data-theme="dark"] .region-card__status { color: #f7d69a; }
.region-card__body { min-width: 0; padding: 2.2rem .9rem .8rem; }
.region-card__body h3 { margin: 0 0 .55rem; color: var(--ink-deep); font-size: 1.05rem; }
.region-card__meta { display: grid; gap: .15rem; color: var(--text-soft); font-size: .6rem; }
.region-card__meta strong { display: inline; color: var(--green-900); font-size: .76rem; }
.region-card__cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; color: var(--green-900); font-size: .68rem; font-weight: 800; }
.region-card__cta b { transition: transform .2s ease; }
.region-card:hover .region-card__cta b { transform: translateX(-3px); }

.section--news { background: linear-gradient(180deg, var(--surface-soft), color-mix(in srgb, var(--surface-soft) 68%, var(--sand-100))); }
.home-page .content-card { border-radius: 1.15rem; box-shadow: 0 10px 28px rgba(12,57,44,.045); }
.home-page .content-card h3 { margin: .35rem 0; line-height: 1.6; }
.home-page .content-card h3 a { text-decoration: none; }
.home-page .empty-state--compact { min-height: 11rem; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: right; }
.home-page .empty-state--compact .empty-state__icon { margin: 0; flex: 0 0 auto; }
.home-page .empty-state--compact h3 { margin: 0 0 .2rem; }
.home-page .empty-state--compact p { margin: 0; }

.about-panel { display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border: 1px solid var(--border); border-radius: 1.6rem; background: var(--surface-raised); box-shadow: var(--shadow-float); }
.about-panel__intro { padding: clamp(1.6rem, 4vw, 3rem); color: #fff; background: linear-gradient(145deg, var(--green-950), #0a654f); text-align: right; }
.about-panel__intro .eyebrow { color: #c8f3e5; }
.about-panel__intro h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.5; }
.about-panel__intro p { color: rgba(255,255,255,.74); }
.about-panel__intro .text-link { color: #fff; }
.about-panel__features { display: grid; align-content: center; padding: clamp(1.2rem, 3vw, 2.4rem); }
.about-panel__features article { display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); text-align: right; }
.about-panel__features article:last-child { border-bottom: 0; }
.about-panel__features article > span { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .85rem; color: var(--green-900); background: var(--green-100); }
.about-panel__features svg { width: 1.35rem; }
.about-panel__features h3 { margin: 0; }
.about-panel__features p { margin: .15rem 0 0; color: var(--text-soft); font-size: .78rem; }

.home-page .site-footer { margin-top: 0; }
.home-page .site-footer__grid { padding-block: 2.8rem; }
.home-page .site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-inline: max(1rem, calc((100% - 1120px) / 2)); text-align: right; }

@media (max-width: 980px) {
  .header-map-link { display: none; }
  .home-page .hero__copy { width: min(40rem, 72%); }
  .map-showcase { grid-template-columns: 1fr; }
  .map-showcase__content { min-height: auto; }
  .map-showcase__visual { min-height: 27rem; }
  .home-page .region-grid--featured { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header__inner { width: calc(100% - 1rem); }
  .home-page .hero { min-height: 39rem; align-items: end; }
  .hero__picture img { object-position: 46% center; }
  .home-page .hero__overlay,
  html[data-theme="dark"] .home-page .hero__overlay { background: linear-gradient(to top, rgba(3,25,23,.96) 0%, rgba(4,30,27,.76) 43%, rgba(4,25,29,.15) 76%); }
  .home-page .hero__content { padding-block: 8rem 6.9rem; }
  .home-page .hero__copy { width: 100%; }
  .home-page .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .home-page .hero h2 { font-size: 1.55rem; }
  .home-page .hero__facts { width: 100%; }
  .home-page .hero__stars { clip-path: polygon(26% 0,100% 0,100% 26%,84% 27%,69% 23%,52% 18%,38% 10%); }
  .home-page .quick-search { margin-top: -4.5rem; }
  .home-page .quick-search__panel { padding: 1rem; }
  .home-page .journey-fields { grid-template-columns: 1fr; }
  .journey-swap { display: none; }
  .home-page .section { padding-block: 3.35rem; }
  .section-heading--compact { align-items: flex-start; }
  .map-showcase { border-radius: 1.25rem; }
  .map-showcase__visual { min-height: 23rem; grid-row: 1; }
  .map-showcase__content { grid-row: 2; padding: 1.35rem; }
  .map-showcase__station-card { width: min(15rem, calc(100% - 4.7rem)); }
  .home-page .region-grid--featured { display: flex; gap: .75rem; margin-inline: -.65rem; padding-inline: .65rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .home-page .region-grid--featured::-webkit-scrollbar { display: none; }
  .home-page .region-card { flex: 0 0 min(84vw, 21rem); scroll-snap-align: start; }
  .about-panel { grid-template-columns: 1fr; }
  .home-page .empty-state--compact { flex-direction: column; text-align: center; }
  .home-page .site-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 430px) {
  .theme-trigger time { display: block !important; }
  .theme-trigger__time small { display: none; }
  .theme-trigger__time time { min-width: 3.1rem; }
  .home-page .hero__content { padding-bottom: 7.4rem; }
  .home-page .hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .home-page .hero__facts { padding-inline: .35rem; }
  .home-page .hero__facts > div { padding-inline: .45rem; }
  .home-page .hero__facts strong { font-size: .78rem; }
  .home-page .hero__facts span { font-size: .54rem; }
  .mobile-menu nav { grid-template-columns: 1fr 1fr; }
  .map-showcase__toolbar button { display: none; }
  .map-showcase__toolbar span { width: 100%; }
}

/* Regions directory */
.page-hero--regions { position: relative; overflow: hidden; padding-block: 4.5rem 3.6rem; background: radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--green-100) 72%, transparent), transparent 28%), linear-gradient(145deg, var(--surface-soft), var(--sand-100)); }
.page-hero--regions::after { content: ""; position: absolute; width: 23rem; height: 23rem; inset: -12rem auto auto -8rem; border: 1px solid color-mix(in srgb, var(--green-800) 18%, transparent); border-radius: 50%; box-shadow: 0 0 0 3rem color-mix(in srgb, var(--green-800) 4%, transparent), 0 0 0 7rem color-mix(in srgb, var(--green-800) 3%, transparent); }
.page-hero--regions .shell-width { position: relative; z-index: 1; text-align: right; }
.page-hero--regions h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1.15; }
.page-hero--regions > .shell-width > p:not(.eyebrow) { max-width: 45rem; color: var(--text-soft); }
.directory-summary { width: min(42rem, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.5rem; }
.directory-summary div { padding: .85rem 1rem; border: 1px solid var(--border); border-radius: .9rem; background: color-mix(in srgb, var(--surface-raised) 84%, transparent); box-shadow: 0 7px 20px rgba(12,57,44,.04); }
.directory-summary strong, .directory-summary span { display: block; }
.directory-summary strong { color: var(--green-900); font-size: 1.15rem; }
.directory-summary span { color: var(--text-soft); font-size: .68rem; }
.region-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.directory-region-card { position: relative; min-width: 0; display: grid; grid-template-columns: 10rem 1fr; align-items: center; min-height: 13rem; overflow: hidden; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--surface-raised); box-shadow: 0 10px 30px rgba(12,57,44,.05); text-decoration: none; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.directory-region-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green-800) 40%, var(--border)); box-shadow: var(--shadow-float); }
.directory-region-card > img { width: 100%; height: 100%; min-height: 13rem; padding: .8rem; object-fit: contain; background: linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--green-100) 38%, var(--surface-soft))); }
.directory-region-card > div { min-width: 0; padding: 2.5rem 1.15rem 1rem; text-align: right; }
.directory-region-card h2 { margin: 0; font-size: 1.25rem; }
.directory-region-card p { margin: .25rem 0 .8rem; color: var(--text-soft); font-size: .74rem; }
.directory-region-card__meta { display: grid; gap: .15rem; color: var(--text-soft); font-size: .64rem; }
.directory-region-card__meta strong { color: var(--green-900); }

@media (max-width: 760px) {
  .region-directory-grid { grid-template-columns: 1fr; }
  .directory-region-card { grid-template-columns: 8rem 1fr; min-height: 11rem; }
  .directory-region-card > img { min-height: 11rem; }
}

@media (max-width: 430px) {
  .directory-summary { grid-template-columns: 1fr 1fr; }
  .directory-summary div:last-child { grid-column: 1 / -1; }
  .directory-region-card { grid-template-columns: 7.2rem 1fr; }
  .directory-region-card > div { padding-inline: .85rem; }
}

/* Region photo cards: isolated from the hero, map, news and global layout. */
.home-page .region-grid--featured,
.region-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; overflow: visible; }
.region-photo-card { min-width: 0; height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: .95rem; border: 1px solid color-mix(in srgb, var(--border) 88%, transparent); border-radius: 1.4rem; background: #fff; color: var(--text); box-shadow: 0 12px 32px rgba(12,57,44,.065); text-align: right; text-decoration: none; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
html[data-theme="dark"] .region-photo-card { background: var(--navy-900); border-color: rgba(125,167,184,.24); box-shadow: 0 16px 38px rgba(0,0,0,.2); }
.region-photo-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--green-800) 46%, var(--border)); box-shadow: 0 18px 42px rgba(7,58,44,.12); }
.region-photo-card__media { position: relative; isolation: isolate; aspect-ratio: 8 / 5; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 50% / 35%; background: var(--navy-950); }
.region-photo-card__media picture,
.region-photo-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.region-photo-card__media img { object-fit: cover; transform: scale(1.001); transition: transform .3s ease; }
.region-photo-card:hover .region-photo-card__media img { transform: scale(1.02); }
.region-photo-card__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .45rem; color: rgba(255,255,255,.72); text-align: center; }
.region-photo-card__placeholder svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: currentColor; stroke-width: 1.45; }
.region-photo-card__placeholder span { font-size: .72rem; font-weight: 700; }
.region-photo-card__shade { position: absolute; z-index: 2; inset: auto 0 0; height: 56%; background: linear-gradient(to top, rgba(3,12,18,.86), rgba(3,12,18,.42) 48%, transparent); pointer-events: none; }
.region-photo-card__media h2,
.region-photo-card__media h3 { position: absolute; z-index: 3; inset: auto 1rem .8rem; margin: 0; color: #fff; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 900; line-height: 1.35; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.region-photo-card__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: .9rem .15rem .1rem; }
.region-photo-card__status { display: inline-flex; align-items: center; min-height: 1.65rem; padding: .2rem .6rem; border: 1px solid color-mix(in srgb, var(--gold-500, #d49a3a) 34%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--gold-100, #fff1d5) 86%, transparent); color: #80571c; font-size: .62rem; font-weight: 800; }
.region-photo-card__status[data-status="active"] { border-color: rgba(11,146,109,.25); background: color-mix(in srgb, var(--green-100) 86%, transparent); color: var(--green-900); }
html[data-theme="dark"] .region-photo-card__status { background: rgba(239,173,69,.12); color: #f7d69a; }
html[data-theme="dark"] .region-photo-card__status[data-status="active"] { background: rgba(49,200,154,.12); color: #8ce4c7; }
.region-photo-card__body > p { margin: .65rem 0 0; color: var(--text-soft); font-size: .73rem; }
.region-photo-card__meta { min-height: 3.15rem; display: grid; align-content: start; gap: .18rem; margin-top: .65rem; color: var(--text-soft); font-size: .67rem; }
.region-photo-card__meta strong { color: var(--green-900); font-size: .78rem; }
.region-photo-card__cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .8rem; color: var(--green-900); font-size: .72rem; font-weight: 900; }
.region-photo-card__cta b { transition: transform .22s ease; }
.region-photo-card:hover .region-photo-card__cta b { transform: translateX(-3px); }
.region-photo-card[data-image-state="loading"] .region-photo-card__placeholder span::after { content: "…"; }

@media (max-width: 980px) {
  .home-page .region-grid--featured,
  .region-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-page .region-grid--featured,
  .region-directory-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; margin-inline: 0; padding-inline: 0; overflow: visible; scroll-snap-type: none; }
  .home-page .region-photo-card,
  .region-photo-card { width: 100%; max-width: 27rem; margin-inline: auto; padding: .8rem; }
  .region-photo-card__body { padding-top: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .region-photo-card,
  .region-photo-card__media img,
  .region-photo-card__cta b { transition: none; }
  .region-photo-card:hover { transform: none; }
}

/* Mobile + Hero + compact home refinements (Mapbox mobile audit). */
html,
body { max-width: 100%; overflow-x: clip; }

.home-page .hero { min-height: clamp(38rem, 74svh, 44rem); }
.home-page .hero__media { background: #163d34; }
.home-page .hero__picture { opacity: 1; }
.home-page .hero__picture img { object-position: 50% 48%; }
.home-page .hero__overlay {
  background: linear-gradient(to left, rgba(3,31,24,.84) 0%, rgba(4,36,28,.65) 38%, rgba(7,34,29,.18) 73%, rgba(7,34,29,.03) 100%);
}
html[data-theme="dark"] .home-page .hero__overlay {
  background: linear-gradient(to left, rgba(3,18,29,.82) 0%, rgba(4,24,34,.58) 42%, rgba(5,23,35,.12) 76%);
  mix-blend-mode: normal;
}
.home-page .hero__copy { text-align: right; }
.home-page .hero__actions .button { min-height: 52px; }
.home-page .section { padding-block: clamp(2.8rem, 6vw, 4.4rem); }
.home-page .section--map { padding-block: 3.1rem; }
.home-page .quick-search__panel { box-shadow: 0 18px 48px rgba(12,57,44,.1); }
.home-news-empty { grid-column: 1 / -1; }

.footer-links { min-width: min(22rem, 100%); }
.footer-links summary { display: none; }
.footer-links nav,
.footer-links:not([open]) nav { display: flex; }

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .site-header__inner { width: calc(100% - 24px); min-height: 72px; gap: 8px; }
  .site-header .brand { min-width: 0; gap: 6px; }
  .site-header .brand img { width: 38px; height: 38px; flex: 0 0 auto; }
  .site-header .brand > span { max-width: 7.2rem; overflow: hidden; font-size: .88rem; white-space: nowrap; }
  .site-header .header-actions { min-width: 0; gap: 8px; }
  .site-header .theme-trigger { width: auto; min-width: 96px; min-height: 46px; padding: 5px 9px; }
  .site-header .theme-trigger__time small { display: none; }
  .site-header .theme-trigger__time time { min-width: 3.25rem; font-variant-numeric: tabular-nums; }
  .site-header .menu-toggle { width: 48px; min-width: 48px; height: 48px; padding: 0; }

  .home-page .hero {
    min-height: clamp(38rem, 74svh, 42rem);
    height: auto;
    align-items: end;
  }
  .home-page .hero__picture img { object-position: 50% 50%; }
  .home-page .hero__overlay,
  html[data-theme="dark"] .home-page .hero__overlay {
    background: linear-gradient(to top, rgba(3,27,22,.94) 0%, rgba(3,29,24,.73) 46%, rgba(4,29,26,.16) 78%);
  }
  .home-page .hero__content { padding-block: 5rem 4.5rem; }
  .home-page .hero__copy { width: 100%; max-width: 32rem; margin: 0; text-align: right; }
  .home-page .hero .eyebrow { margin-bottom: .5rem; font-size: .66rem; }
  .home-page .hero h1 { max-width: 100%; margin-bottom: .2rem; font-size: clamp(2.75rem, 13vw, 3.8rem); line-height: 1.03; }
  .home-page .hero h2 { max-width: 21rem; margin-bottom: .65rem; font-size: clamp(1.25rem, 6vw, 1.55rem); line-height: 1.48; }
  .home-page .hero__copy > p:not(.eyebrow) { max-width: 22rem; display: -webkit-box; overflow: hidden; font-size: .85rem; line-height: 1.85; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .home-page .hero__actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 1.1rem; }
  .home-page .hero__actions .button--primary { width: 100%; min-height: 54px; }
  .home-page .hero__actions .button--secondary { width: fit-content; min-height: 44px; padding: .45rem 15px; font-size: .78rem; border-color: rgba(255,255,255,.45); color: #fff; background: rgba(4,38,30,.26); }
  .home-page .hero__facts { width: 100%; display: flex; gap: 7px; margin-top: 1rem; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .home-page .hero__facts > div { min-width: 0; flex: 1; padding: 7px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(3,31,26,.32); text-align: center; }
  .home-page .hero__facts strong { overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
  .home-page .hero__facts span { overflow: hidden; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
  .home-page .hero__stars { clip-path: polygon(0 0,100% 0,100% 31%,76% 27%,54% 18%,28% 15%,0 20%); }

  .home-page .quick-search { margin-top: -2.6rem; }
  .home-page .quick-search__panel { padding: .9rem; border-radius: 1.15rem; }
  .home-page .quick-search__head { margin-bottom: .8rem; }
  .home-page .quick-search__head h2 { font-size: 1.25rem; }
  .home-page .journey-fields { gap: 8px; }
  .home-page .journey-fields .field input { min-height: 46px; }

  .home-page .section { padding-block: 2.65rem; }
  .home-page .section--map { padding-block: 2.4rem; }
  .home-page .section-heading { margin-bottom: 1rem; }
  .home-page .section-heading h2 { font-size: clamp(1.55rem, 7.4vw, 2rem); }
  .home-page .section-heading p:not(.eyebrow) { max-width: 28rem; margin-bottom: 0; font-size: .78rem; }

  .home-page .region-grid--featured,
  .home-page .card-grid--news,
  .about-panel__features {
    width: calc(100% + 24px);
    display: flex;
    gap: 12px;
    margin-inline: -12px;
    padding-inline: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
  .home-page .region-grid--featured::-webkit-scrollbar,
  .home-page .card-grid--news::-webkit-scrollbar,
  .about-panel__features::-webkit-scrollbar { display: none; }
  .home-page .region-photo-card,
  .home-page .card-grid--news > .content-card,
  .about-panel__features article {
    width: auto;
    max-width: none;
    flex: 0 0 85vw;
    margin: 0;
    scroll-snap-align: start;
  }
  .home-page .region-photo-card { min-height: 21rem; }
  .home-page .card-grid--news > .home-news-empty { flex: 0 0 100%; }

  .about-panel { overflow: visible; border-radius: 1.25rem; }
  .about-panel__intro { padding: 1.35rem; border-radius: 1.25rem 1.25rem 0 0; }
  .about-panel__intro h2 { font-size: 1.55rem; }
  .about-panel__features { align-content: stretch; padding: 1rem 12px; }
  .about-panel__features article { grid-template-columns: 2.65rem 1fr; align-content: center; min-height: 8.5rem; padding: 1rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface-raised); }

  .home-page .site-footer__grid { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
  .footer-links { width: 100%; min-width: 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
  .footer-links summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: .8rem; font-weight: 800; list-style: none; }
  .footer-links summary::-webkit-details-marker { display: none; }
  .footer-links summary::after { content: "+"; font-size: 1.2rem; font-weight: 500; }
  .footer-links[open] summary::after { content: "−"; }
  .footer-links nav,
  .footer-links:not([open]) nav { display: none; }
  .footer-links[open] nav { display: grid; gap: 2px; padding-bottom: .7rem; }
  .footer-links nav a { min-height: 42px; display: flex; align-items: center; }
  .home-page .site-footer__bottom { padding-block: 1rem; font-size: .64rem; }
}

@media (max-width: 390px) {
  .site-header .brand > span { display: none; }
  .site-header .theme-trigger { min-width: 92px; }
  .home-page .hero h1 { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero__picture,
  .home-page .hero__picture img { transition: none !important; }
}
