﻿

/* Open facet button pinned top-left */
.openfacet {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1900;
    padding: 8px 14px;
}

/* Hide open button while drawer is open */
body.facet-open .openfacet {
    display: none;
}

.facet-section {
    display: none;
}

    .facet-section.in {
        display: block;
    }

/* Drawer */
.facet-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 360px;
    min-width: 280px;
    max-width: 70vw;
    background: #fff;
    border-left: 1px solid #ccc;
    box-shadow: -4px 0 12px rgba(0,0,0,.12);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: auto;
}

.facet-panel.open {
    display: flex;
}


/* Header with close button in top-right */
.facet-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 12px 20px;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
    flex: 0 0 auto;
}
.facet-header h3 {
    margin: 0;
    font-size: 20px;
}
.facet-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.facet-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
}


#main-browse {
    transition: margin-left 0.15s ease;
    margin-left: 0;
    min-width: 0;
    box-sizing: border-box;
}


table.facet-table {
    border-spacing: 10px;
    border-collapse: initial;
}


.facet-accordion-item {
    border: 0;
    border-radius: 0;
    /*box-shadow: none;*/
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.facet-accordion-button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: 0;
    text-align: left;
    font-weight: 600;
}

    .facet-accordion-button:hover,
    .facet-accordion-button:focus {
        background: #f5f5f5;
        outline: none;
    }

    .facet-accordion-button::after {
        content: "+";
        float: left;
    }

    .facet-accordion-button[aria-expanded="true"]::after {
        content: "−";
    }

.facet-group {
    border-bottom: 1px solid #ddd;
}

.facet-toggle {
    width: 100%;
    padding: 0.75rem;
    background: #f7f7f7;
    border: 0;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
}

.facet-link {
    display: block;
    padding: 0.35rem 0;
    text-decoration: none;
}
    .facet-link.active {
        font-weight: bold;
        text-decoration: underline;
    }
.facet-count {
    opacity: 0.65;
}
.facet-list {
    padding: 0.5rem 0.75rem;
}
.facet-value.is-hidden {
    display: none;
}


.facet-view-all {
    margin-top: 0.5rem;
    background: none;
    border: 0;
    padding: 10px;
    color: #0066cc;
    cursor: pointer;
    text-decoration: underline;
}
