/* Reset and base */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:64px}
body{font:14px/1.5 Arial,Helvetica,sans-serif;color:#222;background:#fff}
a{color:#1a4fb4;text-decoration:none}
a:hover{text-decoration:underline}
ul{list-style:none}

/* Top navigation (sticky, its own content) */
.nav{position:-webkit-sticky;position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #e3e3e3}
.nav-in{max-width:1100px;margin:0 auto;padding:8px 16px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.logo{font:700 26px Georgia,"Times New Roman",serif;color:#5a1f8a;margin-right:auto}
.logo:hover{text-decoration:none}
.nav-links{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.nav-links a{font-size:13px;color:#555}
.nav-links .btn{background:#222;color:#fff;padding:5px 14px;border-radius:6px}

.wrap{max-width:1100px;margin:0 auto;padding:16px}

/* Map */
.map{position:relative;background:#eef1f5;border-radius:10px;overflow:hidden;aspect-ratio:960/259}
.map svg{width:100%;height:100%;display:block}
.map path{fill:#c9d3e0;stroke:#fff;stroke-width:.5;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .15s}
.map path.dim{fill:#dde3ec}
.map path.hot{fill:#1a4fb4}
.map path:hover,.map path:focus{fill:#e07b00;outline:0}
.map-note{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#777}
.map-tip{position:absolute;z-index:2;pointer-events:none;padding:3px 9px;background:#222;color:#fff;font-size:12px;border-radius:5px;white-space:nowrap;transform:translate(-50%,-135%)}

/* Search */
.search{margin-top:14px}
.search input{width:100%;height:44px;padding:0 14px 0 42px;font-size:16px;border:1px solid #cfcfcf;border-radius:8px;outline:0;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l5 5'/%3E%3C/svg%3E") no-repeat 14px center}
.search input:focus{border-color:#555}
.sr{position:absolute;left:-9999px}

/* Continent filter chips */
.filter{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.filter button{font:inherit;font-size:13px;padding:4px 14px;border:1px solid #c9c9c9;border-radius:999px;background:#fff;color:#444;cursor:pointer}
.filter button:hover{background:#f3f3f3}
.filter button.on{background:#222;border-color:#222;color:#fff}

.popular{margin:10px 0 0;font-size:13px;color:#777}
.popular a{display:inline-block;margin:0 4px 4px 0;padding:1px 10px;background:#f1f1f1;border-radius:999px}
.empty{padding:20px 0;color:#777}

/* Continent label, then plain country list (no cards) */
.continent{margin-top:22px}
.continent h2{font-size:12px;font-weight:bold;letter-spacing:.06em;text-transform:uppercase;color:#777;padding-bottom:6px;margin-bottom:8px;border-bottom:1px solid #dcdfe3}
.countries{columns:4 170px;column-gap:24px}
.countries li{break-inside:avoid;padding:3px 0;font-size:15px}

/* Country page: state heading with a light bottom border, cities below */
.crumb{font-size:13px;color:#777;margin-top:4px}
.page-title{font-size:26px;font-weight:bold;color:#111;margin:6px 0 4px}
.state{margin-top:22px}
.state h2{font-size:16px;font-weight:bold;color:#111;padding-bottom:5px;border-bottom:1px solid #dcdfe3}
.city-list{display:flex;flex-wrap:wrap;gap:2px 18px;padding-top:8px}
.city-list a{font-size:14px;line-height:1.8}
[hidden]{display:none!important}

/* Footer */
.foot{margin-top:28px;padding:14px 10px;background:#f4f4f4;border-top:1px solid #e3e3e3;text-align:center;font-size:12px}
.foot a{margin-right:14px}
.foot span{margin-left:6px;color:#666}

@media(max-width:600px){.nav-in{gap:8px}.nav-links{gap:10px}.logo{font-size:22px}}
/* country page: banner map with one dot per state */
.cmap{position:relative;background:#eef1f5;border-radius:10px;overflow:hidden;aspect-ratio:960/259;min-height:190px;margin:0 0 6px}
.cmap-in{position:absolute;top:0;right:0;bottom:0;left:0}
.cmap .leaflet-container{font:inherit;background:#eef1f5}
.state.hl h2{color:#e07b00}
.state.hl{animation:hlfade 1.8s ease-out}
@keyframes hlfade{0%{background:#fff3e0}100%{background:transparent}}
.state h2{scroll-margin-top:70px}

/* How it works strip */
.how{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;margin:16px 0 0}
.how>div{flex:1 1 200px;border:1px solid #e3e3e6;border-radius:10px;padding:10px 14px;background:#fafafb}
.how b{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:50%;background:#5a1f8a;color:#fff;font-size:12px;margin-right:8px}
.how span{font-weight:bold}
.how small{display:block;margin-top:2px;color:#666;font-size:12.5px}
.how-cta{flex:1 1 200px;display:flex;align-items:center;justify-content:center;background:#5a1f8a;color:#fff;border-radius:10px;padding:10px 14px;font-weight:bold;text-align:center}
.how-cta:hover{background:#4a1b66;text-decoration:none}
