/* Webcams: the window that plays a camera, on the webcams page and on a place page. */
.dotm-wc-window { font-family: var(--va-userfont, Roboto, sans-serif); color: var(--va-accent, #21294a); }
.dotm-wc-near-box:empty { display: none; }
/* The window: in the middle of the screen, the map dimmed behind it. */
body.dotm-wc-window-open { overflow: hidden; }
.dotm-wc-window { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; background: rgba(33, 41, 74, .62); }
.dotm-wc-window[hidden] { display: none; }
.dotm-wc-window__box { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px 20px; width: min(1140px, 100%); max-height: 100%; box-sizing: border-box; padding: 20px; overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.dotm-wc-grip { display: none; }
.dotm-wc-head { grid-column: 1 / 3; display: flex; align-items: flex-start; gap: 12px; }
.dotm-wc-head > div { flex: 1; min-width: 0; }
.dotm-wc-head h2 { margin: 0; color: var(--va-accent, #21294a); font-size: 24px; line-height: 28px; font-weight: 700; }
.dotm-wc-head p { margin: 4px 0 0; color: #545454; font-size: 15px; line-height: 20px; }
.dotm-wc-x { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: #f3f4f8; color: var(--va-accent, #21294a); cursor: pointer; }
.dotm-wc-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dotm-wc-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.dotm-wc-media iframe, .dotm-wc-media > img { position: absolute; top: 0; left: 0; display: block; width: 100%; max-width: none; height: 100%; border: 0; object-fit: cover; }
.dotm-wc-badge { position: absolute; left: 12px; top: 12px; padding: 3px 8px; border-radius: 5px; background: #d51c1c; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.dotm-wc-badge.is-page { background: rgba(33, 41, 74, .92); letter-spacing: 0; font-weight: 500; }
.dotm-wc-play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin: -40px 0 0 -40px; padding: 0; border: 0; border-radius: 50%; background: rgba(33, 41, 74, .86); color: #fff; cursor: pointer; }
/* An official page: the image set for it in the admin, or grey, and the way to the camera. */
.dotm-wc-media.is-page { background: #e4e6f2; }
.dotm-wc-open { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 10px; background: var(--va-hover, #be0000); color: #fff !important; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; transform: translate(-50%, -50%); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.dotm-wc-open svg { width: 18px; height: 18px; }
.dotm-wc-note { margin: 0; color: var(--va-text, #545454); font-size: 14px; line-height: 20px; }
.dotm-wc-facts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 18px; }
.dotm-wc-facts span { padding: 7px 10px; border-radius: 8px; background: #f3f4f8; }
.dotm-wc-facts .is-day { background: #fff6d6; }
.dotm-wc-facts .is-night { background: #e4e6f2; }
.dotm-wc-facts .is-wx { background: #e8f1fb; }
.dotm-wc-facts [hidden] { display: none; }
.dotm-wc-near h3, .dotm-wc-places h3 { margin: 0 0 8px; color: var(--va-accent, #21294a); font-size: 16px; line-height: 20px; font-weight: 700; }
.dotm-wc-near__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dotm-wc-tile { display: block; min-width: 0; padding: 0; border: 0; background: none; color: var(--va-accent, #21294a); font: 500 13px/16px Roboto, Arial, sans-serif; text-align: left; cursor: pointer; }
.dotm-wc-tile__img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 6px; overflow: hidden; border-radius: 8px; background: #e4e6f2; }
.dotm-wc-tile__img img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; }
.dotm-wc-tile__img svg { width: 22px; height: 22px; }
.dotm-wc-tile__t { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dotm-wc-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dotm-wc-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 6px 12px; border-radius: 8px; background: var(--va-accent, #21294a); color: #fff !important; font-size: 15px; font-weight: 500; line-height: 20px; text-align: center; text-decoration: none; }
.dotm-wc-places[hidden] { display: none; }
.dotm-wc-places__list { display: flex; flex-direction: column; gap: 8px; }
.dotm-wc-places__list a { padding: 10px 12px; border-radius: 8px; background: #f3f4f8; color: var(--va-accent, #21294a); font-size: 15px; line-height: 20px; text-decoration: none; }
.dotm-wc-places__list a:hover { background: #e8eaf2; }
.dotm-wc-source { margin: auto 0 0; padding-top: 10px; border-top: 1px solid #eceef3; color: #545454; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.dotm-wc-source a { color: var(--va-accent, #21294a); font-size: 13px; line-height: 20px; }
.dotm-wc-report { padding: 0; border: 0; background: none; color: var(--va-accent, #21294a); font: 400 13px/20px Roboto, Arial, sans-serif; text-align: left; text-decoration: underline; cursor: pointer; }
.dotm-wc-report[disabled] { text-decoration: none; cursor: default; }

/* Tablets: the side column goes under the player. */
@media (max-width: 1000px) {
	.dotm-wc-window__box { grid-template-columns: minmax(0, 1fr); }
	.dotm-wc-head { grid-column: 1; }
}

/* Phones: the window comes up from below. */
@media (max-width: 760px) {
	.dotm-wc-window { align-items: flex-end; padding: 0; }
	.dotm-wc-window__box { max-height: 88dvh; padding: 8px 14px 18px; border-radius: 16px 16px 0 0; gap: 12px; }
	.dotm-wc-grip { display: block; justify-self: center; width: 44px; height: 4px; border-radius: 2px; background: #d2d4dc; }
	.dotm-wc-head h2 { font-size: 18px; line-height: 22px; }
	.dotm-wc-head p { font-size: 14px; }
	.dotm-wc-x { background: none; margin: -6px -8px 0 0; }
	.dotm-wc-near__list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
	.dotm-wc-tile { flex: none; width: 130px; }
	.dotm-wc-facts { font-size: 13px; }
}
