.tourism-card {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(25, 41, 66, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    background: #fff;
    overflow: hidden;
}

.tourism-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.tourism-card .image-wrapper {
    position: relative;
    overflow: hidden;
}

.tourism-card .image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tourism-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.tourism-card .wt-listing-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;
}

.tourism-card .wt-listing-actions a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tourism-card .wt-listing-actions a:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.tourism-card .wt-listing-actions a i {
    font-size: 20px;
    color: #ff4b4b;
}

.tourism-card .wt-listing-actions a i.fa-regular {
    color: #666;
}

.tourism-card .listing-place-timing {
    margin-bottom: 6px;
}

.tourism-card .card-body {
    padding: 16px;
}

.tourism-card h4 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tourism-card .list-category-label .badge {
    font-size: 15px;
}

.tourism-card .text-muted {
    font-size: 16px;
}

/* Filter Loader (Reused) */
.filter-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f96b39;
}

/* Filter Clear Button (Reused) */
.filter-clear-btn {
    padding: 6px 18px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    transition: 0.25s ease-in-out;
}

.filter-clear-btn:hover {
    background-color: #f96b39 !important;
    color: white !important;
    border-color: #f96b39 !important;
}

/* RESPONSIVE GRID LAYOUT – Adjusted for 500-1000px to look like Screenshot 1 (Stacked/Single or Dual Cards) */
@media (max-width: 499.98px) {
    .tourism-grid .row-cols-xs-1 {
        --bs-columns: 1;
    }
}

@media (min-width: 500px) and (max-width: 767.98px) {
    .tourism-grid .row-cols-sm-1 {
        --bs-columns: 1;
    }

    /* 1 card per row for 500-768px, like Screenshot 1 */
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .tourism-grid .row-cols-md-2 {
        --bs-columns: 2;
    }

    /* 2 cards per row for 768-992px */
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .tourism-grid .row-cols-lg-2 {
        --bs-columns: 2;
    }

    /* 2 cards per row for 992-1200px, similar to Screenshot 3 but stacked look */
}

@media (min-width: 1200px) {
    .tourism-grid .row-cols-xl-3 {
        --bs-columns: 3;
    }

    /* 3 cards on larger desktops */
}

.tourism-card .image-wrapper {
    height: 250px;
    /* Reused from your image-card height for consistency */
}

@media (max-width: 767.98px) {
    .tourism-card .image-wrapper {
        height: 250px;
        /* Keep square-ish for mobile, like Screenshot 1 */
    }
}

/* Mobile Filter Panel (Reused from your code) */
@media (max-width: 1199.98px) {
    .col-xl-4 {
        position: absolute;
        left: -9999px;
        width: 0;
        padding: 0;
        margin: 0;
    }

    .col-xl-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #mobile-filter {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: #ffffff;
        z-index: 1050;
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: left 0.3s ease;
        border-radius: 0 16px 16px 0;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
    }

    #mobile-filter.active {
        left: 0;
    }

    body.filter-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    #open-filter {
        display: block !important;
    }

    #mobile-filter .filter-header {
        position: relative;
        padding-right: 56px;
    }

    .filter-clear-btn {
        margin-right: 14px;
    }

    #close-filter {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1060;
        background: rgba(0, 0, 0, 0.05);
    }

    #close-filter i {
        font-size: 16px;
        pointer-events: none;
    }

    #amenities-wrapper {
        max-height: 260px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Desktop Filter */
@media (min-width: 1200px) {
    #mobile-filter {
        position: static;
        height: 690px;
        width: auto;
        box-shadow: none;
        border-radius: 0;
        padding: inherit;
        overflow: visible;
        background: transparent;
        transition: none;
    }

    #open-filter {
        display: none !important;
    }
}

/* Custom Scrollbar (Reused) */
#mobile-filter {
    scrollbar-width: thin;
    scrollbar-color: #f96b39 #f1f1f1;
}

#mobile-filter::-webkit-scrollbar {
    width: 6px;
}

#mobile-filter::-webkit-scrollbar-thumb {
    background-color: #f96b39;
    border-radius: 6px;
}

/* ==================================================
   FINAL MOBILE CARD FIX (≤ 767px)
   Align + Badge + Heart like reference image
   ================================================== */
@media (max-width: 767.98px) {
    /* Center cards */
    .tourism-grid .row {
        display: block !important;
        margin: 0 !important;
    }

    .tourism-grid .row > div {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px 20px !important;
    }

    .tourism-card {
        width: 100%;
        margin: 0 auto 18px auto;
        border-radius: 14px;
        overflow: hidden;
    }

    /* IMAGE */
    .tourism-card .image-wrapper {
        position: relative;
        width: 100%;
        height: 220px;
        border-radius: 14px 14px 0 0;
        overflow: hidden;
    }

    .tourism-card .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* STATUS BADGE (Closed / Opened) */
    .tourism-card .listing-status,
    .tourism-card .badge-status {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 5;
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 6px;
        font-weight: 600;
        background: #dc3545;
        color: #fff;
    }

    /* HEART ICON */
    .tourism-card .wt-listing-actions {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 6;
    }

    .tourism-card .wt-listing-actions a {
        width: 34px;
        height: 34px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    .tourism-card .wt-listing-actions i {
        font-size: 16px;
        color: #ff4b4b;
    }

    /* CONTENT */
    .tourism-card .card-body {
        padding: 14px;
    }

    .tourism-card h4 {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .tourism-card .text-muted {
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* CATEGORY / TYPE BADGES */
    .tourism-card .list-category-label .badge {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 6px;
    }

    /* Heart container */
    .tourism-card .wt-listing-actions {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 10;
    }

    /* White circular background */
    .tourism-card .wt-listing-actions a {
        width: 36px;
        height: 36px;
        background: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;

        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    }

    /* Heart icon */
    .tourism-card .wt-listing-actions a i {
        font-size: 16px;
        color: #ff3b3b;
        line-height: 1;
    }

    /* Unfilled heart */
    .tourism-card .wt-listing-actions a i.fa-regular {
        color: #666;
    }
}

/* ==========================================
   GLOBAL HEART STYLE (ALL VIEWS)
   ========================================== */

/* Heart wrapper positioning */
.image-card {
    position: relative;
}

.image-card .wt-listing-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
}

/* White circular heart button */
.image-card .wt-listing-actions a {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover / tap effect */
.image-card .wt-listing-actions a:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* Heart icon */
.image-card .wt-listing-actions a i {
    font-size: 16px;
    line-height: 1;
    color: #ff3b3b;
}

/* Unfilled heart */
.image-card .wt-listing-actions a i.fa-regular {
    color: #666;
}

/* === ALIGN FILTER & LIST SECTIONS PERFECTLY === */
.side-bar,
.side-bar-opposite {
    margin-top: 0;
}

.filter-header {
    margin-bottom: 1rem;
}

.float-input-control {
    margin-top: 0;
}

.side-bar .filter-header {
    padding-top: 15px;
}
/* =================== MOBILE FILTER HAMBURGER =================== */
.mobile-filter-toggle {
    position: fixed;
    top: 250px;
    right: 16px;
    z-index: 999;
    background: #f96b39;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    background: #d96328;
    transform: scale(1.05);
}

.mobile-filter-toggle i {
    font-size: 20px;
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter-overlay.active {
    opacity: 1;
}

.mobile-filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #f4f2ee;
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
}

.mobile-filter-drawer.active {
    right: 0;
}

.mobile-filter-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 16px;
    border-bottom: 1px solid #d4d2ce;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.mobile-filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-filter-close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.mobile-filter-content {
    padding: 0;
}

.mobile-filter-content .side-bar {
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 16px;
    margin: 0;
}

.mobile-filter-content .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
}

.mobile-filter-content .wt-separator {
    margin: 8px 0 16px;
}

.mobile-filter-content .form-control,
.mobile-filter-content .form-select,
.mobile-filter-content .form-float-input {
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #d4d2ce;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-filter-content .form-control:focus,
.mobile-filter-content .form-select:focus,
.mobile-filter-content .form-float-input:focus {
    border-color: #f96b39;
    box-shadow: 0 0 0 2px rgba(249, 107, 57, 0.1);
}

.mobile-filter-content .float-input-control label {
    font-size: 13px;
}

.mobile-filter-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.mobile-filter-content .form-check {
    padding: 10px 0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    min-height: 24px;
    position: relative;
}

.mobile-filter-content .form-check-input {
    width: 20px !important;
    height: 20px !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid #ced4da !important;
    border-radius: 0.25em !important;
    background-color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    position: relative !important;
}

.mobile-filter-content .form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.mobile-filter-content .form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.mobile-filter-content .form-check-label {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
    margin-left: 12px;
    cursor: pointer;
    line-height: 1.4;
    flex: 1;
}

/* Ensure amenity checkboxes are visible */
.amenity-item-mobile .form-check-input {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
}

.mobile-filter-content .btn-primary {
    background: #f96b39;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(249, 107, 57, 0.2);
    transition: all 0.2s;
}

.mobile-filter-content .btn-primary:hover {
    background: #d96328;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 107, 57, 0.3);
}

.mobile-filter-content .filter-clear-btn {
    font-size: 12px;
    padding: 4px 12px;
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .desktop-filter-sidebar {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-filter-toggle,
    .mobile-filter-overlay,
    .mobile-filter-drawer {
        display: none !important;
    }
}

.mobile-filter-content .form-check {
    padding-left: 1.75em;

    margin-bottom: 0.5rem;

    min-height: 1.5rem;
}

.mobile-filter-content .form-check-input {
    float: left;

    margin-left: -1.75em;

    width: 1em;

    height: 1em;

    margin-top: 0.25em;

    vertical-align: top;

    cursor: pointer;
}

.mobile-filter-content .form-check-label {
    cursor: pointer;

    font-size: 14px;

    color: rgba(0, 0, 0, 0.8);
}
/* Filter Count Badge */
.mobile-filter-toggle {
    overflow: visible;
}

.filter-count-badge {
    display: none;
    background: #0a66c2;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    position: absolute;
    top: -4px;
    right: -4px;
}

/* Clear All link in drawer header */
.mobile-clear-all-link {
    font-size: 13px;
    font-weight: 600;
    color: #f96b39;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #f96b39;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-clear-all-link:hover {
    background: #f96b39;
    color: #fff;
}

/* Reset link below Apply */
.reset-link {
    display: block;
    text-align: center;
    color: rgba(0, 0, 0, 0.64);
    font-size: 14px;
    margin-top: 6px;
    text-decoration: none;
    font-weight: 700;
}

.reset-link:hover {
    color: #f96b39;
}
