/* Shared one-row forecast at every width. Overrides the previous two-row container layout. */
@container surf-forecast (max-width:520px){
#forecast .forecast-compact{display:table;table-layout:fixed;width:100%;min-width:0}
#forecast .forecast-compact colgroup{display:table-column-group}
#forecast .forecast-compact thead{display:table-header-group}
#forecast .forecast-compact tbody{display:table-row-group}
#forecast .forecast-page .forecast-compact tr{display:table-row;padding:0;border:0}
#forecast .forecast-page .forecast-compact td{display:table-cell;height:54px;padding:3px 1px;vertical-align:middle;border-bottom:1px solid var(--line);font-size:11px}
#forecast .forecast-page .forecast-compact th{font-size:11px;height:34px;padding:3px 1px;line-height:1.25}
#forecast .forecast-page .forecast-compact th small{font-size:11px}
#forecast .forecast-page .forecast-compact td:nth-child(n)::before{content:none}
#forecast .forecast-compact .bath-rating-button>small,#forecast .forecast-compact .breaker-confidence{display:none}
#forecast .forecast-page .forecast-compact .breaking-value{font-size:12px;padding:5px 1px;line-height:1.3}
#forecast .forecast-page .forecast-compact time{font-size:11px}
#forecast .forecast-page .forecast-compact .fc-time{width:11%}#forecast .forecast-page .forecast-compact .fc-rating{width:13%}#forecast .forecast-page .forecast-compact .fc-break{width:22%}#forecast .forecast-page .forecast-compact .fc-swell{width:31%}#forecast .forecast-page .forecast-compact .fc-wind{width:23%}
#forecast .forecast-compact .bath-grid{grid-template-columns:repeat(6,5px);grid-template-rows:8px 8px;height:19px;gap:2px 0}
#forecast .forecast-compact .bath-duck{transform:scale(.27)}#forecast .forecast-compact .bath-score{font-size:11px}
#forecast .forecast-compact .forecast-swell-inline{display:flex;flex-wrap:wrap;gap:2px 4px;justify-content:center}
#forecast .forecast-compact .forecast-swell-inline>b{font-size:12px;gap:1px}
#forecast .forecast-compact .forecast-swell-inline .swell-bearing{flex-basis:100%;flex-direction:row;gap:3px}
#forecast .forecast-compact .swell-direction-arrow{width:11px;height:13px}
#forecast .forecast-compact .forecast-wind-inline{flex-direction:column-reverse;gap:2px}
#forecast .forecast-compact .forecast-wind-inline>div{flex-direction:row;gap:3px;flex-wrap:wrap;justify-content:center}
#forecast .forecast-compact .forecast-wind-inline>div>small:not(.wind-bearing){display:none}
#forecast .forecast-compact .forecast-wind-inline b{font-size:12px}
#forecast .forecast-compact .forecast-wind-inline .wind-bearing{font-size:11px;margin:0}
#forecast .forecast-compact .wind-direction-tile{width:22px;height:22px}
#forecast .forecast-compact .heavy-wind-arrow{width:15px;height:18px}
#forecast .forecast-compact .forecast-partial{font-size:11px;line-height:1.1}
}
#forecast .forecast-page .forecast-dark-group>td{height:auto;padding:0;border:0}
.forecast-dark-group details{background:var(--soft);border-bottom:1px solid var(--line)}
.forecast-dark-group summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:8px;font-size:12px;color:var(--muted);list-style:none}
.forecast-dark-group summary::after{content:'⌄';font-size:16px}.forecast-dark-group details[open]>summary::after{content:'⌃'}.forecast-dark-group summary small{font-size:11px}
#forecast .forecast-night-table{margin:0}.forecast-dark-group .forecast-night{background:var(--bg)}
/* Use a wide forecast panel on desktop and a compact, non-sticky map on mobile. */
#mapView{grid-template-columns:minmax(440px,1fr) minmax(0,1.1fr);height:auto;align-items:start}
#mapView>aside{min-width:0;overflow:visible;max-width:100%}
#mapView>.mapwrap{min-width:0;height:min(70dvh,650px);position:sticky;top:80px;z-index:1}
#mapView #map{height:100%;min-height:0}
.map-beach-actions{position:absolute;top:48px;right:10px;z-index:600;display:flex;flex-direction:column;gap:6px}
.map-beach-actions button{width:40px;height:40px;min-height:40px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:5px;color:var(--accent);display:grid;place-items:center}
.map-beach-actions button[aria-pressed=true]{background:var(--soft);border-color:var(--accent)}.map-beach-actions svg{width:23px;height:23px}
.map-selected-name{position:absolute;top:9px;right:10px;max-width:calc(100% - 75px);z-index:600;background:var(--panel);color:var(--text);padding:5px 8px;border:1px solid var(--line);border-radius:4px;font-size:13px;overflow-wrap:anywhere}
.map-beach-status{position:absolute;bottom:5px;left:12px;right:60px;z-index:600;max-width:calc(100% - 75px);background:var(--panel);font-size:11px;margin:0}.map-beach-status:empty{display:none}
#mapView .map-locate{top:auto;bottom:12px;right:auto;left:12px}
#mapView .maptag{z-index:350;left:60px;right:60px;bottom:8px;font-size:11px;padding:6px 8px;text-align:center}
#mapView .has-map-popup .maptag,#mapView .has-map-popup .map-beach-actions,#mapView .has-map-popup .map-selected-name{visibility:hidden}
#mapView .leaflet-popup{z-index:900}.group-coast-card{max-height:min(55dvh,calc(var(--map-height,500px) - 70px))}
.map-people-dialog{width:min(460px,94vw)}.map-people-dialog h3{font-size:17px;margin:0}.map-people-dialog .row{justify-content:space-between}
@media(max-width:900px){#mapView{display:flex;flex-direction:column-reverse;align-items:stretch}#mapView>.mapwrap{position:relative;top:auto;height:258px;--map-height:258px;flex-shrink:0}#mapView>aside{width:100%;padding:12px}#mapView>aside>.panel{padding:12px}.group-coast-card{max-height:188px}.group-coast-card h3{font-size:15px}.group-coast-card p{font-size:11px;margin-bottom:5px}.group-coast-card .group-coast-row{min-height:44px;padding:5px}.group-coast-card>.group-coast-zoom{margin-top:5px}.leaflet-popup-content{margin:10px 12px}}
/* Lists share the forecast icon sizes and source hierarchy. */
#favoritesView,#beachListView{container-type:inline-size;container-name:coast-list}
.bc-main{grid-template-columns:48px minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr)}
.bc-main [data-metric=weather]{display:none}
.bc-main .forecast-swell-inline{display:flex;flex-wrap:wrap;gap:3px;min-width:0}.bc-main .forecast-swell-inline>b{font-size:13px;gap:1px}.bc-main .swell-bearing{flex-basis:100%;flex-direction:row;gap:3px;min-width:0}.bc-main .swell-direction-arrow{width:11px;height:13px}.bc-main .swell-bearing small{font-size:11px}
.bc-secondary-weather{display:flex;justify-content:center;margin-bottom:8px}
.compact-view .bc-main{grid-template-columns:46px minmax(0,1fr) minmax(0,1fr)}
.compact-view .bc-main [data-metric=swell],.compact-view .bc-main [data-metric=weather]{display:none}
.bc-report-line{overflow-wrap:anywhere}.beach-swipe-card .beach-row-actions .club-action{min-width:36px;min-height:36px}
@container coast-list (min-width:1000px){
.view-heading #favoritesDensity,.view-heading #listDensity{display:none}
#favoritesList>.beach-swipe-card,#beachList>.beach-swipe-card,.compact-view #favoritesList>.beach-swipe-card,.compact-view #beachList>.beach-swipe-card{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(550px,4fr) auto;grid-template-rows:auto auto;gap:2px 14px;padding:10px 12px;align-items:center}
#favoritesList>.beach-swipe-card>.beach-row-info,#beachList>.beach-swipe-card>.beach-row-info{grid-column:1;grid-row:1}
#favoritesList>.beach-swipe-card>.bc-report-line,#beachList>.beach-swipe-card>.bc-report-line{grid-column:1;grid-row:2;font-size:11px}
#favoritesList>.beach-swipe-card>.bc-carousel,#beachList>.beach-swipe-card>.bc-carousel{grid-column:2;grid-row:1/3}
#favoritesList>.beach-swipe-card>.beach-row-actions,#beachList>.beach-swipe-card>.beach-row-actions{grid-column:3;grid-row:1/3}
.bc-pages,.compact-view .beach-swipe-card .bc-pages{display:block;overflow:visible}
.bc-slide:not(.bc-main),.bc-pagination,.compact-view .beach-swipe-card .bc-pagination{display:none}
.bc-main,.compact-view .beach-swipe-card .bc-main{display:grid;grid-template-columns:60px minmax(80px,1fr) minmax(130px,1.4fr) minmax(100px,1fr) minmax(80px,1fr);gap:12px;min-width:0}
.bc-main [data-metric=weather],.compact-view .bc-main [data-metric=swell],.compact-view .bc-main [data-metric=weather]{display:flex}
.bc-main .forecast-weather-inline,.bc-main .forecast-wind-inline{flex-direction:row;gap:5px}
.bc-main .forecast-wind-inline>div{flex-direction:column}.bc-source{font-size:11px;margin-bottom:3px}.compact-view .bc-main .wind-bearing,.compact-view .bc-main>div>small{display:block}
}
@container coast-list (min-width:1000px){#favoritesList,#beachList{grid-template-columns:minmax(0,1fr)}}
/* Actions are an explicit selection, never the automatic initial beach. */
.map-beach-actions[hidden],.map-selected-name[hidden]{display:none!important}
.map-beach-actions button{width:auto;min-width:106px;max-width:150px;display:flex;align-items:center;justify-content:flex-start;gap:7px;padding:7px 9px}
.map-action-label{font-size:12px;line-height:1.25;white-space:normal;text-align:right}.map-beach-actions svg{flex-shrink:0}
.forecast-details-footer{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.forecast-provider-footer{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
/* No animated resize: geographic markers and basemap update together in one frame. */
@media(max-width:900px){#mapView>.mapwrap.map-half-screen{height:50vh;height:50dvh;--map-height:50dvh}#mapView>.mapwrap{overflow-anchor:none;transition:none}}
/* One accessible beach selector doubles as the forecast heading. */
.forecast-beach-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px;min-width:0}
.forecast-beach-picker{position:relative;flex:1;min-width:0}
.forecast-beach-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#spot #beach{appearance:none;-webkit-appearance:none;display:block;width:100%;min-width:0;min-height:48px;margin:0;padding:8px 8px 8px 34px;font-size:clamp(18px,3vw,24px);font-weight:700;color:var(--text);background:var(--soft);border:1px solid var(--line);border-radius:8px;text-overflow:ellipsis;cursor:pointer}
.beach-picker-chevron{position:absolute;left:9px;top:50%;transform:translateY(-50%);width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#spotWater{flex:0 0 auto}#spotWater .water-temperature{white-space:nowrap;font-size:12px}
.map-beach-actions [data-map-action=favorite][aria-pressed=true]{color:var(--sand);border-color:var(--sand)}
.map-beach-actions [data-map-action=favorite][aria-pressed=true] .favorite-star{fill:var(--sand);stroke:var(--sand);filter:drop-shadow(0 0 4px var(--sand))}
.map-beach-actions [data-map-action=favorite][aria-pressed=false] .favorite-star{fill:none;filter:none}
