/* Fixydo Theme - Location Dropdown Styles v1.4 (Professional Layout) */

/* --- Header Button & Wrapper --- */
.fxy-location-selector-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fxy-location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0; /* Removed side padding to make it tighter */
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fxy-location-btn:hover,
.fxy-location-btn.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.fxy-location-btn .bi-geo-alt-fill {
    color: #fff; 
}

.fxy-location-btn .fxy-browse-arrow {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: transform 0.3s ease;
}

.fxy-location-btn.active .fxy-browse-arrow {
    transform: rotate(180deg);
}

#fxyCurrentLocation {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Location Dropdown Menu --- */
.fxy-location-dropdown {
    display: none;
    position: absolute;
    top: 140%; /* Increased spacing from top */
    left: 0;
    width: 280px;
    background-color: #1d2d44;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
    border: 1px solid #334a69;
    z-index: 1050;
    overflow: hidden;
}

.fxy-location-dropdown-header {
    padding: 12px 15px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #334a69;
}

.fxy-location-dropdown-body {
    max-height: 250px;
    overflow-y: auto;
}

.fxy-location-dropdown ul { list-style: none; padding: 0; margin: 0; }
.fxy-location-dropdown ul li a { display: block; padding: 10px 15px; color: #f0f0f0; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; cursor: pointer; }
.fxy-location-dropdown ul li a:hover { background-color: #334a69; color: #fff; }
.fxy-location-dropdown ul li a.fxy-detect-btn { font-weight: 500; color: #fff; display: flex; align-items: center; gap: 8px; }
.fxy-location-dropdown .fxy-location-loader,
.fxy-location-dropdown .fxy-location-error { padding: 12px 15px; font-size: 14px; color: #fff; }
.fxy-location-dropdown .fxy-location-error { background-color: rgba(220, 53, 69, 0.3); color: #f8d7da; }
.fxy-location-dropdown .spinner { border: 3px solid #334a69; border-top: 3px solid #fff; border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; display: inline-block; margin-right: 8px; vertical-align: middle; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    #fxyCurrentLocation { max-width: 70px; }
    .fxy-location-dropdown { left: auto; right: 0; width: 250px; }
}