/* =========================================================
   CHADHAVA - CLEAN RESPONSIVE SEARCH + FILTER TOOLBAR
   One sticky parent = no overlap / no partial hiding.
   ========================================================= */
.chadhava-toolbar {
    position: sticky;
    top: 83px;
    z-index: 1100;
    background: #fff;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .2s ease, opacity .2s ease;
}

.chadhava-toolbar-search {
    padding: 9px 0;
    background: #fff;
}

.chadhava-search-wrap {
    max-width: 760px;
    margin: 0 auto;
}

#chadhdhavaInput {
    width: 100%;
    height: 46px;
    border: 2px solid #e3e3e3;
    border-radius: 13px;
    padding: 9px 48px 9px 44px;
    font-size: 16px;
    background: #fff;
}

#chadhdhavaInput:focus {
    border-color: #fe9802 !important;
    box-shadow: 0 0 0 3px rgba(254,152,2,.12);
}

.search-leading-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fe9802;
    z-index: 2;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #888;
    display: none;
}

#search-results {
    top: calc(100% + 4px) !important;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,.14);
    z-index: 1200;
}

.loader-icon-search {
    display: none;
    font-size: 1rem;
    color: #fe9802;
}

.chadhava-toolbar-filters {
    height: 50px;
    background: #fff;
    border-top: 1px solid #f3f3f3;
}

.filter-scroll {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-control {
    position: relative;
    flex: 0 0 auto;
    height: 38px;
    min-width: 145px;
}

.filter-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #fe9802;
    font-size: 13px;
    z-index: 2;
    pointer-events: none;
}

.filter-select {
    appearance: auto;
    width: 100%;
    height: 38px;
    border: 1px solid #dedede;
    border-radius: 19px;
    background: #fff;
    padding: 5px 28px 5px 31px;
    font-size: 13px;
    line-height: 26px;
    color: #333;
    cursor: pointer;
}

.filter-select:focus {
    border-color: #fe9802 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(254,152,2,.10);
}

.filter-status {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    color: #777;
    padding: 0 3px;
}

.card-container .searchable-card {
    transition: opacity .15s ease;
}

.chadhava-image {
    height: 240px !important;
    object-fit: cover;
}

.chadhava-badge {
    top: 200px !important;
}

.two-lines-only {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    min-height: 3em;
}

.one-lines-only {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newpadding { padding: 5px 1.25rem 1.25rem; }
.gold { color: #fe9802; }

#noResultsFound {
    display: none;
    padding: 30px 15px;
}

#noResultsFound > div {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* FOOTER: hide the COMPLETE toolbar, never just search/filter */
body.chadhava-footer-visible .chadhava-toolbar {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .chadhava-toolbar {
        top: 1px;
    }

    .chadhava-toolbar-search {
        padding: 8px 12px;
    }

    .chadhava-search-wrap {
        max-width: 680px;
    }

    .filter-scroll {
        justify-content: center;
        padding: 0 12px;
    }

    .filter-control {
        min-width: 135px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .chadhava-toolbar {
        top: 1px;
        width: 100%;
    }

    .chadhava-toolbar-search {
        height: 55px;
        padding: 6px 10px;
    }

    .chadhava-toolbar-search .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #chadhdhavaInput {
        height: 43px;
        min-height: 43px;
        border-radius: 22px;
        font-size: 16px;
        padding-left: 40px;
    }

    .search-leading-icon {
        left: 14px;
    }

    .chadhava-toolbar-filters {
        height: 49px;
    }

    .chadhava-toolbar-filters .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .filter-scroll {
        height: 49px;
        justify-content: flex-start;
        gap: 7px;
        padding: 0 10px;
    }

    .filter-control {
        min-width: 128px;
        height: 37px;
    }

    .filter-select {
        height: 37px;
        border-radius: 19px;
        font-size: 12px;
        padding-left: 30px;
    }

    .filter-status {
        display: none !important;
    }

    .chadhava-image {
        height: 200px !important;
    }

    .chadhava-badge {
        top: 160px !important;
    }

    .newpadding {
        padding: 7px 14px 14px;
    }

    .card-container {
        padding-left: 6px;
        padding-right: 6px;
        padding-top: 10px !important;
    }
}

@media (max-width: 575.98px) {
    .card-container > .searchable-card {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .card-container > .searchable-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chadhava-toolbar {
        transition: none;
    }
}
