/* BudaBest Search Hero Styles */
.bb-search-hero {
    position: relative;
    padding: 80px 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.bb-search-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.bb-search-hero__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.bb-search-hero__content {
    text-align: center;
}

.bb-search-hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bb-search-hero__subtitle {
    font-size: 1.25rem;
    margin: 0 0 2.5rem 0;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 400;
}

.bb-search-hero__form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bb-search-hero__row {
    margin-bottom: 1.5rem;
}

.bb-search-hero__row:last-child {
    margin-bottom: 0;
}

.bb-search-hero__main-search {
    margin-bottom: 1.5rem;
}

.bb-search-hero__filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bb-search-hero__button-row {
    margin-bottom: 0;
}

/* Field Styles */
.bb-field {
    position: relative;
    display: flex;
    align-items: center;
}

.bb-field--icon {
    position: relative;
}

.bb-field__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 10;
    pointer-events: none;
}

/* Input Styles */
.bb-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #1f2937;
    transition: all 0.3s ease;
}

.bb-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bb-input--lg {
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    font-size: 1.125rem;
    border-radius: 12px;
}

.bb-input::placeholder {
    color: #9ca3af;
}

/* Select Styles */
.bb-select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.bb-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bb-search-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bb-search-submit:hover::before {
    left: 100%;
}

/* Autocomplete Styles */
.bb-field--autocomplete {
    position: relative;
}

.bb-search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.bb-search-autocomplete.active {
    display: block;
}

.bb-autocomplete-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #1f2937;
}

.bb-autocomplete-item:hover,
.bb-autocomplete-item.highlighted {
    background-color: #f8fafc;
}

.bb-autocomplete-item:last-child {
    border-bottom: none;
}

.bb-autocomplete-item .item-type {
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bb-search-hero {
        padding: 60px 15px;
        min-height: 400px;
    }
    
    .bb-search-hero__title {
        font-size: 2.25rem;
    }
    
    .bb-search-hero__subtitle {
        font-size: 1.125rem;
    }
    
    .bb-search-hero__form {
        padding: 1.5rem;
    }
    
    .bb-search-hero__filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bb-input--lg {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 1rem;
    }
    
    .bb-btn--xl {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .bb-search-hero {
        padding: 40px 10px;
    }
    
    .bb-search-hero__title {
        font-size: 1.875rem;
    }
    
    .bb-search-hero__subtitle {
        font-size: 1rem;
    }
    
    .bb-search-hero__form {
        padding: 1.25rem;
    }
    
    .bb-field__icon {
        left: 0.75rem;
    }
    
    .bb-input,
    .bb-select {
        padding-left: 2.5rem;
    }
    
    .bb-input--lg {
        padding-left: 2.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bb-search-hero__form {
        background: rgba(17, 24, 39, 0.95);
        border: 1px solid rgba(55, 65, 81, 0.5);
    }
    
    .bb-input,
    .bb-select {
        background: rgba(31, 41, 55, 0.8);
        border-color: rgba(55, 65, 81, 0.5);
        color: white;
    }
    
    .bb-input::placeholder {
        color: rgba(156, 163, 175, 0.8);
    }
    
    .bb-search-autocomplete {
        background: rgba(31, 41, 55, 0.95);
        border-color: rgba(55, 65, 81, 0.5);
    }
    
    .bb-autocomplete-item {
        color: white;
        border-bottom-color: rgba(55, 65, 81, 0.3);
    }
    
    .bb-autocomplete-item:hover,
    .bb-autocomplete-item.highlighted {
        background-color: rgba(55, 65, 81, 0.3);
    }
}

/* Animation classes */
.bb-search-hero.animate-in {
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bb-search-hero__form.animate-in {
    animation: formSlideIn 0.8s ease-out 0.3s both;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
