/* Additional responsive styles */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* ===================================
   MOBILE NAVBAR FIXES
   =================================== */
   
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Navbar container */
    .navbar {
        padding: 8px 0;
    }
    
    .navbar .container {
        position: relative;
    }
    
    /* Hamburger menu - always visible on mobile */
    .menu-toggle {
        display: flex !important;
        z-index: 10000;
    }
    
    /* Hide logo icon text on mobile */
    .logo-icon {
        display: none;
    }
    
    .logo-img {
        height: 45px !important;
        width: 130px !important;
        max-width: 130px !important;
    }
    
    .lm-accent {
        font-size: 1.2rem;
    }
    
    .logo-text-main {
        font-size: 0.9rem;
    }
    
    .logo-text-sub {
        font-size: 0.6rem;
    }
    
    /* Hide desktop nav menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 80px 0 30px 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease-in-out;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 9999;
    }
    
    /* Menu active state */
    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9998;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile nav items */
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    /* Mobile nav links */
    .nav-link {
        display: block;
        padding: 16px 25px;
        font-size: 1rem;
        color: var(--gray);
        border: none;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary);
        background: rgba(247, 147, 30, 0.08);
    }
    
    /* Mobile dropdown parent */
    .nav-item-dropdown {
        display: flex;
        flex-direction: column;
    }
    
    .nav-item-dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-item-dropdown .fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .nav-item-dropdown.active > .fa-chevron-down {
        transform: rotate(180deg) !important;
    }
    
    /* Mobile dropdown menu - hidden by default */
    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--light-gray);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.4s ease;
        z-index: 1;
    }
    
    .nav-item-dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-menu .dropdown-link {
        padding: 14px 25px 14px 40px;
        font-size: 0.95rem;
    }
    
    .dropdown-menu .dropdown-link:hover {
        padding-left: 45px;
    }
    
    /* Mobile submenu */
    .dropdown-submenu {
        position: static;
    }
    
    .submenu {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.05);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        display: block !important;
        transition: max-height 0.4s ease;
    }
    
    .dropdown-submenu.active > .submenu {
        max-height: 300px;
        padding: 0;
    }
    
    .submenu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .submenu .dropdown-link {
        padding: 12px 25px 12px 60px;
        font-size: 0.9rem;
    }
    
    .submenu .dropdown-link:hover {
        padding-left: 65px;
    }
    
    /* Close button for mobile menu */
    .mobile-close {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: var(--light-gray);
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 10001;
    }
    
    /* Page header mobile */
    .page-header {
        height: 350px;
        margin-top: 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 40px !important;
        width: 110px !important;
        max-width: 110px !important;
    }
    
    .footer-logo .logo-img {
        height: 40px !important;
        width: 110px !important;
        max-width: 110px !important;
    }
    
    .loader img {
        height: 60px !important;
        width: 150px !important;
        max-width: 150px !important;
    }
    
    .btn {
        padding: 11px 22px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .hero-content > p {
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-tag {
        padding: 6px 15px;
        font-size: 0.75rem;
    }
    
    .tour-card,
    .visa-card {
        margin-bottom: 20px;
    }
    
    .visa-card-inner {
        padding: 25px;
    }
    
    .feature-box {
        padding: 25px 20px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        text-align: center;
    }
    
    /* Mobile close button */
    .mobile-close {
        display: none;
    }
}

/* Hide mobile close button on desktop */
@media (min-width: 769px) {
    .mobile-close {
        display: none !important;
    }
    
    .nav-overlay {
        display: none !important;
    }
}

/* Show mobile close button only on mobile */
@media (max-width: 768px) {
    .mobile-close {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: var(--light-gray);
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 10001;
        border: none;
    }
    
    .mobile-close i {
        color: var(--dark);
    }
}

/* Desktop-only hover dropdown (disable on mobile/touch) */
@media (min-width: 769px) {
    .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease;
    }
    
    .nav-item-dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-submenu:hover > .submenu {
        display: block;
    }
    
    .submenu {
        position: absolute;
        top: 0;
        left: 100%;
        display: none;
        z-index: 1000;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 40px !important;
        width: 110px !important;
        max-width: 110px !important;
    }
    
    .footer-logo .logo-img {
        height: 40px !important;
        width: 110px !important;
        max-width: 110px !important;
    }
    
    .loader img {
        height: 60px !important;
        width: 150px !important;
        max-width: 150px !important;
    }
    
    .btn {
        padding: 11px 22px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .hero-content > p {
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-tag {
        padding: 6px 15px;
        font-size: 0.75rem;
    }
    
    .tour-card,
    .visa-card {
        margin-bottom: 20px;
    }
    
    .visa-card-inner {
        padding: 25px;
    }
    
    .feature-box {
        padding: 25px 20px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        text-align: center;
    }
}

/* Large tablets */
@media (min-width: 992px) and (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .tour-card:hover,
    .visa-card:hover,
    .feature-box:hover {
        transform: translateY(-8px);
    }
    
    .btn::before {
        display: none;
    }
    
    .nav-link::before {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .loading-screen,
    .slider-nav,
    .carousel-nav,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 40px 0;
    }
    
    .hero-slider,
    .hero-overlay,
    .hero-particles {
        display: none;
    }
    
    .hero-content {
        position: static;
        color: var(--dark);
    }
    
    .tour-card,
    .visa-card {
        page-break-inside: avoid;
    }
}
