/* Enhanced Mobile Menu Styles for Tourism Spirit */

/* ================================================
   Mobile Menu Overlay
   ================================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================================================
   Enhanced Mobile Hamburger Button
   ================================================ */
.mobile-menu-btn {
    position: relative;
    z-index: 1001;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

/*.mobile-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 166, 184, 0.3);
    border-radius: 4px;
}*/

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1.5px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 3px;
    background-color: #443935;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -6px;
}

.hamburger-inner::after {
    bottom: -6px;
}

/* Hamburger Animation when Active */
.mobile-sider-drawer-menu.active .hamburger-inner {
    transform: rotate(45deg);
    background-color: #fff;
}

.mobile-sider-drawer-menu.active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.mobile-sider-drawer-menu.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    background-color: #fff;
}

/* ================================================
   Hide Top Bar on Mobile
   ================================================ */
@media (max-width: 768px) {
    .header-style-top-bar.hidden-mobile {
        display: none !important;
    }
}

/* ================================================
   Enhanced Mobile Navigation Menu
   ================================================ */
@media (max-width: 991px) {
    .mobile-slide-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        z-index: 1000;
        transition: all 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        display: flex !important;
        flex-direction: column;
        padding: 0;
    }

    .mobile-sider-drawer-menu.active .mobile-slide-menu {
        right: 0;
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        width: 100%;
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        border-radius: 0;
        min-height: 70px;
    }

    .mobile-logo img {
        height: 40px;
        width: auto;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 20px;
        color: #6c757d;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: all 0.2s ease;
        line-height: 1;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-close:hover {
        background: #f8f9fa;
        color: #495057;
        transform: rotate(90deg);
    }

    /* Enhanced Navigation Links */
    .enhanced-nav {
        flex: 1;
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
    }

    .enhanced-nav .nav-item {
        margin: 0;
        border-bottom: 1px solid #f1f3f4;
    }

    .enhanced-nav .nav-item:last-child {
        border-bottom: none;
    }

    .enhanced-nav .nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 16px 20px !important;
        color: #495057 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 16px !important;
        transition: all 0.2s ease !important;
        position: relative !important;
        border-radius: 0 !important;
    }

    .enhanced-nav .nav-link:hover {
        background: #f8f9fa;
        color: #4DA6B8;
        text-decoration: none;
        transform: translateX(-5px);
    }

    .enhanced-nav .nav-link.active,
    .enhanced-nav .nav-item.active .nav-link {
        background: linear-gradient(135deg, #4DA6B8, #5bc0d3);
        color: white;
        font-weight: 600;
    }

    .nav-icon {
        width: 22px;
        height: 22px;
        margin-right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: currentColor;
        transition: all 0.2s ease;
    }

    .nav-text {
        flex: 1;
    }

    /* Mobile Menu Footer */
    .mobile-menu-footer {
        margin-top: auto;
        padding: 20px;
        border-top: 1px solid #e9ecef;
        background: #f8f9fa;
    }

    .mobile-contact-info {
        margin-bottom: 15px;
    }

    .mobile-contact-info p {
        margin: 0;
        color: #6c757d;
        font-size: 14px;
        display: flex;
        align-items: center;
    }

    .mobile-contact-info i {
        margin-right: 8px;
        color: #4DA6B8;
    }

    .mobile-social-links {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .mobile-social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #fff;
        color: #6c757d;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.2s ease;
        border: 1px solid #e9ecef;
    }

    .mobile-social-links a:hover {
        background: #4DA6B8;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(77, 166, 184, 0.3);
    }
}

/* ================================================
   Desktop Menu Enhancements
   ================================================ */
@media (min-width: 992px) {
    .mobile-menu-header,
    .mobile-menu-footer,
    .mobile-menu-close,
    .mobile-menu-overlay {
        display: none !important;
    }

    .enhanced-nav .nav-link {
        padding: 15px 18px;
        font-weight: 500;
        color: #495057;
        transition: all 0.2s ease;
        border-radius: 6px;
        margin: 0 2px;
    }

    .enhanced-nav .nav-link:hover {
        color: #4DA6B8;
        background: rgba(77, 166, 184, 0.1);
    }

    .nav-icon {
        display: none;
    }

    .nav-text {
        display: inline;
    }
}

/* ================================================
   Responsive Header Main Bar
   ================================================ */
@media (max-width: 991px) {
    .main-bar {
        padding: 0 20px;
        min-height: 70px;
        position: relative;
    }

    .logo-header {
        flex: 1;
    }

    .extra-nav {
        margin-left: auto;
        margin-right: 10px;
    }

    .extra-nav .extra-cell.two {
        display: none;
    }
}

@media (max-width: 576px) {
    .main-bar {
        padding: 0 15px;
    }

    .mobile-slide-menu {
        width: 280px;
    }

    .enhanced-nav .nav-link {
        padding: 14px 16px;
        font-size: 15px;
    }

    .mobile-menu-header {
        padding: 15px;
        min-height: 60px;
    }

    .mobile-logo img {
        height: 35px;
    }
}

/* ================================================
   Smooth Scrolling and Performance
   ================================================ */
.mobile-slide-menu {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* ================================================
   Focus States for Accessibility
   ================================================ */

/* ================================================
   Animation Classes
   ================================================ */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-in-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ================================================
   Loading States
   ================================================ */
.nav-link.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ================================================
   WhatsApp Floating Button
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    z-index: 999;
    transition: all 0.3s ease;
}

/* RTL positioning */
.whatsapp-float[dir="ltr"] {
    right: 30px;
}

.whatsapp-float[dir="rtl"] {
    left: 30px;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 60px;
    cursor: pointer;
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
}

.whatsapp-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-left: 0;
    margin-right: 0;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 14px;
    margin-left: 8px;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    direction: ltr;
}

/* RTL text margin */
.whatsapp-float[dir="rtl"] .whatsapp-text {
    margin-left: 0;
    margin-right: 8px;
}

.whatsapp-button:hover .whatsapp-text {
    opacity: 1;
    max-width: 120px;
}

.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #FF4444;
    border-radius: 50%;
    border: 2px solid white;
}

/* RTL badge positioning */
.whatsapp-float[dir="rtl"] .whatsapp-badge {
    right: auto;
    left: -5px;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* WhatsApp Tooltip */
.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 260px;
    z-index: 1000;
}

/* RTL tooltip positioning */
.whatsapp-tooltip[dir="ltr"] {
    right: 0;
}

.whatsapp-tooltip[dir="rtl"] {
    left: 0;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content {
    padding: 16px;
}

.tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.tooltip-icon {
    width: 20px;
    height: 20px;
    color: #25D366;
    margin-right: 8px;
}

/* RTL icon margin */
.whatsapp-tooltip[dir="rtl"] .tooltip-icon {
    margin-right: 0;
    margin-left: 8px;
}

.tooltip-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.tooltip-message {
    color: #666;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
    }

    .whatsapp-float[dir="ltr"] {
        right: 20px;
    }

    .whatsapp-float[dir="rtl"] {
        left: 20px;
    }

    .whatsapp-button {
        padding: 10px 14px;
    }

    .whatsapp-icon {
        width: 22px;
        height: 22px;
    }

    .whatsapp-tooltip {
        min-width: 220px;
        bottom: 60px;
    }

    .whatsapp-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
    }

    .whatsapp-float[dir="ltr"] {
        right: 15px;
    }

    .whatsapp-float[dir="rtl"] {
        left: 15px;
    }

    .whatsapp-tooltip {
        min-width: 200px;
        bottom: 55px;
    }
}
