/*
************************ Custom dropdown ************************
*/

.custom-dropdown {
    max-width: 100%;
    height: 40px;
    background: white;
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--color-dimgray-200);
}

/* Placeholder for filters before JS enhances them */
.custom-filter-placeholder {
    max-width: 100%;
    height: 40px; /* same as .custom-dropdown */
    background: white; /* same, so no color jump */
    border-radius: 8px;
    border: 1px solid var(--color-dimgray-200);
    box-sizing: border-box;

    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 16px;
    color: #9a9a9a;
}


.custom-dropdown .custom-dropdown-arrow {
    position: absolute;
    right: 15px;
    top: calc(50% - 9px);
    z-index: 15;
    pointer-events: none;
    transition: all 0.3s linear;
}
.custom-dropdown > input {
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 16px;
    position: relative;
    padding: 0 64px 0 16px;
    user-select: none;
    border-radius: 8px;
}
.custom-dropdown .custom-dropdown-count-badge {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 14;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #115AA6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(17, 90, 166, 0.18);
}
.custom-dropdown .custom-dropdown-count-badge[data-filter-order="0"] {
    background: #f5f8ff;
    color: #1f3b57;
    border: 1px solid #d8e2ff;
    box-shadow: 0 2px 6px rgba(216, 226, 255, 0.45);
}
.custom-dropdown .custom-dropdown-count-badge[data-filter-order="1"] {
    background: #f5faf8;
    color: #1f3b57;
    border: 1px solid #d8e8df;
    box-shadow: 0 2px 6px rgba(216, 232, 223, 0.45);
}
.custom-dropdown .custom-dropdown-count-badge[data-filter-order="2"] {
    background: #f7f6fc;
    color: #1f3b57;
    border: 1px solid #dfdbf0;
    box-shadow: 0 2px 6px rgba(223, 219, 240, 0.45);
}
.custom-dropdown .custom-dropdown-count-badge[data-filter-order="3"] {
    background: #fbf7f3;
    color: #1f3b57;
    border: 1px solid #eadfce;
    box-shadow: 0 2px 6px rgba(234, 223, 206, 0.45);
}
.custom-dropdown .custom-dropdown-count-badge[data-filter-order="4"] {
    background: #f3f8fb;
    color: #1f3b57;
    border: 1px solid #d3e4eb;
    box-shadow: 0 2px 6px rgba(211, 228, 235, 0.45);
}
.custom-dropdown .custom-dropdown-count-badge[data-filter-order="5"] {
    background: #f3f9f9;
    color: #1f3b57;
    border: 1px solid #d2e6e3;
    box-shadow: 0 2px 6px rgba(210, 230, 227, 0.45);
}
.custom-dropdown-options {
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 10px 25px rgba(124, 130, 141, 0.2);
    font-size: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.7s ease;
    opacity: 0;
    display: none;
    background: rgba(240, 245, 255, 0.55) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    max-height: 300px;
    overflow-y: auto;
    z-index: 20;
}
.custom-dropdown-option {
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #292d34;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
.custom-dropdown-option:hover {
    color: white;
    background: #003D7C;
    box-shadow: 0 10px 25px rgba(42, 179, 248, 0.4);
}
.custom-dropdown.opened .custom-dropdown-options {
    opacity: 1;
    transform: translateY(10px);
    display: flex;
}

.dropdown-search-options {
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    pointer-events: auto !important;
    outline: none !important;
    border: 1px solid rgba(17, 90, 166, 0.2) !important;
    border-radius: 6px;
    box-shadow: none !important;
}

.dropdown-search-options:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgba(17, 90, 166, 0.35) !important;
}
.custom-dropdown.opened .custom-dropdown-arrow {
    transform: rotate(180deg);
}
/* Default (above 1200px): 30% width */
.custom-dropdown.opened .custom-dropdown-multi-column li {
    flex: 1 0 30%;
}

/* Medium screens (≤ 1200px): 45% width */
@media screen and (max-width: 1200px) {
    .custom-dropdown.opened .custom-dropdown-multi-column li {
        flex: 1 0 45%;
    }
}

/* Small screens (≤ 768px): full width */
@media screen and (max-width: 768px) {
    .custom-dropdown.opened .custom-dropdown-multi-column li {
        flex: 1 0 100%;
    }
}

.custom-dropdown.opened .custom-dropdown-multi-column {
    flex-wrap: wrap;
    flex-direction: row !important;
}

/*
************************ Custom Dot Flashing Loading animation ************************
*/

.dot-flashing {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: #003D7C;
    color: #003D7C;
    animation: dot-flashing 0.5s infinite linear alternate;
    animation-delay: 0.25s;
}
.dot-flashing::before, .dot-flashing::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
}
.dot-flashing::before {
    left: -10px;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: #003D7C;
    color: #003D7C;
    animation: dot-flashing 0.5s infinite alternate;
    animation-delay: 0s;
}
.dot-flashing::after {
    left: 10px;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: #003D7C;
    color: #003D7C;
    animation: dot-flashing 0.5s infinite alternate;
    animation-delay: 0.5s;
}

@keyframes dot-flashing {
    0% {
        background-color: #003D7C;
    }
    50%, 100% {
        background-color: rgba(0, 61, 124, 0.2);
    }
}

/*
************************ Custom switch ************************
*/

.custom-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.custom-switch-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
}

.custom-switch-label::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.custom-switch-input {
    display: none;
}

.custom-switch-input:checked + .custom-switch-label::before {
    transform: translateX(16px);
}
.custom-switch-input:checked + .custom-switch-label {
    background-color: var(--color-darkslateblue);
}

/*
************************ Custom Swiper ************************
*/

.custom-swiper .swiperSlides .swiper-slide {
    width: 100%;
    height: 400px;
    background: #ccc;
    @media screen and (max-width: 800px) {
        height: 200px;
    }
}

.custom-swiper .swiperNav .swiper-slide {
    width: 100%;
    height: 120px;
    max-width: 300px;
    background: #ccc;
    margin-right: 0 !important;
    cursor: pointer;
    @media screen and (max-width: 800px) {
        height: 50px;
    }
}

.custom-swiper .swiper-button-prev::after,
.custom-swiper .swiper-button-next::after {
    color: white;
    @media screen and (max-width: 1000px) {
        height: 50px;
        width: 50px
    }
    @media screen and (max-width: 600px) {
        height: 25px !important;
        width: 25px !important;
    }
}
/*
************************ font ************************
*/

.font-2xs {
    font-size: 12px;
}

.font-xs {
    font-size: 13px;
}

.font-sm {
    font-size: 14px;
}

.font-md {
    font-size: 16px;
}

.font-lg {
    font-size: 18px;
}

