/* Responsive Styles (Global Fix) */

/* ============ TABLET & MOBILE ============ */
@media (max-width: 1024px) {
    .tour-detail-layout { flex-direction: column; }
    .tour-detail-sidebar { width: 100%; position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .tours-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll globally */
    * { max-width: 100vw; box-sizing: border-box; }

    /* Container Spacing */
    .container { padding: 0 15px; width: 100%; overflow: hidden; }
    .section { padding: 40px 0; overflow: hidden; }

    /* Header & Navigation */
    .nav-menu { display: none; }
    .nav-search-btn { display: none; }
    .nav-toggle { display: block; }
    
    /* Top Bar Mobile (Stacking fix) */
    .top-bar { height: auto; min-height: 40px; padding: 10px 0; position: relative !important; top: 0 !important; }
    .top-bar-content { flex-direction: column !important; align-items: center !important; text-align: center; gap: 10px; width: 100%; }
    .top-bar-left, .top-bar-right { width: 100%; justify-content: center !important; }
    .top-bar-announcement { font-size: 0.8rem; margin: 0; }
    .top-bar-info.d-none-mobile { display: none !important; }
    
    /* Main Header Mobile (Layout fix) */
    .main-header { padding: 10px 0; transform: none !important; top: 0 !important; position: relative !important; width: 100%; }
    .header-scrolled { position: fixed !important; z-index: 2000 !important; }
    body { padding-top: 0 !important; }

    /* Slider Mobile */
    .hero-slider { height: 45vh !important; min-height: 300px !important; }
    .slide-title { font-size: 1.6rem !important; line-height: 1.2; word-break: break-word; }
    .slide-subtitle { font-size: 0.95rem !important; }
    
    /* Search Bar Fix */
    .search-bar-section { margin-top: 0; padding: 20px 15px; width: 100%; }
    .search-bar-form { flex-direction: column; width: 100%; gap: 10px; box-shadow: none; border: 1px solid #eee; }
    .search-input-wrapper { width: 100%; }
    .search-input { width: 100% !important; padding: 12px 12px 12px 40px !important; font-size: 1rem; }
    .search-btn { width: 100%; padding: 14px; }

    /* Cards & Grids */
    .tours-grid, .tours-grid-3, .blog-grid { grid-template-columns: 1fr !important; gap: 20px; width: 100%; padding: 0; }
    .tour-card, .blog-card { width: 100%; margin: 0 auto; }
    
    /* Footer Mobile (Center text & fix overflow) */
    .footer-grid { grid-template-columns: 1fr !important; gap: 30px; text-align: center; width: 100%; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-logo { display: flex; justify-content: center; }
    .footer-contact li { justify-content: center; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; padding: 20px 0; }
    .footer-bottom-right { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .footer-bottom-right a { margin: 0 5px; }

    /* Floating Action Buttons */
    .whatsapp-float { bottom: 85px; right: 15px; width: 50px; height: 50px; font-size: 28px; }
    /* Review Section */
    .review-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .slide-title { font-size: 1.4rem !important; }
    .section-title { font-size: 1.4rem; }
    .container { padding: 0 10px; }
}
