.wasgau-geocoder {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:1rem;
    box-shadow: none !important;
    z-index: 10;
}


.wasgau-geocoder-search-icon {
    width: 32px;
    height: 32px;
    margin: 1rem;
    margin-right: 0;
    position: relative;
    top: 3px;
}
.wasgau-geocoder-search-icon svg {
    top: 5px;
    fill: #4c8d2b;
    width: 100%;
    height: auto;
}
/* Eingabefeld */
.wasgau-geocoder-input {
    width: 100%;
    padding: 1rem 2rem 1rem 0;
    border: none;
    font-size: 1rem;
    line-height: 20px;
    outline: none;
    color: rgba(0,0,0,0.75)
}
@media (width < 480px) {
    .wasgau-geocoder-input {
        font-size: 0.9rem;
    }
}
.wasgau-geocoder-input:focus {
    border-color: var(--prime);
}

/* Loader */
.wasgau-geocoder-loader {
    position: absolute;
    right: 1rem;
    width: 24px;
    height: 24px;
}

.wasgau-geocoder-loader .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top: 2px solid var(--prime);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ergebnisliste */
.wasgau-geocoder-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* max-height: 250px; */
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
}

@media (width < 480px) {
    .wasgau-geocoder-results {
        max-height: 350px;
    } 
}

.wasgau-geocoder-result {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wasgau-geocoder-result:hover {
    background-color: #f5f5f5;
}

.wasgau-geocoder-result:last-child {
    border-bottom: none;
}

.wasgau-geocoder-result-name {
    font-size: 14px;
    color: #333;
}

.wasgau-geocoder-no-results,
.wasgau-geocoder-error {
    padding: 10px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.wasgau-geocoder-error {
    color: #e74c3c;
}

.wasgau-geocoder-result-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.wasgau-geocoder-section-header {
    padding: 0.5rem;
    color: darkgray;
    font-size: 0.9rem;
}

/* Hauptteil des Ergebnisses (fett) */
.wasgau-geocoder-result-main {
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.3;
}

/* Unterteil des Ergebnisses */
.wasgau-geocoder-result-secondary {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

@media (width < 480px) {
    .wasgau-geocoder-result-main {
        font-size: 1rem;
    }

    .wasgau-geocoder-result-secondary {
        font-size: 0.9rem;
    }
}