/* World price map (/prices) and country pages (/prices/<country>). Builds on styles.css tokens. */
.pa { background: var(--paper); }
.pa-main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
.pa a { color: inherit; }
.pa .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.pa-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.pa-nav-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pa-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.pa-logo { display: inline-flex; }
.pa-links { display: flex; align-items: center; gap: 4px; }
.pa-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 10px; font-size: 14.5px; font-weight: 550; text-decoration: none; color: var(--ink-2); }
.pa-links a:hover { background: var(--sheet); color: var(--ink); }
.pa-links a.pa-cta { background: var(--ink); color: #fff; padding: 0 14px; }
@media (max-width: 420px) { .pa-links a:not(.pa-cta):not(:first-child) { display: none; } }

/* Hero */
.pa-hero { padding: 28px 0 18px; max-width: 760px; }
.pa-kicker { margin: 0 0 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pa-h1 { margin: 0; font-size: clamp(30px, 6.2vw, 54px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 750; text-wrap: balance; }
.pa-hl { background: linear-gradient(transparent 58%, var(--duck) 58%, var(--duck) 92%, transparent 92%); padding: 0 .06em; }
.pa-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }

/* Map card */
.pa-mapcard { position: relative; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 30px 60px -40px rgba(15,17,20,.35); overflow: hidden; }
.pa-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.pa-seg { display: inline-flex; padding: 4px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; }
.pa-seg button, .pa-seg span { min-height: 38px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 650; color: var(--ink-2); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; }
.pa-seg .on { background: var(--ink); color: #fff; }
.pa-seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pa-search { position: relative; flex: 1 1 220px; display: block; }
.pa-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.pa-search input { width: 100%; min-height: 46px; padding: 0 14px 0 40px; font: inherit; font-size: 16px; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 999px; }
.pa-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,17,20,.08); }

.pa-map { position: relative; width: 100%; aspect-ratio: 2 / 1; background:
  radial-gradient(circle at 1px 1px, rgba(15,17,20,.07) 1px, transparent 0) 0 0 / 14px 14px, #EEF2F1; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.pa-map.drag { cursor: grabbing; }
@media (max-width: 560px) { .pa-map { aspect-ratio: 1.3 / 1; } .pa-legend { left: 8px; bottom: 8px; max-width: calc(100% - 16px); } .pa-zoom { right: 8px; top: 8px; } .pa-zoom button { width: 36px; height: 36px; } }
.pa-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pa-svg path { fill: #DEDAD0; stroke: #fff; stroke-width: .5; vector-effect: non-scaling-stroke; transition: fill .25s ease, opacity .2s; }
.pa-svg path.on { cursor: pointer; }
.pa-svg path.on:hover, .pa-svg path.hover { stroke: var(--ink); stroke-width: 1.4; }
.pa-svg path.sel, .pa-svg .focus { stroke: var(--ink); stroke-width: 2; }
.pa-svg .dot { fill: var(--ink); stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; }
.pa-svg .dot.sel { fill: #E59A00; }
/* buckets: eSIM (green, cheap = dark) and top-up (duck) */
.pa-svg .b0 { fill: #0E6B4B; } .pa-svg .b1 { fill: #2F9568; } .pa-svg .b2 { fill: #79BF8B; } .pa-svg .b3 { fill: #C5E3B1; } .pa-svg .b4 { fill: #EEE6C4; }
.pa-svg .t0 { fill: #FFF0C2; } .pa-svg .t1 { fill: #FFD966; } .pa-svg .t2 { fill: #F5B800; } .pa-svg .t3 { fill: #C98A00; }
.pa-svg .dot.b0, .pa-svg .dot.b1 { fill: #0E6B4B; } .pa-svg .dot.t2, .pa-svg .dot.t3 { fill: #9A6A00; }
.pa-svg path.dim { opacity: .35; }

.pa-zoom { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; }
.pa-zoom button { width: 40px; height: 40px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--line-2); font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 6px 14px -10px rgba(15,17,20,.5); }
.pa-zoom button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pa-legend { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; background: color-mix(in srgb, var(--sheet) 92%, transparent); border: 1px solid var(--line-2); border-radius: 12px; font-size: 12px; color: var(--ink-2); max-width: calc(100% - 80px); backdrop-filter: blur(6px); }
.pa-legend b { font-weight: 650; color: var(--ink); margin-right: 2px; }
.pa-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; border: 1px solid rgba(15,17,20,.1); }
.pa-legend span { white-space: nowrap; }
@media (max-width: 560px) { .pa-legend { font-size: 11px; padding: 6px 8px; gap: 4px 8px; } }

.pa-tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; background: var(--ink); color: #fff; border-radius: 10px; font-size: 13px; line-height: 1.35; box-shadow: 0 12px 26px -14px rgba(0,0,0,.6); max-width: 240px; transform: translate(-50%, calc(-100% - 12px)); }
.pa-tip b { display: block; font-size: 14px; }
@media (hover: none) { .pa-tip { display: none !important; } }

/* Country card (side panel on wide screens, below the map on phones) */
.pa-card { position: absolute; z-index: 6; top: 74px; left: 12px; width: min(340px, calc(100% - 80px)); max-height: calc(100% - 90px); overflow: auto; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 26px 50px -26px rgba(15,17,20,.55); padding: 16px; animation: paIn .22s cubic-bezier(.3,1,.4,1); }
@keyframes paIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pa-card { animation: none; } }
@media (max-width: 720px) { .pa-card { position: relative; top: auto; left: auto; width: auto; max-height: none; margin: 0; border-radius: 0; border-width: 1px 0 0; box-shadow: none; } }
.pa-card-h { display: flex; align-items: flex-start; gap: 10px; }
.pa-card-fl { font-size: 30px; line-height: 1; }
.pa-card-t { flex: 1; min-width: 0; }
.pa-card-n { font-size: 20px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.15; }
.pa-card-r { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pa-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); font-size: 18px; line-height: 1; cursor: pointer; flex: none; }
.pa-blk { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pa-blk-k { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.pa-big { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pa-big small { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-left: 6px; }
.pa-meta { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.pa-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pa-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff !important; font-weight: 650; font-size: 14.5px; text-decoration: none; }
.pa-btn:hover { filter: brightness(1.15); }
.pa-btn-2 { background: var(--sheet); color: var(--ink) !important; border: 1.5px solid var(--ink); }
.pa-hint { margin: 0; padding: 10px 14px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); }

/* Sections */
.pa-sec { padding: 34px 0 6px; }
.pa-h2 { margin: 0; font-size: clamp(22px, 3.6vw, 30px); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
.pa-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 62ch; }
.pa-rank { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; counter-reset: r; }
.pa-rank li { counter-increment: r; }
.pa-rank a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; transition: transform .12s, border-color .12s; }
.pa-rank a::before { content: counter(r); font-size: 12px; font-weight: 700; color: var(--ink-3); width: 16px; }
.pa-rank a:hover { border-color: var(--ink); transform: translateY(-1px); }
.pa-fl { font-size: 20px; line-height: 1; margin-right: 6px; }
.pa-rank .pa-fl { margin: 0; }
.pa-cn { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-cv { font-weight: 750; font-variant-numeric: tabular-nums; color: #0E6B4B; }
.pa-cv small { font-weight: 600; color: var(--ink-3); margin-left: 1px; }

.pa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.pa-chips button { min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.pa-chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pa-tablewrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 16px; margin-top: 14px; }
.pa-chips + .pa-tablewrap { margin-top: 0; }
.pa-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.pa-table th, .pa-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pa-table tbody tr:last-child td { border-bottom: 0; }
.pa-table th { font-size: 12.5px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; background: var(--paper); position: sticky; top: 0; }
.pa-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.pa-table th[aria-sort="ascending"] button::after { content: " \2191"; }
.pa-table th[aria-sort="descending"] button::after { content: " \2193"; }
.pa-table tbody tr:hover { background: var(--paper); }
.pa-tn a { text-decoration: none; font-weight: 600; }
.pa-tn a:hover { text-decoration: underline; }
.pa-na { color: var(--ink-4, #aaa); }
.pa-num { text-align: right !important; }
.pa-act { text-align: right !important; width: 1%; }
.pa-buy { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 9px; background: var(--ink); color: #fff !important; font-size: 13.5px; font-weight: 650; text-decoration: none; }
.pa-tag { font-size: 11px; font-weight: 650; padding: 2px 6px; border-radius: 6px; background: var(--duck-soft); color: var(--ink-2); margin-left: 4px; }
@media (max-width: 560px) { .pa-hide-s { display: none; } .pa-table th, .pa-table td { padding: 10px; font-size: 14px; } .pa-table td { white-space: normal; } .pa-table .pa-act, .pa-table .pa-num { white-space: nowrap; } }
.pa-spd { display: none; }
@media (max-width: 560px) { .pa-spd { display: block; font-size: 12px; color: var(--ink-3); } }
.pa-open p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.55; max-width: 70ch; }
.pa-open a { text-decoration: underline; text-underline-offset: 3px; }
.pa-small { font-size: 13px; color: var(--ink-3) !important; }

/* Country page */
.pa-crumbs { display: flex; gap: 8px; align-items: center; padding: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.pa-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.pa-chero { display: grid; gap: 20px; padding: 14px 0 6px; align-items: center; }
@media (min-width: 860px) { .pa-chero { grid-template-columns: 1.05fr 1fr; gap: 32px; } }
.pa-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pa-stat { flex: 1 1 150px; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 16px; }
.pa-stat-k { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.pa-stat-v { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pa-stat-s { font-size: 13px; color: var(--ink-2); }
.pa-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pa-minimap { position: relative; aspect-ratio: 2 / 1; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #EEF2F1; }
.pa-minimap .pa-svg path { fill: #E2DED4; }
.pa-minimap .pa-svg path.focus { fill: var(--duck); stroke: var(--ink); stroke-width: 1.5; }
.pa-minimap .pa-svg .dot { display: none; }
.pa-minimap .pa-svg .dot.focus { display: inline; fill: #E59A00; }
.pa-near { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pa-near a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line-2); font-size: 14px; font-weight: 550; text-decoration: none; }
.pa-near a:hover { border-color: var(--ink); }
.pa-foot { padding-bottom: 40px; }
