/* MODERNE LEBE BEWUSST SEARCH WIDGET STYLES */
.lb-modern-search-widget {
    max-width: 1000px;
    margin: 0 auto;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Toasts */
.lb-toast-container{position:fixed;right:20px;bottom:20px;z-index:99999;display:flex;flex-direction:column;gap:10px}
.lb-toast{background: var(--lb-bg-dark, #191970); color: var(--lb-text-white, #FFFFFF); padding:12px 14px; border-radius:10px; box-shadow:0 8px 25px var(--lb-shadow-dark, rgba(0,0,0,0.25)); display:flex; align-items:center; gap:10px; min-width:240px; max-width:90vw}
.lb-toast.success{background:#16a34a}
.lb-toast.error{background:#dc2626}
.lb-toast.info{background:#4B0082}
.lb-toast .close{margin-left:auto;background:transparent;border:none;color:#fff;font-size:18px;cursor:pointer}
@media(max-width:768px){.lb-toast-container{right:50%;transform:translateX(50%);bottom:14px}}

.lb-search-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 12px;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    max-width: 900px;
    margin-inline: auto;
    position: relative;
}

.lb-search-container:hover {
    box-shadow: 0 16px 50px rgba(240, 152, 25, 0.16);
    border-color: rgba(240, 152, 25, 0.22);
}

.lb-search-container:focus-within {
    box-shadow: 0 20px 60px rgba(240, 152, 25, 0.2);
    border-color: rgba(240, 152, 25, 0.3);
}

/* Filter-Chips */
.lb-filter-chips {
    display: none;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
    animation: slideDown 0.3s ease;
}

/* Chips sichtbar wenn Widget aktiv ist */
.lb-modern-search-widget.chips-open .lb-filter-chips,
.lb-modern-search-widget.active .lb-filter-chips {
    display: none !important;
}

/* Zeige Filter-Chips automatisch, wenn die Suchleiste Fokus hat */
.lb-search-container:focus-within + .lb-filter-chips {
    display: none !important;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lb-filter-dropdown {
    position: relative;
}

.lb-filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid rgba(25, 25, 112, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #191970;
    white-space: nowrap;
}

.lb-filter-chip:hover {
    background: rgba(240, 152, 25, 0.1);
    border-color: rgba(240, 152, 25, 0.3);
}

.lb-filter-chip.active {
    background: #191970;
    border-color: #191970;
    color: white;
}

.lb-filter-chip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #191970;
}

.lb-filter-chip.active svg {
    color: white;
}

.lb-filter-label {
    font-weight: 500;
    color: #191970;
}

.lb-filter-value {
    font-weight: 600;
    color: #191970;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-filter-chip.active .lb-filter-label,
.lb-filter-chip.active .lb-filter-value {
    color: white;
}

.lb-dropdown-arrow {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    transition: transform 0.2s ease;
    color: #191970;
}

.lb-filter-chip.active .lb-dropdown-arrow {
    color: white;
}

.lb-dropdown-trigger.active .lb-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown-Menüs */
.lb-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
}

.lb-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Hinweis: Sichtbarkeit der Dropdowns wird primär per JS via .show Klasse gesteuert */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.lb-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 13px;
    color: #191970;
}

.lb-dropdown-item:hover {
    background: rgba(240, 152, 25, 0.1);
}

.lb-dropdown-item.active {
    background: #191970;
    color: white;
}

.lb-dropdown-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #191970;
}

.lb-dropdown-item.active svg {
    color: white;
}

.lb-clear-all-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: none;
    border: 1px solid rgba(25, 25, 112, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #191970;
    margin-left: auto;
}

.lb-clear-all-filters:hover {
    background: rgba(240, 152, 25, 0.1);
    border-color: rgba(240, 152, 25, 0.3);
    color: #191970;
}

.lb-clear-all-filters svg {
    color: #191970;
}

.lb-search-input-wrapper,
.lb-location-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.lb-search-input-wrapper {
    flex: 2; /* Größer als das Location-Feld */
}

.lb-search-icon,
.lb-location-icon {
    position: absolute;
    left: 20px;
    color: #191970;
    z-index: 2;
    opacity: 0.6;
}

.lb-search-input,
.lb-location-input {
    width: 100%;
    height: 54px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 16px 0 52px;
    font-size: 16px;
    color: #191970;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.lb-search-input::placeholder,
.lb-location-input::placeholder {
    color: rgba(25, 25, 112, 0.6);
    font-weight: 400;
}

.lb-search-input:focus,
.lb-location-input:focus {
    background: rgba(240, 152, 25, 0.05);
}

/* Trennlinie zwischen den Inputs */
.lb-location-input-wrapper::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(25, 25, 112, 0.2);
}

/* MODERNER BUTTON MIT ICON */
.lb-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-image: linear-gradient(to right, #F09819 0%, #EDDE5D 51%, #F09819 100%);
    margin: 0;
    padding: 14px 24px;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background-size: 200% auto;
    color: white;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(240, 152, 25, 0.28);
    border: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    height: 54px;
    min-width: 140px;
}

.lb-search-btn:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(240, 152, 25, 0.4);
}

.lb-search-btn:active {
    transform: translateY(0);
}

.lb-btn-icon {
    transition: transform 0.2s ease;
}

.lb-search-btn:hover .lb-btn-icon {
    transform: translateX(2px);
}

/* Autocomplete-Suggestions */
.lb-search-suggestions,
.lb-location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
}

.lb-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.lb-suggestion-item:hover,
.lb-suggestion-item.active {
    background: #f8f9fa;
}

.lb-suggestion-item:last-child {
    border-bottom: none;
}

.lb-suggestion-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.lb-suggestion-content {
    flex: 1;
}

.lb-suggestion-title {
    font-weight: 500;
    color: #191970;
    margin-bottom: 2px;
}

.lb-suggestion-meta {
    font-size: 12px;
    color: #6b7280;
}

.lb-suggestion-type {
    font-size: 11px;
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ENTFERNT: AJAX RESULTS STYLING */
/* Alle Suchergebnisse werden auf der search-results.php Seite angezeigt */

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .lb-search-container { max-width: 680px; }
}

@media (max-width: 768px) {
    .lb-search-widget {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .lb-search-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .lb-search-container {
        flex-wrap: wrap;
        padding: 14px;
        gap: 14px;
        border-radius: 20px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .lb-search-input-wrapper,
    .lb-location-input-wrapper {
        flex: none;
        width: 100%;
    }
    
    .lb-location-input-wrapper::before {
        display: none;
    }
    
    .lb-search-btn { width: 100%; min-width: auto; height: 50px; border-radius: 14px; }
    .lb-search-input, .lb-location-input { height: 50px; border-radius: 12px; padding-left: 48px; }
}

@media (max-width: 480px) {
    .lb-search-container { border-radius: 18px; padding: 12px; }
    
    .lb-search-input,
    .lb-location-input {
        border-radius: 12px;
        font-size: 14px;
        padding-left: 44px;
    }
    
    .lb-search-icon,
    .lb-location-icon {
        left: 12px;
        width: 18px;
        height: 18px;
    }
    
    .lb-search-btn { border-radius: 14px; padding: 12px 22px; font-size: 12px; }
}

