/* Cidade viva — v39. The map owns the stage; controls stay at its edges. */
.cidade-viva{--map-sheet-size:172px;background:#e5ebe0}.cidade-viva .map-top{right:80px;top:18px;display:flex;flex-direction:column;gap:12px;pointer-events:none}.cidade-viva .map-top button,.cidade-viva .viva-layers{pointer-events:auto}.cidade-viva .map-city{align-self:flex-start;min-height:60px;padding:11px 15px;background:#fffffff5;border:1px solid #ffffffd9;border-radius:19px;box-shadow:0 5px 24px #224f4214;gap:14px}.cidade-viva .map-city small{font-size:10px;letter-spacing:.1em;color:#627c70;margin-bottom:5px}.cidade-viva .map-city strong{font-size:17px;letter-spacing:-.4px}.cidade-viva .map-city>svg{width:15px;height:15px;color:#638176}
.viva-toolbar{display:flex;align-items:center;gap:7px;max-width:100%}.viva-toolbar button{min-height:44px;padding:0 17px;border:1px solid #ffffffbd;border-radius:24px;background:#fffffff5;box-shadow:0 4px 16px #25493612;color:#294b3e;font-size:12px;font-weight:750}.viva-toolbar button[aria-pressed=true]{background:#254f43;color:#fff;border-color:#254f43}.viva-toolbar .viva-layers-button{display:grid;place-items:center;width:44px;min-width:44px;padding:0;margin-left:2px}.viva-toolbar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.viva-layers{width:246px;max-width:100%;padding:12px;background:#fff;border:1px solid #e6eee5;border-radius:20px;box-shadow:0 14px 40px #244e3926;z-index:3}.viva-layers[hidden]{display:none}.viva-layers strong{display:block;margin:2px 8px 10px;font-size:12px;color:#647e70}.viva-layers>button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 10px;border:0;border-radius:11px;background:transparent;color:#274c3c;text-align:left;font:650 13px inherit}.viva-layers>button[aria-pressed=true]{background:#e5f0e7}.viva-layers svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}.viva-layers .viva-area-choice{margin-top:7px;border-top:1px solid #e6eee5;border-radius:0;font-size:12px;font-weight:500}
.cidade-viva .map-zoom-dock{right:18px;top:18px;gap:7px;background:transparent;border:0;box-shadow:none;overflow:visible}.cidade-viva .map-zoom-dock .map-round{width:44px;height:44px;border-radius:15px;background:#fffffff5;border:1px solid #ffffffdc;box-shadow:0 5px 20px #25493614}.cidade-viva .map-zoom-dock .viva-perspective{font-size:12px;font-weight:800}.cidade-viva .viva-perspective[aria-pressed=true]{background:#294f43;color:#fff;border-color:#294f43}.cidade-viva .map-attribution{top:140px;bottom:auto;left:22px;right:auto;max-width:calc(100% - 100px);font-size:10px;padding:3px 7px;background:#fffffff2}.cidade-viva .map-network-status{top:172px;font-size:11px}.cidade-viva .map-location-dock{bottom:26px}.cidade-viva .map-private-note{bottom:80px;font-size:11px}.cidade-viva .map-location-dock .location-action{font-size:12px}.cidade-viva .map-drawer{width:360px;left:22px;bottom:26px;padding:12px 15px 13px;border-radius:25px;background:#fff;box-shadow:0 12px 40px #244e3920}.cidade-viva .map-drawer:not(.expanded){height:auto;max-height:none}.cidade-viva .map-drawer:not(.expanded) .map-drawer-body,.cidade-viva .map-drawer:not(.expanded) .map-drawer-head{display:none}.cidade-viva .map-drawer.expanded .viva-peek{display:none}.cidade-viva .map-drawer.expanded{height:auto;max-height:calc(100% - 195px)}.cidade-viva .map-drawer.expanded .map-drawer-body{max-height:calc(100dvh - 370px);min-height:70px}.cidade-viva .map-drawer-toggle{display:grid}.cidade-viva .map-drawer-head h1{font-size:21px}.cidade-viva .map-drawer-head span{font-size:11px}.cidade-viva .map-drawer-body>.map-view-tabs{display:none}.cidade-viva .map-panel-note,.cidade-viva .map-window-note{font-size:11px;line-height:1.5}.cidade-viva .map-story{box-shadow:none;background:#fafcf8;border:1px solid #e8eee5}.cidade-viva .map-story strong{font-size:14px}.cidade-viva .map-story small,.cidade-viva .map-story em{font-size:12px}
.viva-toolbar .viva-layers-button.active{background:#254f43;color:#fff;border-color:#254f43}
.viva-peek-main{display:flex;align-items:center;gap:11px;padding:3px 0 12px}.viva-thumb{width:58px;height:65px;flex-shrink:0;display:grid;place-items:center;border-radius:16px;background:#e6eee0;color:#426a50;overflow:hidden}.viva-thumb svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7}.viva-thumb img{width:100%;height:100%;object-fit:cover}.viva-thumb.viva-event{background:#f0d9c7;color:#a66343}.viva-thumb.viva-place{background:#eee4c6;color:#7e713d}.viva-thumb.viva-club{background:#e6deed;color:#755b86}.viva-thumb.viva-area{background:#dceee6;color:#1e6358}.viva-thumb.viva-test{background:#f4e5d7;color:#996840}.viva-peek-copy{flex:1;min-width:0}.viva-peek-copy>small{display:block;font-size:10px;letter-spacing:.025em;color:#6e8576;font-weight:750;margin-bottom:6px}.viva-peek-copy h2{font-size:17px;letter-spacing:-.5px;line-height:1.2;margin:0 0 6px;color:#234b3b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viva-peek-copy p{font-size:11px;margin:0;color:#6c8073;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.viva-open{width:44px;height:44px;flex-shrink:0;border:0;border-radius:14px;background:#f0f5ed;color:#456a50;display:grid;place-items:center}.viva-open svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:1.8;transform:rotate(-45deg)}.viva-peek-bottom{border-top:1px solid #e9eee5;padding-top:10px;display:flex;align-items:center;gap:8px}.viva-peek-bottom>span{font-size:10px;color:#748678;line-height:1.4;flex:1}.viva-peek-bottom>button:not(.viva-clear){min-height:38px;border:0;background:#2c5345;color:#fff;font-size:11px;font-weight:750;padding:8px 13px;border-radius:20px}.viva-peek-bottom .viva-clear{min-height:40px;width:32px;border:0;background:transparent;color:#62806c;font-size:23px}
.app-shell .bottom-nav{background:#fffffff7;box-shadow:0 -4px 24px #244e3909}.app-shell .bottom-link.active{background:#edf4e9;border-radius:18px}.app-shell .compose-icon{box-shadow:0 5px 12px #244e3926}.r1-feed .post-card{border-radius:23px;border-color:#e1e9dc;box-shadow:0 7px 22px #2b503407}.r1-profile-identity{box-shadow:0 8px 28px #2b50340b}
@media(max-width:720px){.cidade-viva{--map-sheet-size:170px}.cidade-viva .map-top{top:13px;left:max(12px,env(safe-area-inset-left));right:12px;gap:11px}.cidade-viva .map-city{max-width:calc(100% - 61px);min-height:57px;padding:10px 13px}.cidade-viva .map-city strong{font-size:16px}.cidade-viva .map-city small{font-size:9px}.cidade-viva .map-zoom-dock{right:max(12px,env(safe-area-inset-right));top:13px;gap:7px}.cidade-viva .map-zoom-dock .map-round{width:44px;height:44px}.viva-toolbar{gap:6px;max-width:calc(100% - 54px)}.viva-toolbar button{padding:0 14px;min-height:42px;font-size:11px}.viva-toolbar .viva-layers-button{width:42px;min-width:42px;margin-left:0}.cidade-viva .map-attribution{top:133px;left:12px;font-size:9px;max-width:calc(100% - 82px);padding:3px 5px}.cidade-viva .map-network-status{top:160px;left:12px;max-width:calc(100% - 80px)}.cidade-viva .map-drawer{left:12px;bottom:12px;width:calc(100% - 24px);padding:9px 12px 12px;border:1px solid #fff;border-radius:24px}.cidade-viva .map-drawer-handle{display:block;margin:0 auto 7px;width:34px;height:4px}.cidade-viva .map-drawer:not(.expanded){height:auto;max-height:none}.cidade-viva .map-drawer.expanded{max-height:calc(100% - 184px);height:auto}.cidade-viva .map-drawer.expanded .map-drawer-body{max-height:calc(100dvh - 420px)}.cidade-viva .map-location-dock{right:12px;bottom:calc(var(--map-sheet-size) + 20px);gap:6px}.cidade-viva .map-location-dock .location-action{min-width:0;padding:0 12px;font-size:11px}.cidade-viva .map-private-note{right:12px;bottom:calc(var(--map-sheet-size) + 68px);font-size:10px;max-width:calc(100% - 24px)}.cidade-viva .map-stage.drawer-open .map-location-dock{opacity:0}.viva-peek-main{gap:9px;padding:2px 0 10px}.viva-thumb{width:53px;height:60px;border-radius:14px}.viva-peek-copy h2{font-size:16px}.viva-peek-copy>small{font-size:9px}.viva-peek-copy p{font-size:11px}.viva-peek-bottom>span{font-size:10px}.viva-peek-bottom>button:not(.viva-clear){min-height:40px;padding:8px 12px}.viva-layers{width:235px}.cidade-viva .map-drawer-head h1{font-size:21px}}
@media(max-width:360px){.viva-toolbar{gap:5px}.viva-toolbar button{padding:0 11px;font-size:11px}.viva-toolbar .viva-layers-button{width:40px;min-width:40px}.viva-peek-main{gap:7px}.viva-thumb{width:45px;height:56px}.viva-peek-copy h2{font-size:15px}.viva-peek-bottom{gap:5px}.viva-peek-bottom>button:not(.viva-clear){padding:8px 10px}.viva-peek-bottom .viva-clear{width:25px}.cidade-viva .map-city strong{font-size:14px}}
@media(max-height:650px) and (max-width:720px){.cidade-viva .map-city{min-height:48px;padding:7px 11px}.cidade-viva .map-top{gap:7px;top:9px}.cidade-viva .map-city small{margin-bottom:3px}.cidade-viva .map-attribution{top:113px}.cidade-viva .map-network-status{top:140px}.cidade-viva .map-zoom-dock{top:9px}.cidade-viva{--map-sheet-size:154px}.viva-thumb{height:48px}.viva-peek-main{padding-bottom:7px}.viva-peek-bottom{padding-top:6px}.cidade-viva .map-drawer.expanded{max-height:calc(100% - 155px)}.cidade-viva .map-drawer.expanded .map-drawer-body{max-height:calc(100dvh - 345px)}}
@media(prefers-reduced-motion:reduce){.cidade-viva *{scroll-behavior:auto;transition:none!important}}
