#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; width: 100%; padding: 1rem; background: lightyellow; z-index: 1000; }
body:has(.embed-viewport) { margin: 0; padding: 0; overflow: hidden; }
.embed-viewport { position: fixed; inset: 0; overflow: hidden; }
.embed-viewport .map-wrapper,
.embed-viewport .google-map { width: 100%; height: 100%; min-height: 0; margin: 0; }
.embed-viewport [hidden] { display: none !important; }
.embed-notice { position: absolute; top: 0; left: 0; right: 0; margin: 0; padding: 12px; background: #fff; color: #333; z-index: 1; }
.site-header .theme-switcher { float: left; position: relative; width: 64px; height: 36px; margin: 12px 0 12px 10px; padding: 0; border: 0; border-radius: 999px; background-color: #606060; color: #fff; cursor: pointer; }
.theme-switcher .theme-icon { position: absolute; top: 8px; width: 20px; height: 20px; }
.theme-switcher .theme-icon-sun { left: 6px; }
.theme-switcher .theme-icon-moon { right: 6px; }
.theme-switcher .theme-switch-thumb { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background-color: #fff; transform: translateX(28px); transition: transform .2s ease; }
html[data-theme="dark"] .theme-switcher .theme-switch-thumb { transform: translateX(0); }
.theme-switcher:focus-visible { outline: 2px solid #1567d7; outline-offset: 3px; }
.map-panel .location-search-form { display: flex; align-items: center; height: 58px; box-sizing: border-box; }
.map-panel .location-search-form > input { height: 38px; min-height: 0; min-width: 0; }
.map-panel .location-search-form input,
.map-panel .location-search-form input::placeholder { color: #fff; opacity: 1; }
.place-autocomplete { display: block; width: 100%; box-sizing: border-box; font: inherit; color-scheme: light; }
.map-panel .location-search-form .place-autocomplete { width: 100%; height: 38px; min-height: 0; max-height: 38px; min-width: 0; margin: 0; padding: 0; background: transparent; color: #fff; border: 0; border-bottom: 2px solid #8ab3eb; border-radius: 0; box-shadow: none; font-size: 13px; line-height: 20px; color-scheme: light; }
.map-panel .location-search-form .place-autocomplete::part(input) { width: 100%; height: 36px; min-height: 0; max-height: 36px; background: transparent; color: #fff; border: 0; padding: 8px 30px 8px 28px; font: inherit; line-height: 20px; box-sizing: border-box; }
.map-panel .location-search-form .place-autocomplete::part(input)::placeholder { color: #fff; opacity: 1; }
.map-panel .location-search-form .place-autocomplete:focus-within { border-bottom-color: #fff; }
.map-panel .location-search-form .place-autocomplete::part(prediction-list),
.map-panel .location-search-form .place-autocomplete::part(prediction-item),
.map-panel .location-search-form .place-autocomplete::part(prediction-item-main-text) { background-color: #fff; color: #333; }
.default-form .place-autocomplete { margin-bottom: 10px; font-size: 13px; }
html[data-theme="dark"] .place-autocomplete { color-scheme: dark; }
html[data-theme="dark"] .map-panel .location-search-form .place-autocomplete { color-scheme: light; }
html[data-theme="dark"] .map-panel .location-search-form .place-autocomplete::part(prediction-list),
html[data-theme="dark"] .map-panel .location-search-form .place-autocomplete::part(prediction-item),
html[data-theme="dark"] .map-panel .location-search-form .place-autocomplete::part(prediction-item-main-text) { background-color: var(--theme-surface); color: var(--theme-text); }
html[data-theme="dark"] .map-panel .location-search-form .place-autocomplete::part(prediction-item-icon) { filter: invert(1); }
@media (prefers-reduced-motion: reduce) {
    .theme-switcher .theme-switch-thumb { transition: none; }
}
html[data-theme="dark"] { --theme-background: #1e1e1e; --theme-surface: #252525; --theme-raised: #333333; --theme-text: #d4d4d4; --theme-muted: #aaaaaa; --theme-border: #555555; --theme-link: #90b9f6; }
html[data-theme="dark"] body { background-color: var(--theme-background); color: var(--theme-text); }
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header .primary-navigation,
html[data-theme="dark"] .content-container,
html[data-theme="dark"] .map-panel,
html[data-theme="dark"] .map-panel .bottom-field,
html[data-theme="dark"] .map-panel .tab-buttons .tab-button.active,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-content-mobile { background-color: var(--theme-surface); color: var(--theme-text); }
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .fold-container,
html[data-theme="dark"] .block-stats .block-stat,
html[data-theme="dark"] .block-weather,
html[data-theme="dark"] .map-panel .tab-buttons { background-color: var(--theme-raised); }
html[data-theme="dark"] .site-header .primary-navigation a,
html[data-theme="dark"] .content h1,
html[data-theme="dark"] .content h2,
html[data-theme="dark"] .content h3,
html[data-theme="dark"] .content a,
html[data-theme="dark"] .block-stats .block-stat span,
html[data-theme="dark"] .map-panel .panel-scroll-box .panel-block:not(.disabled):not(.notify-us),
html[data-theme="dark"] .map-panel .panel-scroll-box .panel-block.livestream span,
html[data-theme="dark"] .map-panel .bottom-field .button,
html[data-theme="dark"] .map-panel .tab-buttons .tab-button i,
html[data-theme="dark"] .modal-weatherarticle-close { color: var(--theme-link); }
html[data-theme="dark"] .content a,
html[data-theme="dark"] .site-header .primary-navigation a:hover,
html[data-theme="dark"] .map-panel .bottom-field .button { border-color: var(--theme-link); }
html[data-theme="dark"] .site-header .toggle-navigation:before,
html[data-theme="dark"] .site-header .toggle-navigation:after,
html[data-theme="dark"] .site-header .toggle-navigation .line { background-color: var(--theme-link); }
html[data-theme="dark"] .site-footer .footer-content a { color: var(--theme-text); border-color: var(--theme-text); }
html[data-theme="dark"] .default-form input,
html[data-theme="dark"] .default-form textarea,
html[data-theme="dark"] .default-form select { background-color: var(--theme-background); color: var(--theme-text); border-color: var(--theme-border); }
html[data-theme="dark"] .default-form input::placeholder,
html[data-theme="dark"] .default-form textarea::placeholder { color: var(--theme-muted); }
html[data-theme="dark"] .fold-container .fold-field,
html[data-theme="dark"] .fold-container .fold-field i,
html[data-theme="dark"] .fold-container .fold-field .field-title,
html[data-theme="dark"] .map-panel .panel-scroll-box .panel-block.has-icon i { color: var(--theme-muted); }
html[data-theme="dark"] .fold-container .fold-field .field-value { color: var(--theme-text); }
html[data-theme="dark"] .fold-container .fold-field,
html[data-theme="dark"] .map-panel .panel-scroll-box .panel-title,
html[data-theme="dark"] .map-panel .panel-scroll-box .panel-block,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-content-mobile { border-color: var(--theme-border); }
html[data-theme="dark"] .map-panel .panel-scroll-box .panel-block .tooltip { background-color: var(--theme-raised); color: var(--theme-text); }
html[data-theme="dark"] .map-tagline,
html[data-theme="dark"] .home-viewport .map-tagline { background-color: rgba(37, 37, 37, .92); color: var(--theme-link); }
html[data-theme="dark"] .gm-style-iw-c:has(.road-info-popup),
html[data-theme="dark"] .gm-style-iw-tc::after,
html[data-theme="dark"] .pac-container { background-color: var(--theme-surface); }
html[data-theme="dark"] .road-info-popup,
html[data-theme="dark"] .pac-item,
html[data-theme="dark"] .pac-item-query { color: var(--theme-text); }
html[data-theme="dark"] .pac-item { border-color: var(--theme-border); }
html[data-theme="dark"] .pac-item:hover,
html[data-theme="dark"] .pac-item-selected { background-color: var(--theme-raised); }
html[data-theme="dark"] .form-error,
html[data-theme="dark"] .validation-message,
html[data-theme="dark"] .validation-errors,
html[data-theme="dark"] .map-panel .panel-scroll-box .panel-block.notify-us { color: #ff9797; }
html[data-theme="dark"] .form-success { color: #80dfa2; }
html[data-theme="dark"] .content .page-error,
html[data-theme="dark"] #blazor-error-ui { background-color: #48292d; color: var(--theme-text); }
@media (min-width: 1024px) and (max-width: 1199px) {
    .site-header .primary-navigation { margin-right: 10px; font-size: 14px; }
    .site-header .primary-navigation a { margin-left: 6px; margin-right: 6px; }
    .site-header .theme-switcher { margin-left: 6px; }
}
@media (max-width: 1023px) {
    .site-header .theme-switcher { float: none; display: block; margin: 5px 10px 10px; }
    .site-header .primary-navigation { max-height: calc(100dvh - 50px); overflow-y: auto; }
}
button:disabled { opacity: .6; cursor: wait; }
.form-error, .validation-message, .validation-errors { color: #b32121; }
.form-success { color: #176c39; }
.default-form .validation-message { display: block; font-size: 12px; }
.default-form input[type="file"] { padding: 10px; }
.default-form .upload-label { display: block; margin-bottom: 8px; }
.weather-message { white-space: pre-line; }
.content .page-error { padding: 1rem; background: #fff0ee; }
.map-panel.is-collapsed { left: -300px; }
.toggle-map-panel.is-collapsed { left: 0; }
.toggle-map-panel.is-collapsed i { transform: rotate(180deg); }
.map-panel .filter-toggle { cursor: pointer; }
.map-panel .road-group-filter { display: block; padding: 5px 10px; font-size: 12px; }
.map-panel .map-notice { padding: 10px; font-size: 12px; }
.map-tagline .scroll-me-down { border: 0; }
.modal.is-open { display: block; z-index: 600; overflow-y: auto; }
.modal.is-open .modal-content { max-height: 70vh; overflow-y: auto; }
.notification-map-status { font-size: 12px; }
.address-map-wrapper { position: relative; }
.content img { max-width: 100%; }
.gm-style-iw-c:has(.road-info-popup) { padding: 10px !important; }
.gm-style-iw-d:has(.road-info-popup) { overflow-x: hidden !important; overflow-y: auto !important; }
.road-info-popup { position: relative; box-sizing: border-box; width: 100%; min-width: 0; padding: 0 28px 0 0; color: #333; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.road-info-popup__title { display: block; margin: 0; font-size: 14px; line-height: 1.3; }
.road-info-popup__description { margin: 4px 0 0; white-space: pre-line; }
.road-info-popup__close { position: absolute; top: 0; right: 0; width: 24px; height: 24px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 24px; cursor: pointer; }
.road-info-popup__close:focus-visible { outline: 2px solid #1567d7; outline-offset: 2px; }
body:has(.home-viewport) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding-top: 0;
}
body:has(.home-viewport) .site-header {
    position: relative;
    flex-shrink: 0;
}
body:has(.home-viewport) .site-footer {
    flex-shrink: 0;
}
body:has(.home-viewport) .footer-content {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: calc(100% - 20px);
    max-width: 1260px;
}
.home-viewport {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.home-viewport .map-wrapper {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
}
.home-viewport .google-map {
    height: 100%;
    min-height: 0;
    margin-top: 0;
}
.home-viewport .map-tagline {
    position: relative;
    padding: 10px 20px;
    font-size: clamp(16px, 3vh, 30px);
    background-color: rgba(255, 255, 255, 0.8);
}
.home-viewport .map-panel {
    top: 10px;
    max-height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
}
.home-viewport .map-panel .location-search-form,
.home-viewport .map-panel .tab-buttons,
.home-viewport .map-panel .bottom-field {
    flex-shrink: 0;
}
.home-viewport .panel-scroll-box {
    min-height: 0;
    flex-shrink: 1;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
.home-viewport .toggle-map-panel {
    top: 65px;
    margin-top: 0;
}
@media (max-width: 1023px) {
    .site-header .primary-navigation.is-open { right: 0; opacity: 1; box-shadow: -3px 3px 3px #0002; }
}
@media (max-width: 767px) {
    .map-panel:not(.is-expanded) { left: -300px; }
    .toggle-map-panel:not(.is-expanded) { left: 0; }
    .toggle-map-panel:not(.is-expanded) i { transform: rotate(180deg); }
    .modal.is-open .modal-content { width: 80%; box-sizing: border-box; }
}
