/**=====================
    Tabs scss
==========================**/
.custom-nav-tabs {
    border: none;
    overflow: auto hidden;
    display: flex;
    flex-wrap: nowrap;
    gap: calc(14px + (24 - 14) * ((100vw - 320px) / (1920 - 320)));

    .nav-item {
        border: none;
        padding: 0;
        min-width: calc(108px + (145 - 108) * ((100vw - 320px) / (1920 - 320)));
        width: 100%;

        .nav-link {
            border-radius: 10px;
            padding: calc(8px + (20 - 8) * ((100vw - 320px) / (1920 - 320)));
            display: flex;
            flex-direction: column;
            background-color: $white;
            border: 1px solid $border-color;
            margin-bottom: 0;
            width: 100%;
            transition: all 0.25s ease-in-out;
            position: relative;
            z-index: 0;
            overflow: hidden;

            &::before {
                @include pos;
                top: 0;
                left: 0;
                transition: all 0.25s ease-in-out;
                @include pseudowh;
                background-color: var(--theme-color);
                opacity: 0;
                z-index: -1;
            }

            &::after {
                @include pos;
                top: 0;
                left: 0;
                @include pseudowh;
                transition: all 0.25s ease-in-out;
                border: 1px solid var(--theme-color);
                border-radius: 100px;
                opacity: 0;
                z-index: -1;
            }

            &.active,
            &:hover {
                &::before {
                    opacity: 0.1;
                }

                &::after {
                    opacity: 0.01;
                }

                span {
                    color: var(--theme-color);
                    body.dark & {
                        color: var(--theme-color);
                   }
                }

                .img-box {
                    background-color: $white;
                }

                img {

                    &.inactive {
                        display: none;
                    }

                    &.active {
                        display: block;
                    }
                }
            }

            .img-box {
                @include pseudowh($width: 100%, $height: calc(66px + (95 - 66) * ((100vw - 320px) / (1920 - 320))));
                margin-bottom: 12px;
                background-color: $border-color;
                padding: calc(13px + (25 - 13) * ((100vw - 320px) / (1920 - 320)));
                border-radius: 4px;
                transition: all 0.5s ease;
            }

            img {
                @include pseudowh;
                object-fit: contain;

                &.active {
                    display: none;
                }

                &.inactive {
                    display: block;
                }
            }

            span {
                font-family: $inter;
                margin: 0 auto;
                font-size: calc(15px + (18 - 15) * ((100vw - 320px) / (1920 - 320)));
                color: $title-color;
                line-height: 26px;
                overflow: hidden;
                width: 100%;
                display: -webkit-box;
                -webkit-line-clamp: 1;
                -webkit-box-orient: vertical;
                text-overflow: ellipsis;
                transition: all 0.25s ease-in-out;
            }

            small {
                font-family: $inter;
                margin: 0 auto;
                transition: all 0.25s ease-in-out;
                font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
                color: rgba($title-color, 0.6);
                line-height: 20px;
                white-space: nowrap;
            }
        }
    }
}

.tab-content {
    margin-top: 30px;
}

.review-tab {
    margin: 0;

    .tab-pane {
        padding: 20px;
        min-height: 290px;
    }

    .nav-item {
        .nav-link {
            padding: 10px 20px;
            font-size: 16px;
            font-weight: 500;
            color: $light-color;
            border: none;

            &.active {
                background-color: transparent;
                border: none;
                color: $title-color;
                border-bottom: 2px solid $title-color;

                &:hover {
                    border-bottom: 2px solid $title-color;

                }
            }

            &:hover {
                border: none;
            }
        }
    }
}

.favorite-tab {
    .nav-tabs {
        border: none;
        gap: 12px;
        border-bottom: 1px solid $border-color;

        body.dark & {
            border-color: #454851;
        }

        .nav-item {
            .nav-link {
                color: var(--theme-color);
                border: none;
                border-radius: 8px 8px 0 0;
                font-size: 18px;
                padding: 12px 28px;
                position: relative;
                z-index: 0;
                overflow: hidden;

                &::before {
                    @include pos;
                    top: 0;
                    left: 0;
                    @include pseudowh;
                    background-color: var(--theme-color);
                    opacity: 0.1;
                    z-index: -1;
                }

                &.active {
                    background-color: var(--theme-color);
                    color: $white;
                    font-weight: 500;
                }
            }
        }
    }
}

.provider-detail-tab {
    .nav-tabs {
        flex-direction: column;
        gap: 16px;

        .nav-item {
            .nav-link {
                border: 2px solid var(--theme-color);
                color: var(--theme-color);
                border-radius: 8px;
                width: 100%;
                font-size: 18px;
                font-weight: 500;
                padding: 12px;
                background-color: transparent;
            }
        }
    }
}

.overview-list {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    [dir="rtl"] & {
        padding-left: 0;
        padding-right: 20px;
    }

    li {
        display: list-item;
        font-size: calc(15px + (16 - 15) * ((100vw - 320px) / (1920 - 320)));
    }
}

.provider-service-tab {
    padding-bottom: 16px;
    gap: 12px;

    .nav-item {
        .nav-link {
            background-color: rgba($primary-color, 0.10);
            color: var(--theme-color);
            border: none;
            border-radius: 30px;
            font-size: 16px;
            padding: 6px 16px;

            &.active {
                background-color: var(--theme-color);
                color: $white;
                font-weight: 500;
            }
        }
    }
}