html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    color: #4a4a4a;
    font-family: Arial, sans-serif;
}

#map {
    width: 100%;
    height: 100vh;
    background: #f5f3ef;
}

.ol-popup {
    position: absolute;
    background-color: #ffffff;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #0b4f6c;
    min-width: 260px;
}

.ol-popup:after {
    top: 50%;
    margin-top: -10px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-right-color: #0b4f6c;
    border-width: 10px;
    left: -22px;
}

.ol-popup-closer {
    position: absolute;
    top: 8px;
    right: 10px;
    text-decoration: none;
    color: #0b4f6c;
    font-weight: bold;
}

.ol-popup-closer:after {
    content: "x";
}

.ol-zoom {
    top: 10px;
    left: 10px;
}

.ol-zoom .ol-zoom-in,
.ol-zoom .ol-zoom-out {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 0 2px 0;
    border: 0;
    border-radius: 2px;
    background: rgba(120, 146, 174, 0.92);
    color: #ffffff;
    font-size: 18px;
    line-height: 28px;
}

.ol-zoom .ol-zoom-out {
    margin-bottom: 0;
}

.ol-attribution {
    right: 10px;
    top: 10px;
    bottom: auto;
    z-index: 99999 !important;
}

.ol-control {
    z-index: 99998 !important;
}

.ol-attribution button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 2px;
    background: rgba(120, 146, 174, 0.92);
    color: #ffffff;
    font-size: 14px;
    line-height: 26px;
    position: relative;
    z-index: 100000 !important;
}

.ol-attribution ul {
    font-size: 11px;
    margin: 0 0 6px 0;
    padding: 6px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 100001 !important;
}

#layer-bar {
    position: absolute;
    left: 10px;
    bottom: 12px;
    z-index: 99997;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 520px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

#layer-bar label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #5a5a5a;
    white-space: nowrap;
}

#layer-bar input {
    margin: 0;
    transform: scale(1.05);
}

.popup-title {
    margin: 0 0 8px 0;
    color: #0b4f6c;
    font-size: 14px;
}

.popup-line {
    margin: 3px 0;
    font-size: 12px;
    color: #185d7b;
}

@media (max-width: 900px) {
    #layer-bar {
        left: 8px;
        right: 42px;
        bottom: 8px;
        min-width: 0;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .ol-attribution {
        right: 8px;
        top: 8px;
        bottom: auto;
    }
}
