#page-feed .feed-map-card { position:relative; height:calc(100dvh - 160px); min-height:320px; overflow:hidden; border-radius:24px; border:1px solid var(--border); }
/* Keep Leaflet panes and map actions in the same stacking context. */
.feed-map-card { display:flex; flex-direction:column; isolation:isolate; }
.feed-map-viewport { position:relative; flex:1; min-height:0; overflow:hidden; }
.feed-map-canvas { position:absolute; inset:0; background:var(--bg); }
#page-feed .feed-map-card .map-navigation { display:none; }
#feedMapDialog .feed-map-card .map-navigation { padding:4px 12px; }
.feed-map-open { position:absolute; right:12px; top:12px; z-index:500; }
.feed-map-status { position:absolute; bottom:24px; left:12px; right:12px; z-index:500; border-radius:12px; padding:12px; background:var(--bg); text-align:center; font-size:13px; }
#feedMapDialog { width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:var(--bg); }
#feedMapDialog[open] { display:flex; flex-direction:column; }
#feedMapDialog header { padding:12px 20px; display:flex; justify-content:flex-end; align-items:center; }
#feedMapDialog header .map-navigation { margin-inline-end:auto; }
#page-feed .feed-sidebar-right.notifications-open > .feed-map-card { display:none; }
#page-feed .feed-sidebar { max-height:calc(100dvh - 96px); overflow-y:auto; scrollbar-width:thin; }
#page-feed .feed-sidebar > .sidebar-section { padding:24px 0; }
@media (min-width:1025px) { #page-feed .feed-layout, body.is-guest #page-feed .feed-layout { width:100%; grid-template-columns:minmax(200px,260px) minmax(0,860px) minmax(280px,1fr); gap:32px; } body.is-guest #page-feed .feed-sidebar {display:block;padding-top:40px;} body.is-guest #feedCurrentUserSidebarProfile {display:none;} }
@media (max-width:1024px) {
 #page-feed .feed-layout {display:flex;flex-direction:column;gap:20px;}
 #page-feed .feed-sidebar-right:not(.notifications-open) {display:block;position:relative;top:auto;width:100%;order:-1;}
 #page-feed .feed-map-card {height:auto;min-height:0;}
 #page-feed .feed-map-viewport {min-height:180px;}
 #feedMapDialog .feed-map-card .map-navigation {justify-content:center;}
 #page-feed .feed-main {width:100%;}
}

#feedMapDialog .feed-map-card {position:relative;flex:1;min-height:0;width:100%;overflow:hidden;}
#feedMapDialog .feed-map-open {display:none;}
