#gungu-map {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    background: #1d1d1d;
}

.gungu-map-control,
.gungu-coordinate-control,
.gungu-search-control {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

#gungu-map .leaflet-top.leaflet-left {
    position: absolute;
}

#gungu-map .gungu-search-control {
    position: absolute;
    top: 0;
    left: 46px;
    width: 380px;
    margin: 10px 0 0 10px !important;
    clear: none !important;
    z-index: 1000;
}

.gungu-search-wrapper {
    position: relative;
    width: 100%;
}

.gungu-place-search {
    display: block;
    width: 100%;
    height: 34px;
    box-sizing: border-box;
    padding: 7px 11px;
    border: 1px solid #aaa;
    border-radius: 4px;
    outline: none;
    background: rgba(255, 255, 255, 0.98);
    color: #222;
    font-size: 14px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.gungu-place-search:focus {
    border-color: #666;
}

.gungu-search-results {
    display: none;
    position: absolute;
    top: 39px;
    left: 0;
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    z-index: 10000;
}

.gungu-search-results.is-visible {
    display: block;
}

.gungu-search-result {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    color: #222;
    text-align: left;
    cursor: pointer;
}

.gungu-search-result:last-child {
    border-bottom: 0;
}

.gungu-search-result:hover,
.gungu-search-result:focus {
    background: #f1f4f7;
    outline: none;
}

.gungu-search-result-name {
    display: block;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.gungu-search-result-meta {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.gungu-search-coordinate-result {
    background: #f7fafc;
}

.gungu-search-info {
    padding: 10px 11px;
    color: #666;
    font-size: 13px;
}

.gungu-map-control {
    padding: 9px 12px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.gungu-labels-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.gungu-labels-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.gungu-coordinate-control {
    min-width: 300px;
    padding: 9px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.97);
    color: #222;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.4);
}

.gungu-coordinate-title {
    margin-bottom: 5px;
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.gungu-coordinate-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.gungu-coordinate-format {
    min-width: 78px;
    padding: 6px 7px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 13px;
    cursor: pointer;
}

.gungu-coordinate-value {
    flex: 1;
    padding: 6px 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f7f7f7;
    color: #111;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.gungu-coordinate-value:hover {
    border-color: #999;
    background: #fff;
}

.gungu-coordinate-message {
    min-height: 15px;
    padding-top: 3px;
    color: #268a38;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

#gungu-map .leaflet-control-container {
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 700px) {
    #gungu-map {
        height: 75vh;
        min-height: 450px;
    }

    #gungu-map .gungu-search-control {
        left: 46px;
        width: calc(100vw - 90px);
        max-width: 320px;
    }

    .gungu-coordinate-control {
        min-width: 230px;
        max-width: calc(100vw - 25px);
    }

    .gungu-coordinate-row {
        flex-direction: column;
    }

    .gungu-coordinate-value {
        white-space: normal;
    }
}