/* Locations styles for new preferencesPoll page */

.locations-container {
    padding: 20px 0;
}

.selected-locations {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.location-card {
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
}

.location-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.location-card.selected {
    border-color: #0d6efd;
    background-color: #f0f7ff;
}

.location-card .card-body {
    padding: 15px;
}

.location-card .location-content {
    cursor: pointer;
    padding-right: 50px; /* Make room for edit button */
}

.location-card .location-actions {
    z-index: 10; /* Ensure edit button is clickable */
}

.location-card h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.location-actions {
    display: flex;
    gap: 8px;
}

.location-actions .btn {
    padding: 4px 8px;
    font-size: 0.85rem;
}

#selectedLocationsList {
    min-height: 40px;
}

/* Scrollable locations list container */
.locations-list-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.locations-list-container::-webkit-scrollbar {
    width: 8px;
}

.locations-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.locations-list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.locations-list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

