/* ============================================================
   LOCATION AUTOCOMPLETE — dropdown styles for city & venue
   ============================================================ */

/* Wrapper keeps input + dropdown positioned together */
.location-autocomplete-wrap {
    position: relative;
}

/* The dropdown list */
.location-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 280px;
    overflow-y: auto;
    background: #1a2f2f;
    border: 1px solid rgba(139, 255, 34, 0.25);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 255, 34, 0.3) transparent;
}

.location-dropdown.active {
    display: block;
}

/* Individual suggestion item */
.location-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-dropdown-item:last-child {
    border-bottom: none;
}

.location-dropdown-item:hover,
.location-dropdown-item.active {
    background: rgba(139, 255, 34, 0.1);
}

/* Icon */
.location-dropdown-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

/* Text column */
.location-dropdown-text {
    flex: 1;
    min-width: 0;
}

.location-dropdown-name {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-dropdown-detail {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rating badge for venues */
.location-dropdown-rating {
    flex-shrink: 0;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Loading state */
.location-dropdown-loading {
    padding: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.location-dropdown-loading .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(139, 255, 34, 0.2);
    border-top-color: #8BFF22;
    border-radius: 50%;
    animation: loc-spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* "No results" message */
.location-dropdown-empty {
    padding: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

/* Powered-by footer */
.location-dropdown-footer {
    padding: 6px 14px;
    text-align: right;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Input adornments ── */

.location-autocomplete-wrap .form-control {
    padding-right: 34px;
}

.location-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: none;
}

.location-clear-btn:hover {
    color: #ff6b6b;
}

.location-clear-btn.visible {
    display: block;
}

/* ── Category badges for venues ── */

.location-dropdown-category {
    flex-shrink: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(139, 255, 34, 0.1);
    color: rgba(139, 255, 34, 0.7);
}

.location-dropdown-category[data-cat="hotel"] {
    background: rgba(0, 123, 255, 0.12);
    color: #4da3ff;
}

.location-dropdown-category[data-cat="conference_center"] {
    background: rgba(156, 39, 176, 0.12);
    color: #ce93d8;
}

.location-dropdown-category[data-cat="restaurant"] {
    background: rgba(255, 152, 0, 0.12);
    color: #ffb74d;
}

.location-dropdown-category[data-cat="event_venue"] {
    background: rgba(139, 255, 34, 0.12);
    color: #8BFF22;
}

/* ── Scrollbar ── */

.location-dropdown::-webkit-scrollbar {
    width: 5px;
}

.location-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.location-dropdown::-webkit-scrollbar-thumb {
    background: rgba(139, 255, 34, 0.25);
    border-radius: 3px;
}
