.location-autocomplete {
    position: relative;
    width: 100%;
}

.location-autocomplete-control {
    position: relative;
    display: flex;
    align-items: center;
}

.location-autocomplete-control > .fa-map-marker-alt {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: #686868;
    pointer-events: none;
}

.location-autocomplete-control input {
    width: 100%;
    box-sizing: border-box;
    padding-left: 40px;
    padding-right: 42px;
}

.location-verified-mark,
.location-search-spinner {
    position: absolute;
    right: 14px;
    display: none;
}

.location-verified-mark {
    color: #ccff00;
    font-size: 0.78rem;
}

.location-autocomplete.is-verified .location-verified-mark {
    display: inline-flex;
}

.location-search-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #444;
    border-top-color: #ccff00;
    border-radius: 50%;
    animation: location-spin 0.7s linear infinite;
}

.location-autocomplete.is-searching .location-search-spinner {
    display: block;
}

.location-autocomplete.is-searching .location-verified-mark {
    display: none;
}

.location-suggestions {
    position: absolute;
    inset: calc(100% + 5px) 0 auto;
    z-index: 1200;
    overflow: hidden;
    border: 1px solid #333;
    border-radius: 7px;
    background: #0c0c0c;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.location-suggestion {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 11px;
    border: 0;
    border-bottom: 1px solid #202020;
    padding: 12px 14px;
    background: transparent;
    color: #e8e8e8;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: left;
}

.location-suggestion:last-of-type {
    border-bottom: 0;
}

.location-suggestion:hover,
.location-suggestion.is-active,
.location-suggestion:focus-visible {
    background: #181818;
    color: #ccff00;
    outline: none;
}

.location-suggestion i {
    color: #666;
}

.location-attribution,
.location-empty-result {
    margin: 0;
    padding: 10px 14px;
    color: #666;
    font-size: 0.62rem;
}

.location-selection-status {
    min-height: 18px;
    margin: 7px 2px 0;
    color: #777;
    font-size: 0.7rem;
    line-height: 1.45;
}

.location-selection-status.is-confirmed {
    color: #b9e900;
}

.location-selection-status.is-error {
    color: #ff7777;
}

.modal-location-row {
    border-bottom: 1px solid #333;
    padding: 8px 16px 10px;
}

.modal-location-row .location-autocomplete-control input {
    border: 0;
    background: transparent;
}

.profile-location-modal[hidden] {
    display: none;
}

.profile-location-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.profile-location-dialog {
    width: min(100%, 520px);
    border: 1px solid #343434;
    border-radius: 10px;
    padding: 28px;
    background: #0b0b0b;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75);
}

.profile-location-dialog h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.profile-location-dialog > p {
    margin: 0 0 22px;
    color: #888;
    font-size: 0.82rem;
    line-height: 1.6;
}

.profile-location-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.profile-location-actions button {
    border: 1px solid #333;
    border-radius: 4px;
    padding: 11px 16px;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-location-actions [data-save-profile-location] {
    border-color: #ccff00;
    background: #ccff00;
    color: #050505;
}

@keyframes location-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
    .profile-location-dialog {
        padding: 22px 18px;
    }

    .profile-location-actions {
        flex-direction: column-reverse;
    }

    .profile-location-actions button {
        width: 100%;
    }
}
