* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    /*padding: 20px;*/
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* height: 70px; */
}

.navbar {
    max-width: 1400px;
    margin: 0px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 0px 16px;
    height: 70px;
  
    /* background-color: white; */
    /* padding: 0 5%; */
    /* position: sticky; */
    /* top: 0; */
    /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
    /* padding: 1rem 0; */
}

/*.navbar.compressed {
    /* padding: 0.5rem 0; */
    /* background: rgba(255, 255, 255, 0.98); */
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); 
}*/

.leftside {
    display: flex;
    align-items: center;
    flex: 1; /* This allows leftside to grow and shrink */
    min-width: 0px;
    gap: 16px;
}

.logo {
    /* font-size: 24px;
    font-weight: bold;
    color: #1a73e8; */
    width: 68px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: auto;
}

.loc-compressed-filter {
    display: none;
}

.loc-compressed-filter.desktop {
    width: 100%;
    max-width: 800px;
}

.loc-compressed-filter.desktop.active {
    display: flex;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-links .headerLinks {
    color: #444;
    text-decoration: none;
    /* margin-left: 30px; */
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links .headerLinks:hover {
    color: #FF8A00;
}

/* Language dropdown styling */
.language-picker {
    position: relative;
    /* margin-left: 30px; */
}

.language-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-weight: 500;
    /* padding: 8px 12px; */
    border-radius: 4px;
    transition: background-color 0.3s;
}

.language-btn:hover {
    background-color: #f0f7ff;
    color: #FF8A00;
}

.globe-icon {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 150px;
    display: none;
    z-index: 10;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #444;
}

.language-option:hover {
    background-color: #f0f7ff;
    color: #FF8A00;
}

/* Compressed Search Integration */
.compressed-search {
    display: flex;
    flex: 1;
    width: 100%;
    /* padding: 10px 3%; */
    /* max-width: 350px; */
    /* margin: 0 2rem; */
    position: relative;
    transition: all 0.3s ease;
}

.compressed-search .search-input {
    flex: 1;
    /* width: 700px; */
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 12px;
    /* background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3); */
    transition: all 0.3s ease;
    border: 1px solid #ccc;
    border-radius: 12px;
}
/* .navbar.compressed .compressed-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar.compressed .search-input {
    width: 500px;
} */


.compressed-search .horizontalAligned{
    display: flex;
}


.compressed-search .search-input:focus {
    border-color: #FF8A00;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.compressed-search-btn {
    background: #FF8A00;
    color: white;
    border: none;
    padding: 9px 1rem;
    border-radius: 0px 12px 12px 0px;
    /* font-weight: 600; */
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* font-size: 0.85rem; */
    white-space: nowrap;
    position: absolute;
    right: 0;
}

.compressed-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}



/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FF8A00;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 9;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: #444;
    text-decoration: none;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.mobile-menu a:hover {
    background-color: #f0f7ff;
    color: #FF8A00;
}

.mobile-language-picker {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
}

.mobile-language-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    width: 100%;
    text-align: left;
}

.mobile-language-dropdown {
    margin-top: 10px;
    display: none;
}

.mobile-language-dropdown.show {
    display: flex;
    flex-direction: column;
}

/* .mobile-language-option {
    padding: 10px 15px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #444;
    border-radius: 4px;
} */

.mobile-language-option:hover {
    background-color: #f0f7ff;
    color: #FF8A00;
}

/* Overlay when mobile menu is active */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 5;
}

.overlay.active {
    display: block;
}

/* Media query for mobile */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0 5%;
    }

    .nav-links {
        display: none;
    }

    /* .navbar.compressed .compressed-search {
        display: none;
    } */

    .loc-compressed-filter.desktop.active {
        display: none;
    }
    .loc-compressed-filter.mobile.active {
        display: flex;
        padding: 0px 0px 10px 0px;
    }

    .compressed-search {
        display: flex;
        /* flex: 1; */
        /* max-width: 350px; */
        margin: 0 auto;
        padding: 0px 2%;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .compressed-search .search-input {
        /* flex: 1; */
        width: 100%;
        /* padding: 10px 5%; */
        font-size: 0.9rem;
        border-radius: 12px;
        /* background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3); */
        transition: all 0.3s ease;
        border: 1px solid #ccc;
        border-radius: 12px;
        height: 50px;
    }

    .compressed-search-btn {
        /* background: #FF8A00; */
        /* color: white; */
        /* border: none; */
        /* padding: 0px 5%; */
        /* border-radius: 0px 12px 12px 0px; */
        font-weight: 0;
        font-size: 16px;
        height: 50px;
        /* cursor: pointer; */
        /* transition: all 0.3s ease; */
        /* font-size: 0.85rem; */
        /* white-space: nowrap; */
        /* position: absolute; */
        /* right: 0; */
    }

    .hamburger {
        z-index: 10;
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}