/* Discovery Sicily Maps & Territories v4 */
.atlas-v4-hero{position:relative;overflow:hidden;padding:clamp(44px,6vw,82px) 0 34px;background:radial-gradient(circle at 82% 16%,rgba(64,174,205,.22),transparent 34%),linear-gradient(135deg,#042b49,#07557a);color:#fff}.atlas-v4-hero:after{content:"";position:absolute;right:-80px;bottom:-180px;width:520px;height:520px;border:1px solid rgba(255,255,255,.12);border-radius:50%}.atlas-v4-hero .kicker{color:#8fe5f5}.atlas-v4-hero h1{max-width:820px;margin:.3rem 0 .75rem;font-size:clamp(2.35rem,5vw,5.1rem);line-height:.95;letter-spacing:-.05em}.atlas-v4-hero p{max-width:760px;font-size:clamp(1rem,1.5vw,1.25rem);color:rgba(255,255,255,.82)}.atlas-v4-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px;align-items:end}.atlas-v4-stats{display:grid;grid-template-columns:repeat(3,auto);gap:8px}.atlas-v4-stats span{min-width:102px;padding:14px 16px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.08);backdrop-filter:blur(10px);font-size:.76rem}.atlas-v4-stats strong{display:block;font-size:1.45rem;color:#fff}.atlas-v4-section{padding-top:24px}.atlas-v4-commandbar{position:relative;z-index:40;display:grid;grid-template-columns:minmax(280px,1.5fr) minmax(180px,.55fr) minmax(230px,.75fr);gap:10px;padding:12px;border:1px solid #dce8ee;border-radius:20px;background:#fff;box-shadow:0 16px 45px rgba(11,49,73,.09);transition:.2s}.atlas-v4-commandbar.is-stuck{position:sticky;top:78px;box-shadow:0 18px 48px rgba(11,49,73,.18)}.atlas-v4-search{display:flex;align-items:center;gap:10px;border:1px solid #d6e2e8;border-radius:14px;padding:0 12px;background:#f9fbfc}.atlas-v4-search>span{font-size:1.4rem;color:#0c6689}.atlas-v4-search input{width:100%;min-height:48px;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}.atlas-v4-search button{border:0;background:transparent;font-size:1.3rem;color:#6c8190;cursor:pointer}.atlas-v4-select{display:flex;flex-direction:column;justify-content:center;padding:5px 12px;border:1px solid #d6e2e8;border-radius:14px}.atlas-v4-select span{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#718794}.atlas-v4-select select{border:0;background:#fff;padding:3px 0;font-weight:700;color:#0b3854}.atlas-v4-switch{display:flex;align-items:center;gap:10px;padding:0 14px;border-radius:14px;background:#edf7f9;color:#0b4f6e;font-weight:750;font-size:.83rem}.atlas-v4-switch input{accent-color:#08789d;width:18px;height:18px}.atlas-v4-provinces{display:flex;gap:7px;overflow:auto;padding:14px 2px 18px;scrollbar-width:none}.atlas-v4-provinces::-webkit-scrollbar{display:none}.atlas-v4-provinces button{white-space:nowrap;border:1px solid #d8e5ea;background:#fff;color:#486272;border-radius:999px;padding:8px 13px;font-weight:750;cursor:pointer}.atlas-v4-provinces button:hover,.atlas-v4-provinces button.is-active{background:#073f62;border-color:#073f62;color:#fff}.atlas-v4-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 350px!important;gap:18px!important;align-items:start}.atlas-v4-map-card{min-width:0;border:1px solid #d8e5ea;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 18px 50px rgba(11,50,75,.08)}.atlas-v4-map-toolbar{display:flex!important;align-items:center!important;gap:8px!important;padding:10px 12px!important;background:#fff!important;border:0!important}.atlas-v4-map-toolbar button{border:1px solid #d7e4ea!important;background:#f7fafb!important;color:#0b4f6f!important;border-radius:999px!important;padding:8px 12px!important;font-weight:800!important}.atlas-v4-map-toolbar span{margin-left:auto;font-size:.78rem;color:#6b818f}.atlas-v4-map-card #ds-municipal-map{height:min(68vh,720px)!important;min-height:520px!important;border:0!important;border-radius:0!important}.atlas-v4-map-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:11px 14px;background:#fbfcfd;border-top:1px solid #e8eff2}.atlas-v4-map-footer details{font-size:.75rem;color:#647b89}.atlas-v4-map-footer details summary{cursor:pointer;font-weight:800}.atlas-v4-results{position:sticky!important;top:150px!important;max-height:calc(100vh - 175px);overflow:hidden;border:1px solid #d8e5ea!important;border-radius:22px!important;background:#fff!important;padding:0!important;box-shadow:0 16px 45px rgba(11,50,75,.07)}.atlas-v4-results-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 16px 8px}.atlas-v4-results-head h2{margin:.2rem 0 0;font-size:1.15rem}.atlas-v4-results-head button{border:0;background:transparent;color:#08789d;font-weight:800;font-size:.75rem;cursor:pointer}.atlas-v4-results #ds-result-status{padding:0 16px 10px;color:#718492;font-size:.78rem}.atlas-v4-results .ds-commune-list{max-height:calc(100vh - 310px);overflow:auto;padding:0 8px}.atlas-v4-results .ds-commune-list.is-collapsed,.atlas-v4-results .ds-atlas-pages.is-collapsed{display:none}.atlas-v4-results .ds-commune-item{position:relative;display:grid!important;grid-template-columns:1fr auto!important;gap:2px 12px!important;align-items:center!important;margin:4px 0!important;padding:11px 12px!important;border:0!important;border-radius:13px!important;background:#f8fafb!important;text-decoration:none!important}.atlas-v4-results .ds-commune-item:hover{background:#eaf5f8!important;transform:translateX(2px)}.atlas-v4-results .ds-commune-item strong{font-size:.92rem;color:#123c55}.atlas-v4-results .ds-commune-item small{grid-column:1;color:#7b8c96}.atlas-v4-results .ds-commune-item>span{grid-column:2;grid-row:1/3;color:#08789d;font-size:.75rem;font-weight:850}.atlas-v4-results .ds-atlas-pages{display:flex;justify-content:center;align-items:center;gap:12px;padding:12px;border-top:1px solid #e8eff2}.atlas-v4-results .ds-atlas-pages button{width:38px;height:34px;border:1px solid #d8e5ea;border-radius:10px;background:#fff;color:#0b5575;font-weight:900}.atlas-sticky-sentinel{height:1px}.leaflet-popup-content-wrapper{border-radius:18px!important;box-shadow:0 16px 45px rgba(5,40,62,.18)!important}.leaflet-popup-content{font-family:inherit!important;line-height:1.45!important}.leaflet-control-zoom{border:0!important;box-shadow:0 8px 28px rgba(5,40,62,.18)!important}.leaflet-control-zoom a{color:#075777!important}.discovery-geo-section{margin-top:clamp(28px,4vw,50px);padding:0!important;border:1px solid #d7e5eb;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 18px 50px rgba(10,53,78,.07)}.discovery-geo-head{display:flex;justify-content:space-between;gap:24px;padding:22px 24px 16px}.discovery-geo-head h2{margin:.25rem 0 .4rem}.discovery-geo-head p{margin:0;color:#657b89}.discovery-geo-badge{align-self:flex-start;white-space:nowrap;padding:7px 10px;border-radius:999px;background:#eaf6f8;color:#086785;font-size:.72rem;font-weight:850}.discovery-map-frame{position:relative}.discovery-context-map{height:390px;background:#eaf1f4}.discovery-geo-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 18px 18px}.ds-v4-icon{background:transparent!important;border:0!important}.ds-v4-pin{display:block;width:30px;height:30px;border:4px solid #fff;border-radius:50% 50% 50% 8px;background:#e94154;box-shadow:0 7px 20px rgba(7,49,75,.25);transform:rotate(-45deg)}.ds-v4-pin i{display:block;width:8px;height:8px;margin:7px;border-radius:50%;background:#fff}.territory-official-card{padding:22px!important;border:1px solid #d8e5ea;border-radius:20px;background:linear-gradient(135deg,#f7fbfc,#eef7f8)}.territory-official-head h2{margin:.25rem 0}.territory-official-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.territory-tech-details,.municipality-v4-tech details{margin-top:14px;color:#657b89;font-size:.82rem}.territory-tech-details summary,.municipality-v4-tech summary{cursor:pointer;font-weight:800;color:#31566b}.territory-story-card{overflow:hidden}.territory-story-card .card-img{aspect-ratio:16/10;object-fit:cover}.territory-atlas-cta{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:22px 24px!important;border-radius:22px;background:linear-gradient(135deg,#073c60,#08799c);color:#fff}.territory-atlas-cta .kicker,.territory-atlas-cta p{color:#bce6ef}.territory-atlas-cta h2{color:#fff;margin:.25rem 0}.municipality-v4-hero{padding:clamp(44px,6vw,80px) 0;background:radial-gradient(circle at 88% 15%,rgba(83,188,207,.2),transparent 32%),linear-gradient(135deg,#062f4d,#0a6082);color:#fff}.municipality-v4-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:34px;align-items:end}.municipality-v4-hero h1{margin:.25rem 0 .65rem;font-size:clamp(2.4rem,5vw,4.8rem);letter-spacing:-.045em;color:#fff}.municipality-v4-hero p{max-width:760px;color:rgba(255,255,255,.83);font-size:1.08rem}.municipality-v4-facts{display:grid;gap:8px;min-width:220px}.municipality-v4-facts span{padding:13px 15px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.08)}.municipality-v4-facts small,.municipality-v4-facts strong{display:block}.municipality-v4-facts small{color:#b6dce8}.municipality-v4-map-section{padding-top:26px!important;padding-bottom:10px!important}.municipality-v4-map-section .discovery-geo-section{margin-top:0}.territory-soft-section{background:#f5f9fa}.territory-event-list{display:grid;gap:8px}.territory-event-list a{display:flex;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #d9e6eb;border-radius:13px;background:#fff;text-decoration:none}.territory-mobility-news{margin-top:18px}.municipality-v4-tech{padding-top:6px!important}
@media(max-width:1050px){.atlas-v4-hero-grid,.municipality-v4-hero-grid{grid-template-columns:1fr}.atlas-v4-stats{justify-content:start}.atlas-v4-layout{grid-template-columns:1fr!important}.atlas-v4-results{position:relative!important;top:auto!important;max-height:none}.atlas-v4-results .ds-commune-list{max-height:420px}.atlas-v4-commandbar{grid-template-columns:1fr 1fr}.atlas-v4-switch{grid-column:1/-1;min-height:44px}.atlas-v4-map-card #ds-municipal-map{height:58vh!important;min-height:440px!important}.discovery-context-map{height:350px}}
@media(max-width:680px){.atlas-v4-hero{padding-top:34px}.atlas-v4-stats{grid-template-columns:repeat(3,minmax(90px,1fr));width:100%;overflow:auto}.atlas-v4-stats span{min-width:90px}.atlas-v4-commandbar{grid-template-columns:1fr;padding:9px;border-radius:16px}.atlas-v4-commandbar.is-stuck{top:66px}.atlas-v4-switch{grid-column:auto}.atlas-v4-map-card #ds-municipal-map{height:62vh!important;min-height:400px!important}.atlas-v4-map-toolbar{flex-wrap:wrap!important}.atlas-v4-map-toolbar span{width:100%;margin-left:0}.atlas-v4-map-footer{align-items:flex-start;flex-direction:column}.atlas-v4-results .ds-commune-list{max-height:360px}.discovery-geo-head{flex-direction:column;padding:18px}.discovery-geo-badge{align-self:flex-start}.discovery-context-map{height:300px}.discovery-geo-actions .btn{flex:1;text-align:center}.territory-atlas-cta{align-items:flex-start;flex-direction:column}.municipality-v4-facts{grid-template-columns:1fr 1fr;min-width:0}.territory-event-list a{flex-direction:column;gap:4px}}

/* v4.1 layout corrections */
.discovery-geo-section{display:block!important;width:100%!important;max-width:100%!important}.discovery-map-frame,.discovery-context-map{width:100%!important;min-width:0!important}.territory-official-card,.territory-stories{display:block!important;width:100%!important}.atlas-travel-section{padding-top:14px!important;background:#f5f9fa}.atlas-travel-section #ds-travel-host>.ds-travel-panel{margin:0!important}.atlas-v4-map-toolbar{margin-bottom:0!important}
