/* ===== Luxury Card Color Updates - Sophisticated Neutrals ===== */

/* 1. How It Works - Glass Cards */
.how-it-works .cards-grid .glass-card:nth-child(1) {
    background: rgba(217, 233, 207, 0.90) !important;
    /* #D9E9CF - Light green */
}

.how-it-works .cards-grid .glass-card:nth-child(2) {
    background: rgba(203, 220, 235, 0.90) !important;
    /* #CBDCEB - Light blue */
}

.how-it-works .cards-grid .glass-card:nth-child(3) {
    background: rgba(245, 211, 228, 0.90) !important;
    /* #F5D3E4 - Light pink */
}

/* 2. Popular Categories - Category Tiles */
.featured-categories .category-tile:nth-child(1) {
    background: rgba(217, 233, 207, 0.90) !important;
    /* #D9E9CF - Light green */
}

.featured-categories .category-tile:nth-child(2) {
    background: rgba(203, 220, 235, 0.90) !important;
    /* #CBDCEB - Light blue */
}

.featured-categories .category-tile:nth-child(3) {
    background: rgba(245, 211, 228, 0.90) !important;
    /* #F5D3E4 - Light pink */
}

.featured-categories .category-tile:nth-child(4) {
    background: rgba(217, 233, 207, 0.90) !important;
    /* #D9E9CF - Light green */
}

.featured-categories .category-tile:nth-child(5) {
    background: rgba(203, 220, 235, 0.90) !important;
    /* #CBDCEB - Light blue */
}

.featured-categories .category-tile:nth-child(6) {
    background: rgba(245, 211, 228, 0.90) !important;
    /* #F5D3E4 - Light pink */
}

.featured-categories .category-tile:nth-child(7) {
    background: rgba(217, 233, 207, 0.90) !important;
    /* #D9E9CF - Light green */
}

.featured-categories .category-tile:nth-child(8) {
    background: rgba(203, 220, 235, 0.90) !important;
    /* #CBDCEB - Light blue */
}

/* 3. A Safer Marketplace - Safety Features */
.ai-safety .safety-feature:nth-child(1) {
    background: rgba(217, 233, 207, 0.90) !important;
    /* #D9E9CF - Light green */
}

.ai-safety .safety-feature:nth-child(2) {
    background: rgba(203, 220, 235, 0.90) !important;
    /* #CBDCEB - Light blue */
}

.ai-safety .safety-feature:nth-child(3) {
    background: rgba(245, 211, 228, 0.90) !important;
    /* #F5D3E4 - Light pink */
}

.ai-safety .safety-feature:nth-child(4) {
    background: rgba(217, 233, 207, 0.90) !important;
    /* #D9E9CF - Light green */
}

/* ===== Luxury Text Enhancements ===== */

/* Enhanced card titles */
.card-title {
    font-weight: var(--font-weight-extrabold) !important;
    color: #222222 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Enhanced card descriptions */
.card-description {
    font-size: 1.0625rem !important;
    font-weight: var(--font-weight-medium) !important;
    color: #444444 !important;
}

/* Enhanced category tile names */
.category-name {
    font-weight: var(--font-weight-bold) !important;
    color: #222222 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Enhanced safety feature titles */
.feature-text h4 {
    font-weight: var(--font-weight-bold) !important;
    color: #222222 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Enhanced safety feature descriptions */
.feature-text p {
    font-weight: var(--font-weight-medium) !important;
    color: #444444 !important;
}

/* Enhanced listing card titles */
.listing-title {
    font-weight: var(--font-weight-bold) !important;
    color: #222222 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Enhanced listing prices */
.listing-price {
    text-shadow: 0 1px 3px rgba(74, 144, 226, 0.1);
}

/* ===== Safety Image Animation ===== */

/* Floating animation with subtle glow */
.safety-image {
    animation: floatWithGlow 6s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.safety-image:hover {
    animation-play-state: paused;
    filter: drop-shadow(0 20px 45px rgba(74, 144, 226, 0.3));
}

@keyframes floatWithGlow {

    0%,
    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 15px 35px rgba(74, 144, 226, 0.15)) drop-shadow(0 0 20px rgba(74, 144, 226, 0.1));
    }

    50% {
        transform: translateY(-20px);
        filter: drop-shadow(0 25px 45px rgba(74, 144, 226, 0.2)) drop-shadow(0 0 30px rgba(74, 144, 226, 0.15));
    }
}

/* ===== Dynamic Luxury Listing Cards ===== */

.listings-carousel .listing-card {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.listings-carousel .listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 5;
}

.listings-carousel .listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.05);
}

.listings-carousel .listing-card:hover::before {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    opacity: 1;
}

/* Ken Burns Effect */
.listings-carousel .listing-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
    background-size: cover;
    background-position: center;
    transition: transform 2s ease-out;
}

.listings-carousel .listing-card:hover .listing-image {
    transform: scale(1.08);
}

/* Glassmorphic Price Pill */
.listing-price-pill {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.listings-carousel .listing-card:hover .listing-price-pill {
    background: #6366f1;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.listings-carousel .listing-info {
    padding: 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    background: white;
    z-index: 1;
}

/* Category Background Icon */
.category-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.listings-carousel .listing-card:hover .category-bg-icon {
    opacity: 0.06;
    transform: translate(-50%, -50%) scale(1.1) rotate(-5deg);
}

.listings-carousel .listing-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #0f172a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listings-carousel .listing-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Pulse Dot */
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #10b981;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
    opacity: 0.5;
}

@keyframes pulse-ring {
    0% { transform: scale(0.33); opacity: 0.7; }
    80%, 100% { transform: scale(2.5); opacity: 0; }
}

.listings-carousel .listing-location {
    color: #6366f1;
}

.listings-carousel .listing-time {
    opacity: 0.7;
}

/* Ensure the scroller looks luxury */
.listings-carousel {
    padding-bottom: 40px;
    gap: 30px;
}