/* Scenic webcam UI deliberately shares the existing panel and map chrome. */
.top nav .webcams-nav {
 display: inline-flex;
 gap: .3rem;
 align-items: center;
 justify-content: center;
}
.webcams-nav svg { width: 16px; height: 16px; flex: none; }
#markers .marker.webcam {
 display: inline-flex; align-items: center; gap: 4px;
 background: #173c54; color: #fffaf0; border-color: #f4e9d1;
}
#markers .marker.webcam:hover, #markers .marker.webcam.active { background: #a44833; }
#markers .marker.webcam:before {
 content: ''; flex: none; display: inline-block; width: 13px; height: 10px;
 background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' viewBox='0 0 16 14'%3E%3Cpath fill='none' stroke='%23fffaf0' stroke-width='1.5' stroke-linejoin='round' d='M1 4h3l1.5-2h4.9L12 4h3v8H1z'/%3E%3Ccircle cx='8' cy='8' r='2.2' fill='none' stroke='%23fffaf0' stroke-width='1.25'/%3E%3C/svg%3E");
}
#markers .marker.webcam.off { gap: 0; }
#markers .marker.webcam.off::after { display: none; }
.webcam-actions { display: flex; gap: .45rem; flex-wrap: wrap; align-items: stretch; margin: .9rem 0; }
.webcam-actions a, .webcam-actions button { text-align: center; text-decoration: none; margin: 0; }
.webcam-sources { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; }
.webcam-sources a { padding-block: .25rem; }
@media (max-width: 450px) { .top nav .webcams-nav span { display: none; } }
@media (pointer: coarse) {
 #markers .marker.webcam { min-width: 32px; min-height: 32px; justify-content: center; }
 .webcam-actions a, .webcam-actions button { min-height: 44px; display: inline-grid; place-items: center; }
}

.webcam-deck { display: flex; align-items: center; justify-content: space-between; gap: .25rem .5rem; flex-wrap: wrap; margin: 0 0 .9rem; }
.webcam-deck .chip { margin: 0; }
.webcam-deck .muted { font-size: .76rem; }
@media (pointer: coarse) { .webcam-deck .chip { min-height: 44px; } }

/* In-card camera window, after Small SF's Sutro Tower cam: a 16:9 frame with
   6px corners and a small source caption under it. The frame holds either the
   playing image or a facade (click-to-play button, or a link-out tile). */
.cam { margin: .9rem 0 .5rem; }
.cam-frame {
 position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 6px; overflow: hidden;
 background: linear-gradient(165deg, #2c4a5c, #173c54 55%, #12303f); color: #f6f1e7;
}
.cam img, .cam iframe {
 position: absolute; inset: 0; display: block; width: 100%; height: 100%; aspect-ratio: 16/9;
 border: 0; border-radius: 6px; object-fit: contain; background: #12303f;
}
.cam-play, #panel-content a.cam-link {
 display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
 margin: 0; padding: .75rem; border: 0; border-radius: 6px; text-align: center;
 color: #f6f1e7; text-decoration: none; cursor: pointer;
}
.cam-play { position: absolute; inset: 0; width: 100%; height: 100%; background: none; }
#panel-content a.cam-link:hover, .cam-play:hover { color: #fff; border: 0; }
.cam-play:focus-visible, #panel-content a.cam-link:focus-visible { outline: 3px solid var(--u-coral, #EE5D4A); outline-offset: -3px; }
.cam-mark {
 display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
 background: var(--u-coral, #EE5D4A); box-shadow: 0 6px 18px -6px rgba(0,0,0,.55); transition: transform .15s;
}
.cam-mark::before {
 content: ''; width: 0; height: 0; margin-left: 4px;
 border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fffaf0;
}
.cam-play:hover .cam-mark, .cam-link:hover .cam-mark { transform: scale(1.07); }
.cam-call { font: italic 400 21px/1.15 var(--u-serif, Georgia, serif); }
.cam-note { font: 12px/1.35 var(--u-sans, system-ui, sans-serif); opacity: .78; }
#panel-content .cam-source { margin-top: .4rem; font: 12px/1.45 var(--u-sans, system-ui, sans-serif); color: var(--u-mute, #6f675c); }
@media (prefers-reduced-motion: reduce) { .cam-mark { transition: none; } }
