.header-container {
    margin: 0 auto;
    padding: 0 10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    height: 10rem;
}

.search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.search .current_location {
    color: var(--action-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.search .current_location svg {
    width: 2.4rem;
    height: 2.4rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 3.6rem;
}

nav a {
    text-decoration: none;
    color: var(--action-color);
    font-size: 1.75rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px), (max-height: 500px) {
    .header-container {
        margin: 0 auto;
        padding: 0 3rem;
        gap: 1.5rem;
        height: 7rem;
    }
    
    .logo {
        width: 40px;
        height: auto;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 6rem;
        left: 0;
        right: 0;
        background: var(--shaded-background-color);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, box-shadow 0.3s ease;
        box-shadow: none;
        z-index: 1000;
    }
    
    nav.open {
        max-height: 400px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    nav a {
        padding: 1.8rem 2.7rem;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav a:hover {
        background: #f9f9f9;
    }
}

/* Floating mobile nav needs solid background */
@media (max-width: 768px), (max-height: 500px) {
    :host([floating]) nav {
        background: rgba(40, 40, 40, 0.95);
        backdrop-filter: blur(8px);
    }
    
    :host([floating]) nav a {
        border-bottom-color: rgba(255, 255, 255, 0.1);
        text-shadow: none;
    }
    
    :host([floating]) nav a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}
