/* load iconmoon */
@font-face {
    font-family: 'icomoon';
    src:  url('/assets/fonts/icomoon.eot?4xzxfj');
    src:  url('/assets/fonts/icomoon.eot?4xzxfj#iefix') format('embedded-opentype'),
    url('/assets/fonts/icomoon.ttf?4xzxfj') format('truetype'),
    url('/assets/fonts/icomoon.woff?4xzxfj') format('woff'),
    url('/assets/fonts/icomoon.svg?4xzxfj#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-sm_search:before {
    content: "\e900";
}
.icon-sm_location:before {
    content: "\e901";
}
.icon-sm_document:before {
    content: "\e902";
}
.icon-sm_call:before {
    content: "\e903";
}

:root {
    --search-bg-gradient: linear-gradient(to top right, #3799db 0%, #2db4a6 100%);
}

.search-icon {
    width: 40px;
    height: 40px;
    background: #ccc;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* colored border modal start */
.search-modal.modal {
    background-color: rgba(0, 0, 0, 0.7);
    /* Darken background */
    backdrop-filter: blur(5px);
    /* Apply blur effect */
}

.search-modal.modal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: start;
    min-height: 100vh;
    margin: 0 auto;
    width: 96%;
    max-width: 1040px;
}

.search-modal.modal .modal-content {
    border-radius: 20px;
    padding: 0;
    width: 100%;
}

.search-modal.modal .modal-body {
    background: #fff;
    border: 1px solid #e7ebee;
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.73);
    border-radius: 10px;
    background-size: cover;
    padding: 35px;
}

.search-modal.modal button.close {
    width: 35px;
    height: 35px;
    background: var(--search-bg-gradient);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    opacity: 1;
}

.search-modal.modal button.close span {
    display: inline-block;
    width: 11px;
    height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Cg id='close-circle' transform='translate(-7.67 -7.67)'%3E%3Cpath id='Path_673' data-name='Path 673' d='M8.825,18.67A1.155,1.155,0,0,1,8.008,16.7L16.7,8.008a1.155,1.155,0,0,1,1.634,1.634L9.642,18.332A1.152,1.152,0,0,1,8.825,18.67Z' transform='translate(0 0)' fill='%23fff'/%3E%3Cpath id='Path_674' data-name='Path 674' d='M17.515,18.67a1.152,1.152,0,0,1-.817-.338L8.008,9.643A1.155,1.155,0,1,1,9.642,8.008L18.332,16.7a1.155,1.155,0,0,1-.817,1.972Z' transform='translate(0)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A");
}

.search-modal.modal .sm-search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
    margin-bottom: 18px;
}

.search-modal.modal .sm-search-container .smc-search {
    flex: 1;
    position: relative;
;
}

.search-modal.modal .sm-search-container .smc-search input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #f1f1f1;
    font-weight: 500;
    font-size: 16px;
    outline: none;
    box-shadow: none;
}

.search-modal.modal .sm-search-container .smc-search button {
    background: var(--search-bg-gradient);
    border: none;
    width: 42px;
    height: 42px;
    color: #fff;
    position: absolute;
    right: 4px;
    top: 4px;
    border-radius: 10px;
    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.search-modal.modal .toggle-wrapper {
    width: 199px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #f1f1f1;
    display: flex;
    position: relative;
    overflow: hidden;
}

.search-modal.modal .toggle-input {
    display: none;
}

.search-modal.modal .toggle-label {
    flex: 1;
    text-align: center;
    line-height: 50px;
    font-weight: 500;
    font-size: 15px;
    color: #98a7b5;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-modal.modal .toggle-label span {
    font-size: 18px;
}

.search-modal.modal .toggle-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--search-bg-gradient);
    border-radius: 10px;
    z-index: 1;
    transition: left 0.3s ease;
}

.search-modal.modal #places:checked~.toggle-indicator {
    left: 50%;
}

.search-modal.modal #topic:checked~.toggle-indicator {
    left: 0%;
}

.search-modal.modal #places:checked~label[for="places"],
.search-modal.modal #topic:checked~label[for="topic"] {
    color: white;
}

/* no result cards start */
.search-modal.modal .no-result-container>div {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-modal.modal .no-result-container h3 {
    font-weight: 600;
    font-size: 18px;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

.search-modal.modal .result-card {
    width: auto;
    flex: 1;
    height: 86px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ececec;
    padding: 8px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-modal.modal .result-card:hover {
    background: #f8f8f8;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.search-modal.modal .result-card img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-modal.modal .result-card-content {
    margin-left: 10px;
}

.search-modal.modal .result-title {
    font-weight: 600;
    font-size: 16px;
    text-align: left;
    color: #222;
    margin-bottom: 4px;
}

.search-modal.modal .result-tag {
    font-weight: 500;
    font-size: 13px;
    text-align: left;
    color: #98a7b5;
}

/* no result cards end*/

/* search results start */
.search-modal.modal .search-results, .search-modal.modal .no-result-container {
    padding: 0 15px;
    max-width: 1280px;
    margin: 0 auto;
    height: calc(100vh - 300px);
    overflow: auto;
}

.search-modal.modal .listing-row {
    display: flex;
    /* align-items: flex-start; */
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.search-modal.modal .listing-row:first-of-type {
    padding-top: 0;
}

.search-modal.modal .listing-left {
    display: flex;
    flex: 1 1 70%;
}

.search-modal.modal .listing-left>div {
    padding-right: 5%;
}

.search-modal.modal .listing-right {
    text-align: right;
    flex: 0 0 250px;
    align-items: end;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

/* ---------- THUMBNAIL ---------- */
.search-modal.modal .thumb {
    width: 94px;
    height: 94px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
}

.search-modal.modal .listing-title {
    font-weight: 700;
    font-size: 18px;
    color: #222;
    margin: 0 0 4px;
    line-height: 20px;
}

.search-modal.modal .listing-title img {
    margin-right: 6px;
    position: relative;
    top: -1px;
}

.search-modal.modal .info-line {
    font-size: 14px;
    color: #222;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    line-height: 17px;
}

.search-modal.modal .topic-listing .info-line {
    opacity: 0.7;
}

.search-modal.modal .info-line span.sm-icon {
    width: 25px;
    font-size: 18px;
    color: #4795db;
    margin-right: 8px;
    text-align: center;
    flex-shrink: 0;
    /* make icon color gradient */
    background: var(--search-bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    position: relative;
    top: -1px;
}

/* ---------- TAGS ---------- */
.search-modal.modal .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    width: 100%;
    margin-top: 5px;
}

.search-modal.modal span.tag {
    border-radius: 9px;
    background: #778287;
    padding: 0 10px;
    /* dynamic width */
    min-height: 18px;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
    white-space: nowrap;
}

/* ---------- RATING STARTS ---------- */
.search-modal.modal .rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: end;
}

.search-modal.modal .rating-stars i {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.search-modal.modal .rating-stars .rating-star-active {
    background: url("/assets/img/rating-star-active.svg");
}

.search-modal.modal .rating-stars .rating-star-half {
    background: url("/assets/img/rating-star-half.svg");
}

.search-modal.modal .rating-stars .rating-star {
    background: url("/assets/img/rating-star.svg");
}

.search-modal.modal .rating-score,
.rating-stars {
    width: 140px;
    float: right;
}

.search-modal.modal .rating-score {
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    color: #222;
}

.search-modal.modal .rating-score span {
    font-weight: 400;
    font-size: 13px;
    color: #98A7B5;
}

.search-modal.modal .results-paging {
    position: relative;
    top: 17px;
}

/* ---------- PAGING -------------- */
.sm-paging {
    display: flex;
    font-weight: normal;
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 22px;
    text-align: center;
    color: #222;
    list-style: none;
    justify-self: end;
}

.sm-paging li a {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #222;
    text-decoration: none;
}

.sm-paging li a:hover {
    color: #2db4a6;
}

.sm-paging li.active a {
    background: var(--search-bg-gradient);
    color: #fff;
}

.sm-paging li:first-of-type a {
    margin-right: 10px;
    width: auto;
}

.sm-paging li:last-of-type a {
    margin-left: 10px;
    width: auto;
}

.sm-paging li:first-of-type a,
.sm-paging li:last-child a {
    gap: 5px;
}

.sm-paging li:first-of-type a .glyphicon,
.sm-paging li:last-child a .glyphicon {
    position: relative;
    top: 0px;
}

.search-modal.modal .grey-text {
    color: #98A7B5;
    text-transform: capitalize;
}

/* ---------- SEARCH LOADER ---------- */
.search-modal.modal .search-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90%;
    position: absolute;
    top: 10%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    border-radius: 10px;
    display: none;
}

.loader, .loader:before, .loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    animation-fill-mode: both;
    animation: bblFadInOut 1.8s infinite ease-in-out;
}
.loader {
    color: #34a2c8;
    font-size: 7px;
    position: relative;
    text-indent: -9999em;
    transform: translateZ(0);
    animation-delay: -0.16s;
}
.loader:before,
.loader:after {
    content: '';
    position: absolute;
    top: 0;
}
.loader:before {
    left: -3.5em;
    animation-delay: -0.32s;
}
.loader:after {
    left: 3.5em;
}

.no-padding {
    padding: 0 !important;
}

#searchToggle{
    padding-left: 10px !important;
    padding-right: 10px !important;
}

@keyframes bblFadInOut {
    0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em }
    40% { box-shadow: 0 2.5em 0 0 }
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
    .search-modal.modal .listing-row {
        flex-direction: column;
    }

    .search-modal.modal .listing-right {
        text-align: left;
        margin-top: 10px;
    }

}

/* @media for mobile devices */
@media (max-width: 767px) {
    .search-modal.modal .listing-row {
        flex-direction: column;
    }

    .search-modal.modal .listing-right {
        text-align: left;
        margin-top: 10px;
    }

    .search-modal.modal .thumb {
        width: 70px;
        height: 70px;
    }

    .search-modal.modal .listing-left>div {
        padding-right: 0;
    }

    .search-modal.modal .listing-right {
        flex: unset;
        justify-content: start;
        align-items: start;
        padding-left: 88px;
    }

    .search-modal.modal .modal-body {
        padding: 20px;
    }

    .search-modal.modal .sm-search-container {
        flex-direction: column;
    }

    .search-modal.modal .smc-search {
        width: 100%;
    }

    .search-modal.modal .tags-container {
        justify-content: flex-start;
    }

    .search-modal.modal .rating-score {
        text-align: left;
        margin-top: 5px;
    }

    .search-modal.modal .modal-dialog {
        /* padding-top: 13%; */
    }

    .search-modal.modal .search-results {
        padding: 0;
    }

    .search-modal.modal .results-paging {
        top: 11px;
    }
    .search-modal.modal .sm-paging {
        align-items: center;
        justify-self: center;
    }

    .search-modal.modal .smc-tab {
        width: 100%;
    }

    .search-modal.modal .smc-tab .toggle-wrapper {
        width: 100%;
    }
}
/* search results end */