/* Location Accordion Styles */
.location-accordion .accordion-item {
    background-color: transparent;
}

.location-accordion .accordion-button {
    color: var(--ssc-text-white);
    font-weight: 500;
    padding: 0.5rem 0;
}

.location-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.location-accordion .accordion-button:not(.collapsed) {
    color: var(--ssc-primary);
    background-color: transparent;
    box-shadow: none;
}

.location-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1rem;
    height: 1rem;
}

.location-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.location-accordion .accordion-body {
    max-height: 200px;
    overflow-y: auto;
}

/* Desktop Location Dropdown Styles */
.desktop-location-dropdown {
    top: 100%;
    z-index: 1000;
}

.desktop-location-dropdown .accordion-body {
    background-color: var(--ssc-dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Location Item Styles */
.location-item, .location-item-mobile {
    border-left: 2px solid var(--ssc-primary);
    padding-left: 10px;
    margin-bottom: 10px;
}

.location-item:last-child, .location-item-mobile:last-child {
    margin-bottom: 0;
}

/* Nav Location Item - Background highlight when selected */
.nav-location-item.selected {
    background-color: rgba(0, 255, 0, 0.12) !important;
}

/* Nav Location Selector (only the name is clickable) */
.nav-location-selector:hover {
    opacity: 0.8;
}

.nav-location-selector.selected .nav-location-check {
    display: inline-block !important;
}

/* Icon hover states */
.nav-location-item a:hover i {
    opacity: 1 !important;
    color: var(--ssc-primary) !important;
}

/* Scrollbar Styling */
.location-accordion .accordion-body::-webkit-scrollbar {
    width: 5px;
}

.location-accordion .accordion-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.location-accordion .accordion-body::-webkit-scrollbar-thumb {
    background: var(--ssc-primary);
    border-radius: 5px;
}

/* Mobile Specific Styles */
@media (max-width: 992px) {
    .location-accordion .accordion-button {
        font-size: 0.95rem;
    }
    
    .location-item-mobile a {
        font-size: 0.9rem;
    }
}
