/* === SEARCH BOX === */
.prwspr2-search-form,
.prwspr2-search-form *,
.prwspr2-results-wrapper,
.prwspr2-results-wrapper *{
    box-sizing: border-box !important;
}

.prwspr2-search-form{
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
    min-width: 0 !important;
    margin: 0 auto 25px auto !important;
    display: block !important;
    overflow: visible !important;
}

.prwspr2-input{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 10px !important;
    padding-left: 60px !important;
    padding-right: 15px !important;
    font-size: 15px !important;
    direction: rtl !important;
    outline: none !important;
    display: block !important;
    background: #fff !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.prwspr2-input:focus{
    border-color: #c7c7c7 !important;
}

.prwspr2-btn{
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffce45 !important;
    border-radius: 10px 0 0 10px !important;
    border: none !important;
    cursor: pointer !important;
    display: block !important;
    line-height: 1 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.prwspr2-btn::before{
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 22px !important;
    height: 22px !important;
    transform: translate(-50%, -50%) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79L20 20.5 20.5 20l-5-6zm-6 0C8.01 14 6 11.99 6 9.5S8.01 5 10.5 5 15 7.01 15 9.5 12.99 14 10.5 14z'/></svg>");
}

@media (max-width: 480px){
    .prwspr2-search-form{
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .prwspr2-input{
        height: 48px !important;
        padding-left: 56px !important;
        font-size: 14px !important;
    }

    .prwspr2-btn{
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
    }
}

/* === RESULTS WRAPPER === */
.prwspr2-results-wrapper{
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.prwspr2-term-title{
    margin-bottom: 16px;
    font-size: 15px;
    color: #333;
    direction: rtl;
}

.prwspr2-no-term,
.prwspr2-no-results{
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    color: #444;
    direction: rtl;
    box-sizing: border-box;
}

/* === GRID LAYOUT WITH CSS VARIABLES FOR COLS === */
.prwspr2-grid{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(var(--cols-d, 3), minmax(0, 1fr));
    align-items: start;
    justify-items: stretch;
}

@media (max-width: 768px){
    .prwspr2-grid{
        grid-template-columns: repeat(var(--cols-m, 1), minmax(0, 1fr));
    }
}

/* === CARD + RATING STYLING === */
.prwspr2-card{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background:#fff;
    border-radius:10px;
    padding:10px;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
    overflow: hidden;
}

.prwspr2-card a{
    display: block;
    width: 100%;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.prwspr2-card .thumb{
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius:8px;
}

.prwspr2-card img{
    width:100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius:8px;
}

.prwspr2-card h4{
    margin: 10px 0 8px;
    font-size: 15px;
    line-height: 1.7;
    color: #222;
    direction: rtl;
}

.rating{
    display: flex;
    align-items: center;
    gap: 2px;
    direction: rtl;
}

.rating span{
    color:#ccc;
}

.rating .on{
    color:#f5b301;
}

.rate-number{
    margin-right:6px;
    font-size:13px;
    color:#555;
}

/* === PAGINATION === */
.prwspr2-pagination {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 28px;
    direction: rtl;
}

.prwspr2-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: all 0.2s ease;
}

.prwspr2-pagination a.page-numbers:hover {
    background: #f3f4f6;
    border-color: rgba(15, 23, 42, 0.18);
    color: #111827;
}

.prwspr2-pagination .page-numbers.current {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.prwspr2-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    min-width: auto;
    padding: 0 4px;
}

.prwspr2-pagination .prev,
.prwspr2-pagination .next {
    min-width: 64px;
}
