*{box-sizing:border-box}
:root{
--brown:#5b3514;--brown-dark:#351d0e;--gold:#d6a44e;
--cream:#f4efe6;--paper:#fffdf9;--muted:#806f61;
--text:#34271e;--border:rgba(91,53,20,.13);
--shadow:0 14px 34px rgba(56,37,20,.10)
}
html,body{min-height:100%}
body{margin:0;color:var(--text);background:var(--cream);font-family:Tahoma,Arial,sans-serif}
button,input,select{font:inherit}
a,button{-webkit-tap-highlight-color:transparent}
.atlas-header{
position:sticky;top:0;z-index:1000;display:flex;align-items:center;
justify-content:space-between;min-height:70px;padding:9px max(18px,calc((100vw - 1560px)/2));
color:#fff;background:rgba(52,31,17,.97);box-shadow:0 6px 22px rgba(0,0,0,.14)
}
.atlas-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}
.atlas-brand img{width:50px;height:50px;border-radius:50%;object-fit:contain;background:#fff}
.atlas-brand strong,.atlas-brand small{display:block}
.atlas-brand strong{font-size:15px}.atlas-brand small{margin-top:2px;color:#dfc59e;font-size:10px}
.atlas-home-link{color:#fff;font-size:12px;font-weight:700;text-decoration:none}
.atlas-hero{
padding:24px max(22px,calc((100vw - 1560px)/2));color:#fff;
background:radial-gradient(circle at 80% 20%,rgba(235,190,102,.25),transparent 28%),
linear-gradient(135deg,#7a451d,#3a2111)
}
.atlas-kicker{color:#e5bd78;font-size:10px;font-weight:700;letter-spacing:.14em}
.atlas-hero h1{margin:7px 0 4px;font-size:clamp(25px,3vw,40px)}
.atlas-hero p{margin:0;color:#ead9c7;font-size:13px;line-height:1.6}
.atlas-main{display:grid;grid-template-columns:285px minmax(0,1fr);max-width:1600px;min-height:calc(100vh - 175px);margin:auto}
.atlas-sidebar{
position:sticky;top:70px;align-self:start;height:calc(100vh - 70px);overflow-y:auto;
padding:18px 14px 30px;border-right:1px solid var(--border);background:#eee3d5
}
.atlas-current-type{padding:13px;border-radius:13px;color:#fff;background:linear-gradient(135deg,#875326,#5b3514)}
.atlas-current-type small,.atlas-current-type strong{display:block}
.atlas-current-type small{opacity:.72;font-size:9px}.atlas-current-type strong{margin-top:5px;font-size:14px}
.atlas-sidebar-title{padding:18px 5px 9px}.atlas-sidebar-title strong,.atlas-sidebar-title span{display:block}
.atlas-sidebar-title strong{font-size:14px}.atlas-sidebar-title span{margin-top:3px;color:var(--muted);font-size:10px}
.atlas-province-list{display:grid;gap:6px}
.atlas-province-list a{
display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;
padding:9px 11px;border:1px solid transparent;border-radius:12px;color:var(--text);
text-decoration:none;background:rgba(255,255,255,.44)
}
.atlas-province-list a:hover,.atlas-province-list a.active{
border-color:rgba(91,53,20,.14);background:#fff;box-shadow:0 7px 17px rgba(56,37,20,.07)
}
.atlas-province-list a.active{color:#fff;background:var(--brown)}
.atlas-province-list a span{font-size:12px}.atlas-province-list a span b{margin-right:6px}
.atlas-province-list a strong{min-width:36px;padding:4px 7px;border-radius:999px;color:var(--muted);background:rgba(91,53,20,.08);font-size:9px;text-align:center}
.atlas-province-list a.active strong{color:var(--brown);background:#fff}
.atlas-category-switch{margin-top:18px;border-top:1px solid var(--border);padding-top:14px}
.atlas-category-switch summary{padding:10px;border-radius:10px;background:rgba(255,255,255,.55);cursor:pointer;font-size:11px;font-weight:700}
.atlas-category-switch nav{display:grid;gap:4px;margin-top:7px}
.atlas-category-switch nav a{padding:8px 9px;border-radius:9px;color:var(--text);font-size:10px;text-decoration:none}
.atlas-category-switch nav a.active{color:#fff;background:var(--brown)}
.atlas-content{min-width:0;padding:18px}
.atlas-province-gate{
min-height:620px;padding:36px;border:1px solid var(--border);border-radius:18px;background:var(--paper);
box-shadow:var(--shadow);text-align:center
}
.atlas-gate-icon{font-size:58px}.atlas-province-gate h2{margin:14px 0 5px;color:var(--brown);font-size:24px}
.atlas-province-gate>p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.atlas-gate-provinces{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:900px;margin:30px auto 0}
.atlas-gate-provinces a{
display:grid;place-items:center;min-height:125px;padding:16px;border:1px solid var(--border);
border-radius:15px;color:var(--text);background:#fbf7f1;text-decoration:none;transition:.16s
}
.atlas-gate-provinces a:hover{transform:translateY(-2px);background:#fff;box-shadow:0 10px 24px rgba(56,37,20,.09)}
.atlas-gate-provinces a span{font-size:28px}.atlas-gate-provinces a strong{margin-top:7px;color:var(--brown);font-size:14px}
.atlas-gate-provinces a small{margin-top:5px;color:var(--muted);font-size:10px}
.atlas-breadcrumb{display:flex;align-items:center;gap:7px;margin-bottom:10px;color:var(--muted);font-size:10px}
.atlas-breadcrumb a{color:var(--brown);text-decoration:none}
.atlas-toolbar{display:grid;grid-template-columns:minmax(220px,1fr)180px 180px auto;gap:9px;margin-bottom:11px}
.atlas-search{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 13px;border:1px solid var(--border);border-radius:12px;background:var(--paper)}
.atlas-search input{width:100%;border:0;outline:0;background:transparent}
.atlas-toolbar select,.atlas-toolbar button{min-height:44px;padding:0 11px;border:1px solid var(--border);border-radius:12px;color:var(--text);background:var(--paper);cursor:pointer}
.atlas-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:11px;padding:13px 15px;border:1px solid var(--border);border-radius:14px;background:var(--paper)}
.atlas-summary h2{margin:0;color:var(--brown);font-size:17px}.atlas-summary p{margin:4px 0 0;color:var(--muted);font-size:11px}
.atlas-view-switch{display:flex;gap:5px}.atlas-view-switch button{padding:7px 10px;border:0;border-radius:8px;color:var(--muted);background:#eee6dc;cursor:pointer;font-size:10px;font-weight:700}
.atlas-view-switch button.active{color:#fff;background:var(--brown)}
.atlas-results{display:grid;grid-template-columns:minmax(310px,38%) minmax(0,1fr);gap:12px;min-height:650px}
.atlas-results[data-view=map]{grid-template-columns:1fr}.atlas-results[data-view=map] .atlas-list-panel{display:none}
.atlas-results[data-view=list]{grid-template-columns:1fr}.atlas-results[data-view=list] .atlas-map-panel{display:none}
.atlas-list-panel,.atlas-map-panel{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--paper);box-shadow:var(--shadow)}
.atlas-list-panel{display:flex;flex-direction:column;max-height:calc(100vh - 255px)}
.atlas-list{flex:1;overflow-y:auto;padding:10px}
.atlas-item{display:grid;grid-template-columns:56px minmax(0,1fr);gap:11px;margin-bottom:8px;padding:10px;border:1px solid rgba(91,53,20,.09);border-radius:13px;color:inherit;background:#fff;text-decoration:none}
.atlas-item:hover{border-color:rgba(91,53,20,.2);box-shadow:0 8px 20px rgba(56,37,20,.09)}
.atlas-item-media{display:grid;place-items:center;width:56px;height:56px;overflow:hidden;border-radius:12px;background:#efe5d8;font-size:24px}
.atlas-item-media img{width:100%;height:100%;object-fit:cover}
.atlas-item strong,.atlas-item span,.atlas-item small{display:block}
.atlas-item strong{overflow:hidden;color:var(--brown);font-size:13px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.atlas-item span{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.45}
.atlas-item small{margin-top:5px;color:#9c6e2c;font-size:9px;font-weight:700}
.atlas-more{margin:0 10px 10px;padding:10px;border:0;border-radius:10px;color:#fff;background:var(--brown);cursor:pointer;font-weight:700}
.atlas-map-panel,#atlasMap{min-height:650px}#atlasMap{width:100%;height:100%}
.cm77-atlas-marker{background:transparent;border:0}.cm77-atlas-pin{display:grid;place-items:center;width:38px;height:38px;border:3px solid #fff;border-radius:50% 50% 50% 12px;background:#7b4b24;box-shadow:0 7px 16px rgba(0,0,0,.25);font-size:18px;transform:rotate(-45deg)}
.cm77-atlas-pin span{transform:rotate(45deg)}
.atlas-empty{display:grid;place-items:center;min-height:260px;color:var(--muted);text-align:center}
@media(max-width:1050px){
.atlas-main{grid-template-columns:245px minmax(0,1fr)}
.atlas-gate-provinces{grid-template-columns:repeat(2,minmax(0,1fr))}
.atlas-toolbar{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
.atlas-header{padding:8px 12px}.atlas-home-link{display:none}.atlas-hero{padding:20px 14px}
.atlas-main{grid-template-columns:1fr}.atlas-sidebar{position:static;width:auto;height:auto;padding:12px;border-right:0}
.atlas-province-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.atlas-content{padding:12px}.atlas-province-gate{min-height:auto;padding:24px 13px}
.atlas-gate-provinces{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.atlas-toolbar{grid-template-columns:1fr}.atlas-summary{align-items:flex-start;flex-direction:column}
.atlas-view-switch{width:100%;overflow-x:auto}.atlas-view-switch button{flex:1 0 auto}
.atlas-results{grid-template-columns:1fr;min-height:auto}.atlas-list-panel{max-height:470px}
.atlas-map-panel,#atlasMap{min-height:62vh}
}


/* CM77 Atlas Multi-Source v3.0 */
.atlas-title-en {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #8a796b;
    font-size: 9px;
    font-style: normal;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atlas-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.atlas-item-meta b {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #76501e;
    background: #f1e5d2;
    font-size: 8px;
    font-weight: 700;
}
