/* 
 * Location Selector Styles
 * Animated location dropdown
 */

/* Location Selector Container */
.location-selector {
    position: relative;
    margin: 25px 0;
    z-index: 100;
    max-width: 400px;
}

/* Location Input Field */
.location-input {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-input:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.location-input i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

.location-input i.fa-chevron-down {
    margin-left: auto;
    margin-right: 0;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.location-input.active i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Location Dropdown */
.location-dropdown {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-location {
    color: var(--grey);
    font-weight: 500;
}

.selected-location.active {
    color: var(--dark-color);
}

/* Dropdown Menu */
.location-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
}

.location-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
    padding: 10px 0;
}

/* Location Options */
.location-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-option:hover {
    background-color: rgba(128, 0, 128, 0.05);
    color: var(--primary-color);
    font-weight: 500;
}

/* Animation for selected location */
.location-input.active .selected-location {
    animation: pulse-text 1s ease;
}

@keyframes pulse-text {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: var(--primary-color);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .location-selector {
        max-width: 100%;
    }
    
    .location-input {
        padding: 12px 15px;
    }
}
