/* Public Hub: focused Map tab, honest discovery, and correctly framed dialogs. */
html[data-hub-storefront] .hub-market[data-hub-public-ready][data-hub-public-view="map"] .ehub-public-main>:not(.ehub-public-map):not(.e-hub-subtabs){display:none!important}
html[data-hub-storefront] .hub-market[data-hub-public-ready]:not([data-hub-public-view="map"]) .ehub-public-map{display:none!important}
html[data-hub-storefront] .hub-market[data-hub-public-ready][data-hub-public-view="map"] .ehub-side{display:none!important}
.ehub-public-map{display:grid;gap:14px;min-width:0}
.ehub-public-map>:is(.ehub-map-view,.ehub-map-address,.ehub-map-directions,.ehub-map-nearby){padding:clamp(16px,2vw,24px);min-width:0;border:1px solid var(--hm-line,#28415d);border-radius:14px;background:var(--hm-surface,#0c1a2c)}
.ehub-map-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.ehub-map-eyebrow,.ehub-discovery-heading span{color:var(--hm-blue,#8bcde9);font-size:10px;font-weight:760;letter-spacing:.12em}
.ehub-map-heading h2{font-size:clamp(19px,2vw,25px);margin:6px 0;color:var(--hm-title,#effaff)}
.ehub-public-map h3{font-size:17px;font-weight:730;margin:0 0 8px}
.ehub-public-map p{font-size:12px;line-height:1.6;margin:0 0 15px;color:var(--hm-muted,#a9bed0)}
.ehub-public-map address{font-size:14px;font-style:normal;line-height:1.6;margin:0 0 14px;overflow-wrap:anywhere}
.ehub-public-map a{font-size:12px;font-weight:720;color:var(--hm-blue,#9ed8ff);text-decoration:none}
.ehub-map-link{flex:0 0 auto;padding:9px 11px;border:1px solid var(--hm-line,#28415d);border-radius:9px}
.ehub-map-stage{overflow:hidden;border:1px solid var(--hm-line,#28415d);border-radius:12px;background:#091a30}
.ehub-map-stage iframe{display:block;width:100%;height:min(55vh,410px);min-height:290px;border:0;background:#091a30}
.ehub-map-open-fallback{padding:10px 13px;text-align:right;border-top:1px solid rgba(165,197,222,.12)}
html[data-hub-storefront] .hub-market[data-hub-public-ready]:not([data-hub-public-view="overview"]) .ehub-discovery-preview{display:none!important}
.ehub-discovery-preview{display:grid;gap:12px;padding:3px 0}
.ehub-discovery-heading{display:flex;align-items:end;justify-content:space-between;gap:12px}
.ehub-discovery-heading h2{font-size:clamp(16px,1.9vw,20px);font-weight:740;letter-spacing:-.025em;margin:5px 0 0}
.ehub-discovery-heading a{font-size:11.5px;color:var(--hm-blue,#8ddaff);font-weight:700;text-decoration:none}
.ehub-discovery-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.ehub-discovery-item{display:flex;align-items:center;gap:10px;min-width:0;padding:10px;border:1px solid var(--hm-line,#28415d);border-radius:11px;text-decoration:none!important;background:var(--hm-surface,#0c1a2e);color:var(--hm-title,#eaf4ff)}
.ehub-discovery-item:hover{border-color:var(--hm-blue,#58b8ed)}
.ehub-discovery-item>img,.ehub-discovery-initial{flex:0 0 42px;width:42px;height:42px;object-fit:cover;border-radius:9px;display:grid;place-items:center;background:#15314e;color:#bce7f6;font-weight:760;font-size:19px}
.ehub-discovery-info{display:grid;gap:4px;min-width:0}.ehub-discovery-info strong{font-size:12px;font-weight:740;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ehub-discovery-info small{font-size:10px;color:var(--hm-muted,#9ab4c8);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ehub-discovery-arrow{margin-left:auto;align-self:start;color:var(--hm-muted,#9ab4c8)}
/* Header and scroller are separate flex items. Content cannot protrude. */
html[data-hub-storefront] #hub-details-modal.hub-modal[open],html[data-hub-storefront] #hub-more-details-modal.hub-modal[open]{display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important;max-height:min(88dvh,850px)!important}
html[data-hub-storefront] :is(#hub-details-modal,#hub-more-details-modal)>.hub-modal-head{position:relative!important;top:auto!important;z-index:5!important;flex:0 0 auto!important;min-height:58px;background:var(--hm-surface,#0c1a2e)!important;border-bottom:1px solid var(--hm-line,#2b4560)!important}
html[data-hub-storefront] :is(#hub-details-modal,#hub-more-details-modal)>.hub-modal-scroll{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior-y:contain;scroll-padding-top:20px;padding-top:18px!important}
/* No empty facts sidebar means no wasted right column. Map always gets
   the full canvas rather than leaving a hidden sidebar-sized hole. */
html[data-hub-storefront] body .hub-market[data-hub-public-view] .ehub-public-layout:not(:has(>.ehub-side)),
html[data-hub-storefront] body .hub-market[data-hub-public-ready][data-hub-public-view="map"] .ehub-public-layout{
    grid-template-columns:minmax(0,1fr)!important;
}
@media(max-width:700px){.ehub-map-heading{flex-direction:column}.ehub-map-link{align-self:start}.ehub-discovery-previews{grid-template-columns:minmax(0,1fr)}.ehub-map-stage iframe{height:340px;min-height:260px}}

/* Native Ehopto Map pin: no nested page, toolbars or duplicated navigation. */
.ehub-map-stage [data-hub-map-canvas]{display:block;width:100%;height:clamp(280px,46vh,410px);min-height:280px;background:#0a1e34;isolation:isolate}
.ehub-map-stage [data-hub-map-canvas] .leaflet-container{font-family:var(--e-font,system-ui,sans-serif)}
.ehub-map-open-fallback{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.ehub-map-open-fallback span{font-size:11px;color:var(--hm-muted,#aac0d1)}
.ehub-map-marker{background:transparent;border:0}
.ehub-map-marker-symbol{display:grid;place-items:center;width:36px;height:36px;border:3px solid #e5f7ff;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);background:#0b71c8;color:transparent;box-shadow:0 4px 12px rgba(0,0,0,.32);font:bold 22px/1 system-ui,sans-serif}
.ehub-map-marker-symbol b{transform:rotate(45deg);color:#fff;font-weight:780}
.ehub-map-stage .leaflet-control-attribution{font-size:10px}
.ehub-map-stage .leaflet-container a{color:#145fa4}
@media(max-width:700px){.ehub-map-stage [data-hub-map-canvas]{height:310px;min-height:260px}}
