/* =========================================================
   AQAD compact filter enhancements
   ========================================================= */

.aqad-view-all{
    display:block;
    width:100%;
    border:0;
    background:#f3e7d5;
    color:#5D0706;
    text-decoration:underline;
    text-align:left;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
    padding:7px 8px;
    margin:0 0 6px;
    border-radius:5px;
}


/* Overlay */

.aqad-modal-overlay{
    position:fixed;
    inset:0;
    z-index:10000;
    background:rgba(0,0,0,.55);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px;
    font-family:'Outfit',sans-serif;
}

.aqad-picker-overlay{
    z-index:10020;
}


.aqad-modal{
    width:min(440px,96vw);
    max-height:88vh;
    overflow:auto;
    background:#fffdf9;
    color:#1F1103;
    border-radius:14px;
    padding:14px;
    box-shadow:0 16px 50px rgba(0,0,0,.28);
}


.aqad-modal-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
}


.aqad-modal-head strong{
    font-size:18px;
    color:#5D0706;
}


.aqad-modal-head small{
    display:block;
    margin-top:2px;
    color:#756b63;
    font-size:11px;
    font-weight:400;
}


.aqad-close{
    border:0;
    background:transparent;
    font-size:24px;
    line-height:1;
    cursor:pointer;
}


/* =========================================================
   Compact Quick Preferences
   ========================================================= */

.aqad-quick-modal{
    width:min(390px,95vw);
}


.aqad-quick-row{
    margin:7px 0;
}


.aqad-quick-select{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;

    border:1px solid #dfd0be;
    background:#fff;
    border-radius:8px;

    padding:9px 10px;

    color:#1F1103;
    cursor:pointer;
    text-align:left;
    font-size:13px;
}


.aqad-quick-select span{
    font-weight:600;
}


.aqad-quick-select b{
    color:#5D0706;
    font-size:11px;
    font-weight:700;
}


.aqad-age-panel{
    display:none;

    align-items:center;
    gap:6px;

    background:#f9f2e9;

    padding:8px;
    border-radius:0 0 8px 8px;
}


.aqad-age-panel.is-open{
    display:flex;
}


.aqad-age-panel input{
    min-width:0;
    width:45%;
    border:1px solid #d9c8b4;
    border-radius:6px;
    padding:7px;
    font-size:13px;
}


.aqad-age-panel span{
    font-size:11px;
}


/* =========================================================
   View All picker
   ========================================================= */

.aqad-picker-modal{
    width:min(560px,96vw);
}


.aqad-small-picker{
    width:min(370px,95vw);
}


.aqad-search{
    width:100%;
    border:1px solid #d9c8b4;
    border-radius:7px;
    padding:8px 9px;
    margin-bottom:7px;
    font-size:13px;
}


.aqad-picker-count{
    font-size:11px;
    font-weight:600;
    color:#5D0706;
    margin-bottom:6px;
}


.aqad-options-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;

    max-height:48vh;
    overflow:auto;
}


.aqad-option{
    display:flex;
    align-items:flex-start;
    gap:6px;

    border:1px solid #eee1d2;
    border-radius:6px;
    background:#fff;

    padding:6px 7px;

    font-size:12px;
    cursor:pointer;
}


.aqad-option input{
    margin-top:2px;
}


.aqad-marital-list{
    grid-template-columns:1fr;
}


/* Buttons */

.aqad-modal-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-top:11px;
}


.aqad-modal-btn{
    border:0;
    border-radius:7px;
    padding:8px 12px;
    cursor:pointer;
    font-size:12px;
    font-weight:600;
}


.aqad-btn-primary{
    background:#5D0706;
    color:white;
}


.aqad-btn-secondary{
    background:#eee3d6;
    color:#1F1103;
}


.aqad-btn-clear{
    background:transparent;
    color:#9d2f2f;
}


@media(max-width:600px){

    .aqad-modal{
        padding:12px;
    }

    .aqad-options-list{
        grid-template-columns:1fr;
    }

    .aqad-option{
        padding:7px;
    }
}