/*
 * Copyright (c) 2025 Wobita GmbH. Alle Rechte vorbehalten.
 *
 * Autor: Tim Stuhler - tim@stuhler.de
 *
 * Dieser Code sowie alle zugehörigen Rechte und Lizenzen gehören ausschließlich der Wobita GmbH.
 * Jegliche Nutzung, Vervielfältigung, Modifikation oder Weitergabe ohne ausdrückliche Genehmigung ist untersagt.
 *
 * Eine Nutzung ist nur im Rahmen einer gültigen Lizenzvereinbarung mit der Wobita GmbH gestattet.
 */


.wobita-search-wrapper-custom {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
    overflow: hidden;
}

.wobita-search-wrapper-custom {
    pointer-events: none;  /* Keine Klicks mehr möglich */
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Zentriert das Element horizontal */
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url("../../img/commingSoonOverlay.png") no-repeat center center;
    background-size: cover;
    max-width: 500px;
}



.wobita-search-row-top-custom {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.wobita-input-box-custom {
    position: relative;
    flex: 1;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.wobita-input-box-custom input {
    height: 100%;
    width: 100%;
    outline: none;
    font-size: 18px;
    font-weight: 400;
    border: none;
    padding: 0 150px 0 20px;
    background: white;
    border-radius: 8px;
    color: black !important;
}

.wobita-button-search {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    border: none;
    padding: 12px 30px;
    background-color: #f33;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wobita-button-search:hover {
    background-color: #d30;
}

.wobita-button-search:active {
    transform: translateY(-50%) scale(0.98);
}

.wobita-search-row-bottom-custom {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

/* ===========================================
   Custom Dropdown Styles
   =========================================== */
.wobita-dropdown-wrapper {
    position: relative;
    flex: 1;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: visible;
}

.wobita-dropdown-selected {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 15px;
    color: black;
    user-select: none;
    position: relative;
    font-family: "Arial", serif;
    padding: 15px 20px 0;
    line-height: 1rem;
}

.wobita-dropdown-wrapper .wobita-dropdown-label {
    position: absolute;
    font-family: "Arial", serif;
    top: 2px;
    left: 10px;
    font-size: 14px;
    color: #707070;
    opacity: 0.9;
    pointer-events: none;
}

/* Dropdown-Liste */
.wobita-dropdown-list {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-height: 0;
    overflow: scroll;
    transition: max-height 0.3s ease;
    z-index: 999;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Offen-Zustand */
.wobita-dropdown-list.open {
    max-height: 200px;
}

.wobita-dropdown-list li {
    padding: 12px 20px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.wobita-dropdown-list li:hover {
    background: #f3f3f3;
}

/* Responsive */
@media screen and (max-width: 700px) {
    .wobita-search-row-bottom-custom {
        flex-direction: row;
        gap: 15px;
    }

    .wobita-input-box-custom input {
        padding-right: 100px;
    }

    .wobita-button-search {
        right: 10px;
        padding: 8px 18px;
    }
}


.autocomplete-suggestions,
.autocomplete-dropdown {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.autocomplete-suggestions.show,
.autocomplete-dropdown.show {
    opacity: 1;
    visibility: visible;
    display: block;
}

.autocomplete-suggestions li,
.autocomplete-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: black;
    text-align: left;
}

.autocomplete-suggestions li:hover,
.autocomplete-dropdown li:hover {
    background-color: #f7f7f7;
}