/* Good Weather Open Cloud Map */
.gw-ocm,
.gw-ocm * {
    box-sizing: border-box;
}

.gw-ocm {
    width: 100%;
    max-width: 100%;
    background: #fff;
    color: #22252a;
    border: 1px solid #e2e4e8;
    border-radius: 12px;
    overflow: hidden;
    font-family: inherit;
}

.gw-ocm-head {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 15px;
    border-bottom: 1px solid #e6e7ea;
    background: #fff;
}

.gw-ocm-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 18px;
    white-space: nowrap;
}

.gw-ocm-logo {
    font-size: 25px;
}

.gw-ocm-location {
    text-align: left;
    line-height: 1.2;
    min-width: 130px;
}

.gw-ocm-location-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.gw-ocm-time {
    display: block;
    margin-top: 3px;
    color: #777d84;
    font-size: 10px;
}

.gw-ocm-refresh {
    border: 0;
    background: #fff;
    color: #111 !important;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 4px;
}

.gw-ocm-refresh:hover {
    text-decoration: underline;
}

.gw-ocm-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e6e7ea;
}

.gw-ocm-tab {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d5d8dd;
    border-radius: 8px;
    background: #fff !important;
    color: #111 !important;
    padding: 8px 17px;
    min-height: 40px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gw-ocm-tab span {
    color: #111 !important;
}

.gw-ocm-tab:hover {
    border-color: #aeb3ba;
}

.gw-ocm-tab:focus-visible,
.gw-ocm-refresh:focus-visible,
.gw-ocm-my-location:focus-visible {
    outline: 2px solid #3878d9;
    outline-offset: 2px;
}

.gw-ocm-tab.is-active[data-layer="cloud"] {
    border-color: #2d7de0;
    box-shadow: inset 0 -3px 0 #2d7de0;
}

.gw-ocm-tab.is-active[data-layer="wind"] {
    border-color: #37a45b;
    box-shadow: inset 0 -3px 0 #37a45b;
}

.gw-ocm-tab.is-active[data-layer="rain"] {
    border-color: #d93a32;
    box-shadow: inset 0 -3px 0 #d93a32;
}

.gw-ocm-map-wrap {
    position: relative;
    height: var(--gw-ocm-height);
    min-height: 360px;
    overflow: hidden;
    background: #e5e5e5;
}

.gw-ocm-map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.gw-ocm-map .leaflet-tile {
    filter: grayscale(100%) brightness(1.12) contrast(.82);
}

.gw-ocm-map .leaflet-control-zoom a {
    color: #111 !important;
    background: rgba(255,255,255,.94);
}

.gw-ocm-overlay {
    position: absolute;
    inset: 0;
    z-index: 400;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gw-ocm-location-card {
    position: absolute;
    z-index: 500;
    left: 12px;
    top: 12px;
    min-width: 150px;
    max-width: 220px;
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(35, 40, 46, .91);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.gw-ocm-card-location {
    display: block;
    font-size: 13px;
}

.gw-ocm-card-value {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #e3e7eb;
}

.gw-ocm-legend {
    position: absolute;
    z-index: 500;
    right: 12px;
    top: 12px;
    width: 205px;
    padding: 9px 10px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    font-size: 10px;
}

.gw-ocm-legend-title {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
}

.gw-ocm-gradient {
    height: 9px;
    border-radius: 5px;
}

.gw-ocm-legend-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    color: #666b72;
}

.gw-ocm-my-location {
    position: absolute;
    z-index: 500;
    right: 12px;
    bottom: 12px;
    border: 1px solid #d8dade;
    border-radius: 7px;
    background: rgba(255,255,255,.96);
    color: #111 !important;
    padding: 9px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0,0,0,.13);
}

.gw-ocm-loading {
    position: absolute;
    z-index: 600;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 9px 13px;
    border-radius: 7px;
    background: rgba(255,255,255,.94);
    color: #333;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.gw-ocm-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    color: #777d84;
    font-size: 9px;
    border-top: 1px solid #e6e7ea;
}

.gw-ocm-footer a {
    color: #527ca9;
    text-decoration: underline;
}

.gw-ocm-status {
    white-space: nowrap;
}

.gw-ocm-error {
    padding: 10px 12px;
    color: #8b3535;
    background: #fff6f6;
    border-top: 1px solid #ecd2d2;
    font-size: 11px;
}

@media (max-width: 650px) {
    .gw-ocm-head {
        gap: 8px;
    }

    .gw-ocm-brand {
        font-size: 15px;
    }

    .gw-ocm-location {
        min-width: 90px;
    }

    .gw-ocm-location-name {
        font-size: 10px;
    }

    .gw-ocm-refresh span {
        display: none;
    }

    .gw-ocm-tab {
        flex: 1 1 0;
        padding: 7px 5px;
        font-size: 12px;
    }

    .gw-ocm-legend {
        width: 170px;
        right: 8px;
        top: 8px;
    }

    .gw-ocm-location-card {
        left: 8px;
        top: 8px;
    }

    .gw-ocm-my-location {
        right: 8px;
        bottom: 8px;
    }
}
