.img-size {
    width: 50px;
    height: 50px;
    object-fit: cover;
}


#pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#previous-next {
    margin-bottom: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.pagination-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

#page-status {
    font-size: 16px;
    color: #333;
}

.custom-shadow-border {
    border: 2px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}


#media-upload-box.drag-over {
    border: 2px dashed #00f;
    background-color: rgba(0, 0, 255, 0.1);
}

.filter-box {
    .filter-inner {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px 16px;
        

        >* {
            min-width: 0;
        }

        @media (max-width: 1200px) {
            grid-template-columns: repeat(4, 1fr);
        }

        @media (max-width: 992px) {
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        @media (max-width: 767px) {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .filter-item {
        display: flex;
    }

    .field-label {
        font-size: 17px;
        font-weight: 600;
        color: #0E121B;

        @media (max-width: 1536px) {
            font-size: 15px;
        }
        @media (max-width: 1440px) {
            font-size: 14px;
        }

        @media only screen and (max-width:992px) {
            display: none !important;
        }
    }

    .advanced-filter-row {
        @media only screen and (max-width:992px) {
            display: flex !important;
        }
    }

    .filter-actions {

        .more-filters-btn,
        .less-filters-btn {
            background-color: #fff;
            border: 1px solid #525866;
            color: #525866;
            padding: 10px 24px;
            border-radius: 12px;
            font-size: 20px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            height: 56px;

            @media (max-width: 767px) {
                width: 100%;
            }

            &:hover {
                background-color: #F8F8F8;
            }

            svg {
                flex-shrink: 0;
                margin-right: 8px;
            }

            @media (max-width: 1536px) {
                font-size: 18px;
                height: 48px;
                padding: 10px 20px;
            }

            @media (max-width: 1440px) {
                font-size: 16px;
                height: 44px;
                padding: 10px 16px;
            }

            @media only screen and (max-width:767px) {
                display: none !important;
            }
        }

        .clear-all-link {
            border: 1px solid rgba(82, 88, 102, 0.22);
            color: #FB3748;
            padding: 10px 24px;
            border-radius: 12px;
            font-size: 20px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            text-align: center;
            height: 56px;

            @media (max-width: 1536px) {
                font-size: 18px;
                height: 48px;
                padding: 10px 20px;
            }

            @media (max-width: 1440px) {
                font-size: 16px;
                height: 44px;
                padding: 10px 16px;
            }

            &:hover {
                background-color: #F8F8F8;
            }
        }

        .search-btn {
            background-color: #000;
            color: #fff;
            border: none;
            padding: 10px 24px;
            border-radius: 12px;
            font-size: 20px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s ease;
            white-space: nowrap;
            flex: 0 0 auto;
            height: 56px;

            @media (max-width: 1536px) {
                font-size: 18px;
                height: 48px;
                padding: 10px 20px;
            }

            @media (max-width: 1440px) {
                font-size: 16px;
                height: 44px;
                padding: 10px 16px;
            }

            @media (max-width: 767px) {
                width: 100%;
                padding: 10px 16px;
                order: 3;
            }

            &:hover {
                background-color: #333;
            }
        }
    }

    .search-btn-container {
        @media only screen and (max-width:767px) {
            width: 100%;
            flex-direction: column-reverse;

            .clear-all-link,
            .search-btn {
                width: 100%;
            }
        }
    }
}

.dropdown {
    &.custom-dropdown {
        min-width: 0;

        .dropdown-toggle {
            background-color: #F5F6FA;
            border: solid 1px #EDEDED;
            color: #99A0AE;
            font-size: 16px;
            border-radius: 12px;
            box-shadow: 0px 1px 2px 0px rgba(10, 13, 20, 0.03);
            height: 48px;
            min-width: 0;
            max-width: 100%;
            padding-right: 24px;
            position: relative;
            overflow: hidden;

            @media (max-width: 1536px) {
                font-size: 15px;
                height: 44px;
            }

            @media (max-width: 1440px) {
                font-size: 14px;
                height: 40px;
            }

            .dropdown-text {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            &::after {
                position: absolute;
                right: 0.75rem;
                top: 50%;
                transform: translateY(-50%);
                flex-shrink: 0;
                pointer-events: none;
            }
        }

        .dropdown-menu {
            max-height: 450px;
            padding: 0;
            border: solid 1px #EDEDED;
            box-shadow: 0px 1px 2px 0px rgba(10, 13, 20, 0.03);
            border-radius: 12px;

            .dropdown-item {
                font-size: 13px;
                padding: 10px 16px;
                color: #0E121B;
                white-space: normal;
                position: relative;
                padding-left: 40px;

                &::before {
                    border: 3px solid #fff;
                    border-radius: 16px;
                    content: '';
                    position: absolute;
                    left: 12px;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 14px;
                    height: 14px;
                    outline: 1px solid #BFBFBF;
                    background: #fff;
                }

                &:hover {
                    background-color: #F8F8F8;
                }

                &:active,
                &:focus,
                &.selected-option {
                    background-color: transparent !important;
                }

                &.selected-option {
                    font-weight: normal;

                    &::before {
                        outline: 1px solid #388BF7;
                        background-color: #388BF7;
                    }
                }
            }
            @media (max-width: 1280px) {
                max-height: 400px;
            }
            @media (max-width: 1024px) {
                max-height: 350px;
            }
            @media (max-width: 992px) {
                max-height: 300px;
            }
            @media (max-width: 767px) {
                position: fixed !important;
                top: auto !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                z-index: 1001 !important;
                transform: translate(0px, 100%) !important;
                display: block !important;
                border-radius: 12px 12px 0 0;
                &.show {
                    transform: translate(0px, 0px) !important;
                }
            }
        }
        
        @media (max-width: 767px) {
            &.open {
                &:after {
                    background-color: rgba(0, 0, 0, 0.5);
                    content: '';
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    z-index: 1000;
                }
            }
        }
    }

    &.sort-dropdown {
        .dropdown-toggle {
            background-color: #000000;
            border-radius: 8px;
            color: #ffffff;

            &::after {
                display: none;
            }
        }

        .dropdown-menu {
            min-width: 200px;
        }
    }
}

.result-title {
    font-size: 18px;
    font-weight: 500;
    color: #0E121B;
}

.card-list-container {
    padding-inline: 70px;
    @media (max-width: 1536px) {
        padding-inline: 60px;
    }
    @media (max-width: 1280px) {
        padding-inline: 50px;
    }
    @media (max-width: 1024px) {
        padding-inline: 24px;
    }
    @media (max-width: 767px) {
        padding-inline: 16px;
    }
}

.dropdown-toggle::after {
    content: "›";
    border: gainsboro;
    transform: translateY(-50%) rotate(90deg) !important;
    font-size: 22px;
}

.search-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
    position: fixed;
    bottom: 10px;
    z-index: 99;
    width: 360px;
    max-width: calc(100% - 24px);
    margin: auto;
    left: 0;
    right: 0;
    box-shadow: 0 0 4px 1px #fff;
    display: none;
    @media (max-width: 767px) {
        display: grid;
    }
}

.search-filter-bar .bar-section {
    background-color: transparent !important;
    border: none !important;
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 20px !important;
    height: 40px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    position: relative !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.search-filter-bar .custom-dropdown button {
    width: 100%;
}
.search-filter-bar .bar-section:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-filter-bar .bar-section:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}