﻿/* Mobile-specific styles for navbar*/
@media (max-width: 991.98px) {

    .mobile-search-container {
        padding: 70px 15px 10px 15px;
        background: #000;
        z-index: 3;
        transition: all 0.2s ease
    }

    .mobile-search-input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #ddd;
        border-radius: 25px;
        background: white !important;
        color: #333 !important;
        font-size: 16px;
        outline: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .mobile-search-input::placeholder {
            color: #666 !important;
        }

        .mobile-search-input:focus {
            border-color: #005AA3;
            background: white !important;
            color: #333 !important;
        }

    .custom-toggler .hamburger-icon {
        display: block;
    }

    .custom-toggler .close-icon {
        display: none;
    }

    .desktop-search-input {
        display: none !important;
    }

    .navbar-nav.me-auto {
        display: flex !important;
    }

    .search-active .navbar-nav.me-auto {
        display: flex !important;
    }

    .navbar-collapse.show {
        background: #000;
    }

    .navbar-nav.me-auto {
        gap: 0 !important;
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
        color: white !important;
        text-align: center;
    }

        .navbar-nav .nav-link:last-child {
            border-bottom: none;
        }

    .navbar-collapse .d-flex.align-items-center {
        flex-direction: row;
        gap: 12px !important;
        margin-top: 16px;
    }

    .custom-button,
    .custom-outlined-button {
        width: 100% !important;
        margin: 4px 0 !important;
    }

    .nav-icon-img-search {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-search-container {
        display: none !important;
    }
}

.main-ealb {
    padding-top: 7%;
    min-height: 100vh;
    flex: 1 0 auto;
}

/* Desktop search styles */
@media (min-width: 992px) {
    .desktop-search-container {
        transition: all 0.3s ease;
        opacity: 0;
        transform: scaleX(0);
        transform-origin: right;
    }

        .desktop-search-container.active {
            opacity: 1;
            transform: scaleX(1);
        }

    .desktop-search-input {
        transition: all 0.3s ease;
    }

    .search-active .navbar-nav.me-auto {
        display: none !important;
    }

    .nav-icon-img-search {
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

        .nav-icon-img-search:hover {
            opacity: 0.7;
        }
}
