/* Honda Navigation CSS */

/* Top layer with Logo only (White Background - Full Width) */
.top-nav-layer {
    color: white;
    padding: 15px 0;
    height: auto;
    background-color: #FFFFFF;
    width: 100%;
}

/* Valecross logo section (white background - full width) */
.valecross-logo-section-full {
    background-color: #FFFFFF;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Valecross logo styling */
.valecross-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Logo navbar brand styling */
.valecross-logo-container .navbar-brand {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-logo {
    height: 35px;
    width: auto;
    margin: 0 auto;
    filter: brightness(1.2);
}

.locations-dropdown .btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 4px;
}

.locations-dropdown .dropdown-menu {
    padding: 0;
    margin-top: 5px;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}

.locations-dropdown .dropdown-item {
    padding: 8px 15px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: normal;
    line-height: 1.4;
}

.locations-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

/* Bottom layer with navigation tabs */
.bottom-nav-layer {
    background-color: #FFFFFF;
    padding: 0;
}

/* Custom hamburger menu button */
.custom-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-toggler:hover {
    background: rgba(255, 255, 255, 0.15);
}

.custom-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
    outline: none;
}

.custom-toggler .navbar-toggler-icon {
    background-image: none;
    width: 22px;
    height: 2px;
    position: relative;
    background-color: #000 !important;
    display: block;
    border-radius: 1px;
}

.custom-toggler .navbar-toggler-icon::before,
.custom-toggler .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000 !important;
    left: 0;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.custom-toggler .navbar-toggler-icon::before {
    top: -7px;
}

.custom-toggler .navbar-toggler-icon::after {
    top: 7px;
}

.bottom-nav-layer .container {
    position: relative;
}

.bottom-nav-layer .navbar {
    padding: 0;
    width: 100%;
}

/* Navigation styles */
.navbar-nav {
    margin: 0 auto;
    justify-content: center;
}

.navbar-nav .nav-link {
    color: #CA131C;
    padding: 15px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.8s ease;
    border-radius: 0;
    display: inline-block;
    position: relative;
    border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: transparent;
    color: #CA131C;
    text-decoration: none;
    border-bottom-color: #CA131C;
}

.navbar-toggler {
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 8px;
}

/* Mobile menu styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #FFFFFF;
        padding: 10px 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .mobile-sections-menu .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #FFFFFF !important;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .mobile-sections-menu .dropdown-item {
        padding: 10px 30px;
        border-left: 3px solid transparent;
        color: #CA131C;
        transition: all 0.8s ease;
        font-weight: 500;
    }
    
    .mobile-sections-menu .dropdown-item:hover {
        background-color: transparent;
        color: #CA131C;
        border-left-color: #CA131C;
    }
    
    .mobile-sections-menu .nav-item {
        border-bottom: 1px solid rgba(202, 19, 28, 0.1);
    }
    
    .mobile-sections-menu .nav-link {
        padding: 12px 20px;
        color: #CA131C;
        transition: all 0.8s ease;
        font-weight: 500;
        border-bottom: 3px solid transparent;
    }
    
    .mobile-sections-menu .nav-link:hover {
        background-color: transparent;
        color: #CA131C;
        border-bottom-color: #CA131C;
    }
    
    .mobile-sections-menu .dropdown-toggle::after {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Dropdown styles */
.dropdown-menu {
    border-radius: 4px;
    border: none;
    margin-top: 5px;
    background-color: #FFFFFF;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #000 !important;
    transition: all 0.8s ease;
    font-weight: 500;
    position: relative;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: #f5f5f5 !important;
    color: #000 !important;
    text-decoration: none;
    border-left-color: #CA131C !important;
}

/* WhatsApp button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-button i {
    font-size: 30px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        z-index: 1000;
        padding: 10px 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 3px solid transparent;
        color: #CA131C;
        transition: all 0.8s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: transparent;
        color: #CA131C;
        border-bottom-color: #CA131C;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: 3px solid transparent;
    }
    
    .dropdown-menu {
        background-color: #FFFFFF;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-item {
        color: #000 !important;
        padding: 10px 20px;
        border-left: 3px solid transparent;
        transition: all 0.8s ease;
        font-weight: 500;
    }
    
    .dropdown-item:hover {
        background-color: #f5f5f5 !important;
        color: #000 !important;
        border-left-color: #CA131C !important;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Keep the sections in a single row on mobile but adjust proportions */
    .top-nav-layer {
        height: 40px;
    }
    
    .honda-logo-section {
        width: 15%;
        max-width: 15%;
        flex: 0 0 15%;
    }
    
    .valecross-logo-section {
        width: 25%;
        max-width: 25%;
        flex: 0 0 25%;
    }
    
    .addresses-section {
        width: 60%;
        max-width: 60%;
        flex: 0 0 60%;
    }
    
    .asas-logo {
        height: 20px;
    }
    
    .main-logo {
        height: 25px;
        width: auto;
    }
    
    .locations-strip {
        justify-content: flex-start;
    }
    
    .location-item {
        font-size: 0.65rem;
        padding: 0 8px;
        height: 40px;
    }
}

@media (max-width: 767.98px) {
    .honda-logo-section {
        width: 10%;
        max-width: 10%;
        flex: 0 0 10%;
    }
    
    .valecross-logo-section {
        width: 30%;
        max-width: 30%;
        flex: 0 0 30%;
    }
    
    .addresses-section {
        width: 60%;
        max-width: 60%;
        flex: 0 0 60%;
    }
    
    .asas-logo {
        height: 18px;
    }
    
    .valecross-text {
        font-size: 0.9rem;
    }
    
    .honda-subtitle {
        font-size: 0.45rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 575.98px) {
    .honda-logo-section {
        width: 10%;
        max-width: 10%;
        flex: 0 0 10%;
    }
    
    .valecross-logo-section {
        width: 35%;
        max-width: 35%;
        flex: 0 0 35%;
    }
    
    .addresses-section {
        width: 55%;
        max-width: 55%;
        flex: 0 0 55%;
    }
    
    .asas-logo {
        height: 16px;
    }
    
    .main-logo {
        height: 22px;
        width: auto;
    }
    
    .location-item {
        font-size: 0.6rem;
        padding: 0 5px;
    }
}

/* Floating Stores Contact Button */
.floating-stores-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    cursor: pointer;
}

.stores-icon {
    background-color: #CA131C;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 28px;
}

.floating-stores-button:hover .stores-icon {
    transform: scale(1.1);
    background-color: #a80a1a;
}

.stores-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.stores-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stores-header {
    background-color: #CA131C;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
}

.stores-list {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.store-item {
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(202, 19, 28, 0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

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

.store-item:hover {
    background-color: rgba(202, 19, 28, 0.05);
    padding-left: 20px;
}

.store-name {
    font-weight: 600;
    color: #CA131C;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.store-phone {
    font-size: 0.85rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .floating-stores-button {
        bottom: 80px;
        right: 10px;
    }
    
    .stores-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stores-menu {
        min-width: 250px;
        right: -10px;
    }
}
