.rsp-portal-wrap,
.rsp-search-bar-wrap,
.rsp-featured-section,
.rsp-detail-wrap {
    font-family: 'Outfit', 'Segoe UI', Roboto, sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

.rsp-portal-wrap {
    max-width: 100%;
    margin: 40px auto;
    padding: 20px 40px;
}

/* Featured Section */
.rsp-featured-section {
    margin: 40px auto;
    max-width: 100%;
    padding: 0 40px;
}

.rsp-search-results-local {
    max-width: 100%;
    margin: 50px auto;
    padding: 20px 40px;
}

.rsp-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.rsp-featured-title-wrap h2 {
    margin: 0 0 5px 0;
    font-size: 1.6em;
    font-weight: 800;
    color: #1a1a1a;
}

.rsp-featured-title-wrap p {
    margin: 0;
    color: #777;
    font-size: 1em;
}

.rsp-view-all {
    color: #009460;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: transform 0.2s;
}

.rsp-view-all:hover {
    text-decoration: underline;
    transform: translateX(5px);
}

.rsp-search-bar-wrap {
    max-width: 100%;
    margin: 40px auto;
    text-align: center;
    padding: 0 40px;
}

.rsp-search-input-container {
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.rsp-search-field-inner {
    flex-grow: 1;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 0px;
    border-radius: 6px;
    margin-right: 10px;
}

.rsp-input-icon {
    color: #999;
    margin-right: 10px;
    margin-left: 10px;
}

#rsp-hero-search {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    padding: 10px 0;
    font-size: 1.1em;
    color: #444;
}

.rsp-hero-btn {
    background: #009460;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.6em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

input.rsp-search-input {
    width: 100%;
    padding: 12px 0px;
    border: 0;
    border-radius: 10px;
}

.rsp-hero-btn:hover {
    background: #007a4f;
    transform: scale(1.02);
}

:where(.wp-site-blocks :focus) {
    outline-width: 0px !important;
    outline-style: solid;
}

.rsp-category-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rsp-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.8em;
    transition: all 0.2s;
}

/* If parent has dark background, pills look like screenshot. 
   Otherwise they need a default darkish look */
.rsp-pill {
    background: rgba(0, 148, 96, 0.1);
    color: #009460;
    border: 1px solid #e0f2eb;
}

.rsp-search-bar-wrap-dark .rsp-pill {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
}

.rsp-search-bar-wrap-dark .rsp-pill:hover,
.rsp-search-bar-wrap-dark .rsp-pill.active {
    background: #fff;
    color: #009460;
}

.rsp-pill:hover,
.rsp-pill.active {
    background: #009460;
    color: #fff;
    border-color: #009460;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 148, 96, 0.2);
}

.rsp-pill-name {
    flex-grow: 1;
}

.rsp-pill-view-btn {
    display: none !important;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    color: inherit !important;
    text-decoration: none !important;
    margin-left: 5px;
    transition: all 0.2s;
}

.rsp-pill-view-btn:hover {
    background: #fff;
    color: #009460 !important;
}

.rsp-search-bar-wrap-dark .rsp-pill-view-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.rsp-search-bar-wrap-dark .rsp-pill:hover .rsp-pill-view-btn,
.rsp-search-bar-wrap-dark .rsp-pill.active .rsp-pill-view-btn {
    background: #009460;
    color: #fff !important;
}

/* Sidebar Category Adjustments */
.rsp-cat-pill-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rsp-cat-view-btn {
    display: none !important;
    font-size: 11px;
    text-align: center;
    color: #009460 !important;
    text-decoration: none !important;
    font-weight: 700;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rsp-cat-view-btn:hover {
    opacity: 1;
    text-decoration: underline !important;
}

.rsp-tag-view-link {
    display: none !important;
    font-size: 0.85em;
    background: #00d984;
    color: #fff !important;
    padding: 1px 6px;
    border-radius: 4px;
    text-decoration: none !important;
    margin-left: 8px;
    display: inline-block;
    cursor: pointer;
}

.rsp-tag-view-link:hover {
    background: #00b36b;
    color: #fff !important;
}

.rsp-cat-img-pill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.rsp-cat-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

/* Stats Container */
.rsp-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.rsp-stat-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #cdcdcd;
}

.rsp-stat-val {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: #009460;
    margin-bottom: 2px;
}

.rsp-stat-lbl {
    color: #888;
    font-size: 0.9em;
    font-weight: 500;
}

/* Filter Section */
.rsp-filter-section {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 30px rgb(0 0 0 / 10%);
    margin-bottom: 30px;
    border: 1px solid #cdcdcd;
}

.rsp-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.rsp-filter-title h2 {
    margin: 0 0 3px 0;
    font-size: 1.5em;
    font-weight: 700;
    color: #1a1a1a;
}

.rsp-filter-title p {
    margin: 0;
    color: #777;
    font-size: 0.95em;
}

.rsp-btn-filter {
    background: #009460;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.rsp-btn-filter:hover {
    background: #007a4f;
    transform: translateY(-1px);
}

.rsp-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 0px;
}

.rsp-filter-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #444;
}

.rsp-filters-grid select,
.rsp-filters-grid input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fdfdfd;
    font-size: 0.95em;
    transition: border-color 0.2s;
    max-width: -webkit-fill-available;
}

.rsp-filters-grid select:focus,
.rsp-filters-grid input:focus {
    border-color: #009460;
    outline: none;
}

.rsp-checkbox-filters {
    display: flex;
    gap: 20px;
}

.rsp-check-lbl {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.rsp-check-lbl:hover {
    background: #cdcdcd;
}

.rsp-check-lbl input:checked+span::before {
    background: #009460;
}

/* Results Header */
.rsp-results-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #cdcdcd;
}

.rsp-results-header h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
}

#rsp-count {
    color: #009460;
}

/* Stall Grid */
.rsp-stalls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.rsp-stall-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #cdcdcd;
    text-decoration: none !important;
    color: inherit !important;
}

.rsp-stall-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #00d984;
}

.rsp-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.rsp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rsp-stall-card:hover .rsp-card-image img {
    transform: scale(1.1);
}

.rsp-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
}

.rsp-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-featured {
    background: #ffcc00;
    color: #856404;
}

.badge-status {
    color: #fff;
}

.status-open {
    background: #00d984;
}

.status-closed {
    background: #6c757d;
}

.rsp-card-content {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}

span.rsp-category-tag .rsp-tag-cat-img {
    margin-right: 0;
}

.rsp-card-content h4 {
    margin: 0 0 6px 0;
    font-size: 1.2em;
    font-weight: 700;
    color: #1a1a1a;
}

.rsp-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #e6f9f2;
    color: #009460;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 15px;
}

.rsp-tag-cat-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.rsp-card-meta {
    margin-bottom: 15px;
}

.rsp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    margin-bottom: 6px;
    font-size: 0.85em;
}

.rsp-meta-item .dashicons {
    color: #00d984;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.rsp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.rsp-footer-links {
    display: flex;
    gap: 15px;
}

.rsp-link-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    color: #009460;
}

.link-delivery {
    color: #009460;
}

.link-whatsapp {
    color: #25d366;
}

.rsp-price-from {
    font-size: 0.8em;
    color: #777;
    font-weight: 500;
}

.rsp-price {
    font-size: 1.1em;
    font-weight: 800;
    color: #009460;
}

/* Stall Detail View */
.rsp-detail-wrap {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 20px;
    width: 1200px;
}

.rsp-detail-hero {
    position: relative;
    /* height: 340px; */
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    /* align-items: flex-end; Remove this so child can stretch */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    min-height: 45vh;
}

.rsp-detail-hero.rsp-gradient-1,
.rsp-detail-hero.rsp-gradient-2,
.rsp-detail-hero.rsp-gradient-3,
.rsp-detail-hero.rsp-gradient-4,
.rsp-detail-hero.rsp-gradient-5,
.rsp-detail-hero.rsp-gradient-6 {
    background-size: cover;
    background-position: center;
}

.rsp-detail-hero[class*="rsp-gradient-"] .rsp-hero-content {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.rsp-hero-overlay {
    position: relative;
    /* Change from absolute */
    width: 100%;
    /* Ensure full width */
    /* inset: 0; Removed */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 20px;
}

.rsp-hero-content {
    max-width: 600px;
    /* padding-bottom: 20px; */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rsp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-size: 0.9em;
}

.rsp-detail-title {
    font-size: 2.8em;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.rsp-detail-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.rsp-badge-pill {
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85em;
    font-weight: 700;
}

.rsp-badge-pill.category {
    background: #00d984;
    color: #004d33;
    display: flex;
}

.rsp-badge-pill.status {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rsp-badge-pill.status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.rsp-badge-pill.status.open .dot {
    background: #00ff9d;
    box-shadow: 0 0 10px #00ff9d;
}

.rsp-badge-pill.status.closed .dot {
    background: #ff4d4d;
}

.rsp-detail-desc {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rsp-thumb-strip {
    display: flex;
    gap: 10px;
}

.rsp-thumb-item {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.rsp-thumb-item:first-child {
    border-color: #00d984;
}

.rsp-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glass Info Cards */
.rsp-hero-info-cards {
    width: 450px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.rsp-hero-info-cards .rsp-info-card:nth-child(5),
.rsp-hero-info-cards .rsp-hero-socials {
    grid-column: span 2;
}

.rsp-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    font-size: 20px;
    color: #d9006e;
    /* Using pink/purple matching mockup icons if needed, or green */
    color: #00ff9d;
}

.card-text label {
    display: block;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-text span {
    font-size: 0.95em;
    font-weight: 600;
}

.rsp-hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.rsp-soc-btn {
    flex: 0 0 calc((100% - 20px) / 3);
    padding: 12px 5px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.8em;
    box-sizing: border-box;
}

.rsp-soc-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.rsp-soc-btn.facebook {
    background: #1877f2;
}

.rsp-soc-btn.whatsapp {
    background: #25d366;
}

.rsp-soc-btn.tiktok {
    background: #000000;
}

.rsp-soc-btn.twitter {
    background: #1DA1F2;
}

/* Allergen Box */
.rsp-allergen-box {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    margin-top: 0px;
}

.rsp-allergen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.rsp-allergen-header .dashicons {
    color: #00d984;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.rsp-allergen-content {
    color: #fff;
    font-weight: 500;
    font-size: 0.95em;
    line-height: 1.4;
}

.rsp-allergen-content p {
    margin: 0;
}

/* Detail Content & Tabs */
.rsp-detail-content {
    background: #fff;
    padding-bottom: 0px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: overlay;
    /* max-height: 565px; */
    height: 50vh;
    margin-top: 10px;
}

.rsp-tabs-nav {
    display: flex;
    border-bottom: 1px solid #cdcdcd;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.rsp-tab-trigger {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 1em;
    font-weight: 700;
    color: #777;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    line-height: 22px;
}

.rsp-tab-trigger.active {
    color: #009460;
    background: #f0fff9;
    border-bottom-color: #009460;
}

.rsp-tab-content {
    display: none;
    padding: 10px 20px;
}

.rsp-tab-content.active {
    display: block;
}

/* Menu List */
.rsp-menu-list {
    display: grid;
    gap: 10px;
}

.rsp-menu-item {
    display: flex;
    gap: 20px;
    padding: 5px;
    border-radius: 15px;
    border: 1px solid #cdcdcd;
    transition: all 0.2s;
}

.rsp-menu-item:hover {
    border-color: #009460;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}



.rsp-menu-item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.rsp-menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsp-menu-item-info {
    flex-grow: 1;
}

.rsp-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.rsp-menu-item-header h5 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 700;
    color: #1a1a1a;
}

.rsp-menu-price {
    font-size: 1.1em;
    font-weight: 800;
    color: #009460;
    margin-right: 10px;
}

.rsp-menu-item-info p {
    margin: 0;
    color: #777;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Placeholder Utility */
.rsp-placeholder-view {
    text-align: center;
    padding: 60px 20px;
}

.rsp-placeholder-view .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #eee;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .rsp-hero-overlay {
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%);
    }

    .rsp-hero-info-cards {
        width: 100%;
        margin-top: 30px;
    }

    .rsp-detail-title {
        font-size: 2.2em;
    }
}


/* Mobile Responsiveness */
@media (max-width: 991px) {
    .rsp-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsp-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .rsp-search-layout {
        grid-template-columns: 1fr;
    }

    .rsp-sidebar-filters {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .rsp-filters-grid {
        grid-template-columns: 1fr;
    }

    .rsp-stats-container {
        grid-template-columns: 1fr;
    }

    .rsp-stalls-grid {
        grid-template-columns: 1fr;
    }

    .rsp-filter-section {
        padding: 25px;
    }
}

/* 
   ------------------------------------------
   SIDEBAR SEARCH LAYOUT (Scoped)
   Applies only when [rsp_search_bar layout="sidebar"]
   ------------------------------------------
*/

.rsp-layout-sidebar .rsp-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rsp-layout-sidebar .rsp-top-search-bar {
    margin-bottom: 30px;
}

.rsp-layout-sidebar .rsp-search-input-wrapper {
    position: relative;
    max_width: 100%;
}

.rsp-layout-sidebar .rsp-search-input-wrapper input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    min-height: 60px;
}

.rsp-layout-sidebar .rsp-search-input-wrapper input:focus {
    border-color: #00d984;
    box-shadow: none;
    outline: none;
}

.rsp-layout-sidebar .rsp-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
}

.rsp-layout-sidebar .rsp-search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styling */
.rsp-layout-sidebar .rsp-sidebar-filters {
    background: #fff;
    padding: 10px 15px;
    border-radius: 16px;
    border: 1px solid #cdcdcd;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 20px;
    z-index: 10;
}

.rsp-layout-sidebar .rsp-sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.rsp-layout-sidebar .rsp-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rsp-layout-sidebar .rsp-filter-group {
    margin-bottom: 0px;
    margin-top: 0px;
}

.rsp-layout-sidebar .rsp-filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0px;
    font-size: 14px;
    color: #333;
    padding: 7px 0px;
    margin-top: 10px;
}

.rsp-filter-group.checkbox-filters .rsp-check-lbl {
    margin-top: 0px;
    padding: 5px 5px;
}

.rsp-layout-sidebar .rsp-select-wrapper select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
}

/* Category Pills Grid */
.rsp-layout-sidebar .rsp-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.rsp-layout-sidebar .rsp-cat-pill {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: #666;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.rsp-layout-sidebar .rsp-cat-pill:hover {
    border-color: #00d984;
    color: #00d984;
}

.rsp-layout-sidebar .rsp-cat-pill.active {
    background: #00d984;
    border-color: #00d984;
    color: #fff;
    font-weight: 600;
}

/* Price Range Slider */
.rsp-layout-sidebar .rsp-price-control {
    padding: 5px 0;
}

.rsp-layout-sidebar .rsp-price-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.rsp-layout-sidebar #rsp-price-display {
    font-weight: 700;
    color: #00d984;
}

.rsp-layout-sidebar input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    margin: 10px 0;
}

.rsp-layout-sidebar input[type=range]:focus {
    outline: none;
}

.rsp-layout-sidebar input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 3px;
}

.rsp-layout-sidebar input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #00d984;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Sidebar Layout Refinements */
.rsp-layout-sidebar .rsp-search-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rsp-top-search-bar {
    background: #fff;
    border-radius: 12px;
    padding: 0px 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.rsp-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rsp-results-area .rsp-card-content h4 {
    font-size: 1em;
    margin-bottom: 8px;
}

.rsp-results-area .rsp-category-tag,
.rsp-results-area .rsp-meta-item,
.rsp-results-area .rsp-link-icon,
.rsp-results-area .rsp-price-from,
.rsp-results-area .rsp-badge {
    font-size: 0.8em;
}

a:where(:not(.wp-element-button)),
a {
    text-decoration: none;
}

.rsp-search-icon {
    color: #999;
}

.rsp-search-input-wrapper input {
    border: none !important;
    outline: none !important;
    width: 100%;
    font-size: 1.1em;
    padding: 10px 0;
}

.rsp-search-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

.rsp-sidebar-filters {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #cdcdcd;
    position: sticky;
    top: 20px;
    z-index: 10;
}

.rsp-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #009460;
}

.rsp-sidebar-header .dashicons {
    font-size: 20px;
}

.rsp-sidebar-header h3 {
    margin: 0 !important;
    font-size: 1.3em !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
}

.rsp-filter-group {
    margin-bottom: 25px;
}

.rsp-filter-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 12px;
}

.rsp-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rsp-cat-pill {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.rsp-cat-pill:hover,
.rsp-cat-pill.active {
    border-color: #009460;
    color: #009460;
    background: #f0fff9;
}

.rsp-price-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rsp-price-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.range-lbl {
    font-size: 0.75em;
    color: #888;
}

.rsp-price-row input[type="range"] {
    width: 100%;
    accent-color: #009460;
}

.checkbox-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rsp-check-lbl {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    font-weight: 600;
    color: #444;
    cursor: pointer;
}

.rsp-check-lbl input {
    width: 14px;
    height: 12px;
    accent-color: #009460;
}

.rsp-sidebar-actions {
    margin-top: 20px;
}

.rsp-btn-reset {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.rsp-btn-reset:hover {
    background: #f9f9f9;
    color: #333;
    border-color: #ccc;
}

/* Updated Results Grid */
.rsp-results-header {
    margin-bottom: 25px;
}

.rsp-results-header h3 {
    font-size: 1.25em;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 0;
}

.rsp-layout-sidebar .rsp-stalls-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.rsp-stall-card {
    border-radius: 20px;
    border: 1px solid #cdcdcd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.badge-featured {
    background: #ffcc00 !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3) !important;
}

.badge-status.status-open {
    background: #00d984 !important;
}

.badge-status.status-closed {
    background: #1a1a1a !important;
    opacity: 0.8 !important;
}

.rsp-card-content h4 {
    font-size: 1.50em;
    margin-bottom: 8px;
}

.rsp-category-tag {
    background: #e6f9f2;
    color: #009460;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    width: max-content;
    font-weight: 400;
    gap: 6px;
}

.rsp-tag-cat-img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.rsp-meta-item {
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

.rsp-footer-links {
    display: flex;
    gap: 12px;
}

.link-delivery {
    color: #009460 !important;
}

.link-whatsapp {
    color: #25d366 !important;
}

.rsp-price {
    font-size: 1.3em;
    color: #009460;
}


/* Reviews & Ratings UI */
.rsp-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.rsp-reviews-header h3 {
    margin: 0 !important;
    font-size: 1.6em !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
}

.rsp-btn-write-review {
    background: #009460;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

.rsp-btn-write-review:hover {
    background: #007a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 148, 96, 0.2);
}

.rsp-reviews-summary-box {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.rsp-rating-avg-wrap {
    text-align: center;
    padding-right: 40px;
    border-right: 1px solid #e0e0e0;
    min-width: 150px;
}

.rsp-rating-score {
    font-size: 4em;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 10px;
}

.rsp-rating-stars-wrap {
    color: #ffd700;
    font-size: 1.4em;
    margin-bottom: 8px;
}

.rsp-rating-count-label {
    font-size: 0.9em;
    color: #777;
    font-weight: 500;
}

.rsp-rating-bars-wrap {
    flex-grow: 1;
}

.rsp-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.rsp-rating-bar-row:last-child {
    margin-bottom: 0;
}

.rsp-bar-label {
    font-size: 0.9em;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rsp-bar-label .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #ffd700;
}

.rsp-bar-track {
    flex-grow: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.rsp-bar-fill {
    height: 100%;
    background: #ffd700;
    border-radius: 10px;
}

.rsp-bar-count {
    font-size: 0.9em;
    color: #777;
    min-width: 20px;
    text-align: right;
}

.rsp-reviews-empty-state {
    text-align: center;
    padding: 40px;
    color: #777;
    font-size: 1.1em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .rsp-reviews-summary-box {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .rsp-rating-avg-wrap {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 30px;
        width: 100%;
    }
}


/* Review Form Styling */
.rsp-review-form-container {
    margin-bottom: 30px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rsp-review-form-inner {
    background: #f0fff9;
    border: 1px solid #d1f2e5;
    border-radius: 20px;
    padding: 15px;
}

.rsp-review-form-inner h4 {
    margin: 0 0 25px 0 !important;
    font-size: 1.4em !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
}

.rsp-form-row {
    margin-bottom: 20px;
}

.rsp-form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    color: #444;
    margin-bottom: 8px;
}

.rsp-form-row input[type="text"],
.rsp-form-row input[type="email"],
.rsp-form-row textarea {
    width: -webkit-fill-available;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 0.95em;
    transition: all 0.2s;
}

.rsp-form-row input:focus,
.rsp-form-row textarea:focus {
    border-color: #00d984;
    box-shadow: 0 0 0 4px rgba(0, 217, 132, 0.1);
    outline: none;
}

.rsp-star-rating-input {
    display: flex;
    gap: 5px;
}

.rsp-star-rating-input .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #e0e0e0;
    transition: all 0.2s;
}

.rsp-star-rating-input .dashicons:hover,
.rsp-star-rating-input .dashicons.active {
    color: #ffd700;
}

.rsp-btn-submit-review {
    width: 100%;
    background: #009460;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.rsp-btn-submit-review:hover {
    background: #007a4f;
    box-shadow: 0 5px 15px rgba(0, 148, 96, 0.3);
}


/* Reviews List Styling */
.rsp-reviews-list {
    margin-top: 40px;
    gap: 10px;
    display: grid;
}

.rsp-review-item {
    padding: 10px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
}

/* .rsp-review-item:last-child {
    border-bottom: none;
} */

.rsp-review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.rsp-reviewer-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #1a1a1a;
}

.rsp-review-date {
    font-size: 0.85em;
    color: #999;
}

.rsp-review-rating {
    margin-bottom: 15px;
}

.rsp-review-rating .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #ffd700;
}

.rsp-review-text {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

.rsp-review-text p {
    margin: 0;
}

.rsp-search-wrapper.rsp-layout-sidebar {
    max-width: 100%;
}

.rsp-load-more-wrap {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

.rsp-btn-load-more {
    background: #009460;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 148, 96, 0.2);
}

.rsp-btn-load-more:hover {
    background: #007a4f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 148, 96, 0.3);
}

.rsp-btn-load-more:active {
    transform: translateY(0);
}

/* Gradient Fallbacks */
.rsp-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2em;
    font-weight: 800;
}

.rsp-gradient-1 {
    background: linear-gradient(135deg, #009460 0%, #00d984 100%);
}

.rsp-gradient-2 {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
}

.rsp-gradient-3 {
    background: linear-gradient(135deg, #4ECDC4 0%, #55E2D9 100%);
}

.rsp-gradient-4 {
    background: linear-gradient(135deg, #FFD93D 0%, #FFED9D 100%);
}

.rsp-gradient-5 {
    background: linear-gradient(135deg, #6C5CE7 0%, #8578EB 100%);
}

.rsp-gradient-6 {
    background: linear-gradient(135deg, #A8E6CF 0%, #DCEDC1 100%);
}

.rsp-cat-gradient-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 8px;
}

.rsp-cat-gradient-placeholder.sidebar-mode {
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: inline-flex;
    vertical-align: middle;
}


.rsp-stall-card.rsp-filtered-out,
.rsp-stall-card.rsp-paged-out {
    display: none !important;
}

@media (max-width: 900px) {
    .rsp-layout-sidebar .rsp-search-layout {
        grid-template-columns: 1fr;
    }
}

/* Review OTP Modal Styles */
.rsp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

.rsp-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: left;
    animation: rspPopIn 0.3s ease-out forwards;
}

@keyframes rspPopIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.rsp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    transition: all 0.2s;
    width: 20px;
    height: 20px;
}

.rsp-modal-close:hover {
    color: #333;
}

.rsp-modal-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 800;
    color: #333;
}

.rsp-modal-body p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
}

.rsp-otp-input-large {
    width: 100%;
    padding: 15px;
    font-size: 1.8em;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
}

.rsp-otp-input-large:focus {
    border-color: #00d984;
    /* Use theme color */
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 217, 132, 0.1);
}

.rsp-btn-verify-otp {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: #9fa6b2;
    /* Grey default */
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.rsp-btn-verify-otp:hover {
    background: #009460;
}

/* Form row tweak for modal */
.rsp-modal-content .rsp-form-row {
    margin-bottom: 15px;
}

.rsp-modal-content .rsp-form-row label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.9em;
}

/* Toast Notification Styles */
.rsp-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rsp-toast {
    background: #fff;
    border-left: 5px solid #00d984;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: rspSlideInRight 0.3s ease-out forwards;
    opacity: 0;
    transform: translateX(50px);
}

.rsp-toast.error {
    border-left-color: #ff4d4d;
}

.rsp-toast.success {
    border-left-color: #00d984;
}

.rsp-toast-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsp-toast.success .rsp-toast-icon {
    color: #00d984;
}

.rsp-toast.error .rsp-toast-icon {
    color: #ff4d4d;
}

.rsp-toast-message {
    color: #333;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.4;
}
.rsp-search-wrapper.rsp-layout-default {
    margin: 0px auto;
    padding: 0px 40px;
	max-width: 700px;
}
@keyframes rspSlideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rspFadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}