* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --card-bg: #ffffff;
    --soft-bg: #f3f5f9;
    --text-main: #1e293b;
    --text-soft: #6b7280;
    --accent-1: #38bdf8;
    --accent-2: #818cf8;
    --accent-3: #c084fc;
    --accent-4: #dc3545;
    --radius: 16px;
}

/* Base card look */
.listing-card {
    background:
        linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        linear-gradient(135deg, rgba(56, 189, 248, .45), rgba(129, 140, 248, .45), rgba(192, 132, 252, .45)) border-box;
    border: 1px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .08);
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

/* Image area */
.card-img-wrap {
    position: relative;
    background: var(--soft-bg);
}

.card-img-top {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .15));
    background: radial-gradient(120% 60% at 50% 0%, #fff 0%, var(--soft-bg) 100%);
}

/* Corner badge (sticker vibe) */
.corner-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--accent-4), #ff4d4d);
    box-shadow: 0 6px 14px rgba(220, 53, 69, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-5deg);
    animation: badgePop 0.5s ease-out;
}

/* Body */
.listing-body {
    background: #f8fafc;
    padding: 18px 18px 20px;
}

.listing-title {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: .3px;
}

.listing-text {
    font-size: 15px;
    color: var(--text-soft);
    margin-bottom: 12px;
}

/* Specs → cute pill chips */
.specs {
    list-style: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #475569;
    background: #eef2ff;
    border: 1px solid #e6e9ff;
    padding: 6px 10px;
    border-radius: 9999px;
}

/* CTA row (price + button) */
.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price {
    font-size: 1.35rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Gradient outline button */
.btn-cta {
    position: relative;
    padding: 7px 14px;
    border-radius: 9999px;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3)) border-box;
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(129, 140, 248, .25);
}

/* Tablet layout: stack title → text → specs → price → button (770px–1400px) */
@media (min-width: 770px) and (max-width: 1400px) {
    .listing-body {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-cta {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .price {
        font-size: 1.5rem;
        text-align: center;
    }
}

/* Mobile: comfortable stacking and sizing (<770px) */
@media (max-width: 769px) {
    .listing-title {
        font-size: 1.05rem;
    }

    .listing-text {
        font-size: 14px;
    }

    .price {
        font-size: 1.35rem;
        text-align: center;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* ===== Fade-In Animation ===== */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeInAnim 0.5s ease-in;
}

@keyframes fadeInAnim {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-section h2 {
    text-align: center;
    position: relative;
    display: block;
    padding-bottom: 15px;
    margin: 0 auto;
}

.fade-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-4), #ff6b6b);
    border-radius: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}