// Map Dropdown
@import 'scss/font-family.scss';
@import 'theme/variables.scss';
:host {
    display: block;
    height: 100%;
    width: 100%;
}

.cluster-marker-container {
    width: 354px;
    max-height: 244px;
    margin: 4px 2px 4px 4px;
    overflow-y: scroll;
    cursor: default;

    &::-webkit-scrollbar {
        width: 2px;
    }

    &::-webkit-scrollbar-thumb {
        background-color: $ta-light-grey-6;
        border: 2px solid $ta-light-grey-6;
        border-radius: 1px;
    }

    &::-webkit-scrollbar-track {
        width: 2px;
        background-color: $white-2;
    }

    .cluster-marker-item {
        max-width: 100%;
        padding: 4px;
        cursor: pointer;
        border-radius: 2px;

        &:hover {
            background: $bw2;
        }
    }
}

.marker-container {
    width: 360px;
    max-height: 214px;
    padding: 8px;
    transition: max-height 0.2s ease-in-out;
    cursor: default;

    &.expanded {
        max-height: 396px;
    }

    .heading {
        max-width: 100%;
        margin-bottom: 3px;

        .header-text-container {
            max-width: calc(100% - 26px);

            .header-back-button {
                min-width: 18px;
                min-height: 18px;
                background: $bw2;
                border-radius: 1px;
                cursor: pointer;

                svg-icon {
                    svg {
                        path {
                            fill: $grey;
                        }
                    }
                }
            }

            .header {
                font-family: $font-family;
                font-size: 16px;
                line-height: 20px;
                color: $ta-black;
            }
        }

        .dropdown-icon {
            min-width: 26px;
            min-height: 26px;
        }
    }
    .action {
        .side-space {
            padding-right: 4px;
            .count {
                font-family: $font-family;
                font-size: 11px;
                color: $black;
                padding: 0px 7px;
                position: relative;
                left: -1px;
            }
            .grey-color {
                color: $grey;
            }
        }
    }
    .repair-service-icon {
        svg {
            path {
                fill: $grey-4;
                fill-opacity: 1;
            }
        }

        &.active {
            svg {
                path {
                    fill: $grey;
                    fill-opacity: 1;
                }
            }
        }
    }

    .personal-info-items {
        font-family: $font-family;
        .info {
            max-width: 100%;
            font-size: 14px;
            line-height: 18px;
            padding: 0px 5px;
            color: $black-2;
            font-family: $font-family;

            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }
    }

    .working-info-detail {
        font-family: $font-family;
        .working-info-item {
            font-size: 11px;
            line-height: 14px;
            color: $black;
            .working-time {
                font-size: 14px;
                line-height: 18px;
            }
        }
    }

    .load-info {
        // border-bottom: 1px solid$white;
        // padding-bottom: 5px;
        // margin-bottom: 5px;
        .load-heading {
            font-family: $font-family;
            font-size: 13px;
            margin-bottom: 5px;

            .load-head-count {
                background-color: $grey-2;
                border-radius: 50%;
                padding: 3px 4px;
                color: $white-2;
                font-size: 7px;
                margin: 0px 4px;
                font-family: $font-family;
                margin-top: 1px;
            }
        }
        .load-info-detail {
            font-family: $font-family;
            .load-info-item {
                font-size: 12px;
                line-height: 18px;
                color: $black-2;
            }
            .loading-hours {
                font-size: 10px;
                color: $grey;

                .load-time {
                    color: $grey;
                }
            }
        }
    }

    .avg-info {
        .avg-info-detail {
            font-family: $font-family;
            .avg-item {
                .item-date {
                    padding: 0px 7px;
                    color: $black-2;
                }
            }
        }
    }
}

.infowindow-container {
    width: 300px;
    padding: 2px 9px 9px 0px;

    .heading-container {
        // border-bottom: 1px solid $white;
        // padding-bottom: 5px;
        // margin-bottom: 0px;

        .heading {
            margin-top: 15px;
            margin-bottom: 3px;
            .header {
                font-family: $font-family;
                font-size: 15px;
                line-height: 19.5px;
            }
        }
    }
    .personal-info {
        // border-bottom: 1px solid $white;
        // padding-bottom: 5px;
        // margin-bottom: 10px;
        // margin-top: 10px;
        .personal-info-items {
            padding: 1px 0px;
            margin-bottom: 3px;
            font-family: $font-family;
            .info {
                font-size: 14px;
                line-height: 18px;
                padding: 0px 5px;
                color: $black-2;
                font-family: $font-family;
            }
        }
    }

    .weight-info {
        // border-bottom: 1px solid $white;
        // padding-bottom: 5px;
        // margin-bottom: 5px;
        .weight-heading {
            font-family: $font-family;
            font-size: 13px;
            margin-bottom: 5px;

            .weight-head-count {
                background-color: $grey-2;
                border-radius: 50%;
                padding: 3px 4px;
                color: $white-2;
                font-size: 7px;
                margin: 0px 4px;
                font-family: $font-family;
                margin-top: 1px;
            }
        }
        .weight-info-detail {
            font-family: $font-family;
            .weight-info-item {
                font-size: 12px;
                line-height: 18px;
                color: $black;

                .weight-time {
                    color: $black;
                    padding: 0px 5px;
                }
            }
        }
    }
    .transport-info {
        .transport-container {
            margin-top: 15px;
            font-family: $font-family;
            margin-bottom: 10px;
            .driver-info {
                .side-space {
                    margin-left: 20px;
                }
                .title {
                    font-size: 11px;
                    line-height: 14px;
                }
                .detail {
                    font-size: 13px;
                    line-height: 18px;
                    color: $black-2;
                }
            }
            .truck-info {
                .side-space {
                    margin-left: 50px;
                }
                .title {
                    font-size: 11px;
                    line-height: 14px;
                }
                .detail {
                    font-size: 13px;
                    line-height: 18px;
                    color: $black-2;
                }
            }
        }
    }
}

.info-divider {
    margin: 8px 0px;
    width: 100%;
    height: 1px;
    background: $bw-9;
    border-radius: 2px;
}

.dropdown-arrow {
    position: absolute;
    right: 6px;
    bottom: 6px;

    svg {
        transition: transform 0.2s ease-in-out;
        transform: rotate(0deg);

        path {
            transition: fill 0.2s ease-in-out;
            fill: $grey;
        }
    }

    &.rotate-arrow {
        svg {
            transform: rotate(180deg);

            path {
                fill: $ta-blue-13;
            }
        }
    }

    &:hover {
        cursor: pointer;

        svg path {
            fill: $ta-blue-13;
        }
    }
}

.expanded-info {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;

    &.active {
        max-height: 300px;
    }
}

.gap-8 {
    gap: 8px;
}

.count-number {
    padding: 0px 5px;
    background: $grey-2;
    border-radius: 60px;
    font-size: 11px;
    line-height: 14px;
    user-select: none;
}

.rating-icon {
    svg {
        path {
            fill: $grey;
            fill-opacity: 1;
        }
    }

    &.active {
        &.like-icon {
            svg {
                path {
                    fill: $ta-green;
                }
            }
        }

        &.dislike-icon {
            svg {
                path {
                    fill: $ta-red-10;
                }
            }
        }
    }
}

.text-ellipsis {
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    &.two-rows-ellipsis {
        max-width: 90%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: initial;
    }
}

.blue-text {
    color: $ta-blue-13 !important;

    &::-moz-selection {
        color: $ta-blue-13;
        background: rgba(59, 115, 237, 0.2);
    }
    &::selection {
        color: $ta-blue-13;
        background: rgba(59, 115, 237, 0.2);
    }
}

.red-text {
    color: $ta-red-11 !important;

    &::-moz-selection {
        color: $ta-red-11;
        background: rgba(223, 60, 60, 0.2);
    }
    &::selection {
        color: $ta-red-11;
        background: rgba(223, 60, 60, 0.2);
    }
}

.gray-text {
    color: $grey !important;

    &::-moz-selection {
        color: $grey;
        background: rgba(145, 145, 145, 0.2);
    }
    &::selection {
        color: $grey;
        background: rgba(145, 145, 145, 0.2);
    }
}

.light-gray-text {
    color: $grey-2;

    &::-moz-selection {
        color: $grey-2;
        background: rgba(108, 108, 108, 0.2);
    }
    &::selection {
        color: $grey-2;
        background: rgba(108, 108, 108, 0.2);
    }
}

.dark-gray-text {
    color: $black;

    &::-moz-selection {
        color: $black;
        background: rgba(66, 66, 66, 0.2);
    }
    &::selection {
        color: $black;
        background: rgba(66, 66, 66, 0.2);
    }
}

.black-text {
    color: $black-2;

    &::-moz-selection {
        color: $black-2;
        background: rgba(47, 47, 47, 0.2);
    }
    &::selection {
        color: $black-2;
        background: rgba(47, 47, 47, 0.2);
    }
}

.white-text {
    color: $white;

    &::-moz-selection {
        color: $white;
        background: rgba(255, 255, 255, 0.2);
    }
    &::selection {
        color: $white;
        background: rgba(255, 255, 255, 0.2);
    }
}

.opacity-40 {
    opacity: 0.4;
}

.regular-text {
    font-size: 14px;
    line-height: 18px;
    font-family: $font-family;
}

.small-text {
    font-size: 11px;
    line-height: 14px;
    font-family: $font-family;
}

.open-hours-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-row-gap: 8px;
}

.cursor-pointer {
    cursor: pointer;
}

.show-all-days-container {
    grid-column: 2 / span 1;
}
