/* ============================================
   SEARCH HERO SECTION — Bağımsız, sabit arka plan
   ============================================ */

.search-hero-section {
    position: relative;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    overflow: hidden;
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        min-height 0.45s ease;
}

.search-hero-section--hidden {
    max-height: 0 !important;
    min-height: 0 !important;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
}

/* Arka plan resmi — header bg image ile örtüşür, sadece overlay için kullanılır */
.search-hero-section__bg {
    position: absolute;
    inset: 0;
}

/* Koyu overlay — widget'ın altındaki alanı kararltır */
.search-hero-section__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../uploads/sliders/slider-1774809767-8120.png');

}

/* Widget container */
.search-hero-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ============================================
   SEARCH WIDGET
   ============================================ */

.search-widget {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 40px rgba(20, 40, 100, 0.28);
    overflow: visible;
}

/* ---- Tabs ---- */
.search-widget__tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-100);
    padding: 0 1.5rem;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.search-widget__tabs::-webkit-scrollbar {
    display: none;
}

.search-widget__tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.search-widget__tab i {
    font-size: 0.9rem;
}

.search-widget__tab:hover {
    color: var(--primary);
}

.search-widget__tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ---- Form ---- */
.search-widget__form {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 0;
}

.search-widget__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.search-widget__label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.search-widget__label i {
    color: var(--primary);
}

.search-widget__input {
    border: none;
    outline: none;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--gray-900);
    background: transparent;
    padding: 0;
    width: 100%;
    font-family: inherit;
}

.search-widget__input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.search-widget__input[type="date"] {
    color: var(--gray-700);
}

.search-widget__input[type="date"]:invalid {
    color: var(--gray-400);
}

/* Kişi sayısı kontrolleri */
.search-widget__guests-ctrl {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guests-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
    flex-shrink: 0;
}

.guests-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lighter);
}

.search-widget__guests-input {
    width: 36px;
    text-align: center;
    border: none;
    outline: none;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--gray-900);
    background: transparent;
    font-family: inherit;
    -moz-appearance: textfield;
}

.search-widget__guests-input::-webkit-outer-spin-button,
.search-widget__guests-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Dikey ayraç */
.search-widget__divider {
    width: 1px;
    height: 44px;
    background: var(--gray-200);
    margin: 0 1.25rem;
    flex-shrink: 0;
}

/* Arama butonu */
.search-widget__submit {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
    font-family: inherit;
    white-space: nowrap;
}

.search-widget__submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(52, 89, 175, 0.35);
}

.search-widget__submit i {
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 1023px) {
    .search-hero-section {
        min-height: 0;
        padding: 0.75rem 0 0.75rem;
    }

    .search-widget__form {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.25rem;
    }

    .search-widget__field {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .search-widget__divider {
        display: none;
    }

    .search-widget__submit {
        flex: 0 0 100%;
        justify-content: center;
        margin-left: 0;
        padding: 1rem;
    }
}

@media screen and (max-width: 767px) {
    .search-hero-section {
        min-height: 0;
        padding: 0.5rem 0;
    }

    .search-widget {
        border-radius: var(--radius-lg);
    }

    .search-widget__tabs {
        padding: 0 0.75rem;
    }

    .search-widget__tab {
        padding: 0.75rem 0.85rem;
        font-size: 0.72rem;
    }

    .search-widget__form {
        flex-direction: column;
        padding: 1rem;
        gap: 0.85rem;
    }

    .search-widget__field {
        flex: 0 0 100%;
    }

    .search-widget__submit {
        flex: 0 0 100%;
        padding: 0.9rem;
    }
}