/* Service Detail Page */
.service-detail-page {
    background: #f9f9f9;
    padding: 40px 0;
    min-height: calc(100vh - 80px);
}

.service-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-detail-header {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.service-image {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

.service-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.service-category, .service-location, .service-price {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: #444;
}

.service-price {
    background: #e8f5e8;
    color: #28a745;
    font-weight: 600;
}

.service-category i, .service-location i, .service-price i {
    color: #0071bd;
}

.service-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #444;
}

.service-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.service-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
}

.service-contact {
    background: linear-gradient(90deg, #0071bd, #00c6ff);
    color: white;
    flex: 2;
}

.service-contact:hover {
    background: linear-gradient(90deg, #005a9e, #00b3e6);
    box-shadow: 0 4px 15px rgba(0, 113, 189, 0.3);
    transform: translateY(-2px);
}

.service-favorite, .save-button {
    background: #f8f9fa;
    color: #444;
    border: 1px solid #ddd;
    flex: 1;
}

.service-favorite:hover, .save-button:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.service-favorite.favorited, .save-button.favorited {
    background: #ffebee;
    color: #e53935;
    border-color: #ffcdd2;
}

.favorite-btn, .save-button {
    background: linear-gradient(90deg, #0071bd, #00c6ff);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
    text-decoration: none;
}

.favorite-btn:hover, .save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 189, 0.3);
}

.favorite-btn.favorited, .save-button.favorited {
    background: #e74c3c;
}

.service-details {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.service-details h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #0071bd;
    padding-left: 15px;
}

.service-details-content {
    line-height: 1.8;
    color: #444;
}

.service-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.service-detail-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.service-detail-item i {
    color: #0071bd;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.service-provider {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.provider-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.provider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
}

.provider-info {
    flex: 1;
}

.provider-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f39c12;
    margin-bottom: 10px;
}

.provider-rating i {
    font-size: 0.9rem;
}

.provider-stats {
    display: flex;
    gap: 15px;
}

.provider-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
}

.stat-label {
    font-size: 0.8rem;
    color: #777;
}

@media (max-width: 768px) {
    .service-detail-header {
        flex-direction: column;
        padding: 20px;
    }
    
    .service-image {
        width: 100%;
        height: 200px;
    }
    
    .service-meta {
        gap: 10px;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .service-provider {
        flex-direction: column;
        text-align: center;
    }
    
    .provider-stats {
        justify-content: center;
    }
    
    .service-details-grid {
        grid-template-columns: 1fr;
    }
    
    .service-details {
        padding: 20px;
    }
}
