﻿.min-width-230 {
    min-width: 230px;
    width: 230px;
    max-width: 230px;
}

.min-height-180 {
    min-height: 180px;
    height: 180px;
    max-height: 180px;
}

@media (min-width: 992px) {
    .min-width-230 {
        min-width: 303px;
        width: 303px;
        max-width: 303px;
    }

    .min-height-180 {
        min-height: 198px;
        height: 198px;
        max-height: 198px;
    }
}

.cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Restaurant image container styling */
.listing-thumb {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .listing-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

/* Place count styling */
.place-count {
    display: inline-block;
    font-weight: inherit;
}

.restaurant-section h5.title,
.restaurant-section h6.subtitle {
    text-align: center;
}

/* List tag2 styling for sponsored badge */
.list-tag2 {
    display: none;
}

/* Discount tag */
.discount-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--mb-colour);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
    text-align: center;
    line-height: 1;
}

    .discount-tag span {
        font-size: 16px;
        font-weight: bold;
    }

    .discount-tag small {
        margin-top: 0;
        font-size: 12px;
        text-transform: lowercase;
        font-weight: 600;
    }

    .discount-tag.all-menu,
    .discount-tag.some-items {
        width: 100%;
        height: auto;
        border-radius: 0;
        top: 0;
        left: 0;
        right: 0;
        padding: 5px;
        text-align: center;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .discount-tag.all-menu {
        background-color: rgba(265, 88, 83, 0.9);
        color: #212529;
    }

    .discount-tag.some-items {
        background-color: rgba(255, 193, 7, 0.9);
        color: #212529;
    }

/* Feature badges container */
.feature-badges {
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
    margin-bottom: 0;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 40px;
    font-size: 12px;
    line-height: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-right: 5px;
    white-space: nowrap;
}

    .feature-badge i {
        margin-right: 4px;
    }

.free-delivery {
    background-color: rgba(139, 176, 63, 0.9);
    color: white;
}

.online-payment {
    background-color: rgba(13, 110, 253, 0.9);
    color: white;
}

.online-ordering {
    background-color: rgba(23, 162, 184, 0.9);
    color: white;
}

.online-menu {
    background-color: rgba(108, 117, 125, 0.9);
    color: white;
}

.phone-only {
    background-color: rgba(108, 117, 125, 0.9);
    color: white;
}

/* Sponsored tag moved below image */
.sponsored-label {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #212529;
    margin: 5px 0 0;
    width: 100%;
}

/* Promo code discount tag */
.discount-tag.promo-code {
    width: 100%;
    height: auto;
    border-radius: 0;
    top: 26px;
    left: 0;
    right: 0;
    padding: 5px;
    background-color: rgba(142, 68, 173, 0.9);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 3;
    text-align: center;
}

/* When promo code is the only tag */
.discount-tag.promo-code.top-position {
    top: 0;
}

    .discount-tag.promo-code span {
        margin-right: 5px;
        font-weight: bold;
        font-size: 16px;
    }

    .discount-tag.promo-code small {
        font-size: 12px;
        font-weight: 600;
        margin-top: 0;
        letter-spacing: 0.5px;
        background-color: rgba(255,255,255,0.8);
        padding: 3px 6px;
        border-radius: 3px;
        color: #8E44AD;
        text-transform: uppercase;
    }


/* Available offer discount tag */
.discount-tag.available-offer {
    width: 100%;
    height: auto;
    border-radius: 0;
    top: 52px;
    left: 0;
    right: 0;
    padding: 5px;
    background-color: rgba(255, 140, 0, 0.9);
    z-index: 3;
    text-align: center;
}

/* When available offer is the only tag */
.discount-tag.available-offer.top-position {
    top: 0;
}

/* When available offer is the second tag */
.discount-tag.available-offer.second-position {
    top: 26px;
}

    .discount-tag.available-offer p {
        margin-bottom: 0px;
        line-height: 16px;
        font-size: 12px;
        font-weight: 600;
        color: #212529;
    }

/* New sidebar styles for proper sticky behavior */
.restaurant-main-container {
    position: relative;
    padding-top: 20px;
    padding-bottom: 40px;
}

.sidebar-filter {
    border-radius: 10px;
    z-index: 99;
}

/* Filter column positioning */
@media (min-width: 992px) {
    #filters-column {
        position: relative;
    }
}

.restaurant-section {
    position: relative;
    display: block; /* Ensure visibility */
}

/* Responsive text size for category filters */
.fz12 {
    font-size: 12px;
}

@media (min-width: 768px) {
    .fz-md-14 {
        font-size: 14px;
    }
}

/* Add some spacing to make content sections distinct */
.restaurant-section:nth-child(odd) {
    margin-bottom: 20px;
}

/* Mobile optimizations */
@media (max-width: 991px) {
    /* Reduce spacing between cuisine types and filters on mobile */
    #restaurants .mb-3 {
        margin-bottom: 0 !important;
    }
    
    .sticky-filter-container {
        margin-top: 0;
        margin-bottom: 1rem !important;
    }
    
    /* Optimize cuisine-types-wrapper for mobile */
    .cuisine-types-wrapper.cuisine-mobile {
        padding: 10px;
        margin-bottom: 0;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    }
    
    /* Adjust filters wrapper for mobile */
    .filters-wrapper {
        border-radius: 0 0 10px 10px;
        margin-bottom: 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    /* Create visual connection between cuisine and filter rows */
    .cuisine-types-wrapper.cuisine-mobile + .sticky-filter-container .filters-wrapper {
        border-top: 1px solid #f0f0f0;
    }
    
    .restaurant-main-container .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .restaurant-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .listing-style1 {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .food-menu-cat-box {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        overflow-x: auto;
    }
}

/* Force visibility for certain restaurant types */
[data-type="phone-static"],
[data-type="facebook"] {
    display: block !important;
}

/* Cuisine filter always visible */
.food-menu-cat-box {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .food-menu-cat-box::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for IE, Edge and Firefox */
.food-menu-cat-box {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.food-menu-cat {
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Align cuisine filter on desktop */
@media (min-width: 992px) {
    .offset-lg-3 {
        margin-left: 25%;
    }

    .food-menu-wrapper {
        padding-left: 15px;
    }
}

/* Cuisine types row - horizontally scrollable */
.cuisine-types-wrapper {
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Align cuisine types wrapper with restaurant results */
@media (min-width: 992px) {
    .row .col-lg-9.offset-lg-3 {
        padding-right: 15px !important;
    }
    
    .cuisine-types-wrapper {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Make cuisine container match the width of the restaurant content */
    #restaurants, 
    .col-lg-9.offset-lg-3 {
        width: 75%;
        flex: 0 0 75%;
    }
    
    /* Update styles for cuisine types inside main content */
    #restaurants .cuisine-types-wrapper {
        margin-bottom: 20px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }
}

/* Remove sticky behavior from cuisine types */
@media (max-width: 991px) {
    .cuisine-types-wrapper {
        border-radius: 10px;
        margin-bottom: 15px;
    }
}

.cuisine-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    position: relative;
    flex: 1;
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .cuisine-scroll-container::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for IE, Edge and Firefox */
.cuisine-scroll-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.cuisine-type {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Apply hover effect only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .cuisine-type:hover:not(.active) {
        background-color: rgba(139, 176, 63, 0.1);
        color: #8bb03f;
    }
}

.cuisine-type.active {
    background-color: #8bb03f;
    color: white;
}

/* Filter options row - horizontally scrollable */
.filters-wrapper {
    padding: 15px;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Sticky and fixed styles for mobile */
@media (max-width: 991px) {
    .sticky-filter-container {
        margin: 0;
        padding: 0;
    }

    .filters-wrapper {
        width: 100%;
        border-radius: 0;
        transition: box-shadow 0.3s ease;
        margin-bottom: 15px;
    }
        /* Remove old fixed styles */
        .filters-wrapper.sticky-filter {
            position: relative;
        }
    /* Placeholder to prevent content jump when filter becomes fixed */
    .filter-placeholder {
        display: none;
        width: 100%;
        height: 0;
    }
    /* Add padding to container to prevent content from jumping */
    .restaurant-main-container {
        padding-top: 15px;
    }
}

.filters-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    gap: 8px;
    position: relative;
    flex: 1;
    width: 100%;
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .filters-scroll-container::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for IE, Edge and Firefox */
.filters-scroll-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.filter-option {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 30px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Apply hover effect only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .filter-option:hover:not(.active) {
        background-color: rgba(139, 176, 63, 0.1);
        color: #8bb03f;
    }
}

.filter-option.active {
    background-color: #8bb03f;
    color: white;
}

/* Filter icon button */
.filter-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #8bb03f;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 10px;
    z-index: 100;
}

    .filter-icon-btn:hover {
        background-color: #7a9b36;
    }

/* Custom Dropdown Implementation */
.custom-sort-dropdown,
.custom-sort-dropdown-sidebar {
    display: inline-block;
    position: relative;
}

.custom-dropdown-toggle {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    border: none;
}

/* Apply hover effect only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .custom-dropdown-toggle:hover:not(.active) {
        background-color: rgba(139, 176, 63, 0.05);
        color: #8bb03f;
    }
}

.custom-dropdown-toggle.active {
    background-color: #8bb03f;
    color: white;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 8px 0;
    margin-top: 2px;
    z-index: 99999;
}

    .custom-dropdown-menu.show {
        display: block !important;
    }

.custom-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Apply hover effect only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .custom-dropdown-item:hover {
        background-color: rgba(139, 176, 63, 0.05);
        color: #8bb03f;
    }
}

.custom-dropdown-item.active {
    background-color: rgba(139, 176, 63, 0.1);
    color: #8bb03f;
}

/* Make sidebar dropdown fill width */
.custom-sort-dropdown-sidebar {
    width: 100%;
}

    .custom-sort-dropdown-sidebar .custom-dropdown-toggle {
        width: 100%;
        display: flex;
        align-items: center;
    }

/* Modal customizations */
.modal-dialog {
    max-width: 400px;
}

.modal-body {
    padding: 20px 30px;
}

.checkbox-element .form-check,
.radio-element .form-check {
    margin-bottom: 10px;
}

.checkbox-element .form-check-label,
.radio-element .form-check-label {
    font-size: 14px;
    margin-left: 8px;
}

/* Food menu wrapper styles */
.food-menu-wrapper {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    background-color: white;
    z-index: 1020;
    padding: 10px 0;
    margin-bottom: 10px;
}

/* Selected delivery options banner */
.delivery-options-banner {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.selected-options-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.selected-option {
    display: flex;
    align-items: center;
    font-size: 14px;
    background-color: white;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .selected-option i {
        color: var(--mb-colour);
    }

.edit-option {
    font-size: 14px;
    color: var(--mb-colour);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

    .edit-option:hover {
        background-color: var(--mb-colour);
        color: white;
    }

@media (max-width: 767px) {
    .selected-options-wrapper {
        justify-content: flex-start;
    }
}

/* Disable tap highlight color on mobile devices */
.cuisine-type, .filter-option, .custom-dropdown-toggle, .custom-dropdown-item {
    -webkit-tap-highlight-color: transparent;
}

.cuisine-type {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Add touch-specific overrides to prevent any color changes on tap */
@media (pointer: coarse) {
    .cuisine-type:active, .cuisine-type:focus,
    .filter-option:active, .filter-option:focus,
    .custom-dropdown-toggle:active, .custom-dropdown-toggle:focus,
    .custom-dropdown-item:active, .custom-dropdown-item:focus {
        background-color: #f8f9fa !important;
        color: #333 !important;
        outline: none !important;
    }
    /* Keep active class styling */
    .cuisine-type.active,
    .filter-option.active,
    .custom-dropdown-toggle.active,
    .custom-dropdown-item.active {
        background-color: #8bb03f !important;
        color: white !important;
    }
    /* Specific override for dropdown items */
    .custom-dropdown-item.active {
        background-color: #f8f9fa !important;
        color: #8bb03f !important;
    }
}

/* More aggressive overrides for touch devices to prevent any color changes */
.cuisine-scroll-container a,
.filters-scroll-container a,
.cuisine-type,
.filter-option,
.custom-dropdown-toggle,
.custom-dropdown-item {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    /* Disable all transitions on touch devices to prevent flash of color */
    transition: none !important;
}

/* Completely disable any hover, active or focus states on touch devices */
@media (pointer: coarse) {
    .cuisine-type:hover:not(.active),
    .filter-option:hover:not(.active),
    .custom-dropdown-toggle:hover:not(.active),
    .custom-dropdown-item:hover:not(.active),
    .cuisine-type:active:not(.active),
    .filter-option:active:not(.active),
    .custom-dropdown-toggle:active:not(.active),
    .custom-dropdown-item:active:not(.active),
    .cuisine-type:focus:not(.active),
    .filter-option:focus:not(.active),
    .custom-dropdown-toggle:focus:not(.active),
    .custom-dropdown-item:focus:not(.active) {
        color: #333 !important;
        background-color: #f8f9fa !important;
        text-decoration: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
}

/* Add specific styles for WebKit browsers (Safari, Chrome on iOS) */
@media (pointer: coarse) {
    .cuisine-type,
    .filter-option,
    .custom-dropdown-toggle,
    .custom-dropdown-item {
        /* Force hardware acceleration to avoid flashes */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Add touch-action properties to scrollable containers */
.cuisine-scroll-container,
.filters-scroll-container {
    touch-action: pan-x !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

    /* Add specific reset for <a> tags to prevent any browser default behavior */
    .cuisine-scroll-container a,
    .filters-scroll-container a {
        color: #333;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-appearance: none !important;
        outline: none !important;
    }

        .cuisine-scroll-container a.active,
        .filters-scroll-container a.active {
            color: white !important;
        }

/* CSS to capture and disable touch behavior */
@media (pointer: coarse) {
    .cuisine-type::before,
    .filter-option::before,
    .custom-dropdown-toggle::before,
    .custom-dropdown-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        pointer-events: none;
    }
}

/* Global fix for iOS tap highlight */
html {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Target iOS specifically */
@supports (-webkit-touch-callout: none) {
    .cuisine-type,
    .filter-option,
    .custom-dropdown-toggle,
    .custom-dropdown-item {
        /* Override iOS highlight behavior */
        -webkit-tap-highlight-color: transparent !important;
        highlight-color: transparent !important;
        color: #333 !important;
    }

        .cuisine-type.active,
        .filter-option.active {
            color: white !important;
        }

        .custom-dropdown-item.active {
            color: #8bb03f !important;
        }
}

/* Update left pane and modal checkbox styling to match Default.cshtml */
.switch-style1 {
    position: relative;
}

.form-check.form-switch {
    padding-left: 0;
    margin-bottom: 15px;
}

    .form-check.form-switch .form-check-input {
        margin-top: 0;
        margin-left: 0;
        width: 55px;
        height: 30px;
        background-color: #aaaaaa;
        border: none;
        cursor: pointer;
    }

        .form-check.form-switch .form-check-input:checked {
            background-color: #8bb03f;
            box-shadow: none;
        }

    .form-check.form-switch .form-check-label {
        margin-left: 12px;
        font-size: 14px;
        cursor: pointer;
    }

/* Updated filter options to consistently use green color when active */
.filter-option.active,
.custom-dropdown-toggle.active,
button.filter-option.active,
a.filter-option.active {
    background-color: #8bb03f !important;
    color: white !important;
}

/* Update hover states to show green color */
@media (hover: hover) and (pointer: fine) {
    .filter-option:hover:not(.active),
    .custom-dropdown-toggle:hover:not(.active) {
        background-color: rgba(139, 176, 63, 0.1);
        color: #8bb03f;
    }
}

/* Make sure sorting dropdowns use the same color scheme */
.custom-dropdown-item.active,
.sort-option.active,
.sort-option-sidebar.active {
    color: #8bb03f !important;
    background-color: rgba(139, 176, 63, 0.1) !important;
}

@media (hover: hover) and (pointer: fine) {
    .custom-dropdown-item:hover:not(.active) {
        color: #8bb03f !important;
        background-color: rgba(139, 176, 63, 0.05) !important;
    }
}

/* Fix checkmark position and size */
.custom_checkbox .checkmark {
    height: 22px;
    width: 22px;
}

    .custom_checkbox .checkmark:after {
        left: 8px;
        top: 3px;
        width: 6px;
        height: 12px;
    }

/* Ensure proper spacing for checkbox groups */
.checkbox-element .form-check,
.radio-element .form-check {
    margin-bottom: 15px;
}

/* Make custom_checkbox use the green color */
.custom_checkbox input:checked ~ .checkmark {
    background-color: #8bb03f;
    border-color: #8bb03f;
}

/* Add switch-style1 to match Default.cshtml */
.widget-wrapper .mb15 {
    margin-bottom: 15px;
}

/* Update form-check-input styles to match Default.cshtml */
.switch-style1 input.form-check-input {
    background-color: #aaaaaa;
    border: none;
    height: 30px;
    width: 55px;
}

.switch-style1 .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-position: left center;
    transition: background-position 0.15s ease-in-out;
}

    .switch-style1 .form-check-input:checked {
        background-color: #8bb03f;
        box-shadow: none;
    }

    .switch-style1 .form-check-input:focus {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
        box-shadow: none;
        outline: none;
    }

.switch-style1 label.form-check-label {
    color: var(--headings-color);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0em;
    line-height: 30px;
    margin-left: 17px;
}

/* Old checkbox styles to remove or override */
.form-check.form-switch .form-check-input {
    margin-top: 0;
    margin-left: 0;
    width: 55px;
    height: 30px;
    background-color: #aaaaaa;
    border: none;
    cursor: pointer;
}

    .form-check.form-switch .form-check-input:checked {
        background-color: #8bb03f;
        box-shadow: none;
    }

.form-check.form-switch .form-check-label {
    margin-left: 12px;
    font-size: 14px;
    cursor: pointer;
}

/* Cuisine toggle buttons */
.cuisine-toggle-btn {
    display: inline-block;
    margin-top: 5px;
    margin-left: 10px;
    color: #8bb03f !important;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

    .cuisine-toggle-btn:hover {
        text-decoration: underline;
        color: #1c54d7;
    }

@media (max-width: 991px) {
    .cuisine-toggle-btn {
        display: none !important;
    }
}

/* Structure changes to ensure the badge is positioned correctly */
.listing-style1 {
    display: flex;
    flex-direction: column;
}

    .listing-style1 .listing-thumb {
        width: 100%;
    }

@media (min-width: 768px) {
    .listing-style1 {
        flex-direction: row;
        align-items: flex-start;
    }

    .listing-thumb {
        width: auto;
        flex: 0 0 auto;
    }

    .list-content {
        flex: 1;
        width: auto;
    }

    .sponsored-label {
        width: auto;
        text-align: left;
        padding-left: 15px;
        margin-top: 10px;
    }
}

/* Mobile layout fixes */
@media (max-width: 767.98px) {
    .listing-style1 {
        flex-direction: column;
    }

        .listing-style1 .d-flex.flex-column {
            width: 100%;
        }

    .min-width-230 {
        width: 100%;
        max-width: 100%;
    }

    .text-start.py-1 {
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .list-content {
        padding-top: 0 !important;
    }
}

/* Rating badge styling */
.rating-badge {
    color: #212529;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    margin-right: 8px;
}

/* Make title display properly next to rating */
.list-title {
    margin-left: 0;
}

/* Ensure responsive behavior for the restaurant name and rating */
@media (max-width: 576px) {
    .d-flex.justify-content-between.align-items-center.mb10 {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .list-title {
        font-size: 16px;
        margin-right: 5px;
    }
}

/* Highlight matched text in search results */
.highlight {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 0 2px;
    border-radius: 2px;
}

/* Restaurant hiding for search */
.restaurant-card.search-hidden {
    display: none !important;
}

/* Fix for purchase button to prevent wrapping to multiple lines */
.list-content .ud-btn.btn-thm {
    white-space: nowrap !important;
    width: auto !important;
}

/* Mobile search box styles */
.mobile-search-box {
    position: relative;
    flex: 1;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

    .mobile-search-box .form-control {
        border-radius: 30px;
        padding: 8px 32px 8px 12px;
        border: 1px solid #ced4da;
        height: 38px;
        width: 100%;
        background-color: #f8f9fa;
    }

        .mobile-search-box .form-control:focus {
            box-shadow: none;
            border-color: #8bb03f;
        }

    .mobile-search-box .btn-clear-search {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #6c757d;
        padding: 0;
        font-size: 14px;
        cursor: pointer;
        display: none;
    }

/* Filter row layout for mobile */
.filters-wrapper {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.filter-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #8bb03f;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .filter-icon-btn:hover {
        background-color: #7a9b36;
    }

/* Make the sticky filter container handle transitions properly */
.sticky-filter-container {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #f7f7f7;
    padding: 10px 0;
    transition: box-shadow 0.3s ease;
}

.sticky-filter-container.sticky {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}