
.provider-detail-section {
    padding: 0;
    background: #f8fafc;
    min-height: 100vh;
}

.provider-detail {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
}

.provider-detail__header {
    padding: 40px 32px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.provider-detail__header-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.provider-detail__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

.provider-detail__avatar svg {
    width: 44px;
    height: 44px;
    color: #34d399;
}

.provider-detail__info {
    flex: 1;
    min-width: 0;
}

.provider-detail__name {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.verified-badge {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #10b981;
    fill: #10b981;
    display: inline-block;
    vertical-align: middle;
}

.provider-detail__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.provider-detail__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.provider-detail__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.provider-detail__location svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.provider-detail__verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #059669;
    font-weight: 500;
}

.provider-detail__verified svg {
    width: 16px;
    height: 16px;
    color: #059669;
}

.provider-detail__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.provider-detail__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.provider-detail__btn--primary {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.25);
}

.provider-detail__btn--primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.35);
    transform: translateY(-1px);
}

.provider-detail__btn--secondary {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}

.provider-detail__btn--secondary:hover {
    background: #f9fafb;
    border-color: #34d399;
    color: #34d399;
}

.provider-detail__btn svg {
    width: 18px;
    height: 18px;
}

.provider-detail__btn--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
}

.provider-detail__dropdown {
    position: relative;
}

.provider-detail__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid #f1f5f9;
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.provider-detail__dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: #64748b;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: #111827;
}

.dropdown-item:hover svg {
    color: #34d399;
}

.dropdown-item--danger {
    color: #dc2626;
}

.dropdown-item--danger svg {
    color: #dc2626;
}

.dropdown-item--danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.dropdown-item--danger:hover svg {
    color: #b91c1c;
}

.provider-detail__categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    transition: all 0.2s ease;
    border: 1px solid #d1fae5;
}

.service-chip svg {
    width: 14px;
    height: 14px;
}

.service-chip:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.15);
}

.provider-detail__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.stat-card {
    text-align: center;
    padding: 20px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #34d399;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.1);
    transform: translateY(-2px);
}

.stat-card__value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 6px 0;
    line-height: 1;
}

.stat-card__label {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.provider-detail__tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding: 0 32px;
    background: #ffffff;
}

.tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    color: #34d399;
    background: #f0fdf4;
}

.tab-btn.active {
    color: #34d399;
    background: #f0fdf4;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
    border-radius: 2px 2px 0 0;
}

.provider-detail__content {
    padding: 40px 32px;
    background: #fafbfc;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f1f5f9;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(52, 211, 153, 0.2);
    border-color: #34d399;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item__placeholder svg {
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.about-section {
    max-width: 800px;
}

.about-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.about-section__text {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 24px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.info-item:hover {
    border-color: #34d399;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.08);
}

.info-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item__icon svg {
    width: 22px;
    height: 22px;
    color: #34d399;
}

.info-item__content {
    flex: 1;
}

.info-item__label {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.info-item__value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.reviews-section {
    max-width: 800px;
}

.reviews-summary {
    display: flex;
    gap: 40px;
    padding: 28px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1px solid #d1fae5;
}

.reviews-summary__score {
    text-align: center;
    padding-right: 40px;
    border-right: 2px solid #d1fae5;
}

.big-rating {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 0 0 10px 0;
}

.reviews-summary__stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 10px;
}

.reviews-summary__stars .star {
    width: 22px;
    height: 22px;
    color: #fbbf24;
}

.reviews-summary__stars .star--filled {
    fill: #fbbf24;
}

.reviews-summary__count {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.reviews-summary__distribution {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar__label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 50px;
}

.rating-bar__track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar__fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-bar__count {
    font-size: 14px;
    color: #6b7280;
    min-width: 30px;
    text-align: right;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-item {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.review-item:hover {
    box-shadow: 0 6px 16px rgba(52, 211, 153, 0.1);
    border-color: #d1fae5;
    transform: translateY(-2px);
}

.review-item__header {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.review-item__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid #d1fae5;
}

.review-item__info {
    flex: 1;
}

.review-item__name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.review-item__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.star-small {
    width: 14px;
    height: 14px;
    color: #fbbf24;
}

.star-small.star--filled {
    fill: #fbbf24;
}

.review-item__date {
    font-size: 13px;
    color: #9ca3af;
}

.review-item__comment {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .provider-detail__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 16px 12px;
    }
}

@media (max-width: 768px) {
    .provider-detail__header {
        padding: 28px 20px;
    }

    .provider-detail__header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .provider-detail__dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .provider-detail__dropdown-menu.active {
        transform: translateX(-50%) translateY(0);
    }

    .provider-detail__avatar {
        width: 96px;
        height: 96px;
    }

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

    .provider-detail__name {
        font-size: 22px;
    }

    .provider-detail__meta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .provider-detail__actions {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .provider-detail__btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }

    .provider-detail__btn--icon {
        flex: 0 0 auto;
    }

    .provider-detail__categories {
        justify-content: center;
    }

    .service-chip {
        padding: 8px 14px;
        font-size: 12px;
    }

    .provider-detail__stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 18px 16px;
    }

    .stat-card__value {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .provider-detail__tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px;
        gap: 4px;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 14px 20px;
        font-size: 13px;
    }

    .provider-detail__content {
        padding: 24px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-item {
        padding: 16px;
    }

    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }

    .reviews-summary__score {
        padding-right: 0;
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }
}

@media (max-width: 480px) {
    .provider-detail__header {
        padding: 24px 16px;
    }

    .provider-detail__name {
        font-size: 20px;
    }

    .provider-detail__avatar {
        width: 80px;
        height: 80px;
    }

    .provider-detail__actions {
        flex-direction: column;
        gap: 8px;
    }

    .provider-detail__btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card__value {
        font-size: 22px;
    }

    .stat-card__label {
        font-size: 11px;
    }

    .big-rating {
        font-size: 36px;
    }

    .provider-detail__content {
        padding: 20px 16px;
    }

    .provider-detail__tabs {
        padding: 0 16px;
    }

    .service-chip {
        padding: 7px 12px;
        font-size: 11px;
    }
}
