/* ===== LOCATION CARDS ===== */
.location-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-card:hover::before {
    opacity: 1;
}

.location-card .card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
    position: relative;
}

.location-card .location-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1E7FE0 0%, #0F2A44 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(30, 127, 224, 0.3);
    transition: all 0.3s ease;
}

.location-card:hover .location-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(30, 127, 224, 0.4);
}

.location-card .location-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(40, 167, 69, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #28a745;
}

.location-card .status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.location-card .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.location-card .location-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.location-card .location-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.location-card .location-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-top: auto;
    margin-bottom: 1rem;
}

.location-card .stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.location-card .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.location-card .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.location-card .card-footer-custom {
    padding: 0 1.5rem 1.5rem;
}

.location-card .btn-view-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1E7FE0 0%, #0F2A44 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.location-card .btn-view-details:hover {
    background: linear-gradient(135deg, #1565C0 0%, #0F2A44 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 127, 224, 0.3);
}

.location-card .btn-view-details i {
    transition: transform 0.3s ease;
}

.location-card .btn-view-details:hover i {
    transform: translateX(3px);
}

/* Loading State for Location Cards */
.location-card.loading {
    pointer-events: none;
}

.location-card.loading .card-overlay {
    opacity: 1;
    visibility: visible;
}

.location-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.location-card .overlay-content {
    text-align: center;
    color: #6c757d;
}

.location-card .overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.location-card .overlay-content span {
    display: block;
    font-weight: 500;
}

/* No Locations Card */
.no-locations-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    box-shadow: none;
}

.no-locations-card .no-locations-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-locations-card .no-locations-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-locations-card .no-locations-message {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Location Cards - Responsive Design */
@media (max-width: 768px) {
    .location-card {
        min-height: 280px;
        height: auto;
        margin-bottom: 1rem;
    }
    
    .location-title {
        font-size: 1.1rem;
    }
    
    .location-stats {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .stat-item {
        text-align: center;
    }
}

