
/* Floating controls and result cards from the original Mikro Seçim atlas. */
.atlas-restored{
    --atlas-ink:#1e293b;
    --atlas-muted:#64748b;
    --atlas-red:#e3001b;
    --atlas-line:#e2e8f0;
    --atlas-water:#eef0f4;
    color:var(--atlas-ink);
    background:var(--atlas-water);
    grid-template-rows:minmax(0,1fr) auto;
}
.atlas-restored .atlas-main{grid-template-rows:minmax(0,1fr) auto}
.atlas-restored .atlas-mast{
    position:absolute;inset:12px 12px auto;z-index:30;min-height:56px;padding:8px 16px;
    gap:10px;justify-content:space-between;border:1px solid #e2e8f0cc;border-radius:16px;
    background:#fffffff5;color:#0f172a;backdrop-filter:blur(12px);
    box-shadow:0 16px 24px -12px #0f172a46,0 4px 8px -3px #0f172a1c
}
.atlas-restored .atlas-brand img{width:36px;height:36px;border-radius:11px;box-shadow:0 3px 8px #e3001b25}
.atlas-restored .atlas-brand strong{font-size:14px;font-weight:700}
.atlas-restored .atlas-brand small{font-size:10px;font-weight:500;color:#64748b}
.atlas-restored .atlas-toolbar{
    position:static;z-index:auto;display:flex;align-items:center;justify-content:center;
    min-height:0;min-width:0;padding:0;border:0;background:transparent
}
.atlas-restored .atlas-primary{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.atlas-restored .atlas-primary>label,.atlas-restored .atlas-location-select,
.atlas-restored .atlas-classic-actions>label{font-size:0;gap:0}
.atlas-restored .atlas-primary>label select,.atlas-restored .atlas-classic-actions>label select,
.atlas-restored .atlas-search input{
    min-height:32px;padding:5px 25px 5px 10px;border:1px solid #cbd5e1;box-shadow:0 1px 2px #0f172a08;
    border-radius:11px;background-color:#f1f5f9;color:#1e293b;font-size:12px;font-weight:600
}
.atlas-restored .atlas-primary>label select:hover,.atlas-restored .atlas-search input:hover{background-color:#e9eef4}
.atlas-restored .atlas-primary .atlas-classic-election select{width:clamp(176px,19vw,258px)}
.atlas-restored .atlas-primary .atlas-location-select select{width:clamp(98px,10.6vw,150px);max-width:none}
.atlas-restored .atlas-levels{margin-left:0;background:#f1f5f9;border-color:#cbd5e1;border-radius:11px}
.atlas-restored .atlas-levels button{min-height:26px;padding:4px 8px;border:0;border-radius:8px;color:#64748b;font-size:12px}
.atlas-restored .atlas-levels button[aria-pressed=true]{background:#fff;color:#e3001b;box-shadow:0 1px 3px #0f172a26}
.atlas-quick-modes svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.atlas-quick-modes button{display:inline-flex;align-items:center;gap:4px}
.atlas-restored .atlas-search{width:208px;min-width:126px;background:none;border:0;padding:0;flex:0 1 208px}
.atlas-restored .atlas-search-icon{position:absolute;left:10px;z-index:1;width:11px;height:11px;border-color:#94a3b8;pointer-events:none}
.atlas-restored .atlas-search-icon::after{background:#94a3b8;left:7px;top:8px;width:5px}
.atlas-restored .atlas-search input{width:100%;padding-left:29px}
.atlas-restored .atlas-search input::placeholder{color:#64748b}
.atlas-restored .atlas-search-results{left:auto;right:0;min-width:min(320px,85vw)}
.atlas-restored .atlas-stage{--atlas-nav-top:76px;--atlas-map-top:119px;--atlas-panel-width:min(384px,40vw)}
.atlas-restored .atlas-stage:has(.is-expanded){--atlas-panel-width:min(580px,55vw)}
.atlas-classic-nav{
    position:absolute;z-index:11;inset:var(--atlas-nav-top) 12px auto;
    display:flex;align-items:flex-start;justify-content:space-between;gap:6px;pointer-events:none
}
.atlas-classic-location,.atlas-classic-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;pointer-events:auto}
.atlas-classic-actions{justify-content:flex-end}
.atlas-classic-location{
    border:1px solid #e2e8f0;padding:0 7px;border-radius:10px;background:#fffffff5;
    box-shadow:0 2px 8px #0f172a11
}
.atlas-classic-actions>details>summary,.atlas-classic-actions>a{
    display:flex;align-items:center;gap:5px;border:1px solid #e2e8f0;border-radius:10px;background:#fffffff5;
    color:#475569;min-height:32px;padding:4px 9px;font-size:12px;font-weight:650;text-decoration:none;
    box-shadow:0 2px 8px #0f172a11
}
.atlas-restored .atlas-classic-actions .atlas-pop{left:auto;right:0}
.atlas-restored .atlas-direct-party img{display:none}
.atlas-restored .atlas-layers{top:var(--atlas-map-top)}
.atlas-restored .atlas-map-alert{top:calc(var(--atlas-map-top) + 44px)}
.atlas-restored .atlas-loading{top:calc(var(--atlas-map-top) + 44px)}
.atlas-restored .atlas-map-tools,.atlas-restored .atlas-stage:has(.atlas-panel:not([hidden])) .atlas-map-tools{
    top:auto;bottom:36px;right:62px
}
.atlas-restored .atlas-stage:has(.atlas-panel:not([hidden])) .atlas-map-tools{right:calc(var(--atlas-panel-width) + 22px)}
.atlas-restored .atlas-map-tools .atlas-pop{top:auto;bottom:calc(100% + 6px)}
.atlas-restored .maplibregl-ctrl-group{
    background:#fffffff2;border:1px solid #e2e8f0cc;border-radius:12px;
    box-shadow:0 10px 15px -6px #0f172a2b;overflow:hidden
}
.atlas-restored .atlas-stage .atlas-key{left:24px;bottom:24px;max-width:min(260px,75vw)}
.atlas-restored .atlas-key details{border:1px solid #e2e8f0;border-radius:16px;background:#fffffff5;
    padding:3px;box-shadow:0 10px 18px -5px #0f172a32}
.atlas-restored .atlas-key summary{font-weight:750;text-transform:uppercase;letter-spacing:.05em;font-size:11px;color:#0f172a}
.atlas-restored .atlas-key .atlas-legend{column-gap:11px}
.atlas-restored .atlas-legend i{width:9px;height:9px;border-radius:50%}
.atlas-restored .atlas-legend .reference{height:6px;border-radius:0}
.atlas-restored .atlas-panel{
    top:calc(var(--atlas-map-top) + 3px);right:16px;bottom:24px;border-radius:16px;border:1px solid #e2e8f0;
    background:#fffffff7;box-shadow:0 22px 35px -10px #0f172a3d
}
.atlas-restored .atlas-panel-top{padding:13px 14px 11px;background:#f8fafcf7;border-bottom-color:#e2e8f0}
.atlas-restored .atlas-panel-top h2{font-size:18px;font-weight:800}
.atlas-restored .atlas-panel-top .atlas-result-location{font-size:10px;color:#c3152c;font-weight:750;letter-spacing:.04em;text-transform:uppercase;margin:0 0 4px}
.atlas-winner-card{
    display:flex;align-items:center;gap:10px;border-radius:12px;padding:11px 10px;border:1px solid #e2e8f0;
    background:linear-gradient(90deg,color-mix(in srgb,var(--winner-color) 11%,white),white);margin-bottom:10px
}
.atlas-winner-card .atlas-winner-stripe{width:9px;min-height:41px;border-radius:6px;background:var(--winner-color);flex:none}
.atlas-winner-card small,.atlas-winner-card strong,.atlas-winner-card div>span{display:block}
.atlas-winner-card small{font-size:10px;color:#64748b;font-weight:750}
.atlas-winner-card strong{font-size:14px;font-weight:800;line-height:1.25}
.atlas-winner-card div>span{font-size:11px;color:#475569}
.atlas-winner-card b{margin-left:auto;color:var(--winner-color);font-size:20px;white-space:nowrap;font-weight:800}
.atlas-restored .atlas-facts{border:0;padding:0;gap:8px}
.atlas-restored .atlas-facts>div{padding:8px 9px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px}
.atlas-restored .atlas-facts dt{font-weight:600;font-size:10px}
.atlas-restored .atlas-facts .atlas-turnout-fact dd{color:#047857}
.atlas-vote-card{padding:10px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin:9px 0}
.atlas-vote-card h4{display:flex;justify-content:space-between;gap:6px;margin:0;font-size:12px;color:#1e293b}
.atlas-vote-card h4 small{color:#64748b;font-weight:400}
.atlas-restored .atlas-party-rows .atlas-vote-track{height:7px}
.atlas-hover{
    position:absolute;z-index:9;pointer-events:none;max-width:270px;background:#0f172aed;border:1px solid #334155;
    color:#f1f5f9;border-radius:12px;padding:7px 10px;box-shadow:0 12px 20px #0f172a35;font-size:12px
}
.atlas-hover strong,.atlas-hover-context{display:block}
.atlas-hover-context{font-size:10px;color:#cbd5e1}
.atlas-hover-result{display:flex;align-items:center;gap:5px;border-top:1px solid #334155;margin-top:4px;padding-top:4px}
.atlas-hover-result i{width:9px;height:9px;border-radius:50%;flex:none}
.atlas-hover-result b{margin-left:auto}
.atlas-boot{
    position:fixed;inset:0;z-index:35;display:flex;flex-direction:column;align-items:center;justify-content:center;
    background:#0f172add;color:#fff;backdrop-filter:blur(3px)
}
.atlas-boot-spinner{width:42px;height:42px;border:3px solid #ef4444;border-top-color:transparent;border-radius:50%;animation:atlas-spin .8s linear infinite}
.atlas-boot p{font-size:13px;font-weight:750;margin:13px 0 2px}
.atlas-boot small{color:#cbd5e1}
.atlas-restored .atlas-timeline{background:#f8fafc;color:#475569;border-top:1px solid #e2e8f0;min-height:41px}
.atlas-restored .atlas-timeline span,.atlas-restored .atlas-timeline button{color:#475569}
.atlas-restored .atlas-timeline button:hover{background:#f1f5f9}
.atlas-restored .atlas-timeline button[aria-pressed=true]{color:#e3001b;background:#fff;border-color:#f3b5c1}
.atlas-restored .atlas-foot{background:#f8fafc;border-top-color:#e2e8f0}

@media(min-width:1120px){
    .atlas-restored .atlas-toolbar{flex:1 1 auto}
    .atlas-restored .atlas-primary{flex-wrap:nowrap}
    .atlas-restored .atlas-primary .atlas-classic-election select{width:clamp(185px,17.7vw,258px)}
    .atlas-restored .atlas-primary .atlas-location-select select{width:clamp(94px,8.5vw,150px)}
}
@media(max-width:720px){
    .atlas-restored .atlas-mast{inset:7px 7px auto;display:grid;grid-template-columns:auto minmax(0,1fr);padding:7px 8px;gap:5px 7px}
    .atlas-restored .atlas-brand img{width:31px;height:31px}
    .atlas-restored .atlas-search{width:100%;min-width:0}
    .atlas-restored .atlas-toolbar{grid-column:1/-1;grid-row:2}
    .atlas-restored .atlas-primary{width:100%;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px}
    .atlas-restored .atlas-primary .atlas-classic-election{grid-column:span 6}
    .atlas-restored .atlas-primary .atlas-location-select{grid-column:span 3;grid-row:auto}
    .atlas-restored .atlas-primary .atlas-classic-election select,.atlas-restored .atlas-primary .atlas-location-select select{width:100%;max-width:100%;font-size:12px;min-height:35px;padding-left:7px;padding-right:17px;background-position:calc(100% - 10px) 54%,calc(100% - 6px) 54%}
    .atlas-restored .atlas-primary .atlas-levels{grid-column:span 6}
    .atlas-restored .atlas-primary .atlas-levels button{min-height:32px;font-size:12px}
    .atlas-classic-nav{inset-inline:7px;flex-wrap:wrap}
    .atlas-classic-location{border-radius:8px}
    .atlas-classic-actions>details>summary,.atlas-classic-actions>a{min-height:32px;padding-inline:6px;font-size:11px}
    .atlas-classic-actions .atlas-nav-more>div{right:-4px}
    .atlas-restored .atlas-breadcrumb button{min-height:29px}
    .atlas-restored .atlas-stage .atlas-key{left:7px;bottom:8px}
    .atlas-restored .atlas-panel,.atlas-restored .atlas-panel.is-expanded{inset:auto 0 0;width:100%;border-radius:15px 15px 0 0;max-height:64%}
    .atlas-restored .atlas-panel.is-expanded{max-height:75%}
    .atlas-restored .atlas-stage:has(.atlas-panel:not([hidden])) .atlas-map-tools{right:62px}
}
@media(max-width:375px){
    .atlas-restored .atlas-primary .atlas-levels button{font-size:11px;padding-inline:3px}
    .atlas-restored .atlas-primary .atlas-classic-election select,.atlas-restored .atlas-primary .atlas-location-select select{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.atlas-boot-spinner{animation:none}}

