/**
 * Arama motoru — mobil tam ekran sheet (çıkış / rota / şehir / oda-kişi).
 * ≤768px; masaüstünde gizli.
 */

.ac-hsw-sheet {
    position: fixed;
    inset: 0;
    z-index: 11055;
    display: none;
    flex-direction: column;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    box-sizing: border-box;
    padding:
        env(safe-area-inset-top, 0px)
        0
        env(safe-area-inset-bottom, 0px);
}
.ac-hsw-sheet.is-open {
    display: flex;
}
body.ac-hsw-sheet-open {
    overflow: hidden;
    overscroll-behavior: none;
}
body.ac-hsw-sheet-open .crw {
    visibility: hidden !important;
    pointer-events: none !important;
}

.ac-hsw-sheet__head {
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid #e8edf3;
    z-index: 2;
}
.ac-hsw-sheet__bar {
    display: grid;
    grid-template-columns: 2.75rem 1fr 4.25rem;
    align-items: center;
    gap: 0.35rem;
    min-height: 3.25rem;
    padding: 0.35rem 0.65rem;
}
.ac-hsw-sheet__close,
.ac-hsw-sheet__clear {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    min-height: 2.75rem;
}
.ac-hsw-sheet__close {
    font-size: 1.85rem;
    line-height: 1;
    color: var(--color-secondary, #1e3a5f);
    padding: 0;
}
.ac-hsw-sheet__title {
    text-align: center;
    font-size: 1rem;
    font-weight: 750;
    color: var(--color-secondary, #1e3a5f);
    line-height: 1.25;
}
.ac-hsw-sheet__clear {
    justify-self: end;
    color: #ef4444;
    font-size: 0.95rem;
    font-weight: 650;
    padding: 0 0.15rem;
}

.ac-hsw-sheet__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ac-hsw-sheet__search {
    flex: 0 0 auto;
}
.ac-hsw-sheet__search-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    background: #f8fafc;
    color: #0f172a;
}
.ac-hsw-sheet__search-input:focus {
    outline: 2px solid color-mix(in srgb, var(--color-primary, #2563eb) 35%, #fff);
    border-color: var(--color-primary, #2563eb);
    background: #fff;
}

.ac-hsw-sheet__list.tour-suggestions-dropdown,
.tour-suggestions-dropdown.ac-hsw-sheet__list {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
    overflow: visible;
    z-index: auto !important;
}
.ac-hsw-sheet__list .tour-suggestions-dropdown__item,
.ac-hsw-sheet__list .hotel-suggestions-dropdown__item {
    appearance: none;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    text-align: left;
    min-height: 3.15rem;
    padding: 0.9rem 1rem !important;
    margin: 0 !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 12px !important;
    background: #fff !important;
    font: inherit;
    font-size: 1rem !important;
    font-weight: 650;
    color: #0f172a !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
}
.ac-hsw-sheet__list .hotel-suggestions-dropdown__item {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}
.ac-hsw-sheet__list .hotel-suggestions-dropdown__type {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.ac-hsw-sheet__list .hotel-suggestions-dropdown__name {
    flex: 1 1 auto;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.ac-hsw-sheet__list .tour-suggestions-dropdown__item:active,
.ac-hsw-sheet__list .hotel-suggestions-dropdown__item:active {
    background: #f8fafc !important;
    border-color: color-mix(in srgb, var(--color-primary, #ed4b25) 35%, #e8edf3) !important;
}

.ac-hsw-sheet__options {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.ac-hsw-sheet__option {
    appearance: none;
    display: block;
    width: 100%;
    text-align: left;
    min-height: 3.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    color: #0f172a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ac-hsw-sheet__option.is-selected {
    border-color: var(--color-primary, #2563eb);
    background: color-mix(in srgb, var(--color-primary, #2563eb) 10%, #fff);
    color: var(--color-secondary, #1e3a5f);
}
.ac-hsw-sheet__option:active {
    background: #f1f5f9;
}

/* Oda/kişi pop — sheet’e taşınca .home-search-widget bağlamı kaybolur; stilleri burada tam ver */
.ac-hsw-sheet .hsw-guests-pop--in-sheet,
.hsw-guests-pop--in-sheet {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0.15rem 0 1rem !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    z-index: auto !important;
    overflow: visible !important;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-room-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-room + .hsw-room {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef0f3;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-room__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-room__remove {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    font-size: 1.15rem;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-room__label {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    font-size: 1rem;
    font-weight: 750;
    color: var(--color-secondary, #1e3a5f);
    text-transform: none;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-guests-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0 !important;
    border-bottom: 1px solid #eef2f7;
    font-size: 1rem;
    font-weight: 650;
    color: #111827;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-step {
    display: inline-flex !important;
    align-items: center;
    gap: 0.65rem;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-step span {
    min-width: 1.35rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-secondary, #1e3a5f);
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-step button {
    appearance: none;
    width: 2.75rem !important;
    height: 2.75rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 1.35rem !important;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-step button:disabled {
    opacity: 0.35;
    cursor: default;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-child-ages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.65rem 0 0.25rem;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-child-ages__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 5.5rem;
    flex: 1 1 5.5rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-child-ages__item select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 16px;
    color: #0f172a;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-child-ages__item.is-required select {
    border-color: #f59e0b;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-add-room {
    appearance: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.85rem !important;
    min-height: 3.15rem !important;
    padding: 0.75rem 1rem !important;
    border: 1px dashed color-mix(in srgb, var(--color-primary, #ed4b25) 45%, #e5e7eb) !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--color-primary, #ed4b25) 6%, #fff) !important;
    color: var(--color-primary, var(--primary, #ed4b25)) !important;
    font: inherit;
    font-size: 1rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-add-room svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-apply {
    appearance: none;
    display: block !important;
    width: 100% !important;
    margin-top: 0.85rem !important;
    min-height: 3.25rem !important;
    padding: 0.85rem 1rem !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--color-primary, var(--primary, #ed4b25)) !important;
    color: #fff !important;
    font: inherit;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary, #ed4b25) 28%, transparent);
}

.ac-hsw-sheet .hsw-guests-pop--in-sheet .hsw-apply:active {
    filter: brightness(0.96);
}

@media (min-width: 769px) {
    .ac-hsw-sheet {
        display: none !important;
    }
}
