.page-webcams {
  scroll-behavior: smooth;
}

body.is-modal-open {
  overflow: hidden;
}

.webcam-page {
  display: grid;
  gap: 34px;
}

.webcam-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
  color: #f7f5f1;
  background:
    radial-gradient(circle at top right, rgba(119, 255, 214, 0.18), transparent 24%),
    radial-gradient(circle at top left, rgba(111, 57, 182, 0.3), transparent 30%),
    linear-gradient(135deg, #120f17 0%, #19232f 48%, #28141d 100%);
  box-shadow: 0 28px 54px rgba(8, 9, 15, 0.28);
}

.webcam-hero .eyebrow,
.webcam-section-head .eyebrow,
.webcam-modal .eyebrow {
  margin: 0 0 10px;
  color: #f4ad79;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.webcam-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: #ffffff;
}

.webcam-hero .page-lead {
  max-width: 62ch;
  color: rgba(247, 245, 241, 0.86);
}

.webcam-hero-stats {
  display: grid;
  gap: 14px;
}

.webcam-stat {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.webcam-stat strong {
  font-size: 1.9rem;
  color: #ffffff;
}

.webcam-stat span {
  color: rgba(247, 245, 241, 0.78);
}

.webcam-map-section,
.webcam-region-section,
.webcam-shop-section {
  display: grid;
  gap: 18px;
}

.webcam-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: end;
}

.webcam-section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.webcam-section-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.webcam-map-shell {
  padding: 18px;
  border: 1px solid rgba(31, 26, 23, 0.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(102, 213, 196, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfaf7 0%, #f3eee5 100%);
}

.webcam-map {
  display: block;
  width: 100%;
  height: auto;
}

.webcam-map-outline {
  fill: #1d3847;
  opacity: 0.94;
}

.webcam-map-region rect {
  fill: rgba(242, 104, 30, 0.18);
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 2;
  transition: fill 0.18s ease, transform 0.18s ease;
}

.webcam-map-region text {
  fill: #ffffff;
  font-size: 20px;
  font-weight: 700;
  pointer-events: none;
}

.webcam-map-region:hover rect,
.webcam-map-region:focus rect {
  fill: rgba(242, 104, 30, 0.42);
}

.webcam-section-stack {
  display: grid;
  gap: 32px;
}

.webcam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.webcam-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 26px;
  background: #fffdf9;
  box-shadow: 0 18px 34px rgba(48, 34, 20, 0.08);
}

.webcam-preview {
  position: relative;
  min-height: 220px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 189, 84, 0.2), transparent 24%),
    linear-gradient(145deg, #12303f 0%, #1b5f69 48%, #22313c 100%);
}

.webcam-card.status-offline .webcam-preview {
  background:
    linear-gradient(180deg, rgba(20, 25, 32, 0.82), rgba(20, 25, 32, 0.82)),
    linear-gradient(145deg, #12303f 0%, #1b5f69 48%, #22313c 100%);
}

.webcam-preview-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
}

.webcam-preview-main {
  display: grid;
  gap: 6px;
}

.webcam-preview-main strong {
  font-size: 1.75rem;
  color: #ffffff;
}

.webcam-preview-main span {
  color: rgba(255, 255, 255, 0.82);
}

.webcam-offline-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(17, 20, 27, 0.52);
}

.webcam-card-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.webcam-card-topline {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.webcam-card h3 {
  font-size: 1.45rem;
}

.webcam-location,
.webcam-summary,
.webcam-source,
.webcam-sources-note,
.webcam-modal-location,
.webcam-modal-summary {
  margin: 0;
  color: var(--muted);
}

.webcam-weather-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f4efe8;
  color: #473d35;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.webcam-weather-icon {
  width: 20px;
  height: 20px;
}

.webcam-weather-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.webcam-meta-row,
.webcam-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.webcam-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0c5a42;
  background: rgba(28, 175, 124, 0.14);
}

.webcam-card.status-offline .webcam-status-pill {
  color: #8e431b;
  background: rgba(216, 106, 31, 0.14);
}

.webcam-open-button {
  border: 0;
  cursor: pointer;
}

.webcam-open-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.webcam-source-link,
.webcam-product-card a {
  font-weight: 700;
}

.webcam-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.webcam-slider-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  background: linear-gradient(180deg, #d86a1f 0%, #b14f15 100%);
  box-shadow: 0 14px 28px rgba(177, 79, 21, 0.24);
}

.webcam-product-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.webcam-product-card {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 238, 0.98) 100%);
  scroll-snap-align: start;
}

.webcam-product-category {
  color: #8e431b;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webcam-product-card p {
  margin: 0;
  color: var(--muted);
}

.webcam-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.webcam-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 17, 0.72);
  backdrop-filter: blur(6px);
}

.webcam-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 28px));
  margin: 40px auto;
  padding: 24px;
  border-radius: 28px;
  background: #fffdf9;
  box-shadow: 0 34px 80px rgba(8, 9, 15, 0.38);
}

.webcam-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  background: #171311;
}

.webcam-modal-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-right: 48px;
}

.webcam-modal-frame-shell {
  display: grid;
  gap: 14px;
}

.webcam-modal-frame {
  width: 100%;
  min-height: 62vh;
  border: 0;
  border-radius: 22px;
  background: #edf1f4;
}

.webcam-modal-fallback {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 18px;
  background: #f8f3ed;
}

@media (max-width: 980px) {
  .webcam-hero,
  .webcam-section-head,
  .webcam-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .webcam-hero,
  .webcam-map-shell,
  .webcam-modal-dialog {
    padding: 20px;
  }

  .webcam-preview {
    min-height: 188px;
  }

  .webcam-card-topline,
  .webcam-meta-row,
  .webcam-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .webcam-weather-badge {
    width: fit-content;
  }

  .webcam-product-slider {
    grid-auto-columns: minmax(78%, 1fr);
  }

  .webcam-modal-dialog {
    margin: 18px auto;
  }

  .webcam-modal-frame {
    min-height: 48vh;
  }
}
