/**
 * UNIFIED LISTING CARD COMPONENT - GLOBAL STYLES
 * Consistent styling across all pages: welcome, rentals, roommates, my-account
 * HIGH SPECIFICITY to override any conflicting styles
 */

/* === PRIMARY LISTING CARD CONTAINERS === */
/* Ultra-high specificity selectors to ensure consistent styling across ALL pages */
body .featured-each,
body .listing-card,
.featured-slick .featured-each,
.listings-grid .featured-each,
.roommates-grid .featured-each,
.search-slick .featured-each,
.rental-listings-slick .featured-each,
.roommate-listings-slick .featured-each {
    background: #fff !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    margin: 0 !important;
}

/* === HOVER STATES === */
body .featured-each:hover,
body .listing-card:hover,
.featured-slick .featured-each:hover,
.listings-grid .featured-each:hover,
.roommates-grid .featured-each:hover,
.search-slick .featured-each:hover,
.rental-listings-slick .featured-each:hover,
.roommate-listings-slick .featured-each:hover {
    /* transform: translateY(-5px) !important; */
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important; */
}

/* === INNER CONTAINERS === */
body .listing-card-inner,
body .each-box,
.featured-each .each-box,
.listing-card .listing-card-inner,
.featured-slick .featured-each .each-box,
.listings-grid .featured-each .each-box,
.roommates-grid .featured-each .each-box,
.search-slick .featured-each .each-box,
.rental-listings-slick .featured-each .each-box,
.roommate-listings-slick .featured-each .each-box {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* === IMAGE CONTAINERS === */
body .listing-card-image,
body .property-image,
.featured-each .property-image,
.listing-card .listing-card-image,
.featured-slick .featured-each .property-image,
.listings-grid .featured-each .property-image,
.roommates-grid .featured-each .property-image,
.search-slick .featured-each .property-image,
.rental-listings-slick .featured-each .property-image,
.roommate-listings-slick .featured-each .property-image {
    position: relative !important;
    height: 240px !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .listing-card-image { height: 220px; }
}

@media (max-width: 480px) {
    .listing-card-image { height: 200px; }
}

/* === IMAGE ELEMENTS === */
body .listing-card-image img,
body .property-image img,
.featured-each .property-image img,
.listing-card .listing-card-image img,
.featured-slick .featured-each .property-image img,
.listings-grid .featured-each .property-image img,
.roommates-grid .featured-each .property-image img,
.search-slick .featured-each .property-image img,
.rental-listings-slick .featured-each .property-image img,
.roommate-listings-slick .featured-each .property-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 !important;
}

/* === IMAGE HOVER EFFECTS === */
body .featured-each:hover .property-image img,
body .listing-card:hover .listing-card-image img,
.featured-slick .featured-each:hover .property-image img,
.listings-grid .featured-each:hover .property-image img,
.roommates-grid .featured-each:hover .property-image img,
.search-slick .featured-each:hover .property-image img,
.rental-listings-slick .featured-each:hover .property-image img,
.roommate-listings-slick .featured-each:hover .property-image img {
    transform: scale(1.02) !important;
}

/* === CONTENT CONTAINERS === */
body .listing-card-content,
body .property-content,
.featured-each .property-content,
.listing-card .listing-card-content,
.featured-slick .featured-each .property-content,
.listings-grid .featured-each .property-content,
.roommates-grid .featured-each .property-content,
.search-slick .featured-each .property-content,
.rental-listings-slick .featured-each .property-content,
.roommate-listings-slick .featured-each .property-content {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: transparent !important;
}

/* === BADGES === */
body .listing-card-badge,
body .badge-tag,
.featured-each .badge-tag,
.listing-card .listing-card-badge,
.featured-slick .featured-each .badge-tag,
.listings-grid .featured-each .badge-tag,
.roommates-grid .featured-each .badge-tag,
.search-slick .featured-each .badge-tag,
.rental-listings-slick .featured-each .badge-tag,
.roommate-listings-slick .featured-each .badge-tag {
    position: absolute !important;
    top: -20px !important;
    left: -12px !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    z-index: 10 !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.listing-card-badge.featured { background: linear-gradient(45deg, #FFD700, #FFA500); color: #000; font-weight: 800; animation: featuredGlow 2s ease-in-out infinite alternate; }
.listing-card-badge.popular { background: #BFDAA4; color: #000; }
.listing-card-badge.new { background: #28a745; color: #fff; }
.listing-card-badge.active { background: #BFDAA4; color: #000; }
.listing-card-badge.rental { background: #FED1BE; color: #000; }
.listing-card-badge.roommate { background: #BFDAA4; color: #000; }
.listing-card-badge.admin { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,0.4); border: 2px solid rgba(255,255,255,0.3); }
.listing-card-badge.id-verified { background: linear-gradient(45deg, #C0C0C0, #A9A9A9); color: #000; font-weight: 700; }
.listing-card-badge.gold-member { background: linear-gradient(45deg, #CD7F32, #8B4513); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.listing-card-badge img {
    width: 14px;
    height: 14px;
}

/* === DEFAULT PROFILE IMAGE STYLING === */
.default-profile-image {
    opacity: 0.85 !important;
    filter: grayscale(20%) !important;
}

/* === PRICE ROWS === */
body .listing-card-price-row,
body .price-box,
.featured-each .price-box,
.listing-card .listing-card-price-row,
.featured-slick .featured-each .price-box,
.listings-grid .featured-each .price-box,
.roommates-grid .featured-each .price-box,
.search-slick .featured-each .price-box,
.rental-listings-slick .featured-each .price-box,
.roommate-listings-slick .featured-each .price-box {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
}

/* === MANAGEMENT CONTEXT PRICE BOX FIX === */
/* Fix price positioning when heart icon is not present (management view) */
#profile-tab .price-box:not(:has(.heart-icon)):not(:has(.listing-card-heart)),
#listings .price-box:not(:has(.heart-icon)):not(:has(.listing-card-heart)),
.price-box:not(:has(.heart-icon)):not(:has(.listing-card-heart)) {
    justify-content: flex-start !important;
}

/* Fallback for browsers that don't support :has() selector */
#profile-tab .price-box > .price:only-child,
#listings .price-box > .price:only-child {
    width: 100% !important;
    text-align: left !important;
}

/* === FIX PRICE OVERLAPPING IMAGE === */
/* Ensure price text stays within content area and doesn't overlap image */
body .listing-card-price,
body .featured-each .price,
body .listing-card .price,
body .property-content .price,
body .price-box .price,
.featured-each .price,
.listing-card .listing-card-price,
.featured-slick .featured-each .price,
.listings-grid .featured-each .price,
.roommates-grid .featured-each .price,
.search-slick .featured-each .price,
.rental-listings-slick .featured-each .price,
.roommate-listings-slick .featured-each .price {
    position: relative !important;
    z-index: 1 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Ensure content area positioning is correct */
body .listing-card-content,
body .property-content,
.featured-each .property-content,
.listing-card .listing-card-content,
.featured-slick .featured-each .property-content,
.listings-grid .featured-each .property-content,
.roommates-grid .featured-each .property-content,
.search-slick .featured-each .property-content,
.rental-listings-slick .featured-each .property-content,
.roommate-listings-slick .featured-each .property-content {
    position: relative !important;
    z-index: 2 !important;
    top: auto !important;
    transform: none !important;
}

/* === SPECIFIC FIX FOR MANAGEMENT CONTEXT OVERLAPPING PRICE === */
/* Target manage listings page specifically */
#profile-tab #listings .featured-each .price-box,
#profile-tab #listings .property-content .price-box,
.roommate-listings-slick .featured-each .price-box,
.rental-listings-slick .featured-each .price-box {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    z-index: 1 !important;
}

/* Ensure price text in management view stays in place */
#profile-tab #listings .featured-each .price,
#profile-tab #listings .property-content .price,
.roommate-listings-slick .featured-each .price,
.rental-listings-slick .featured-each .price {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
}

/* === PRICE TEXT === */
body .listing-card-price,
body .featured-each .price,
body .listing-card .price,
body .property-content .price,
body .price-box .price,
.featured-each .price,
.listing-card .listing-card-price,
.featured-slick .featured-each .price,
.listings-grid .featured-each .price,
.roommates-grid .featured-each .price,
.search-slick .featured-each .price,
.rental-listings-slick .featured-each .price,
.roommate-listings-slick .featured-each .price {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    color: #000 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.listing-card-price span,
.price span {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-left: 2px;
}

.listing-card-heart,
.heart-icon {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.listing-card-heart:hover,
.heart-icon:hover {
    background-color: rgba(245, 245, 245, 0.8);
    transform: scale(1.1);
}

.listing-card-heart i,
.heart-icon i {
    font-size: 18px;
    transition: all 0.3s ease;
    line-height: 1;
}

.listing-card-title,
.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #2c3e50;
    text-decoration: none;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: block;
    transition: color 0.3s ease;
}

.listing-card-title:hover,
.card-title:hover {
    color: #5598E9;
    text-decoration: none;
}

.card-title h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: inherit;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: inline-block;      
    max-width: 300px;          
    white-space: nowrap;        
    overflow: hidden;           
    text-overflow: ellipsis; 
}

.listing-card-location,
.location {
    color: #7f8c8d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.listing-card-location:hover,
.location:hover {
    color: #5598E9;
    text-decoration: none;
}

.listing-card-location.roommate,
.location.roommate {
    color: #76A7D2;
}

.listing-card-details {
    margin-top: auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    align-items: center;
}

.listing-card-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #000000c7;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
}

.listing-card-detail-item img {
    width: 16px;
    height: 16px;
    opacity: 1;
}

.listing-card-management-stats {
    display: none !important; /* Hidden as requested */
    /* Original styles commented out
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #D9EAFF;
    padding-top: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
    */
}

.listing-card-stat-item {
    display: flex;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000000c7;
}

.listing-card-status {
    margin-bottom: 12px;
}

.listing-card-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.listing-card-status-badge.active {
    display: none !important; /* Hide active status badge */
    background-color: rgba(191, 218, 164, 0.2);
    color: #BFDAA4;
    border: 1px solid #BFDAA4;
}

.listing-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.listing-card-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Grid Layouts */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
}

@media (max-width: 992px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.listings-grid.management {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.roommates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
}

@media (max-width: 992px) {
    .roommates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .roommates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Carousel simulation */
.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.carousel-container .listing-card {
    min-width: 300px;
    flex-shrink: 0;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #5598E9;
    border-radius: 4px;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #9ca3af;
}

.no-image-placeholder i {
    font-size: 48px;
    margin-bottom: 8px;
}

.image-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.dot-more {
    font-size: 10px;
    color: #fff;
    font-weight: 600;
    background: rgba(85, 152, 233, 0.8);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Profile image styles for roommate listings */
.profile-image-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(85, 152, 233, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 5;
    display: none !important;
}

.profile-image-in-listing {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Profile Image Blur for Free Users */
.profile-image-in-listing.blurred-profile {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

.profile-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(85, 152, 233, 0.85), rgba(172, 198, 221, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1 !important;
    border-radius: 12px 12px 0 0;
    backdrop-filter: blur(4px);
    animation: fadeInProfile 0.4s ease-out;
}

.profile-blur-content {
    text-align: center;
    color: #fff;
    /* padding: 15px;
    max-width: 180px; */
    max-width: 100% !important;
    padding: 0 !important;
}

.profile-blur-content i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.profile-blur-content p {
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* .profile-blur-content .upgrade-btn-small {
    background: #BFDAA4;
    color: #0b1f33;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 12px rgba(191, 218, 164, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.3px;
} */

.profile-blur-content .upgrade-btn-small {
    color: #fff;
    background: linear-gradient(135deg, #5598E9, #ACC6DD);
    padding: 10px 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(85, 152, 233, 0.4);
    margin-bottom: 0;
    text-transform: none;
    font-weight: 600;
    width: 200px !important;
    justify-content: center;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-blur-content .upgrade-btn-small:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #4A85D6, #C5D7E8) !important;
}

/* .profile-blur-content .upgrade-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(191, 218, 164, 0.5);
    background: #A8C690;
} */

.profile-blur-content .upgrade-btn-small i {
    font-size: 9px;
    margin-bottom: 0;
}

@keyframes fadeInProfile {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Property Image Blur for Free Users (4th image onwards) */
.property-image-container img.blurred-property {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

.property-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(85, 152, 233, 0.85), rgba(172, 198, 221, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1 !important;
    border-radius: 12px 12px 0 0;
    backdrop-filter: blur(4px);
    animation: fadeInProperty 0.4s ease-out;
}

.property-blur-content {
    text-align: center;
    color: #fff;
    max-width: 100% !important;
    padding: 0 !important;
}

.property-blur-content i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.property-blur-content p {
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.property-blur-content .upgrade-btn-small {
    color: #fff;
    background: linear-gradient(135deg, #5598E9, #ACC6DD);
    padding: 10px 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(85, 152, 233, 0.4);
    margin-bottom: 0;
    text-transform: none;
    font-weight: 600;
    width: 200px !important;
    justify-content: center;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    border-radius: 20px;
}

.property-blur-content .upgrade-btn-small:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #4A85D6, #C5D7E8) !important;
}

.property-blur-content .upgrade-btn-small i {
    font-size: 9px;
    margin-bottom: 0;
}

@keyframes fadeInProperty {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 
========================================
LEGACY COMPATIBILITY - Apply same styles to old class names
========================================
*/

.featured-each {
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.featured-each:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
}

.each-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.featured-each:hover .property-image img,
.property-image:hover img {
    transform: scale(1.02);
}

.property-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.badge-tag {
    position: absolute;
    top: -20px;
    left: -12px;
    color: #fff;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-tag.popular { background: #BFDAA4; color: #000; }
.badge-tag.new { background: #28a745; color: #fff; }
.badge-tag.active { background: #BFDAA4; color: #000; }
.badge-tag.rental { background: #FED1BE; color: #000; }
.badge-tag.roommate { background: #BFDAA4; color: #000; }
.badge-tag.featured { background: linear-gradient(45deg, #FFD700, #FFA500); color: #000; font-weight: 800; animation: featuredGlow 2s ease-in-out infinite alternate; }
.badge-tag.id-verified { background: linear-gradient(45deg, #C0C0C0, #A9A9A9); color: #000; font-weight: 700; }
.badge-tag.gold-member { background: linear-gradient(45deg, #CD7F32, #8B4513); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Make price match listing-card-price exactly */
.price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #000;
    line-height: 1.2;
}

.price span {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-left: 2px;
}

div.price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #000;
    line-height: 1.2;
}

div.price span {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-left: 2px;
}

/* Make heart-icon match listing-card-heart exactly */
.heart-icon {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.heart-icon:hover {
    background-color: rgba(245, 245, 245, 0.8);
    transform: scale(1.1);
}

.heart-icon i {
    font-size: 18px;
    transition: all 0.3s ease;
    line-height: 1;
}

span.heart-icon {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
    flex-shrink: 0;
}

span.heart-icon:hover {
    background-color: rgba(245, 245, 245, 0.8);
    transform: scale(1.1);
}

span.heart-icon i {
    font-size: 18px;
    transition: all 0.3s ease;
    line-height: 1;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #2c3e50;
    text-decoration: none;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: block;
    transition: color 0.3s ease;
    
}

.card-title:hover {
    color: #5598E9;
    text-decoration: none;
}

/* Handle h5 inside card-title links - our Blade structure */
.card-title h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: inherit;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card-title:hover h5 {
    color: #5598E9;
}

/* Make card-title behave like listing-card-title */
a.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #2c3e50;
    text-decoration: none;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: block;
    transition: color 0.3s ease;
}

a.card-title:hover {
    color: #5598E9;
    text-decoration: none;
}

/* Make location behave like listing-card-location */
a.location {
    color: #7f8c8d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

a.location:hover {
    color: #5598E9;
    text-decoration: none;
}

a.location.roommate {
    color: #76A7D2;
}

.location {
    color: #7f8c8d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    height: 50px !important;
}

.location:hover {
    color: #5598E9;
    text-decoration: none;
}

.location.roommate {
    color: #76A7D2;
}

.details {
    margin-top: auto;
    margin-bottom: 16px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    align-items: center;
}

.det-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #000000c7;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
}

.det-icon img {
    width: 16px;
    height: 16px;
    opacity: 1;
}

.det-icon i {
    font-size: 14px;
    color: #666;
    width: 16px;
    text-align: center;
}

/* 
========================================
ULTIMATE IMAGE DOTS OVERRIDE - WORKS ON ALL VIEWS
========================================
*/

/* FORCE image dots to show on ALL listing cards across ALL pages */
body section .featured-each .property-image-gallery .image-dots,
body section .listings-grid .featured-each .property-image-gallery .image-dots,
body section .roommates-grid .featured-each .property-image-gallery .image-dots,
body section .search-slick .featured-each .property-image-gallery .image-dots,
body section .rental-listings-slick .featured-each .property-image-gallery .image-dots,
body section .roommate-listings-slick .featured-each .property-image-gallery .image-dots,
body .featured-slick .featured-each .property-image-gallery .image-dots,
body #featured-listing .featured-each .property-image-gallery .image-dots,
body #new-listing .featured-each .property-image-gallery .image-dots,
body #rent-list .featured-each .property-image-gallery .image-dots,
body #profile-tab .featured-each .property-image-gallery .image-dots {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.6) !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px) !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* FORCE individual dots styling across all pages */
body section .featured-each .property-image-gallery .dot,
body section .listings-grid .featured-each .property-image-gallery .dot,
body section .roommates-grid .featured-each .property-image-gallery .dot,
body section .search-slick .featured-each .property-image-gallery .dot,
body section .rental-listings-slick .featured-each .property-image-gallery .dot,
body section .roommate-listings-slick .featured-each .property-image-gallery .dot,
body .featured-slick .featured-each .property-image-gallery .dot,
body #featured-listing .featured-each .property-image-gallery .dot,
body #new-listing .featured-each .property-image-gallery .dot,
body #rent-list .featured-each .property-image-gallery .dot,
body #profile-tab .featured-each .property-image-gallery .dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* FORCE active and hover dot states across all pages */
body section .featured-each .property-image-gallery .dot.active,
body section .listings-grid .featured-each .property-image-gallery .dot.active,
body section .roommates-grid .featured-each .property-image-gallery .dot.active,
body section .search-slick .featured-each .property-image-gallery .dot.active,
body section .rental-listings-slick .featured-each .property-image-gallery .dot.active,
body section .roommate-listings-slick .featured-each .property-image-gallery .dot.active,
body .featured-slick .featured-each .property-image-gallery .dot.active,
body #featured-listing .featured-each .property-image-gallery .dot.active,
body #new-listing .featured-each .property-image-gallery .dot.active,
body #rent-list .featured-each .property-image-gallery .dot.active,
body #profile-tab .featured-each .property-image-gallery .dot.active {
    background: #fff !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
}

body section .featured-each .property-image-gallery .dot:hover,
body section .listings-grid .featured-each .property-image-gallery .dot:hover,
body section .roommates-grid .featured-each .property-image-gallery .dot:hover,
body section .search-slick .featured-each .property-image-gallery .dot:hover,
body section .rental-listings-slick .featured-each .property-image-gallery .dot:hover,
body section .roommate-listings-slick .featured-each .property-image-gallery .dot:hover,
body .featured-slick .featured-each .property-image-gallery .dot:hover,
body #featured-listing .featured-each .property-image-gallery .dot:hover,
body #new-listing .featured-each .property-image-gallery .dot:hover,
body #rent-list .featured-each .property-image-gallery .dot:hover,
body #profile-tab .featured-each .property-image-gallery .dot:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1) !important;
}

/* 
========================================
ORIGINAL STYLES (COMMENTED FOR REFERENCE)
========================================
*/

.property-image-gallery {
    position: relative;
    height: 100%;
    max-height: 240px;
    overflow: hidden;
}

.image-item {
    display: none;
    width: 100%;
    height: 100%;
}

.image-item.active {
    display: block;
}

.image-item img,
.image-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Ensure image scaling works with carousel structure */
.listing-card:hover .image-item img,
.featured-each:hover .image-item img,
.property-image:hover .image-item img {
    transform: scale(1.02);
}

/* Override any conflicting dots positioning from other CSS files */
#listings .property-image-gallery .image-dots,
#favorites .property-image-gallery .image-dots,
.property-image-gallery .image-dots {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px) !important;
    z-index: 999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 
========================================
ULTRA-SPECIFIC SELECTORS FOR BLADE STRUCTURE
========================================
*/

/* Force our exact Blade structure to match demo */
div.listing-card.featured-each {
    background: #fff !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

div.listing-card.featured-each:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Force content area styling */
div.listing-card-content.property-content {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: #fff !important;
}

/* Force price-box styling */
div.price-box {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

/* Force details section styling */
div.details {
    margin-top: auto !important;
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    padding-top: 12px !important;
    border-top: 1px solid #f0f0f0 !important;
    align-items: center !important;
}

/* Force det-icon styling */
div.det-icon {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    color: #000000c7 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 500 !important;
}

/* ========================================
   FEATURED LISTINGS STYLES
   ======================================== */

/* Featured badge glow animation */
@keyframes featuredGlow {
    0% { box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 2px 15px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 165, 0, 0.4); }
}

/* ========================================
   USER VERIFICATION BADGES
   ======================================== */

/* Container for multiple user verification badges */
.user-verification-badges {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    z-index: 15 !important;
    align-items: flex-end !important;
}

.user-verification-badge {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    white-space: nowrap !important;
}

.user-verification-badge.id-verified {
    background: linear-gradient(45deg, rgba(192, 192, 192, 0.95), rgba(169, 169, 169, 0.95)) !important;
    color: #000 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.user-verification-badge.gold-member {
    background: linear-gradient(45deg, rgba(205, 127, 50, 0.95), rgba(139, 69, 19, 0.95)) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.user-verification-badge i {
    font-size: 8px !important;
}

/* Responsive adjustments for verification badges */
@media (max-width: 768px) {
    .user-verification-badges {
        top: 8px !important;
        right: 8px !important;
        gap: 4px !important;
    }
    
    .user-verification-badge {
        padding: 3px 6px !important;
        font-size: 9px !important;
    }
    
    .user-verification-badge i {
        font-size: 7px !important;
    }
}

/* Featured listing action buttons */
.listing-card-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #f0f0f0 !important;
}

.listing-card-actions .btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    border: 1px solid !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Feature listing button */
.feature-listing-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    border-color: #FFA500 !important;
    font-weight: 600 !important;
}

.feature-listing-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FF8C00) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.3) !important;
}

.feature-listing-btn:active {
    transform: translateY(0) !important;
}

/* Featured status button (disabled state) */
.featured-status-btn {
    background: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
    cursor: default !important;
}

.featured-status-btn:disabled {
    opacity: 0.8 !important;
    cursor: not-allowed !important;
}

/* Loading state for feature button */
.feature-listing-btn.loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.feature-listing-btn.loading::after {
    content: '' !important;
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    border: 2px solid transparent !important;
    border-top: 2px solid currentColor !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-left: 4px !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Featured listing emphasis */
.listing-card.featured-listing {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
}

.listing-card.featured-listing:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3), 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
}
