.map-container {
    width: 100%;
    min-height: calc(100dvh - var(--mud-appbar-height, 64px));
}

.map-shell {
    position: relative;
    width: 100%;
    min-height: calc(100dvh - var(--mud-appbar-height, 64px));
    overflow: hidden;
}

.map-shell--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1300;
    overflow: hidden;
}

.map-toggle-btn {
    z-index: 1302;
    background: rgba(24, 24, 28, 0.35);
    color: #fff;
    backdrop-filter: blur(2px);
}

.map-toggle-anchor {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1302;
    display: flex;
    gap: 8px;
}

.map-toggle-btn:hover {
    background: rgba(24, 24, 28, 0.55);
}

.map-measure-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 380px;
    max-height: calc(100dvh - 40px);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(16, 22, 30, 0.88);
    color: #f2f7ff;
    z-index: 1301;
    transform: translateX(320px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    display: flex;
    flex-direction: column;
}

.map-panel-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1300;
    background: transparent;
}

.map-measure-panel--open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.map-measure-panel__header {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.map-measure-radios {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.map-measure-panel .mud-radio {
    min-height: auto !important;
}

.map-measure-panel .mud-radio .mud-typography {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.map-measure-panel .mud-radio-group {
    gap: 0 !important;
}

.map-measure-radio-item {
    margin: 2px 0 !important;
    padding: 1px 0 !important;
    min-height: 22px !important;
}

.map-measure-radio-item .mud-button-root {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    min-height: 22px !important;
}

.map-measure-radio-item .mud-radio-icons {
    margin-right: 4px !important;
}

.map-measure-radio-item .mud-typography {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-speed-marker {
    min-width: 42px;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(12, 24, 32, 0.72);
    color: #f3fbff;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
    /*transform: translate(-50%, -100%);*/
    pointer-events: auto;
}

.map-filter-block {
    padding: 8px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 10px;
}

.map-filter-block__label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    opacity: 0.9;
}

.map-station-filter {
    width: 100%;
}

.map-refresh-status {
    margin-top: 6px;
    font-size: 10px;
    opacity: 0.7;
}

.station-speed-marker--stale {
    background: rgba(125, 20, 28, 0.88);
    border-color: #ff5964;
    box-shadow: 0 0 0 2px rgba(255, 70, 80, 0.35), 0 3px 10px rgba(0, 0, 0, 0.35);
}

.station-row-stale td {
    background: rgba(170, 25, 35, 0.16) !important;
}

.station-row-stale td:first-child {
    border-left: 3px solid #ff5964;
}

.wind-rose-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 12px;
}

.wind-rose-summary__item {
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 8px;
    background: rgba(24, 24, 36, 0.72);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.wind-rose-summary__item span,
.wind-rose-summary__item strong {
    display: block;
}

.wind-rose-summary__item span {
    color: #aaa8bb;
    font-size: 13px;
}

.wind-rose-summary__item strong {
    margin-top: 5px;
    color: #e8e7f2;
    font-size: 20px;
}

@media (max-width: 650px) {
    .wind-rose-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.station-speed-value {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.station-speed-unit {
    font-size: 10px;
    line-height: 1;
    opacity: 0.85;
}
.public-layout .mud-appbar {
    display: none !important;
}

.public-layout .mud-main-content {
    margin-top: 0 !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
}

.public-map-brand {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px;
}

.public-map-logo-link {
    display: block;
    line-height: 0;
}

.public-map-brand img {
    display: block;
    width: 128px;
    height: auto;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.public-map-logo-link:hover img {
    transform: scale(1.04);
    opacity: 0.85;
}

.public-map-login {
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
