﻿/*adjustments*/


/* ===========================
   Shared / existing styles
   =========================== */



.facetbar {
    width: 17rem;
    height: 100%;
    background: #f7f7f7;
    border: 1px solid #ddd;
    flex: 0 0 auto;
}

#facetContainer {
    /* padding: 1rem; */
}

    /* Section title */
    #facetContainer > h4 {
        margin-bottom: .5rem;
        padding-left: 0;
        border-bottom: 1px solid #ccc;
    }

    /* "Applied filters" row */
    #facetContainer .form-label {
        font-variant: all-petite-caps;
        color: #777;
    }

#sf-facet-clear-all-btn {
    font-size: .75rem;
}

/* Pills */
#applied-filters li {
    background: #bbd4ec !important;
    color: #333;
    border-radius: 2px !important;
    padding: .3rem .05rem 0rem .25rem !important;
    font-size: .75rem;
    width: auto;
    letter-spacing: .01rem;
}

    #applied-filters li:hover {
        background: #d9e2ea !important;
    }

/* Individual facet group */
#facetContent:has(*) {
    padding: .5rem 1rem;
}

#facetContent h5 {
    /* margin-top: 1.25rem; */
    /* margin-bottom: .5rem; */
    font-size: .85rem;
    font-weight: 700;
    color: #2f3c4a;
}

/* Checkbox row */
#facetContent li {
    display: flex !important;
    align-items: center;
    padding: .25rem 0;
}

#facetContent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Label text */
#facetContent label {
    margin-left: .4rem;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
}

/* Count text */
#facetContent span {
    font-size: .7rem;
    color: #777 !important;
}

/* Show More / Less */
#facetContent button.btn-link {
    margin-top: .25rem;
    font-size: .75rem;
    padding: 0;
}


/*End Facet Bar*/

.searchBody {
    flex: 0 0 75%;
    padding: 0 2em 1em 1em;
}

    .searchBody .searchResultTop {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        /* border-bottom: 1px solid #ccc; */
    }

        .searchBody .searchResultTop .form-label {
            align-self: center;
        }

    .searchBody .searchResultData {
        margin-top: .5rem;
        padding-top: 1rem;
        border-top: 1px solid #ccc;
    }

        .searchBody .searchResultData .filterIcon {
            font-size: 2rem;
            margin: 0;
            padding: .5rem;
            color: #bdc9d8;
        }

        .searchBody .searchResultData .searchUrlText {
            font-size: .9rem;
        }

.ccSearchBox,
.ccSearchBoxModal {
    display: flex;
    padding: .25rem 0 .5rem 0;
    gap: 1rem;
    flex: 1 0 100%;
}

    .ccSearchBoxModal .d-flex {
        flex: 1 0 auto;
    }

    .ccSearchBoxModal ul.border.bg-body.list-unstyled.position-absolute {
        top: 2.8rem;
        width: 100%;
        box-shadow: 3px 5px 8px rgba(0 0 0 / .5);
        height: 8rem;
        font-size: .85rem;
    }

    .ccSearchBox .btn:first-of-type,
    .ccSearchBoxModal .btn:first-of-type {
        background-color: var(--cc-darkBlue) !important;
        border-color: var(--cc-darkBlue);
    }

    .ccSearchBox .btn-primary:focus,
    .ccSearchBoxModal .btn-primary:focus {
        border-color: var(--cc-darkBlue);
        box-shadow: 0 0 0 0.25rem #77a;
    }

    .ccSearchBox button::before,
    .ccSearchBoxModal button::before {
        content: "\e802";
        font-family: "ccicons";
        margin-right: .4em;
    }

    .ccSearchBox .form-control,
    .ccSearchBoxModal .form-control {
        border: 1px solid var(--cc-blue);
        font-size: 1.2em;
    }

.searchModalWrap {
    width: 100%;
    height: 70vh;
}

.searchModal {
    width: 100%;
    height: 100%;
    border: none;
}


#ccMainSection > div.ccSearchBoxModal.all > div {
    flex: 0 1 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0
}

    #ccMainSection > div.ccSearchBoxModal.all > div > input {
        width: 75%;
    }

/* ===========================
   Modal layout / background
   =========================== */

.ccSearchModalBlock {
    max-width: 52rem;
    width: 100%;
    overflow: hidden;
}

.ccSearchModalBody {
    background: #e1e2e4; /* light gray like screenshot */
    padding: 1rem 1.5rem;
    overflow: visible; /* let suggestions overflow */
}

.ccSearchModalContent {
    max-width: 48rem;
    margin: 0 auto;
}

/* Root for Sitefinity search box widget inside the modal */
.ccSearchBoxModal-root {
    position: relative;
    z-index: 2; /* keep above generic modal body content */
}

/* Suggestions dropdown on top of filter bar */
.sf-search-suggestions,
.cc-search-suggestions {
    position: relative; /* or absolute depending on SF markup */
    z-index: 3;
}

/* ===========================
   Filter tabs (ALL / etc.)
   =========================== */

.ccSearchFilterBar {
    /* margin-top: 0.75rem; */
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* spacing between tab labels */
    align-items: flex-end;
    font-size: 0.8rem;
    /* letter-spacing: 1px; */
    /* text-transform: uppercase; */
}

/* Base tab: text-only */
.ccSearchFilterButton {
    border: none;
    background: transparent;
    padding: 0.35rem 0.9rem;
    color: #4c4c4c;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    padding-top: .75rem;
}

    .ccSearchFilterButton:not(.is-active):hover {
        color: #000;
        background: #ccc;
    }

    /* Active tab: dark rectangle with white text (like ALL) */
    .ccSearchFilterButton.is-active {
        background: var(--cc-darkBlue, #2f3c4a);
        color: #fff;
        border-radius: 2px;
    }

#applied-filters {
    padding: 0;
    margin: 0;
}

#applied-filters:has(*) {
    padding: .5rem .5rem .25rem 1rem;
    margin-bottom: .2rem;
}



/* ===========================
   Popular section
   =========================== */

.ccSearchPopularWrapper {
    margin-top: 1rem;
    padding-top: .5rem;
}

.ccSearchPopularTitle {
    /* margin: 0 0 0.5rem; */
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #555;
}

/* Popular links inline, blue, spaced out */
.ccSearchPopularWrapper a {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cc-blue, #0056b6);
    text-decoration: none;
}

    .ccSearchPopularWrapper a:hover {
        text-decoration: underline;
    }


/*Pagination*/

#sf-search-result-pager {
    margin-top: 1rem;
    text-align: center;
}

    #sf-search-result-pager .pagination {
        display: inline-flex;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 0.25rem;
    }

    #sf-search-result-pager .page-item {
    }

    #sf-search-result-pager .page-link {
        display: block;
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
        color: #2f3c4a;
        text-decoration: none;
        border: 1px solid #ccc;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

        #sf-search-result-pager .page-link:hover {
            background-color: #d1e1f1;
            font-weight: bold;
            border: 1px solid #999;
        }

    #sf-search-result-pager .page-item.active .page-link {
        background-color: var(--cc-navBlue);
        color: #fff;
        border-color: #fff;
        font-weight: 500;
    }

    #sf-search-result-pager .page-item.disabled .page-link {
        color: #aaa;
        cursor: not-allowed;
        background-color: #f7f7f7;
        border-color: #ddd;
    }
