/* Modern Card Styles for All Modules */
/* Web App feel on desktop, Mobile App feel on mobile */

/* ===== GLOBAL CARD STYLES ===== */
.item-loop,
.item-tour {
    /* Modern card base styles */
    background: #ffffff;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Desktop hover effects (web app feel) */
@media (min-width: 768px) {
    .item-loop:hover,
    .item-tour:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
        transform: translateY(-2px);
    }
}

/* Mobile styles (mobile app feel) */
@media (max-width: 767px) {
    .item-loop,
    .item-tour {
        border-radius: 12px !important;
        margin-bottom: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    }
    
    /* Mobile card container */
    .bravo-list-tour .list-item,
    .bravo-list-space .list-item,
    .bravo-list-hotel .list-item,
    .bravo-list-car .list-item,
    .bravo-list-event .list-item,
    .bravo-list-boat .list-item {
        padding: 0 8px;
    }
}

/* ===== THUMB IMAGE STYLES ===== */
.item-loop .thumb-image,
.item-tour .thumb-image {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    position: relative;
    border-radius: 16px 16px 0 0;
}

/* Desktop image height */
@media (min-width: 768px) {
    .item-loop .thumb-image,
    .item-tour .thumb-image {
        height: 200px;
    }
}

/* Mobile image height */
@media (max-width: 767px) {
    .item-loop .thumb-image,
    .item-tour .thumb-image {
        height: 160px;
        border-radius: 12px 12px 0 0;
    }
}

.item-loop .thumb-image img,
.item-tour .thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Desktop image hover */
@media (min-width: 768px) {
    .item-loop .thumb-image:hover img,
    .item-tour .thumb-image:hover img {
        transform: scale(1.05);
    }
}

/* ===== FEATURED BADGE STYLES ===== */
.item-loop .featured,
.item-tour .featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Remove old featured styles */
.item-loop .featured:after,
.item-tour .featured:after {
    display: none !important;
}

@media (max-width: 767px) {
    .item-loop .featured,
    .item-tour .featured {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 4px 10px;
        border-radius: 16px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .item-loop .featured,
    .item-tour .featured {
        font-size: 9px;
        padding: 3px 8px;
        max-width: 80px;
    }
}

/* ===== SALE BADGE BOTTOM RIGHT ===== */
.item-loop .sale_info, .item-tour .sale_info {
    position: absolute;
    bottom: 0;
    right: 0;
    top: auto;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 0 0 0 0;
    border-radius: 16px 0 16px 0;
    z-index: 16;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.18);
    min-width: 48px;
    min-height: 60px;
    width: 44px;
    height: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: box-shadow 0.2s;
}
.item-loop .sale_info span, .item-tour .sale_info span {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.item-loop .sale_info small, .item-tour .sale_info small {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 2px;
}
@media (max-width: 767px) {
    .item-loop .sale_info, .item-tour .sale_info {
        min-width: 36px;
        width: 36px;
        height: 44px;
        min-height: 44px;
        font-size: 13px;
        border-radius: 12px 0 12px 0;
    }
    .item-loop .sale_info span, .item-tour .sale_info span {
        font-size: 15px;
    }
}
@media (max-width: 480px) {
    .item-loop .sale_info, .item-tour .sale_info {
        min-width: 28px;
        width: 28px;
        height: 32px;
        min-height: 32px;
        font-size: 11px;
        border-radius: 8px 0 8px 0;
    }
    .item-loop .sale_info span, .item-tour .sale_info span {
        font-size: 12px;
    }
}

/* ===== WISHLIST ICON TOP RIGHT, ALIGNED WITH FEATURED ===== */
.item-loop .service-wishlist, .item-tour .service-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.98);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border: 1px solid #f1f5f9;
    z-index: 20;
    transition: box-shadow 0.2s, background 0.2s;
}
@media (max-width: 767px) {
    .item-loop .service-wishlist, .item-tour .service-wishlist {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }
}
@media (max-width: 480px) {
    .item-loop .service-wishlist, .item-tour .service-wishlist {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
    }
}

/* ===== REMOVE SMART POSITIONING FOR WISHLIST WHEN SALE BADGE PRESENT ===== */
.item-loop .thumb-image:has(.sale_info) .service-wishlist,
.item-tour .thumb-image:has(.sale_info) .service-wishlist {
    right: 12px;
    top: 12px;
}
@media (max-width: 767px) {
    .item-loop .thumb-image:has(.sale_info) .service-wishlist,
    .item-tour .thumb-image:has(.sale_info) .service-wishlist {
        right: 8px;
        top: 8px;
    }
}
@media (max-width: 480px) {
    .item-loop .thumb-image:has(.sale_info) .service-wishlist,
    .item-tour .thumb-image:has(.sale_info) .service-wishlist {
        right: 6px;
        top: 6px;
    }
}

/* ===== WISHLIST ICON MODERN LOOK ===== */
.item-loop .service-wishlist i, .item-tour .service-wishlist i {
    color: #64748b;
    font-size: 18px;
    transition: color 0.2s;
}
.item-loop .service-wishlist.active i, .item-tour .service-wishlist.active i {
    color: #ef4444;
}
@media (max-width: 767px) {
    .item-loop .service-wishlist i, .item-tour .service-wishlist i {
        font-size: 15px;
    }
}
@media (max-width: 480px) {
    .item-loop .service-wishlist i, .item-tour .service-wishlist i {
        font-size: 13px;
    }
}

/* ===== POSITIONING LOGIC FOR MULTIPLE ELEMENTS ===== */
/* When both sale info and wishlist are present */
.item-loop .thumb-image:has(.sale_info) .service-wishlist,
.item-tour .thumb-image:has(.sale_info) .service-wishlist {
    top: 12px;
    right: 60px;
}

@media (max-width: 767px) {
    .item-loop .thumb-image:has(.sale_info) .service-wishlist,
    .item-tour .thumb-image:has(.sale_info) .service-wishlist {
        top: 8px;
        right: 50px;
    }
}

@media (max-width: 480px) {
    .item-loop .thumb-image:has(.sale_info) .service-wishlist,
    .item-tour .thumb-image:has(.sale_info) .service-wishlist {
        right: 45px;
    }
}

/* When both featured and sale info are present */
.item-loop .thumb-image:has(.featured):has(.sale_info) .sale_info,
.item-tour .thumb-image:has(.featured):has(.sale_info) .sale_info {
    top: 12px;
    right: 12px;
}

/* When both featured and wishlist are present */
.item-loop .thumb-image:has(.featured):has(.service-wishlist) .service-wishlist,
.item-tour .thumb-image:has(.featured):has(.service-wishlist) .service-wishlist {
    top: 12px;
    right: 12px;
}

/* When all three elements are present */
.item-loop .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .sale_info,
.item-tour .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .sale_info {
    top: 12px;
    right: 60px;
}

.item-loop .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .service-wishlist,
.item-tour .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .service-wishlist {
    top: 12px;
    right: 12px;
}

@media (max-width: 767px) {
    .item-loop .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .sale_info,
    .item-tour .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .sale_info {
        top: 8px;
        right: 50px;
    }
    
    .item-loop .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .service-wishlist,
    .item-tour .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .service-wishlist {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .item-loop .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .sale_info,
    .item-tour .thumb-image:has(.featured):has(.sale_info):has(.service-wishlist) .sale_info {
        right: 45px;
    }
}

/* ===== LOCATION STYLES ===== */
.item-loop .location,
.item-tour .location {
    padding: 16px 20px 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.item-loop .location i,
.item-tour .location i {
    color: #3b82f6;
    margin-right: 6px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .item-loop .location,
    .item-tour .location {
        padding: 12px 16px 6px;
        font-size: 12px;
    }
}

/* ===== TITLE STYLES ===== */
.item-loop .item-title,
.item-tour .item-title {
    padding: 0 20px 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    min-height: auto;
}

.item-loop .item-title a,
.item-tour .item-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-loop .item-title a:hover,
.item-tour .item-title a:hover {
    color: #3b82f6;
}

@media (max-width: 767px) {
    .item-loop .item-title,
    .item-tour .item-title {
        padding: 0 16px 10px;
        font-size: 15px;
    }
}

/* ===== REVIEW STYLES ===== */
.item-loop .service-review,
.item-tour .service-review {
    padding: 0 20px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-loop .service-review .list-star,
.item-tour .service-review .list-star {
    display: flex;
    align-items: center;
}

.item-loop .service-review .list-star .booking-item-rating-stars,
.item-tour .service-review .list-star .booking-item-rating-stars {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.item-loop .service-review .list-star .booking-item-rating-stars li,
.item-tour .service-review .list-star .booking-item-rating-stars li {
    margin: 0;
}

.item-loop .service-review .list-star .booking-item-rating-stars li .fa,
.item-tour .service-review .list-star .booking-item-rating-stars li .fa {
    color: #fbbf24;
    font-size: 14px;
}

.item-loop .service-review .review,
.item-tour .service-review .review {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 767px) {
    .item-loop .service-review,
    .item-tour .service-review {
        padding: 0 16px 12px;
    }
    
    .item-loop .service-review .list-star .booking-item-rating-stars li .fa,
    .item-tour .service-review .list-star .booking-item-rating-stars li .fa {
        font-size: 12px;
    }
    
    .item-loop .service-review .review,
    .item-tour .service-review .review {
        font-size: 12px;
    }
}

/* ===== PRICE STYLES ===== */
.item-loop .info,
.item-tour .info {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.item-loop .info .g-price,
.item-tour .info .g-price {
    text-align: right;
}

.item-loop .info .g-price .price,
.item-tour .info .g-price .price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.item-loop .info .g-price .price .text-price,
.item-tour .info .g-price .price .text-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.item-loop .info .g-price .price .onsale,
.item-tour .info .g-price .price .onsale {
    font-size: 13px;
    color: #ef4444;
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: 2px;
}

.item-loop .info .g-price .prefix,
.item-tour .info .g-price .prefix {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 767px) {
    .item-loop .info,
    .item-tour .info {
        padding: 0 16px 16px;
    }
    
    .item-loop .info .g-price .price .text-price,
    .item-tour .info .g-price .price .text-price {
        font-size: 16px;
    }
    
    .item-loop .info .g-price .price .onsale,
    .item-tour .info .g-price .price .onsale {
        font-size: 12px;
    }
}

/* ===== AMENITIES STYLES ===== */
.item-loop .amenities,
.item-tour .amenities {
    padding: 16px 20px 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
}

.item-loop .amenities .amenity,
.item-tour .amenities .amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.item-loop .amenities .amenity .input-icon,
.item-tour .amenities .amenity .input-icon {
    font-size: 16px;
    color: #3b82f6;
}

@media (max-width: 767px) {
    .item-loop .amenities,
    .item-tour .amenities {
        padding: 12px 16px 16px;
    }
    
    .item-loop .amenities .amenity,
    .item-tour .amenities .amenity {
        font-size: 10px;
    }
    
    .item-loop .amenities .amenity .input-icon,
    .item-tour .amenities .amenity .input-icon {
        font-size: 14px;
    }
}

/* ===== SPECIAL MODULE STYLES ===== */

/* Space module specific */
.item-loop .price-wrapper {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 12px;
    color: #ffffff;
}

.item-loop .price-wrapper .price .text-price {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
}

.item-loop .price-wrapper .price .onsale {
    color: #fbbf24 !important;
    font-size: 12px;
}

@media (max-width: 767px) {
    .item-loop .price-wrapper {
        bottom: 8px;
        left: 8px;
        padding: 6px 10px;
        border-radius: 10px;
    }
    
    .item-loop .price-wrapper .price .text-price {
        font-size: 14px;
    }
}

/* Event module specific */
.item-loop .start-time {
    padding: 8px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 767px) {
    .item-loop .start-time {
        padding: 6px 16px;
        font-size: 11px;
    }
}

/* ===== CONTAINER STYLES ===== */
.bravo-list-tour,
.bravo-list-space,
.bravo-list-hotel,
.bravo-list-car,
.bravo-list-event,
.bravo-list-boat {
    margin: 40px 0;
}

.bravo-list-tour .title,
.bravo-list-space .title,
.bravo-list-hotel .title,
.bravo-list-car .title,
.bravo-list-event .title,
.bravo-list-boat .title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-align: center;
}

.bravo-list-tour .sub-title,
.bravo-list-space .sub-title,
.bravo-list-hotel .sub-title,
.bravo-list-car .sub-title,
.bravo-list-event .sub-title,
.bravo-list-boat .sub-title {
    font-size: 16px;
    color: #64748b;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
}

@media (max-width: 767px) {
    .bravo-list-tour,
    .bravo-list-space,
    .bravo-list-hotel,
    .bravo-list-car,
    .bravo-list-event,
    .bravo-list-boat {
        margin: 24px 0;
    }
    
    .bravo-list-tour .title,
    .bravo-list-space .title,
    .bravo-list-hotel .title,
    .bravo-list-car .title,
    .bravo-list-event .title,
    .bravo-list-boat .title {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .bravo-list-tour .sub-title,
    .bravo-list-space .sub-title,
    .bravo-list-hotel .sub-title,
    .bravo-list-car .sub-title,
    .bravo-list-event .sub-title,
    .bravo-list-boat .sub-title {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

/* ===== CAROUSEL STYLES ===== */
.owl-carousel .item-loop,
.owl-carousel .item-tour {
    margin-bottom: 0;
}

/* ===== BOX SHADOW STYLE OVERRIDE ===== */
.bravo-list-tour.box_shadow .list-item .item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .bravo-list-tour.box_shadow .list-item .item:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }
}

@media (max-width: 767px) {
    .bravo-list-tour.box_shadow .list-item .item {
        border-radius: 12px;
        margin-bottom: 16px;
    }
}

/* ===== FLIGHT MODULE SPECIFIC ===== */
.card.shadow-hover-3 {
    background: #ffffff;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .card.shadow-hover-3:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
        transform: translateY(-2px);
    }
}

@media (max-width: 767px) {
    .card.shadow-hover-3 {
        border-radius: 12px !important;
        margin-bottom: 16px;
    }
}

/* ===== UTILITY CLASSES ===== */
.modern-card {
    background: #ffffff;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .modern-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
        transform: translateY(-2px);
    }
}

@media (max-width: 767px) {
    .modern-card {
        border-radius: 12px !important;
    }
}

/* ===== ENHANCED RESPONSIVE STYLES FOR ALL CARD ELEMENTS ===== */

/* ===== ENHANCED PRICE STYLES ===== */
.item-loop .info .g-price .price,
.item-tour .info .g-price .price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.item-loop .info .g-price .price .text-price,
.item-tour .info .g-price .price .text-price {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.item-loop .info .g-price .price .unit,
.item-tour .info .g-price .price .unit {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

@media (max-width: 767px) {
    .item-loop .info .g-price .price,
    .item-tour .info .g-price .price {
        gap: 6px;
    }
    
    .item-loop .info .g-price .price .text-price,
    .item-tour .info .g-price .price .text-price {
        font-size: 13px;
    }
    
    .item-loop .info .g-price .price .unit,
    .item-tour .info .g-price .price .unit {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .item-loop .info .g-price .price,
    .item-tour .info .g-price .price {
        gap: 4px;
    }
    
    .item-loop .info .g-price .price .text-price,
    .item-tour .info .g-price .price .text-price {
        font-size: 12px;
    }
    
    .item-loop .info .g-price .price .unit,
    .item-tour .info .g-price .price .unit {
        font-size: 10px;
    }
}

/* ===== ENHANCED RATING STYLES ===== */
.item-loop .service-review .list-star,
.item-tour .service-review .list-star {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-loop .service-review .list-star .booking-item-rating-stars li .fa,
.item-tour .service-review .list-star .booking-item-rating-stars li .fa {
    color: #fbbf24;
    font-size: 14px;
}

.item-loop .service-review .review,
.item-tour .service-review .review {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 767px) {
    .item-loop .service-review .list-star .booking-item-rating-stars li .fa,
    .item-tour .service-review .list-star .booking-item-rating-stars li .fa {
        font-size: 12px;
    }
    
    .item-loop .service-review .review,
    .item-tour .service-review .review {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .item-loop .service-review .list-star .booking-item-rating-stars li .fa,
    .item-tour .service-review .list-star .booking-item-rating-stars li .fa {
        font-size: 11px;
    }
    
    .item-loop .service-review .review,
    .item-tour .service-review .review {
        font-size: 11px;
    }
}

/* ===== BUTTON STYLES ===== */
.item-loop .btn,
.item-tour .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.item-loop .btn-primary,
.item-tour .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.item-loop .btn-primary:hover,
.item-tour .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 767px) {
    .item-loop .btn,
    .item-tour .btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .item-loop .btn,
    .item-tour .btn {
        padding: 7px 14px;
        font-size: 12px;
        border-radius: 8px;
    }
}

/* ===== ENHANCED AMENITIES STYLES ===== */
.item-loop .amenities,
.item-tour .amenities {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.item-loop .amenities .amenity,
.item-tour .amenities .amenity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.item-loop .amenities .amenity .input-icon,
.item-tour .amenities .amenity .input-icon {
    color: #94a3b8;
    font-size: 12px;
}

@media (max-width: 767px) {
    .item-loop .amenities,
    .item-tour .amenities {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .item-loop .amenities .amenity,
    .item-tour .amenities .amenity {
        font-size: 11px;
    }
    
    .item-loop .amenities .amenity .input-icon,
    .item-tour .amenities .amenity .input-icon {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .item-loop .amenities,
    .item-tour .amenities {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .item-loop .amenities .amenity,
    .item-tour .amenities .amenity {
        font-size: 10px;
    }
    
    .item-loop .amenities .amenity .input-icon,
    .item-tour .amenities .amenity .input-icon {
        font-size: 10px;
    }
}

/* ===== ENHANCED LOCATION STYLES ===== */
.item-loop .location,
.item-tour .location {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.item-loop .location i,
.item-tour .location i {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .item-loop .location,
    .item-tour .location {
        font-size: 11px;
    }
    
    .item-loop .location i,
    .item-tour .location i {
        font-size: 11px;
    }
}

/* ===== ENHANCED TITLE STYLES ===== */
.item-loop .item-title,
.item-tour .item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 2.8em;
}

@media (max-width: 480px) {
    .item-loop .item-title,
    .item-tour .item-title {
        font-size: 14px;
        padding: 0 16px 8px;
    }
}

/* ===== FALLBACK FOR OLDER BROWSERS ===== */
/* For browsers that don't support :has() selector */
@supports not (selector(:has(*))) {
    .item-loop .service-wishlist,
    .item-tour .service-wishlist {
        top: 12px;
        right: 12px;
    }
    
    .item-loop .sale_info,
    .item-tour .sale_info {
        top: 12px;
        right: 12px;
    }
    
    @media (max-width: 767px) {
        .item-loop .service-wishlist,
        .item-tour .service-wishlist {
            top: 8px;
            right: 8px;
        }
        
        .item-loop .sale_info,
        .item-tour .sale_info {
            top: 8px;
            right: 8px;
        }
    }
}
