/* Photo placeholder and optimization styles */

.photo-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 200px;
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    border-color: #1E40AF;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.photo-placeholder-text {
    color: #6b7280;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 250px;
}

.owner-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #EA580C;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.technician-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1E40AF;
}

.service-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Lazy loading states */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.loaded {
    opacity: 1;
}

/* Photo overlay for SEO info */
.photo-seo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 12px;
    font-size: 0.875rem;
}

/* Responsive photo grids */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .owner-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-photo {
        height: 200px;
    }
    
    .technician-photo {
        width: 60px;
        height: 60px;
    }
}

/* Image optimization for Core Web Vitals */
img[data-src] {
    background: #f3f4f6;
    min-height: 100px;
}

/* Professional photo styling */
.professional-photo {
    filter: contrast(1.1) saturate(1.05);
    transition: filter 0.3s ease;
}

.professional-photo:hover {
    filter: contrast(1.15) saturate(1.1);
}