@media (min-width: 901px) {
    .hotel-filter-panel {
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .hotel-filter-panel::-webkit-scrollbar {
        width: 8px;
    }

    .hotel-filter-panel::-webkit-scrollbar-thumb {
        background: #c7d3df;
        border-radius: 999px;
    }

    .hotel-filter-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    .hotel-filter-panel .filter-apply-button {
        position: sticky;
        bottom: 0;
        z-index: 5;
        box-shadow: 0 -10px 22px rgba(13, 27, 45, .12);
    }
}

/* Mobil otel sonuçları — Filtre + Sırala tek ve kurumsal araç çubuğu */
@media (max-width: 760px) {
    html body.is-hotels-index .hotel-results-topbar {
        display: block !important;
        margin: 0 0 16px !important;
        padding: 0 0 16px !important;
        border-bottom: 1px solid #e3eaf1 !important;
    }

    html body.is-hotels-index .hotel-results-topbar h2 {
        margin: 0 !important;
        font-size: 25px !important;
        line-height: 1.15 !important;
        letter-spacing: -.55px !important;
    }

    html body.is-hotels-index .hotel-results-topbar > div:first-child > p {
        margin: 6px 0 0 !important;
        color: #718096 !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    html body.is-hotels-index .results-top-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 14px 0 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    html body.is-hotels-index .results-top-actions .result-count {
        display: none !important;
    }

    html body.is-hotels-index .filter-mobile-button,
    html body.is-hotels-index .sort-form,
    html body.is-hotels-index .sort-form label {
        width: 100% !important;
        min-width: 0 !important;
        height: 50px !important;
        min-height: 50px !important;
        margin: 0 !important;
    }

    html body.is-hotels-index .filter-mobile-button {
        appearance: none !important;
        -webkit-appearance: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 14px !important;
        border: 1px solid #d7e0e9 !important;
        border-radius: 13px !important;
        background: #fff !important;
        color: #142844 !important;
        box-shadow: 0 3px 10px rgba(20, 40, 68, .045) !important;
        font-size: 14px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        cursor: pointer !important;
    }

    html body.is-hotels-index .filter-mobile-button::before {
        content: "☷" !important;
        display: inline-grid !important;
        place-items: center !important;
        width: 22px !important;
        height: 22px !important;
        margin: 0 !important;
        color: #176fb2 !important;
        font-size: 17px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
    }

    html body.is-hotels-index .filter-mobile-button::after {
        content: "›" !important;
        margin-left: auto !important;
        color: #8a98aa !important;
        font-size: 18px !important;
        line-height: 1 !important;
        transform: rotate(90deg) !important;
    }

    html body.is-hotels-index .filter-mobile-button[aria-expanded="true"] {
        border-color: #9bc8e8 !important;
        background: #f7fbff !important;
    }

    html body.is-hotels-index .filter-mobile-button[aria-expanded="true"]::after {
        transform: rotate(-90deg) !important;
    }

    html body.is-hotels-index .sort-form {
        display: block !important;
        padding: 0 !important;
    }

    html body.is-hotels-index .sort-form label {
        position: relative !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 7px !important;
        padding: 0 34px 0 14px !important;
        border: 1px solid #d7e0e9 !important;
        border-radius: 13px !important;
        background: #fff !important;
        box-shadow: 0 3px 10px rgba(20, 40, 68, .045) !important;
        overflow: hidden !important;
    }

    html body.is-hotels-index .sort-form label::before {
        content: "↕" !important;
        color: #176fb2 !important;
        font-size: 16px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
    }

    html body.is-hotels-index .sort-form label::after {
        content: "⌄" !important;
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-54%) !important;
        color: #142844 !important;
        font-size: 16px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
        pointer-events: none !important;
    }

    html body.is-hotels-index .sort-form label > span {
        display: none !important;
    }

    html body.is-hotels-index .sort-form select {
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        color: #142844 !important;
        font-size: 14px !important;
        font-weight: 850 !important;
        line-height: 48px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        cursor: pointer !important;
    }

    html body.is-hotels-index .sort-form select::-ms-expand {
        display: none !important;
    }

    /*
     * /oteller mobil: sadece bu sayfadaki alt boşluk düzeltmesi.
     * Önceki viewport/flex zorlamasını kesin olarak etkisizleştirir.
     * Footer doğal akışta içeriğin hemen arkasında biter.
     */
    html body.is-hotels-index.is-hotels-index:has(.hotel-start-state) {
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f6f8fb !important;
    }

    html body.is-hotels-index.is-hotels-index:has(.hotel-start-state) > main {
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: none !important;
    }

    html body.is-hotels-index.is-hotels-index:has(.hotel-start-state) > .hm-footer-container {
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
        flex: none !important;
    }

    html body.is-hotels-index.is-hotels-index:has(.hotel-start-state) > .hm-footer-container .hm-page-footer,
    html body.is-hotels-index.is-hotels-index:has(.hotel-start-state) > .hm-footer-container .hm-footer-main,
    html body.is-hotels-index.is-hotels-index:has(.hotel-start-state) > .hm-footer-container .hm-footer-bottom {
        min-height: 0 !important;
        height: auto !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 390px) {
    html body.is-hotels-index .results-top-actions {
        gap: 8px !important;
    }

    html body.is-hotels-index .filter-mobile-button,
    html body.is-hotels-index .sort-form,
    html body.is-hotels-index .sort-form label {
        height: 48px !important;
        min-height: 48px !important;
    }

    html body.is-hotels-index .filter-mobile-button {
        padding: 0 10px !important;
        gap: 6px !important;
        font-size: 13px !important;
    }

    html body.is-hotels-index .filter-mobile-button::before {
        width: 20px !important;
        height: 20px !important;
        font-size: 15px !important;
    }

    html body.is-hotels-index .filter-mobile-button::after {
        font-size: 16px !important;
    }

    html body.is-hotels-index .sort-form label {
        gap: 5px !important;
        padding-left: 10px !important;
        padding-right: 28px !important;
    }

    html body.is-hotels-index .sort-form label::before {
        font-size: 14px !important;
    }

    html body.is-hotels-index .sort-form label::after {
        right: 9px !important;
        font-size: 14px !important;
    }

    html body.is-hotels-index .sort-form select {
        height: 46px !important;
        font-size: 13px !important;
        line-height: 46px !important;
    }
}
