/* Navbar adjustments */
.navbar .navbar-collapse {
    flex-grow: 1;
    justify-content: center;
}

.navbar-nav {
    gap: 0rem;
}

.navbar .location-selector {
    margin-left: 2rem;
}

@media (max-width: 991px) {
    .navbar-nav {
        gap: 0;
    }

    .mobile-menu-location {
        margin: 1rem 0;
    }
}

/* Location Selector Styles */
.navbar .form-select-sm {
    font-size: 0.875rem;
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    min-width: 120px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.navbar .form-select-sm:focus {
    box-shadow: none;
    outline: none;
}

.country-select .form-select-sm {
    padding-left: 0.25rem;
    min-width: 50px;
    font-size: 1rem;
}

.country-select option {
    font-size: 0.875rem;
}

.location-select {
    min-width: 140px;
}

.location-select .form-select-sm {
    min-width: 120px;
    padding: 0.25rem 1.5rem 0.25rem 0.25rem;
}

.location-select .fa-store-alt {
    font-size: 0.875rem;
}

.mobile-menu-location .form-select-sm {
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
}

.mobile-menu-location .d-flex {
    flex-direction: column;
}

/* Mobile Location Button Styles */
.location-info-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.location-info-button:hover {
    background-color: #f1f5f9;
}

.location-info-button .fa-map-marker-alt {
    color: #3b82f6;
}

.location-info-button .location-text {
    flex: 1;
    text-align: left;
}

.location-info-button .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.location-info-button .rotate-180 {
    transform: rotate(180deg);
}

.location-selector-wrapper {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Transition classes */
.transition {
    transition-property: all;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-150 {
    transition-duration: 150ms;
}

.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.transform {
    transform: translateZ(0);
}

/* Mobile Location Button */
.mobile-location-btn {
    position: relative;
    padding: 8px;
    background: #f8fafc;
    border: none;
    border-radius: 8px;
    color: #475569;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-location-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.location-active-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* Mobile Location Modal */
.mobile-location-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1050;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.mobile-location-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-location-modal .modal-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.mobile-location-modal .modal-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    padding: 4px;
}

.mobile-location-modal .modal-body {
    padding: 1rem;
    min-height: 160px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.mobile-location-modal .location-selector .modern-selector {
    width: 100%;
}

/* Fix for mobile menu location section */
.mobile-menu-location {
    background-color: #ffffff;
    display: none; /* Hide in mobile menu since we have the button in navbar */
}

@media (min-width: 992px) {
    .mobile-location-modal {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .mobile-menu-location {
        background-color: rgba(255, 255, 255, 0.05);
    }
    .mobile-menu-location .country-select .form-select-sm {
        padding-left: 0.5rem;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        margin-right: 1rem;
    }
}
