.osm-location-search {
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.osm-location-search-input {
    position: relative;
    flex: 1 1 auto;
}

.osm-location-search-input .form-control {
    width: 100%;
}

.osm-search-results {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 1200;
    display: none;
    max-height: 16rem;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.osm-search-results.is-visible {
    display: block;
}

.osm-search-result {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 0;
    background: transparent;
    text-align: left;
    line-height: 1.4;
}

.osm-search-result:hover,
.osm-search-result:focus {
    background: rgba(0, 0, 0, 0.05);
}

.osm-search-empty,
.osm-search-error {
    padding: 0.7rem 0.9rem;
    color: #6c757d;
}

.osm-location-map {
    width: 100%;
    min-height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.leaflet-container {
    font: inherit;
}

.leaflet-control-attribution {
    font-size: 11px;
}

body.dark-mode .osm-search-results {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

body.dark-mode .osm-search-result,
body.dark-mode .osm-search-empty,
body.dark-mode .osm-search-error {
    color: #f1f1f1;
}

body.dark-mode .osm-search-result:hover,
body.dark-mode .osm-search-result:focus {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
    .osm-location-search {
        flex-direction: column;
    }

    .osm-location-search .form-select {
        width: 100%;
    }
}