/* Header Mobile Fix for GORI Tours */
/* Specific fixes for breadcrumb header background on mobile devices */

/* Force background image display on mobile */
@media (max-width: 768px) {
    .bg-breadcrumb {
        background: linear-gradient(rgba(19, 53, 123, 0.6), rgba(19, 53, 123, 0.6)), url(../img/breadcrumb-bg.png) !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        background-attachment: scroll !important;
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        -o-background-size: cover !important;
        padding: 120px 0 40px 0 !important;
        min-height: 250px !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Ensure content is above background */
    .bg-breadcrumb .container {
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Additional fallback using pseudo-element */
    .bg-breadcrumb::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-image: url(../img/breadcrumb-bg.png) !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        background-attachment: scroll !important;
        z-index: 1 !important;
    }
    
    .bg-breadcrumb::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(rgba(19, 53, 123, 0.6), rgba(19, 53, 123, 0.6)) !important;
        z-index: 2 !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .bg-breadcrumb {
        padding: 100px 0 30px 0 !important;
        min-height: 200px !important;
    }
    
    .bg-breadcrumb .container {
        padding: 20px 15px !important;
    }
    
    .bg-breadcrumb h3 {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
        line-height: 1.2 !important;
    }
    
    .bg-breadcrumb .breadcrumb {
        font-size: 0.9rem !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .bg-breadcrumb {
        background-attachment: scroll !important;
        -webkit-background-size: cover !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    .bg-breadcrumb::before {
        background-attachment: scroll !important;
        -webkit-background-size: cover !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .bg-breadcrumb {
        background-attachment: scroll !important;
        will-change: transform !important;
    }
    
    .bg-breadcrumb::before {
        will-change: transform !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .bg-breadcrumb::before {
        background-image: url(../img/breadcrumb-bg.png) !important;
    }
}