.webcam-search { margin: 1.5rem 0; padding: 1.5rem; }
.webcam-page [hidden] { display: none !important; }
.webcam-search-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) auto; align-items: end; gap: 1rem; }
.webcam-page label { display: grid; gap: .4rem; font-weight: 650; }
.webcam-page input, .webcam-page select { border: 1px solid #b4d3df; border-radius: 12px; padding: .8rem; width: 100%; min-width: 0; background: #fff; color: #08233f; font: inherit; }
.webcam-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.webcam-suggestions { list-style: none; padding: 0; margin: .5rem 0; max-height: 330px; overflow: auto; }
.webcam-suggestions:empty { display: none; }
.webcam-suggestions button { width: 100%; padding: .9rem; text-align: left; border: 1px solid #d0e3ec; background: #f3fbfe; color: #08233f; cursor: pointer; font: inherit; }
.webcam-suggestions button:hover, .webcam-suggestions button:focus { background: #d9f4fa; }
.webcam-map-panel { border: 1px solid #cee4ed; border-radius: 22px; overflow: hidden; background: #eff8fb; }
.webcam-map { height: 440px; z-index: 0; background: #e7f0ed; }
.webcam-map:empty { height: 120px; background: repeating-linear-gradient(0deg, #edf5f7, #edf5f7 39px, #dbe9ed 40px); }
.webcam-map-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.2rem; }
.webcam-map-tools .small { margin: 0; max-width: 680px; }
.webcam-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.webcam-card { overflow: hidden; border: 1px solid #c9dfe9; border-radius: 20px; background: #fff; box-shadow: 0 10px 25px #08233f0a; }
.webcam-card-selected { outline: 3px solid #007c9f; outline-offset: 3px; }
.webcam-image-link { display: flex; align-items: center; justify-content: center; min-height: 140px; background: #e9f1f4; }
.webcam-image-link img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.webcam-image-missing { padding: 3rem 1rem; color: #365464; }
.webcam-card-body { display: grid; gap: .6rem; padding: 1.1rem; }
.webcam-card-body h3, .webcam-card-body p { margin: 0; }
.webcam-badge { font-size: .8rem; font-weight: 700; color: #155a52; }
.webcam-warning { color: #825117; padding: .5rem; background: #fff2d5; border-radius: 8px; }
.webcam-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.webcam-page button:disabled { opacity: .55; cursor: not-allowed; }
.webcam-attribution { font-size: .9rem; text-align: right; }
.webcam-pin { border: 3px solid #fff; background: #007f9c; border-radius: 50%; color: #fff; text-align: center; line-height: 20px; box-shadow: 0 1px 8px #08233f55; }
.webcam-map-result { background: #fff; border: 0; color: #075d79; font-weight: 700; cursor: pointer; }
.webcam-dialog { width: min(900px, calc(100% - 24px)); max-height: 92vh; border: 1px solid #bbd6e1; border-radius: 22px; padding: 1.5rem; color: #08233f; }
.webcam-dialog::backdrop { background: #08233faa; }
.webcam-close { display: block; margin-left: auto; }
.webcam-player-controls, .webcam-weather-links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.webcam-player iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.webcam-live-preview { display: grid; place-items: center; width: 100%; min-height: 180px; padding: 2rem; border: 0; background: linear-gradient(135deg, #082b43, #087e9a); color: white; font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.webcam-live-preview:hover, .webcam-live-preview:focus-visible { background: #07546e; }
.webcam-player-notice { padding: 1rem; background: #eef7fb; border-radius: 12px; }
@media (max-width: 900px) { .webcam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .webcam-search-row, .webcam-filters, .webcam-grid { grid-template-columns: 1fr; } .webcam-map { height: 330px; } .webcam-map-tools { align-items: stretch; flex-direction: column; } .webcam-dialog { padding: 1rem; } .webcam-search { padding: 1rem; } }

.webcam-search button[type="submit"] { background: #007c9f; color: #fff; }
