/* Libya map: shared by the home page's facilities section and the facilities map page */
.libya-map { width: 100%; height: auto; display: block; }
.libya-map__land { fill: #0D4B7E; stroke: #49B6FF; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgb(73 182 255 / .6)); }
.libya-map__districts { fill: none; stroke: rgb(120 200 255 / .35); stroke-width: .8; }
.map-pin { cursor: pointer; }
.map-pin__hit { fill: transparent; }
.map-pin__glow { fill: rgb(73 182 255 / .25); }
.map-pin__dot { fill: #fff; stroke: #2FB8E8; stroke-width: 3; }
.map-pin__label { fill: #fff; font-size: var(--fs-small); font-family: var(--font); font-weight: 700; paint-order: stroke; stroke: #001630; stroke-width: 3px; }
.map-pin.is-selected .map-pin__dot { fill: #F28C28; stroke: #fff; r: 10; }
.map-pin.is-selected .map-pin__glow { fill: rgb(242 140 40 / .35); r: 22; }
.map-pin:focus-visible .map-pin__glow { stroke: #fff; stroke-width: 2; }
.map-panel { padding: 24px; border-radius: var(--r-md); background: radial-gradient(circle at 40% 30%, #0B3A66, #001630 70%); box-shadow: var(--shadow-card); }

/* Facilities map page (facilities/خريطة المنشآت الرياضية.jpg): heading, search, type pills, card beside the map */
.facilities-map { padding-bottom: 0; } /* the share bar keeps one section gap (R-93) */
.facilities-map .feature-banner { margin-bottom: 80px; }

.facility-finder { padding-top: 105px; }
.facility-finder__title { font-size: var(--fs-h2); font-weight: 800; }
.facility-finder__title:not(.visually-hidden) { margin-bottom: 8px; }
.facility-finder .search-bar { max-width: 1282px; padding-block: 0 42px; }
.facility-finder__pills { padding-block: 22px 70px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 448px; gap: 33px; align-items: start; max-width: 1278px; margin-inline: auto; }
.map-side { display: grid; gap: 62px; }
/* a pale-blue strip with a hairline edge above the map, and a thin blue rim round the map itself, as drawn */
.facility-finder .map-panel { padding: 12px 0 0; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--shadow-sm); }
.facility-finder .map-panel .libya-map { aspect-ratio: 797 / 669; border: 1px solid #2A4D6B; border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); background: #000D22; }
.libya-map--tilted .libya-map__grid-line { stroke: rgb(110 170 230 / .07); stroke-width: 1; }
.libya-map--tilted .libya-map__side .libya-map__land { fill: #021B38; stroke: #1C6FB5; stroke-width: 1.2; filter: none; }
.libya-map--tilted .libya-map__side .libya-map__districts { display: none; }
.libya-map--tilted .libya-map__land { fill: url(#map-land); stroke: #5CC8FF; stroke-width: 2; filter: drop-shadow(0 0 5px rgb(73 182 255 / .9)); }
.libya-map--tilted .libya-map__districts { stroke: rgb(110 190 255 / .45); stroke-width: 1.3; filter: drop-shadow(0 0 2px rgb(73 182 255 / .6)); }
.libya-map--tilted .map-pin__ring { fill: url(#pin-teal); filter: drop-shadow(0 1px 2px rgb(0 0 0 / .4)); }
.libya-map--tilted .map-pin__dot { fill: #fff; stroke: none; r: 5; }
.libya-map--tilted .map-pin__label { font-size: var(--fs-small); font-weight: 600; stroke: none; filter: drop-shadow(0 1px 2px rgb(0 10 30 / .8)); }
.libya-map--tilted .map-pin.is-selected .map-pin__ring { fill: url(#pin-orange); r: 18.5; }
.libya-map--tilted .map-pin.is-selected .map-pin__dot { fill: #fff; stroke: none; r: 7.6; }
.libya-map--tilted .map-pin.is-selected .map-pin__label { transform: translateY(-6px); }
.libya-map--tilted .map-pin:hover .map-pin__ring { filter: drop-shadow(0 0 6px rgb(92 200 255 / .9)); }
.libya-map--tilted .map-pin:focus-visible { outline: none; }
.libya-map--tilted .map-pin:focus-visible .map-pin__ring { stroke: #fff; stroke-width: 2.5; }

.map-card { display: flex; flex-direction: column; padding: 0 0 37px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.map-card__item { display: grid; gap: 19px; }
.map-card__media { position: relative; height: 206px; background: var(--ink); } /* dark under the white text when a photo is missing */
.map-card__media img, .map-card__media picture { width: 100%; height: 100%; object-fit: cover; }
.map-card__media::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(to top, rgb(0 0 0 / .65), transparent); }
.map-card__status { position: absolute; inset-inline-start: 20px; top: 16px; z-index: 1; padding: 0 12px; border-radius: var(--r-full); background: rgb(70 70 70 / .75); color: #fff; font-size: var(--fs-xs); font-weight: 700; line-height: 22px; }
.map-card__name { position: absolute; inset-inline-start: 21px; bottom: 22px; z-index: 1; color: #fff; }
.map-card__name h3 { font-size: var(--fs-ui); font-weight: 700; line-height: 1.5; }
.map-card__name p { display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); line-height: 1.6; }
.map-card__name .icon { width: 12px; height: 12px; }
.map-card__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 8px; margin: 0; padding-inline: 20px; }
.map-card__facts div { display: grid; gap: 6px; min-height: 61px; padding: 10px 13px; border: 1px solid #EFEDE8; border-radius: var(--r-sm); background: var(--bg); }
.map-card__facts dt { display: flex; align-items: center; gap: 6px; color: var(--gold-strong); font-size: var(--fs-xs); line-height: 1.4; }
.map-card__facts dt .icon { width: 15px; height: 15px; }
.map-card__facts dd { margin: 0; font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; }
.map-card__label { margin-top: 23px; padding-inline: 20px; font-size: var(--fs-xs); font-weight: 700; }
.map-card__list { list-style: none; display: grid; align-content: start; gap: 5px; height: 190px; margin-block: 14px 38px; padding-inline: 20px; overflow-y: auto; }
.map-card__list a { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding-inline: 12px 16px; border-radius: var(--r-full); border: 1px solid transparent; font-size: var(--fs-xs); font-weight: 700; }
.map-card__list .icon { width: 12px; height: 12px; stroke-width: 2; color: var(--text); }
.map-card__list a:hover { color: var(--gold-strong); }
.map-card__list a[aria-current] { background: var(--bg); border-color: var(--border); color: var(--gold-strong); }
.map-card__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-2) 28px 0; }
.map-card__actions .btn { flex: 1 1 180px; }
.map-card__btn .icon { width: 14px; height: 14px; }

@media (max-width: 1000px) {
  .facility-finder { padding-top: 48px; }
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .map-side { gap: 24px; }
}

/* Phones: the map is about a third of its drawn size, so labels would be unreadable; the list and the pin titles name the cities. */
@media (max-width: 600px) {
  .map-pin__label { display: none; }
  .facility-finder__pills { padding-bottom: 32px; }
}
