/**
 * WherePopup Styles
 * Location search component with distance-based city ordering
 */

/* City list container */
.where-popup-cities {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    max-height: 320px;
    overflow-y: auto;
}

/* Scrollbar styling */
.where-popup-cities::-webkit-scrollbar {
    width: 6px;
}

.where-popup-cities::-webkit-scrollbar-track {
    background: transparent;
}

.where-popup-cities::-webkit-scrollbar-thumb {
    background: var(--border, #E2E8F0);
    border-radius: 3px;
}

.where-popup-cities::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted, #94A3B8);
}

/* City button */
.where-popup-city-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-surface, #F8FAFC);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary, #1E293B);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.where-popup-city-btn:hover {
    background: var(--bg-page, #FFFFFF);
    border-color: var(--text-muted, #94A3B8);
}

.where-popup-city-btn:focus {
    outline: none;
    border-color: var(--accent, #3B82F6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* City icon */
.where-popup-city-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

/* City info container */
.where-popup-city-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

/* City name */
.where-popup-city-name {
    font-weight: 500;
    color: var(--text-primary, #1E293B);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Listing count */
.where-popup-city-count {
    font-size: 12px;
    color: var(--text-muted, #64748B);
}

/* Location type indicator */
.where-popup-city-type {
    font-size: 11px;
    color: var(--text-muted, #64748B);
    text-transform: capitalize;
}

/* Type-specific icon colors */
.where-popup-icon-city {
    color: #EF4444; /* Red for city pins */
}

.where-popup-icon-country {
    color: #3B82F6; /* Blue for globe */
}

.where-popup-icon-landmark {
    color: #8B5CF6; /* Purple for landmarks */
}

/* Distance badge */
.where-popup-city-distance {
    flex-shrink: 0;
    padding: 4px 10px;
    background: var(--accent-light, #EFF6FF);
    color: var(--accent, #3B82F6);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

/* Loading state */
.where-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-muted, #64748B);
    font-size: 14px;
}

/* No results */
.where-popup-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-muted, #64748B);
    font-size: 14px;
}

/* Override for search input to match existing panel-input */
.where-popup-search {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary, #1E293B);
    background: var(--bg-surface, #F8FAFC);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.where-popup-search:focus {
    border-color: var(--accent, #3B82F6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.where-popup-search::placeholder {
    color: var(--text-muted, #94A3B8);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .where-popup-cities {
        max-height: 280px;
    }

    .where-popup-city-btn {
        padding: 10px 12px;
        gap: 10px;
    }

    .where-popup-city-icon {
        font-size: 18px;
        width: 24px;
    }

    .where-popup-city-name {
        font-size: 14px;
    }

    .where-popup-city-distance {
        padding: 3px 8px;
        font-size: 11px;
    }
}
