/* Free tools and visa pages: built on tokens.css + style.css (the legal pages' .doc layout). Mobile first. */
[hidden] { display: none !important; }
img.flag { object-fit: cover; }
.doc-head .lead { margin-top: 14px; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* Calculator card */
.calc { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px; margin-bottom: 28px; }
.calc-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.field input, .field select {
  width: 100%; min-width: 0; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--ground); font-size: 16px; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-window { border: 0; margin: 0; padding: 16px; border-radius: var(--r-tile); background: var(--ground); display: grid; gap: 12px; }
.calc-window legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 15px; }
.calc-window .field input, .calc-window .field select { background-color: var(--card); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dest-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ground); cursor: pointer; font-size: 14px; font-weight: 600; }
.dest-chip:hover { border-color: var(--ink-2); }
.dest-chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.calc-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.calc-rule, .calc-note { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.calc-error { margin: 0; color: var(--warning); font-weight: 600; }
.calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.calc-link { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.trips { display: grid; gap: 10px; }
.trips-head { margin: 0; font-weight: 700; font-size: 14px; }
#trip-list { display: grid; gap: 10px; }
/* Phones: two date columns, the remove button in the row's top-right corner (beside the labels). */
.trip { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.trip-country .field:first-child { grid-column: 1 / -1; }
.trip input[type="date"] { padding: 0 10px; }
.trip-remove { position: absolute; top: -6px; right: 0; height: 30px; width: 30px; border: 0; border-radius: 10px; background: var(--track);
  color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.trip-remove:hover { color: var(--ink); }

/* Result */
.result { border-radius: var(--r-tile); background: var(--premium); padding: 18px; display: grid; gap: 14px; }
.result[data-state="blocked"], .result[data-state="ended"] { background: rgba(194, 64, 8, .1); }
.result-main small { display: block; color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.result-main b { display: block; font-size: clamp(30px, 8vw, 44px); line-height: 1.1; margin: 4px 0; }
.result-main span { color: var(--ink-2); font-size: 15px; }
.result-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.result-stats div { background: var(--card); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.result-stats b { font-size: 26px; font-family: var(--serif); font-weight: 400; line-height: 1.1; }
.result-stats span { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.result .bar { margin: 0; background: var(--card); }
.result-note { margin: 0; font-size: 15px; }
.result-period { margin: 0; font-weight: 700; }
.day-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.day-rows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; background: var(--card); border-radius: 14px; padding: 12px 14px; }
.day-rows .meter { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.day-rows .meter i { display: block; height: 100%; background: var(--success); border-radius: inherit; }
.day-rows li.over .meter i { background: var(--warning-fill); }
.day-rows small { grid-column: 1 / -1; color: var(--warning); font-weight: 600; }
.warn { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-tile); background: rgba(194, 64, 8, .1); line-height: 1.5; }

/* App call to action */
.cta { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px; margin: 0 0 40px; }
.cta img { border-radius: 16px; flex: none; }
.cta-title { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.cta p { margin: 0 0 14px; color: var(--ink-2); }
.doc-body .cta { box-shadow: none; background: var(--ground); margin: 28px 0; }
.doc-body .cta .btn { color: var(--ground); text-decoration: none; }

/* Visa status */
.answer { display: grid; gap: 10px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px; margin: 0 0 28px; }
.answer-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.answer-big { font-family: var(--serif); font-size: clamp(30px, 7vw, 46px); line-height: 1.1; margin: 0; }
.answer p { margin: 0; color: var(--ink-2); }
.chip.red { background: rgba(194, 64, 8, .12); color: var(--warning); }
.chip { padding: 6px 12px; }
.doc-updated + .doc-updated { margin-left: 8px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; }
.facts div { background: var(--ground); border-radius: 14px; padding: 10px 12px; }
.facts dt { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Lists of destinations and passports */
.dest-list { list-style: none; padding: 0 !important; margin: 0 0 18px !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.dest-list li { margin: 0 !important; }
.dest-list a, .dest-list span.row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--ground);
  color: var(--ink) !important; text-decoration: none; font-size: 15px; }
.dest-list a:hover { background: var(--track); }
.dest-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-list em { font-style: normal; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.doc-body .counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.counts li { margin: 0 !important; }
.counts a { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 14px; border-radius: 999px; background: var(--ground); text-decoration: none; color: var(--ink) !important; font-size: 14px; }
.counts b { font-size: 18px; }
.filter { margin: 0 0 14px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.grid { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
.grid th, .grid td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid thead th { color: var(--ink-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.grid tbody th { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.grid td a { color: var(--ink) !important; text-decoration: none; }
.grid td a:hover { color: var(--accent) !important; text-decoration: underline; }

/* Text bits inside the document card */
.doc-body details { background: var(--ground); box-shadow: none; padding: 0 18px; }
.doc-body summary { font-size: 16px; padding: 16px 0; }
.doc-body details p { padding-bottom: 16px; }
.doc-body ol { margin: 0 0 14px; padding-left: 22px; }
.disclaimer { margin-top: 28px !important; padding: 14px 16px; border-radius: 14px; background: var(--ground); font-size: 15px; }
.sources a { word-break: break-word; }
.unverified { color: var(--ink-2); font-style: italic; }

@media (min-width: 640px) {
  .calc, .answer, .cta { padding: 28px; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid-3 { grid-template-columns: 1.4fr 1fr 1fr; }
  .trip { grid-template-columns: 1fr 1fr 40px; }
  .trip-country { grid-template-columns: 1.3fr 1fr 1fr 40px; }
  .trip-remove { position: static; height: 48px; width: 40px; font-size: 22px; }
  .trip-country .field:first-child { grid-column: auto; }
  .dest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .dest-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  /* One swipeable row of destinations on phones instead of five rows of chips. */
  .chips-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px; scrollbar-width: none; }
  .chips-row::-webkit-scrollbar { display: none; }
  .dest-chip { flex: none; }
}
@media (max-width: 420px) {
  .cta { flex-direction: column; }
  .result-stats b { font-size: 22px; }
}

/* "Official details are shown in English": only when the page is shown in another language. */
.en-note { display: none; }
html:not([lang|="en"]) .en-note { display: block; margin: 0 0 10px; font-size: 13px; color: var(--ink-2); font-style: italic; }

/* Visa-free map: segmented switches, summary, map, legend, tooltip, list and comparison */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ground); }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.vf-passports { display: grid; gap: 12px; }
.vf-pick { display: flex; gap: 8px; align-items: center; }
.vf-pick select { flex: 1; }
.vf-pick .trip-remove { position: static; flex: none; }
.vf-options { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vf-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vf-summary div { background: var(--ground); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.vf-summary b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.vf-summary span { font-size: 13px; color: var(--ink-2); }
.vf-cmp-sum { min-width: 0; }
.vf-map-box { position: relative; border-radius: var(--r-tile); background: var(--ground); padding: 0 14px 14px; }
.vf-map-box > summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; }
.vf-map-box > summary::-webkit-details-marker { display: none; }
.vf-map-box[open] .when-closed, .vf-map-box:not([open]) .when-open { display: none; }
.vf-map-box .seg { background: var(--card); margin-bottom: 10px; }
.vf-map svg { display: block; width: 100%; height: auto; }
.vf-map path, .vf-map circle { stroke: var(--card); stroke-width: var(--stroke, .5); fill: var(--track); cursor: pointer; transition: opacity .15s; }
.vf-map .land-other { fill: var(--track); opacity: .6; cursor: default; }
.vf-map .dim { opacity: .25; }
.vf-map path:hover, .vf-map circle:hover { stroke: var(--ink); stroke-width: 1; }
  --vf-d1: #d9efe0; --vf-d2: #b5e0c3; --vf-d3: #86cb9f; --vf-d4: #53b07a; --vf-d5: #2f8f5a; --vf-d6: #1d6b42; --vf-d0: #13502f;
  --vf-c1: #2f9e5f; --vf-c2: #4a86d8; --vf-c3: #b26ad6; --vf-tie: #8fb9a0; --vf-same: #d8d2c8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --vf-none: #4a4640; --vf-home: #8b847c; --vf-same: #4c4842;
  --vf-d1: #1f3a2a; --vf-d2: #23503a; --vf-d3: #2a6a4a; --vf-d4: #3a8a60; --vf-d5: #52a877; --vf-d6: #79c596; --vf-d0: #a5dcb8; } }
:root[data-theme="dark"] { --vf-none: #4a4640; --vf-home: #8b847c; --vf-same: #4c4842;
  --vf-d1: #1f3a2a; --vf-d2: #23503a; --vf-d3: #2a6a4a; --vf-d4: #3a8a60; --vf-d5: #52a877; --vf-d6: #79c596; --vf-d0: #a5dcb8; }
.vf-map .d0, .sw.d0 { fill: var(--vf-d0); background: var(--vf-d0); } .vf-map .d1, .sw.d1 { fill: var(--vf-d1); background: var(--vf-d1); }
.vf-map .d2, .sw.d2 { fill: var(--vf-d2); background: var(--vf-d2); } .vf-map .d3, .sw.d3 { fill: var(--vf-d3); background: var(--vf-d3); }
.vf-map .d4, .sw.d4 { fill: var(--vf-d4); background: var(--vf-d4); } .vf-map .d5, .sw.d5 { fill: var(--vf-d5); background: var(--vf-d5); }
.vf-map .d6, .sw.d6 { fill: var(--vf-d6); background: var(--vf-d6); }
.vf-map .c-p1, .sw.c-p1 { fill: var(--vf-c1); background: var(--vf-c1); } .vf-map .c-p2, .sw.c-p2 { fill: var(--vf-c2); background: var(--vf-c2); }
.vf-map .c-p3, .sw.c-p3 { fill: var(--vf-c3); background: var(--vf-c3); } .vf-map .c-tie { fill: var(--vf-tie); }
.vf-map .c-same, .sw.c-same { fill: var(--vf-same); background: var(--vf-same); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.vf-tip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; background: var(--card); color: var(--ink); border-radius: 12px;
  padding: 8px 12px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.4; max-width: 260px; }
.vf-list-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; }
.vf-list-head .filter { flex: 1 1 240px; margin: 0; }
.vf-diff { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.vf-list h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.vf-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vf-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--ground); }
.vf-rows small, .vf-rows .vf-official { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.vf-official { color: var(--accent) !important; font-weight: 600; text-underline-offset: 3px; }
.vf-row-name { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
a.vf-row-name:hover .name { text-decoration: underline; }
.vf-row-name .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-status { font-size: 14px; font-weight: 600; white-space: nowrap; }
.vf-cmp td.win { background: var(--accent-soft); }
.vf-cmp th .vf-row-name { font-weight: 600; }
.cmp-p1::before, .cmp-p2::before, .cmp-p3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.cmp-p1::before { background: var(--vf-c1); } .cmp-p2::before { background: var(--vf-c2); } .cmp-p3::before { background: var(--vf-c3); }
.changes { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.changes li { display: grid; gap: 2px; margin: 0 !important; padding: 12px 14px; border-radius: 14px; background: var(--ground); color: var(--ink-2); }
.changes time { font-size: 13px; font-weight: 700; color: var(--accent); }
.chg-place { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.rank .rk-place { font-variant-numeric: tabular-nums; font-weight: 700; }
.rank .rk-place small { font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.rank .rk-num { font-variant-numeric: tabular-nums; }
.rank th a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.rank .rk-map { color: var(--accent) !important; font-weight: 600; }
@media (min-width: 640px) {
  .vf-passports { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vf-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .changes li { grid-template-columns: 120px 180px minmax(0, 1fr); align-items: baseline; }
}

:root { --vf-d1: #d9efe0; --vf-d2: #b5e0c3; --vf-d3: #86cb9f; --vf-d4: #53b07a; --vf-d5: #2f8f5a; --vf-d6: #1d6b42; --vf-d0: #13502f;
  --vf-c1: #2f9e5f; --vf-c2: #4a86d8; --vf-c3: #b26ad6; --vf-tie: #8fb9a0; --vf-same: #d8d2c8; }

/* ---- One colour per entry group, everywhere: maps, chips, pills, rows, bars ---- */
:root {
  --g-free: #2f9e5f; --g-online: #4a7fd4; --g-arrival: #d99a2b; --g-required: #cf5f3c; --g-none: #c3bcb1; --g-home: #6b6560;
  --g-free-ink: #1f7a47; --g-online-ink: #2f5fae; --g-arrival-ink: #95640c; --g-required-ink: #b0431f; --g-none-ink: #736e66;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --g-free: #45b375; --g-online: #6f9be6; --g-arrival: #e2ad4c; --g-required: #e07a55; --g-none: #4a4640; --g-home: #8b847c;
  --g-free-ink: #7fd3a1; --g-online-ink: #a8c4f5; --g-arrival-ink: #f0c983; --g-required-ink: #f2a588; --g-none-ink: #a39c91;
  --vf-none: #4a4640; --vf-same: #4c4842;
  --vf-d1: #1f3a2a; --vf-d2: #23503a; --vf-d3: #2a6a4a; --vf-d4: #3a8a60; --vf-d5: #52a877; --vf-d6: #79c596; --vf-d0: #a5dcb8; } }
:root[data-theme="dark"] {
  --g-free: #45b375; --g-online: #6f9be6; --g-arrival: #e2ad4c; --g-required: #e07a55; --g-none: #4a4640; --g-home: #8b847c;
  --g-free-ink: #7fd3a1; --g-online-ink: #a8c4f5; --g-arrival-ink: #f0c983; --g-required-ink: #f2a588; --g-none-ink: #a39c91;
  --vf-same: #4c4842;
  --vf-d1: #1f3a2a; --vf-d2: #23503a; --vf-d3: #2a6a4a; --vf-d4: #3a8a60; --vf-d5: #52a877; --vf-d6: #79c596; --vf-d0: #a5dcb8; }
.g-free { --g: var(--g-free); --gi: var(--g-free-ink); } .g-online { --g: var(--g-online); --gi: var(--g-online-ink); }
.g-arrival { --g: var(--g-arrival); --gi: var(--g-arrival-ink); } .g-required { --g: var(--g-required); --gi: var(--g-required-ink); }
.g-none { --g: var(--g-none); --gi: var(--g-none-ink); } .g-home { --g: var(--g-home); --gi: var(--ink-2); }
.vf-map .g-free, .vf-map .g-online, .vf-map .g-arrival, .vf-map .g-required, .vf-map .g-none, .vf-map .g-home { fill: var(--g); }
.sw.g-free, .sw.g-online, .sw.g-arrival, .sw.g-required, .sw.g-none { background: var(--g); }
.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; font-style: normal; white-space: nowrap;
  color: var(--gi) !important; background: color-mix(in srgb, var(--g) 16%, transparent); text-decoration: none !important; }
.vf-status.g-free, .vf-status.g-online, .vf-status.g-arrival, .vf-status.g-required, .vf-status.g-none { color: var(--gi); }
.chip.green { background: color-mix(in srgb, var(--g-free) 16%, transparent); color: var(--g-free-ink); }
.chip.blue { background: color-mix(in srgb, var(--g-online) 16%, transparent); color: var(--g-online-ink); }
.chip.amber { background: color-mix(in srgb, var(--g-arrival) 18%, transparent); color: var(--g-arrival-ink); }
.chip.red { background: color-mix(in srgb, var(--g-required) 16%, transparent); color: var(--g-required-ink); }
.chip.grey { background: var(--track); color: var(--ink-2); }
.grid td .st { font-size: 12px; }
.dest-list em.st { margin-left: auto; }

/* Stacked bar: counts inside the segments; the mini bar has none */
.stack { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; }
.stack span { display: flex; align-items: center; justify-content: center; min-width: 26px; background: var(--g); color: #fff;
  font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.stack .g-none { color: var(--ink); }
.stack.mini { height: 6px; border-radius: 999px; gap: 1px; }
.stack.mini span { min-width: 2px; }

/* Map component */
.bmap { position: relative; }
.bmap svg { display: block; width: 100%; height: auto; }
.bmap.zoomed svg { touch-action: none; cursor: grab; }
.bmap-zoom { position: absolute; top: 8px; right: 8px; display: grid; gap: 4px; }
.bmap-zoom button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.bmap-zoom button:hover { background: var(--track); }
.vf-map .muted { fill: var(--track); cursor: default; }
.vf-map .focus { stroke: var(--ink); stroke-width: calc(var(--stroke, .5) * 3); }
.vf-map-box > summary::after { display: none; }
.vmap-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vmap-tools .seg { margin: 0; }

/* Passport dashboard: card + stats | map + bar + extras | sticky list */
.pp-head { margin-bottom: 24px; }
.pp-dash { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.pp-side { order: 1; display: grid; gap: 12px; }
.pp-stack { order: 2; }
.pp-map { order: 3; }
.pp-list { order: 4; }
.pp-extras { order: 5; display: grid; gap: 16px; }
.pp-card { position: relative; overflow: hidden; display: grid; gap: 4px; justify-items: start; padding: 22px; border-radius: 22px; min-height: 170px;
  color: #fbf6ef; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%),
  linear-gradient(150deg, #8c4f36 0%, #5b3324 55%, #2b1b14 100%); box-shadow: var(--shadow-lg); }
.pp-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); }
.pp-card img.flag { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); margin-bottom: auto; }
.pp-card-label { margin-top: 26px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.pp-card b { font-size: 26px; line-height: 1.1; font-weight: 400; }
.pp-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-stats div { background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); border-left: 4px solid var(--g, var(--line)); }
.pp-stats dt { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.pp-stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.pp-stats dd a { color: var(--accent); text-decoration: none; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-map .vmap, .hub-hero, .pp-extra, .pp-list { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; }
.pp-map .vf-map-box { padding: 0; background: none; }
.pp-extra h2, .pp-list h2 { font-size: 22px; margin: 0 0 12px; }
.pp-longest { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pp-longest li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--g) 9%, var(--card)); }
.pp-longest .name { flex: 1; }
.pp-list .filter { margin: 0 0 10px; }
.pp-filters { border-radius: 16px; margin-bottom: 10px; }
.pp-filters button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 13px; }
.pp-filters b { font-weight: 700; color: var(--ink-2); }
.pp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pp-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 12px;
  background: color-mix(in srgb, var(--g) 8%, var(--card)); border-left: 3px solid var(--g); scroll-margin-top: 90px; }
.row-link { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; font-size: 15px; }
a.row-link:hover .name { text-decoration: underline; }
.row-link .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pills { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pill { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--gi); background: color-mix(in srgb, var(--g) 18%, transparent); }
.pill.days { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--card); color: var(--accent) !important;
  text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.pp-rows li:not(:has(.icon-btn)) { grid-template-columns: minmax(0, 1fr) auto; }
@media (min-width: 1100px) {
  .pp-head { width: min(1400px, 100% - 40px); }
  .pp-dash { width: min(1400px, 100% - 40px); display: grid; grid-template-columns: 250px minmax(0, 1fr) 360px; grid-template-areas: "side map list" "side stack list" "side extras list";
    grid-template-rows: auto auto 1fr; align-items: start; }
  .pp-side { grid-area: side; position: sticky; top: 84px; }
  .pp-map { grid-area: map; } .pp-stack { grid-area: stack; } .pp-extras { grid-area: extras; }
  .pp-list { grid-area: list; position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
  .pp-rows { overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
  .pp-stats { grid-template-columns: 1fr; }
}

/* Hub */
.hub-hero { display: grid; gap: 14px; margin-bottom: 36px; }
.vmap-pick { max-width: 360px; }
.hub-hero .vf-map-box { padding: 0; background: none; }
.hub-sections h2 { font-size: clamp(26px, 3vw, 34px); margin: 36px 0 8px; }
.hub-sections > p { margin: 0 0 14px; }
.pcards { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pcards.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pcard { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: transform .15s; }
.pcard:hover { transform: translateY(-2px); }
.pcard-head { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.pcard-head .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-count { display: flex; align-items: baseline; gap: 6px; color: var(--ink-2); font-size: 13px; }
.pcard-count b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); }
.compact .pcard { padding: 10px 12px; } .compact .pcard-count b { font-size: 20px; }
.glance-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 8px 12px; }

/* Pair page: chip under the title, locator beside the answer */
.pair-chip { margin: 14px 0 0; }
.pair-chip .chip { font-size: 15px; padding: 7px 14px; }
.answer.has-map { grid-template-columns: minmax(0, 1fr); }
.answer-text { display: grid; gap: 10px; min-width: 0; }
.locator { border-radius: 16px; overflow: hidden; background: var(--ground); aspect-ratio: 2 / 1; min-height: 140px; }
.locator svg { height: 100%; }
@media (min-width: 900px) { .answer.has-map { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .locator { aspect-ratio: 4 / 3; } }
@media (min-width: 900px) { .vmap .vf-map-box > summary, .hub-hero .vf-map-box > summary { display: none; } }
@media (max-width: 1099px) {
  .pp-card { min-height: 0; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 18px; }
  .pp-card img.flag { grid-row: 1 / 3; margin: 0; }
  .pp-card-label { margin-top: 0; align-self: end; }
  .pp-card b { align-self: start; }
}
@media (max-width: 640px) { .bmap-zoom button { width: 28px; height: 28px; font-size: 15px; } }

/* ---- Country picker (seo-picker.js): button, popover on wide screens, bottom sheet on phones ---- */
.picker-wrap { position: relative; display: block; min-width: 0; }
.picker { position: relative; width: 100%; height: 48px; display: flex; align-items: center; padding: 0 40px 0 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--ground); color: var(--ink); font-size: 16px; text-align: left; cursor: pointer; }
.calc-window .picker, .hub-hero .picker { background: var(--card); }
.picker:hover { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.picker:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.picker-face { display: flex; align-items: center; gap: 10px; min-width: 0; }
.picker-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker.is-empty .picker-name { color: var(--ink-2); }
.picker-chevron { position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.picker[aria-expanded="true"] .picker-chevron { transform: translateY(-20%) rotate(-135deg); }
.picker-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: max(100%, 340px); max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; max-height: min(440px, 70vh); overflow: hidden; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); outline: none; }
.picker-pop.is-up { top: auto; bottom: calc(100% + 6px); }
.picker-bar { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.picker-search { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground);
  color: var(--ink); font-size: 16px; }
.picker-search:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.picker-close { display: none; flex: none; place-items: center; width: 44px; border: 0; border-radius: 12px; background: var(--track); color: var(--ink-2);
  font-size: 24px; cursor: pointer; }
.picker-list { list-style: none; margin: 0; padding: 4px 6px 8px; overflow-y: auto; overscroll-behavior: contain; }
.picker-list ul { list-style: none; margin: 0; padding: 0; }
.picker-head { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.picker-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.picker-opt.is-active { background: var(--track); }
.picker-opt[aria-selected="true"] { font-weight: 650; }
.picker-opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-code { color: var(--ink-2); font-size: 12px; letter-spacing: .05em; }
.picker-check { width: 16px; text-align: center; color: var(--accent); font-weight: 700; }
.picker-empty { margin: 0; padding: 14px 16px; color: var(--ink-2); }
.picker-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 12, .45); }
.picker-pop.is-sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 86vh;
  border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
.is-sheet .picker-bar { padding: 14px; }
.is-sheet .picker-search { height: 50px; font-size: 17px; }
.is-sheet .picker-close { display: grid; height: 50px; width: 50px; }
.is-sheet .picker-opt { padding: 12px; font-size: 17px; gap: 12px; }
html.picker-lock, html.picker-lock body { overflow: hidden; }
