/*
 * AlojamientosRurales - Correcciones de estabilidad móvil.
 * Ajusta solapes recientes entre cabecera, buscador sticky y migas de pan.
 */

@media (max-width: 760px) {
    html.ar-listings-page .ar-top-search--unified,
    html.ar-listings-page .ar-top-search {
        top: 64px !important;
        margin: 0 0 18px calc(50% - 50vw) !important;
    }

    html.ar-listings-page.ar-listing-header-hidden .ar-top-search--unified,
    html.ar-listings-page.ar-listing-header-hidden .ar-top-search {
        top: 0 !important;
    }

    html.ar-map-page .ar-top-search--unified,
    html.ar-map-page .ar-top-search {
        top: 64px !important;
        margin-top: 0 !important;
    }

    html.ar-listings-page .ar-public-shell {
        width: 100% !important;
        max-width: none !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-sizing: border-box !important;
    }

    html.ar-map-page .ar-public-shell {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html.ar-listings-page .ar-results-head {
        margin-top: 22px !important;
    }

    html.ar-listings-page .ar-results-head h1 {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    html.ar-listings-page .ar-breadcrumb {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 18px !important;
        padding: 0 0 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    html.ar-listings-page .ar-breadcrumb::-webkit-scrollbar,
    .property-breadcrumb::-webkit-scrollbar {
        display: none !important;
    }

    html.ar-listings-page .ar-breadcrumb > * {
        flex: 0 0 auto !important;
    }

    .property-public-page .property-breadcrumb {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: calc(100% + 32px) !important;
        max-width: none !important;
        margin: 0 -16px 12px !important;
        padding: 8px 16px 9px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        background: rgba(255, 255, 255, .96) !important;
        border-bottom: 1px solid #e5ebf1 !important;
        font-size: 13.5px !important;
        line-height: 1.25 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        box-sizing: border-box !important;
    }

    .property-public-page .property-breadcrumb > * {
        flex: 0 0 auto !important;
    }

    .property-public-page .property-breadcrumb > span:last-child {
        max-width: 68vw !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}
