/* ===== مؤشر الجوازات (2026-10-10) — passport hero, destination check, world map, tiles, compare + ranking tables ===== */
.pi { display: flex; flex-direction: column; gap: 14px; --pi-r: 16px; --pi-wine: #5a1426; --pi-wine-d: #2e0a14; --pi-cream: #f6dfb4;
  --pi-F: #15994a; --pi-A: #7cb518; --pi-T: #0b8fd6; --pi-E: #e8930c; --pi-R: #dc3545; --pi-home: var(--pi-wine); }
.pi-i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.pi-k-F { --k: var(--pi-F); --kl: #e3f6ea; } .pi-k-A { --k: var(--pi-A); --kl: #eff8dc; } .pi-k-T { --k: var(--pi-T); --kl: #e0f2fd; }
.pi-k-E { --k: var(--pi-E); --kl: #fdf1dc; } .pi-k-R { --k: var(--pi-R); --kl: #fde6e8; } .pi-k-home { --k: var(--pi-wine); --kl: #f7e6ea; }

/* hero */
.pi-hero { display: flex; gap: 22px; align-items: center; padding: 20px 22px; border-radius: var(--pi-r); color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(90% 140% at 100% 0, #7d1d35 0, var(--pi-wine) 40%, var(--pi-wine-d) 100%); box-shadow: var(--shadow); }
.pi-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 14px 14px; mask-image: linear-gradient(to left, #000, transparent 70%); }
.pi-hero__covers { position: relative; flex: none; width: calc(104px + (var(--n) - 1) * 26px); height: 150px; }
.pi-cover { position: absolute; top: calc(var(--i) * 6px); inset-inline-start: calc(var(--i) * 26px); width: 100px; height: 146px; border-radius: 8px 12px 12px 8px; overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4), inset 4px 0 0 rgba(0, 0, 0, .25); background: #1f0a10; display: grid; place-items: center; z-index: calc(10 - var(--i)); transition: transform .2s; }
.pi-cover img { width: 100%; height: 100%; object-fit: cover; }
.pi-hero__covers:hover .pi-cover { transform: rotate(calc(var(--i) * -3deg)); }
.pi-hero__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.pi-hero__top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 26px; }
.pi-hero__top > div:first-child { flex: 1; min-width: 180px; }
.pi-eyebrow { color: var(--pi-cream); font-weight: 800; font-size: .76rem; letter-spacing: .02em; }
.pi-hero h2 { font-size: 1.6rem; font-weight: 900; line-height: 1.25; }
.pi-rank, .pi-score { display: flex; flex-direction: column; line-height: 1.15; }
.pi-rank small { font-size: .72rem; color: #f3c9d2; font-weight: 700; }
.pi-rank b { font-size: 2rem; font-weight: 900; color: var(--pi-cream); direction: ltr; text-align: start; }
.pi-rank span { font-size: .72rem; color: #f3c9d2; font-weight: 700; }
.pi-score { padding-inline-start: 22px; border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.pi-score b { font-size: 2rem; font-weight: 900; }
.pi-score span { font-size: .76rem; color: #f3c9d2; font-weight: 700; max-width: 150px; }
.pi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pi-pchip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: .28rem .7rem .28rem .35rem; font-weight: 800; font-size: .82rem;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.pi-pchip button { display: grid; place-items: center; border: 0; background: rgba(0, 0, 0, .2); color: #fff; width: 20px; height: 20px; border-radius: 50%; padding: 0; transition: background .15s; }
.pi-pchip button:hover { background: rgba(0, 0, 0, .45); }
.pi-pchip button .pi-i { width: 12px; height: 12px; }
.pi-pchip--add, .pi-pchip--ghost { padding: .28rem .8rem; cursor: pointer; font: inherit; font-weight: 800; font-size: .8rem; transition: background .18s, color .18s; }
.pi-pchip--add { background: var(--pi-cream); color: var(--pi-wine-d); border-color: var(--pi-cream); }
.pi-pchip--add:hover { background: #fff; }
.pi-pchip--ghost { background: none; }
.pi-pchip--ghost:hover { background: rgba(255, 255, 255, .12); }
.pi-bar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.pi-bar__s { border: 0; padding: 0; background: var(--k); min-width: 4px; transition: filter .15s; }
.pi-bar__s:hover { filter: brightness(1.2); }
.pi-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pi-lg { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; color: #fbe9ee; border-radius: 999px; padding: .2rem .6rem; font: inherit; font-size: .78rem; font-weight: 700; transition: background .15s, border-color .15s; }
.pi-lg i { width: 9px; height: 9px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.pi-lg b { font-weight: 900; color: #fff; }
.pi-lg:hover, .pi-lg.is-on { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.pi-legend__t { margin-inline-start: auto; font-size: .74rem; color: #f3c9d2; font-weight: 700; }

/* tabs */
.pi-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pi-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .5rem 1rem; font: inherit; font-weight: 800; font-size: .88rem; color: var(--ink); transition: border-color .18s, background .18s, color .18s; }
.pi-tabs button small { background: #f1f5f9; border-radius: 999px; padding: 0 7px; font-size: .72rem; }
.pi-tabs button:hover { border-color: var(--pi-wine); }
.pi-tabs button.is-on { background: var(--pi-wine); border-color: var(--pi-wine); color: #fff; }
.pi-tabs button.is-on small { background: rgba(255, 255, 255, .2); }
.pi-src { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .74rem; font-weight: 700; }

.pi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--pi-r); padding: 12px; }

/* destination check */
.pi-check { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--pi-r); padding: 10px; transition: border-color .2s, box-shadow .2s; }
.pi-check--on { border-color: var(--k); box-shadow: 0 0 0 3px var(--kl); }
.pi-dest { display: flex; align-items: center; gap: 10px; min-width: 250px; border: 1.5px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; padding: 8px 12px; font: inherit; text-align: start; color: var(--ink); transition: border-color .18s, background .18s; }
.pi-dest:hover { border-color: var(--pi-wine); background: #fff; }
.pi-dest > .pi-i:first-child { width: 22px; height: 22px; color: var(--pi-wine); }
.pi-dest__t { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.pi-dest b { font-weight: 900; font-size: 1rem; }
.pi-dest small { color: var(--muted); font-weight: 700; font-size: .76rem; }
.pi-dest__c { color: var(--muted); }
.pi-check--on .pi-dest { border-style: solid; background: #fff; }
.pi-res { flex: 1; min-width: 260px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pi-res__big { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 12px; background: var(--kl); color: var(--k); }
.pi-res__big > .pi-i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--k); color: #fff; box-sizing: content-box; }
.pi-res__big div { display: flex; flex-direction: column; line-height: 1.35; }
.pi-res__big b { font-weight: 900; font-size: 1.1rem; }
.pi-res__big span { color: #334155; font-weight: 700; font-size: .8rem; }
.pi-res__pp { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pi-res__pp li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; }
.pi-res__a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-inline-start: auto; }
.pi-guide { display: flex; align-items: center; gap: 8px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 6px 10px; font: inherit; text-align: start; color: var(--ink); transition: border-color .18s, transform .18s; }
.pi-guide:hover { border-color: var(--pi-wine); transform: translateY(-1px); }
.pi-guide > .pi-i:first-child { color: var(--pi-wine); width: 20px; height: 20px; }
.pi-guide { max-width: 100%; }
.pi-guide__t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pi-guide small { color: var(--muted); font-size: .7rem; font-weight: 700; }
.pi-guide b { font-size: .84rem; font-weight: 900; }
.pi-copy { display: inline-flex; align-items: center; gap: 6px; }
.pi-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); transition: color .15s, border-color .15s; }
.pi-x:hover { color: var(--ink); border-color: #94a3b8; }

/* map */
.pi-card--map { padding: 6px; background: linear-gradient(#fbfcfe, #f3f6fb); }
.pi-map svg { display: block; width: 100%; height: auto; }
.pi-map [data-pi-c] { fill: var(--k, #dfe3ea); stroke: #fff; stroke-width: .5; cursor: pointer; transition: opacity .2s, fill .2s; }
.pi-map circle[data-pi-c] { stroke-width: 1; }
.pi-map .pi-k-none { fill: #e5e8ee; cursor: default; }
.pi-map .is-dim { opacity: .14; }
.pi-map [data-pi-c]:hover { filter: brightness(1.12); }
.pi-map .is-sel { stroke: #0f172a; stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(15, 23, 42, .45)); }
.pi-tip { position: fixed; z-index: 90; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: #0f172a; color: #fff; font-size: .82rem; font-weight: 800; box-shadow: 0 10px 24px rgba(15, 23, 42, .3); }
.pi-tip[hidden] { display: none; }

/* list */
.pi-lbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.pi-sp { flex: 1; }
.pi-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; background: #f8fafc; width: 320px; max-width: 100%; color: var(--muted); transition: border-color .18s, background .18s; }
.pi-search:focus-within { border-color: var(--pi-wine); background: #fff; }
.pi-search input { border: 0; outline: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; padding: .5rem 0; width: 100%; color: var(--ink); }
.pi-count { color: var(--muted); font-size: .8rem; font-weight: 700; }
.pi-fchip { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: .3rem .75rem; font: inherit; font-size: .8rem; font-weight: 800; background: var(--kl); color: var(--k); }
.pi-mode { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f1f5f9; }
.pi-mode button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: 8px; padding: .35rem .75rem; font: inherit; font-size: .8rem; font-weight: 800; color: #475569; transition: background .15s, color .15s; }
.pi-mode button.is-on { background: #fff; color: var(--pi-wine); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pi-diff { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; color: #475569; }
.pi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pi-tile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: inherit; text-align: start; transition: border-color .18s, transform .18s, box-shadow .18s; }
.pi-tile:hover { border-color: #cbd5e1; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 23, 42, .07); }
.pi-tile.is-sel { border-color: var(--pi-wine); box-shadow: 0 0 0 2px #f2d3db; }
.pi-tile__n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pi-tile__n b { font-weight: 900; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-tile__n small { color: var(--muted); font-size: .7rem; font-weight: 600; direction: ltr; text-align: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-pill { display: inline-flex; align-items: center; gap: 4px; flex: none; white-space: nowrap; border-radius: 999px; padding: .15rem .55rem; font-size: .7rem; font-weight: 800; background: var(--kl); color: var(--k); }
.pi-pill .pi-i { width: 12px; height: 12px; }
.pi-k-A.pi-pill { color: #4d7c0f; } .pi-k-E.pi-pill { color: #b45309; }
.pi-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 10px; color: var(--muted); text-align: center; }
.pi-empty .pi-i { width: 28px; height: 28px; }

.pi-flag { flex: none; display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%; background: #f1f5f9; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); vertical-align: middle; }
.pi-flag img { width: 100%; height: 100%; object-fit: cover; }
.pi-flag--xs { width: 20px; height: 20px; } .pi-flag--sm { width: 30px; height: 30px; } .pi-flag--md { width: 40px; height: 40px; } .pi-flag--lg { width: 64px; height: 64px; }

/* compare + ranking tables */
.pi-cmp-w, .pi-rank-w { overflow-x: auto; }
.pi-cmp, .pi-rk { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.pi-cmp th, .pi-rk th { position: sticky; top: 0; background: #f8fafc; text-align: start; font-weight: 800; font-size: .76rem; color: #475569; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pi-cmp td, .pi-rk td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.pi-cmp tbody tr, .pi-rk tbody tr { cursor: pointer; transition: background .15s; }
.pi-cmp tbody tr:hover, .pi-rk tbody tr:hover { background: #fbf5f7; }
.pi-rk tr.is-sel { background: #f7e6ea; }
.pi-rk__n { display: inline-grid; place-items: center; min-width: 30px; height: 26px; border-radius: 8px; background: #f1f5f9; font-weight: 900; font-size: .8rem; }
.pi-rk tr:nth-child(-n+3) .pi-rk__n { background: var(--pi-cream); color: var(--pi-wine-d); }
.pi-rk__p { display: inline-flex; align-items: center; gap: 8px; }
.pi-rk__bar { display: flex; align-items: center; gap: 8px; min-width: 160px; }
.pi-rk__bar i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--pi-F), #4ade80); }
.pi-rk__bar b { font-weight: 900; }
.pi-num { font-weight: 800; color: #334155; }

/* picker popover */
.pi-pop { position: fixed; z-index: 95; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 48px rgba(15, 23, 42, .22); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pi-pop[hidden] { display: none; }
.pi-pop__q { width: 100%; }
.pi-pop__l { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; }
.pi-pop__h { padding: 6px 8px 2px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.pi-opt { display: flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 8px; padding: 6px 8px; font: inherit; font-weight: 700; font-size: .86rem; color: var(--ink); text-align: start; transition: background .12s; }
.pi-opt__n { flex: 1; }
.pi-opt:hover { background: #f7e6ea; }
.pi-opt[hidden], .pi-pop__h[hidden] { display: none; }
.pi-pop__r { color: var(--muted); font-weight: 800; font-size: .72rem; }

.pi button:focus-visible, .pi-pop button:focus-visible { outline: 3px solid #e8b4c1; outline-offset: 2px; }

@media (max-width: 760px) {
  .pi-hero { flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
  .pi-hero__covers { height: 112px; width: calc(78px + (var(--n) - 1) * 22px); }
  .pi-cover { width: 76px; height: 110px; inset-inline-start: calc(var(--i) * 22px); }
  .pi-hero h2 { font-size: 1.3rem; }
  .pi-rank b, .pi-score b { font-size: 1.6rem; }
  .pi-src { margin-inline-start: 0; width: 100%; }
  .pi-tabs button { flex: 1; justify-content: center; padding: .5rem .6rem; font-size: .84rem; }
  .pi-score { padding-inline-start: 0; border: 0; }
  .pi-check { flex-direction: column; }
  .pi-res__big { width: 100%; box-sizing: border-box; }
  .pi-guide { flex: 1 1 100%; }
  .pi-dest, .pi-res { min-width: 0; width: 100%; }
  .pi-res__a { margin-inline-start: 0; }
  .pi-search { width: 100%; }
  .pi-rk__k { display: none; }
  .pi-rk__bar { min-width: 110px; }
  .pi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pi-tile { flex-wrap: wrap; }
  .pi-tile__n small { display: none; }
}
@media (max-width: 420px) { .pi-grid { grid-template-columns: minmax(0, 1fr); } .pi-tile { flex-wrap: nowrap; } }
