﻿/* ── 2 columns (sm) ── */
@media (min-width: 576px) and (max-width: 767px) {
    .listings-row .col-12:nth-child(odd):last-child {
        display: none !important;
    }
}

/* ── 3 columns (md → xxl) ── */
@media (min-width: 768px) and (max-width: 1399px) {

    /* 1 orphan */
    .listings-row .col-12:nth-child(3n+1):last-child {
        display: none !important;
    }

    /* 2 orphans */
    .listings-row .col-12:nth-child(3n+2):last-child,
    .listings-row .col-12:nth-child(3n+1):nth-last-child(2) {
        display: none !important;
    }
}

/* ── 4 columns (xxl+) ── */
@media (min-width: 1400px) {

    /* 1 orphan */
    .listings-row .col-12:nth-child(4n+1):last-child {
        display: none !important;
    }

    /* 2 orphans */
    .listings-row .col-12:nth-child(4n+2):last-child,
    .listings-row .col-12:nth-child(4n+1):nth-last-child(2) {
        display: none !important;
    }

    /* 3 orphans */
    .listings-row .col-12:nth-child(4n+3):last-child,
    .listings-row .col-12:nth-child(4n+2):nth-last-child(2),
    .listings-row .col-12:nth-child(4n+1):nth-last-child(3) {
        display: none !important;
    }
}


.auction-section .upcoming-section {
    padding: 5px 50px;
    background-color: #f8f9fa;
}


ul {
    list-style: none;
}

.example-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping to the next line on tiny screens */
    gap: 8px; /* Replaces fixed side margins for cleaner responsive spacing */
}

    .example-2 .icon-content {
        /* Removed margin: 0 10px; in favor of parent's gap property */
        position: relative;
    }

        .example-2 .icon-content .tooltip {
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            color: #fff;
            padding: 6px 10px;
            border-radius: 15px;
            opacity: 0;
            visibility: hidden;
            font-size: 14px;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .example-2 .icon-content:hover .tooltip {
            opacity: 1;
            visibility: visible;
            top: -50px;
        }

        .example-2 .icon-content a {
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 50px;
            height: 50px;
            border-radius: 20%;
            color: #4d4d4d;
            background-color: #ffff;
            transition: all 0.3s ease-in-out;
        }

            .example-2 .icon-content a:hover {
                box-shadow: 3px 2px 25px 0px rgba(0, 0, 0, 0.2); /* Softened the shadow slightly */
            }

            .example-2 .icon-content a svg {
                position: relative;
                z-index: 1;
                width: 26px; /* Slightly scaled down from 30px */
                height: 26px;
            }

            .example-2 .icon-content a:hover {
                color: white;
            }

            .example-2 .icon-content a .filled {
                position: absolute;
                top: auto;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 0;
                background-color: #000;
                transition: all 0.3s ease-in-out;
            }

            .example-2 .icon-content a:hover .filled {
                height: 100%;
            }

            .example-2 .icon-content a[data-social="facebook"] .filled,
            .example-2 .icon-content a[data-social="facebook"] ~ .tooltip {
                background-color: #2980b9;
            }

            .example-2 .icon-content a[data-social="X-Twitter"] .filled,
            .example-2 .icon-content a[data-social="X-Twitter"] ~ .tooltip {
                background-color: #2c3e50;
            }

            .example-2 .icon-content a[data-social="Instagram"] .filled,
            .example-2 .icon-content a[data-social="Instagram"] ~ .tooltip {
                background-color: #ea4c89;
            }

            .example-2 .icon-content a[data-social="WhatsApp"] .filled,
            .example-2 .icon-content a[data-social="WhatsApp"] ~ .tooltip {
                background-color: #27ae60;
            }

/* Media Query to handle extra small screens gracefully */
@media (max-width: 576px) {
    .example-2 .icon-content a {
        width: 40px;
        height: 40px;
    }

        .example-2 .icon-content a svg {
            width: 20px;
            height: 20px;
        }

    .countdown-container .time-segment .number {
        font-size: 1.2rem; /* Shrinks the countdown font size slightly on mobile */
    }
}


/* ───────── START PRICE HOOK ───────── */

.entry-price-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #fff8f8);
    border: 1px solid rgba(220,53,69,0.12);
    overflow: hidden;
    transition: all .35s ease;
}

    .entry-price-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(220,53,69,0.12);
    }

/* LEFT VISUAL FLOW */

.entry-track {
    position: relative;
    width: 42px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.entry-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #dc3545;
    position: relative;
    z-index: 2;
}

    .entry-dot::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 50%;
        background: rgba(220,53,69,0.18);
        animation: pulseEntry 1s infinite;
    }

.entry-line {
    flex: 1;
    width: 2px;
    margin-top: 4px;
    background: linear-gradient( to bottom, #dc3545, rgba(220,53,69,0.05) );
}


/* CONTENT */

.entry-content {
    display: flex;
    flex-direction: column;
}

.entry-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 700;
}

.entry-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.entry-price {
    font-size: 2rem;
    font-weight: 900;
    color: #dc3545;
    line-height: 1;
}

.entry-currency {
    font-size: 1rem;
    font-weight: 700;
    color: #495057;
}

.entry-subtext {
    margin-top: 8px;
    font-size: .82rem;
    color: #6c757d;
}

/* ANIMATION */

@keyframes pulseEntry {

    0% {
        transform: scale(.8);
        opacity: .8;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* KEEP DESIGN CLEAN + PREMIUM */

.subtle-hook {
    position: relative;
    cursor: pointer;
    transition: all .28s ease;
}

    /* SOFT INTERACTION */

    .subtle-hook:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(220,53,69,0.10);
        border-color: rgba(220,53,69,0.22);
    }

        /* PRICE MICRO-REACTION */

        .subtle-hook:hover .entry-price {
            letter-spacing: .4px;
        }

/* SMALL CORNER SIGNAL */

.entry-corner-hint {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: .8rem;
    color: rgba(220,53,69,0.45);
    transition: all .3s ease;
}

.subtle-hook:hover .entry-corner-hint {
    color: #dc3545;
    transform: scale(1.08) rotate(8deg);
}

/* SUBTEXT TENSION */

.entry-subtext {
    transition: opacity .25s ease;
}

.subtle-hook:hover .entry-subtext {
    opacity: .88;
}

/* ───────── AUCTION ACTION BUTTON ───────── */

.auction-action-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #fff8f8);
    border: 1px solid rgba(220,53,69,0.12);
    color: #dc3545;
    text-decoration: none;
    transition: all .32s ease;
    cursor: pointer;
    isolation: isolate;
}

    /* hover lift */

    .auction-action-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 32px rgba(220,53,69,0.16);
        border-color: rgba(220,53,69,0.25);
        color: #fff;
    }

    /* icon */

    .auction-action-btn .action-icon {
        position: relative;
        z-index: 3;
        font-size: 1.15rem;
        transition: transform .3s ease;
    }

    .auction-action-btn:hover .action-icon {
        transform: scale(1.08) rotate(-6deg);
    }

    /* animated fill */

    .auction-action-btn .filled {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 0;
        background: linear-gradient(180deg, #dc3545, #b02a37);
        transition: height .32s ease;
        z-index: 1;
    }

    .auction-action-btn:hover .filled {
        height: 100%;
    }

/* tooltip */

.icon-content {
    position: relative;
}

    .icon-content .tooltip {
        position: absolute;
        top: -42px;
        left: 50%;
        transform: translateX(-50%);
        background: #dc3545;
        color: #fff;
        padding: 7px 12px;
        border-radius: 14px;
        font-size: .78rem;
        font-weight: 600;
        opacity: 0;
        visibility: hidden;
        white-space: nowrap;
        transition: all .28s ease;
        z-index: 20;
    }

    .icon-content:hover .tooltip {
        opacity: 1;
        visibility: visible;
        top: -50px;
    }

/* mobile */

@media (max-width:576px) {

    .auction-action-btn {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

        .auction-action-btn .action-icon {
            font-size: 1rem;
        }
}