:root{
    --rs-accent:#C62828;
    --rs-accent-dark:#a81f1f;
    --rs-accent-soft:rgba(198,40,40,.10);
    --rs-ring:rgba(198,40,40,.15);
    --rs-bg:#f7f7fb;
    --rs-card:#fff;
    --rs-border:#e8e8ee;
    --rs-muted:#6b7280;
    --rs-ink:#111827;
    --rs-shadow:0 16px 42px rgba(15,23,42,.08);
    --rs-header-h:73px;
}

.page-search #main-content{
    background:var(--rs-bg);
    padding-bottom:0;
}

.rs-page{
    background:var(--rs-bg);
}

.rs-filter-bar{
    position:sticky;
    top:0;
    z-index:220;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(17,24,39,.06);
    box-shadow:0 2px 14px rgba(0,0,0,.05);
}

.rs-filter-shell{
    padding:16px 0;
}

.rs-filter-label{
    display:block;
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
    color:var(--rs-ink);
    margin-bottom:6px;
    text-transform:uppercase;
}

.rs-input-box{
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    min-height:50px;
    padding:0 12px;
    border-radius:16px;
    background:#fff;
    border:1.5px solid #e3e5eb;
    transition:border-color .15s ease, box-shadow .15s ease;
}

.rs-input-box:focus-within{
    border-color:var(--rs-accent);
    box-shadow:0 0 0 4px var(--rs-ring);
}

.rs-input-icon{
    flex-shrink:0;
    color:var(--rs-accent);
    font-size:14px;
}

.rs-plain-input,
.rs-plain-select{
    flex:1 1 auto;
    min-width:0;
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    font-size:14px;
    font-weight:700;
    color:var(--rs-ink);
}

.rs-plain-select{
    appearance:none;
    cursor:pointer;
}

.rs-clear-x{
    width:26px;
    height:26px;
    border:0;
    border-radius:999px;
    background:#ececec;
    color:#555;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    transition:all .15s ease;
}

.rs-clear-x:hover{
    background:var(--rs-accent);
    color:#fff;
}

.rs-addr-suggestions{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    z-index:500;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    box-shadow:0 18px 40px rgba(15,23,42,.14);
    padding:6px;
}

.rs-addr-suggestions[hidden]{
    display:none;
}

.rs-suggestion{
    display:block;
    width:100%;
    padding:10px 12px;
    border:0;
    border-radius:12px;
    background:transparent;
    text-align:left;
    transition:background .12s ease;
}

.rs-suggestion:hover,
.rs-suggestion.is-active{
    background:#f5f6fa;
}

.rs-suggestion strong{
    display:block;
    font-size:13px;
    font-weight:800;
    color:var(--rs-ink);
}

.rs-suggestion span{
    display:block;
    margin-top:2px;
    font-size:12px;
    color:#8a8f98;
}

.rs-filters-panel{
    margin-top:14px;
    background:linear-gradient(180deg,#ffffff 0%,#fcfcff 100%);
    border:1px solid var(--rs-border);
    border-radius:20px;
    padding:18px;
    box-shadow:var(--rs-shadow);
}

.rs-input-box--lg{
    min-height:54px;
}

.rs-range-box{
    padding-right:14px;
}

.rs-range-box .form-range{
    flex:1 1 auto;
    margin:0;
    border:0;
    box-shadow:none;
}

.rs-filters-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-top:6px;
    padding-top:10px;
    border-top:1px dashed #e5e7eb;
}

.rs-clear-all{
    display:inline-flex;
    align-items:center;
    gap:6px;
    text-decoration:none;
    color:var(--rs-muted);
    font-size:13px;
    font-weight:800;
}

.rs-clear-all:hover{
    color:var(--rs-accent);
}

.rs-layout{
    display:grid;
    grid-template-columns:minmax(0, 560px) minmax(0, 1fr);
    gap:0;
    align-items:start;
}

.rs-results-col{
    min-width:0;
    background:var(--rs-bg);
    border-right:1px solid var(--rs-border);
}

.rs-results-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:18px 20px 14px;
    border-bottom:1px solid var(--rs-border);
    background:var(--rs-bg);
}

.rs-results-title{
    margin:0 0 4px;
    font-size:20px;
    line-height:1.15;
    font-weight:900;
    color:var(--rs-ink);
}

.rs-results-sub{
    margin:0;
    color:#7b8190;
    font-size:13px;
    line-height:1.6;
}

.rs-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:10px;
}

.rs-tag{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:4px 10px;
    border-radius:999px;
    background:#fff;
    border:1px solid #e5e7eb;
    font-size:12px;
    font-weight:800;
    color:#5f6470;
}

.rs-tag i{
    color:var(--rs-accent);
}

.rs-reset-link{
    display:inline-flex;
    align-items:center;
    gap:5px;
    text-decoration:none;
    color:var(--rs-accent);
    font-size:12.5px;
    font-weight:800;
    white-space:nowrap;
}

.rs-list{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:16px;
}

.rc{
    display:flex;
    flex-direction:row;
    border-radius:20px;
    overflow:hidden;
    background:var(--rs-card);
    border:1px solid #ececf2;
    box-shadow:0 6px 18px rgba(15,23,42,.05);
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    cursor:pointer;
}

.rc:hover,
.rc.is-active{
    transform:translateY(-2px);
    box-shadow:0 14px 34px rgba(15,23,42,.10);
    border-color:rgba(198,40,40,.25);
}

.rc-media{
    position:relative;
    width:220px;
    flex-shrink:0;
    background:#f0f0f0;
    overflow:hidden;
}

.rc-img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:opacity .28s ease;
}

.rc-img.is-active{
    opacity:1;
}

.rc-placeholder{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#f4f4f5 0%,#ececec 100%);
    color:#d1d5db;
    font-size:40px;
}

.rc-heart,
.rc-dist,
.rc-status{
    position:absolute;
    z-index:5;
    display:inline-flex;
    align-items:center;
    gap:4px;
    border-radius:999px;
    backdrop-filter:blur(8px);
}

.rc-heart{
    top:10px;
    right:10px;
    width:30px;
    height:30px;
    justify-content:center;
    background:rgba(255,255,255,.94);
    color:#e11d48;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.rc-dist{
    top:10px;
    left:10px;
    padding:4px 9px;
    background:rgba(17,24,39,.72);
    color:#fff;
    font-size:11px;
    font-weight:800;
}

.rc-status{
    left:10px;
    bottom:10px;
    padding:4px 9px;
    font-size:10px;
    font-weight:800;
}

.rc-status--open{
    background:rgba(22,163,74,.92);
    color:#fff;
}

.rc-status--closed{
    background:rgba(220,38,38,.88);
    color:#fff;
}

.rc-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:6;
    width:30px;
    height:30px;
    border:0;
    border-radius:999px;
    background:rgba(255,255,255,.92);
    color:#111;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    opacity:0;
    pointer-events:none;
    transition:opacity .16s ease;
}

.rc-media:hover .rc-arrow{
    opacity:1;
    pointer-events:auto;
}

.rc-arrow.prev{ left:10px; }
.rc-arrow.next{ right:10px; }

.rc-dots{
    position:absolute;
    left:50%;
    bottom:9px;
    transform:translateX(-50%);
    display:flex;
    gap:4px;
    z-index:5;
}

.rc-dot{
    width:5px;
    height:5px;
    border-radius:999px;
    background:rgba(255,255,255,.48);
}

.rc-dot.is-active{
    background:#fff;
    transform:scale(1.2);
}

.rc-body{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:15px 16px;
    color:inherit;
    text-decoration:none;
    position:relative;
    z-index:2;
}

.rc-name{
    margin:0;
    font-size:16px;
    line-height:1.25;
    font-weight:900;
    color:var(--rs-ink);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.rc-addr,
.rc-city{
    margin:0;
    display:flex;
    align-items:center;
    gap:5px;
    font-size:12.5px;
    color:#757b87;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.rc-addr i,
.rc-city i{
    color:var(--rs-accent);
    flex-shrink:0;
}

.rc-specs{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    row-gap:4px;
    min-width:0;
}

.rc-spec{
    display:inline-flex;
    align-items:center;
    font-size:12px;
    line-height:1.45;
    font-weight:600;
    color:#666;
    white-space:nowrap;
}

.rc-spec + .rc-spec::before{
    content:"•";
    margin:0 8px;
    font-size:16px;
    line-height:1;
    color:#9ca3af;
}

.rc-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-top:auto;
    padding-top:9px;
    border-top:1px solid #f2f3f5;
}

.rc-badge-halal{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px 9px;
    border-radius:999px;
    background:#f0fdf4;
    border:1px solid #bbf7d0;
    color:#166534;
    font-size:10px;
    font-weight:900;
}

.rc-rating{
    display:inline-flex;
    align-items:center;
    gap:4px;
    color:#b45309;
    font-size:12px;
    font-weight:800;
}

.rc-rating i{
    color:#f59e0b;
}

.rc-rating small{
    color:#9ca3af;
    font-size:11px;
    font-weight:700;
}

.rc-voir{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 10px;
    border-radius:999px;
    background:var(--rs-accent);
    color:#fff;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.rs-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    text-align:center;
    padding:54px 24px;
    border-radius:22px;
    background:#fff;
    border:1px dashed #e5e7eb;
}

.rs-empty i{
    font-size:40px;
    color:#d1d5db;
}

.rs-empty h2{
    margin:0;
    font-size:20px;
    font-weight:900;
    color:#4b5563;
}

.rs-empty p{
    margin:0;
    max-width:440px;
    color:#8b919d;
    font-size:14px;
    line-height:1.7;
}

.rs-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    padding:2px 16px 22px;
}

.rs-page-btn{
    width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid #e2e8f0;
    border-radius:12px;
    background:#fff;
    color:#5b6270;
    font-size:13px;
    font-weight:800;
    transition:all .15s ease;
}

.rs-page-btn:hover,
.rs-page-btn.active{
    background:var(--rs-accent);
    border-color:var(--rs-accent);
    color:#fff;
}

.rs-page-btn.disabled{
    opacity:.4;
    pointer-events:none;
}

.rs-page-dots{
    width:30px;
    text-align:center;
    color:#9ca3af;
}

.rs-map-col{
    position:sticky;
    top:73px;
    height:calc(100dvh - 73px);
    min-width:0;
    display:grid;
    grid-template-rows:auto 1fr;
    background:#fff;
}

.rs-map-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:12px 14px;
    border-bottom:1px solid var(--rs-border);
    background:#fff;
}

.rs-map-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 12px;
    border-radius:999px;
    background:var(--rs-accent-soft);
    border:1px solid rgba(198,40,40,.16);
    color:var(--rs-accent);
    font-size:12px;
    font-weight:900;
}

.rs-map-wrap{
    position:relative;
    min-height:0;
    height:100%;
}

.rs-map{
    width:100%;
    height:100%;
    background:#e5e7eb;
}

.rs-map .leaflet-container{
    width:100%;
    height:100%;
}

.rs-map-empty{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:rgba(255,255,255,.92);
    color:#9ca3af;
    text-align:center;
}

.rs-map-empty[hidden]{
    display:none;
}

.rs-map-empty i{
    font-size:32px;
    color:#d1d5db;
}

.rs-map-marker{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:36px;
    transform:translate(-50%, -100%);
    color:var(--rs-accent);
    font-size:28px;
    line-height:1;
    filter:drop-shadow(0 8px 16px rgba(198,40,40,.22));
}

.rs-map-marker i{
    display:block;
    line-height:1;
}

.rs-map-marker.is-active{
    color:#111827;
    filter:drop-shadow(0 10px 20px rgba(17,24,39,.24));
}

.rs-popup{
    min-width:220px;
}

.rs-popup-name{
    display:block;
    margin:0 0 4px;
    font-size:14px;
    font-weight:900;
    color:#111827;
    line-height:1.3;
}

.rs-popup-sub{
    margin:0 0 8px;
    font-size:12px;
    color:#6b7280;
    line-height:1.5;
}

.rs-popup-link{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:var(--rs-accent);
    text-decoration:none;
    font-size:12px;
    font-weight:900;
}

.rs-suggest-cta{
    padding:64px 0;
    background:linear-gradient(180deg,rgba(255,255,255,0) 0%, rgba(255,255,255,.48) 100%);
}

.rs-suggest-box{
    max-width:880px;
    margin:0 auto;
    padding:38px 28px;
    text-align:center;
    border-radius:28px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(17,24,39,.06);
    box-shadow:0 24px 64px rgba(15,23,42,.08);
    backdrop-filter:blur(10px);
}

.rs-suggest-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 14px;
    border-radius:999px;
    background:var(--rs-accent-soft);
    border:1px solid rgba(198,40,40,.16);
    color:var(--rs-accent);
    font-size:12px;
    font-weight:900;
    margin-bottom:14px;
}

.rs-suggest-title{
    margin:0 0 10px;
    font-size:clamp(24px,3vw,34px);
    line-height:1.08;
    font-weight:900;
    color:#111;
    letter-spacing:-.03em;
}

.rs-suggest-text{
    max-width:560px;
    margin:0 auto 22px;
    color:#6b7280;
    font-size:15px;
    line-height:1.8;
}

.rs-suggest-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:54px;
    padding:0 28px;
    border-radius:999px;
    background:linear-gradient(135deg,#c62828 0%,#e53935 100%);
    color:#fff;
    font-size:14px;
    font-weight:900;
    text-decoration:none;
    box-shadow:0 14px 34px rgba(198,40,40,.22);
    transition:transform .18s ease, box-shadow .18s ease;
}

.rs-suggest-btn:hover{
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 20px 42px rgba(198,40,40,.28);
}

.rs-suggest-note{
    margin:14px 0 0;
    font-size:12.5px;
    color:#6b7280;
}

.search-loading{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.search-loading::before{
    content:"";
    width:14px;
    height:14px;
    border-radius:999px;
    border:2px solid #ddd;
    border-top-color:var(--rs-accent);
    animation:rs-spin .8s linear infinite;
}

@keyframes rs-spin{
    to{ transform:rotate(360deg); }
}

.leaflet-popup-content p{
    margin:5px 0 !important;
}

@media (max-width: 1199.98px){
    .rs-layout{
        grid-template-columns:minmax(0, 500px) minmax(0, 1fr);
    }
}

@media (max-width: 1099.98px){
    .rs-layout{
        grid-template-columns:1fr;
    }

    .rs-results-col{
        border-right:0;
    }

    .rs-map-col{
        position:relative;
        top:auto;
        height:auto;
        min-height:0;
        grid-template-rows:auto auto;
    }

    .rs-map-wrap{
        height:clamp(360px, 58vh, 520px);
    }
}

@media (max-width: 767.98px){
.rs-filter-shell{
    padding:12px 12px;
}

    .rs-filters-panel{
        padding:14px;
        border-radius:18px;
    }

    .rs-filters-bottom{
        flex-direction:column;
        align-items:flex-start;
    }

    .rs-results-head{
        padding:14px;
    }

    .rs-list{
        padding:12px;
        gap:12px;
    }

    .rc{
        flex-direction:column;
        border-radius:18px;
    }

    .rc-media{
        width:100%;
        aspect-ratio:4 / 3;
    }

    .rc-arrow{
        opacity:1;
        pointer-events:auto;
        width:34px;
        height:34px;
    }

    .rc-body{
        padding:13px 14px;
    }

    .rc-name,
    .rc-addr,
    .rc-city{
        white-space:normal;
        overflow:visible;
        text-overflow:unset;
    }

    .rs-map-wrap{
        height:340px;
    }

    .rs-suggest-cta{
        padding:44px 0;
    }

    .rs-suggest-box{
        padding:28px 18px;
        border-radius:22px;
    }

    .rs-suggest-btn{
        width:100%;
        padding:0 20px;
    }
}

.rc-body{
    touch-action:manipulation;
}

.rc-arrow{
    z-index:20;
    pointer-events:auto;
    touch-action:manipulation;
}

.rs-map-col{
    overflow:hidden;
}

.rs-map-wrap{
    position:relative;
    min-height:420px;
    height:100%;
}

.rs-map{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}

@media (max-width:767.98px){
    .rs-map-wrap{
        min-height:340px;
        height:340px;
    }
}

@media (max-width: 767.98px){
    .rs-filter-bar .container,
    .rs-filter-shell{
        padding-left:12px !important;
        padding-right:12px !important;
    }

    .rs-filter-bar{
        overflow-x:hidden;
    }

    .rs-filter-shell .row{
        --bs-gutter-x:10px;
    }

    .rs-col-type,
    .rs-col-spec,
    .rs-col-search,
    .rs-col-filters{
        min-width:0 !important;
    }

    .rs-col-search,
    .rs-col-filters{
        display:flex;
    }

    .rs-col-search .btn,
    .rs-col-filters .btn{
        width:100%;
        min-width:0;
        justify-content:center;
    }

    #filters-more-btn{
        width:100%;
        min-width:0;
    }

    .rs-input-box{
        min-width:0;
    }

    .rs-plain-input,
    .rs-plain-select{
        min-width:0;
    }
}
