/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

.youtube-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.youtube-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero {
    position: relative;
    z-index: 1;
}

/* Mobile Fallback */
.mobile-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.mobile-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .youtube-background {
        display: none;
    }
    
    .mobile-fallback {
        display: block;
    }
    
    /* Optimize hero text for mobile */
    .hero h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero small {
        font-size: 0.9rem;
    }
    
    /* Adjust Airbnb logo size for mobile */
    .hero figure img {
        max-width: 80px;
        height: auto;
    }
    
    .hero figure small {
        font-size: 0.8rem;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h3 {
        font-size: 2rem;
    }
    
    .hero figure img {
        max-width: 90px;
    }
}

/* Ensure video doesn't interfere with mobile performance */
@media (max-width: 768px) {
    .youtube-iframe {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-bg-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero h3 {
        font-size: 1.3rem;
    }
}
