
/* =========================================================
   ACTION CARDS
   Desktop + Tablet + Mobile Responsive CSS
   All original important properties retained
========================================================= */


.action-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 24px;
    padding: 2px 0 5px;
    box-sizing: border-box;
}

.action-cards::-webkit-scrollbar {
    display: none;
}

.action-card {
    width: 275px;
    min-width: 275px;
    height: 185px;
    padding: 18px;
    position: relative;
    overflow: hidden;

    background-color: var(--card);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;

    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
}

.action-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(253, 245, 238, .96) 0%,
        rgba(253, 245, 238, .82) 43%,
        rgba(253, 245, 238, .08) 100%
    );

    pointer-events: none;
}

.action-card > * {
    position: relative;
}

.action-card-consultation {
    background-image: url("/public/post/02_free_consultation_background.jpg");
}

.action-card-post {
    background-image: url("/public/post/03_post_property_background.jpg");
}

.action-card-project {
    background-image: url("/public/post/04_new_projects_background.jpg");
}


/* =========================================================
   2. ACTION CARD CONTENT
========================================================= */

.action-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;

    background: var(--primary);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;
    margin-bottom: 10px;
}

.free-tag {
    position: absolute;
    left: 82px;
    top: 22px;

    padding: 5px 9px;

    background: var(--primary);
    color: #fff;

    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.new-tag {
    background: var(--orange);
}

.action-card h3 {
    font-family: "Poppins", "Inter", sans-serif;
    color: var(--dark);

    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.action-link {
    margin-top: 10px;

    display: inline-flex;
    gap: 6px;

    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   3. ENQUIRY / DETAIL ACCESSIBILITY
========================================================= */

.compact-professional-actions .compact-enquiry-button {
    min-width: 0;
    min-height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    padding: 5px 4px;

    border: 1px solid var(--primary);
    border-radius: 6px;

    color: var(--primary);
    background: #fff;

    font-family: inherit;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.js-detail-card:focus-visible {
    outline: 3px solid rgba(133, 40, 12, .35);
    outline-offset: 3px;
}


/* =========================================================
   4. DESKTOP
========================================================= */

@media (min-width: 1025px) {

    .action-cards {
        display: flex !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
        padding: 2px 0 4px !important;
    }

    .action-card {
        width: 216px !important;
        min-width: 216px !important;
        height: 110px !important;
        min-height: 80px !important;

        padding: 10px 12px !important;
        border-radius: 14px !important;
    }

    .action-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 19px !important;
        margin-bottom: 5px !important;
    }

    .free-tag {
        left: 48px !important;
        top: 8px !important;
        padding: 3px 6px !important;
        border-radius: 5px !important;
    }

    .action-card h3 {
        font-size: 15px !important;
        line-height: 15px !important;
    }

    .action-link {
        margin-top: 4px !important;
        gap: 4px !important;
        font-size: 12px !important;
    }
}


/* =========================================================
   5. TABLET (601px - 1024px)
========================================================= */

@media (min-width: 601px) and (max-width: 1024px) {

    .action-cards {
        display: flex !important;
        flex-wrap: nowrap !important;

        gap: 7px !important;
        overflow-x: auto !important;

        padding: 2px 0 5px !important;
        margin-bottom: 14px !important;

        scrollbar-width: none !important;
    }

    .action-cards::-webkit-scrollbar {
        display: none !important;
    }

    .action-card {
        width: 110px !important;
        min-width: 110px !important;
        flex: 0 0 110px !important;

        height: 78px !important;
        min-height: 78px !important;

        padding: 7px !important;
        border-radius: 13px !important;
    }

    .action-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 15px !important;
        margin-bottom: 4px !important;
    }

    .free-tag {
        left: 35px !important;
        top: 7px !important;

        padding: 2px 5px !important;
        font-size: 7px !important;
        border-radius: 5px !important;
    }

    .action-card h3 {
        font-size: 10px !important;
        line-height: 15px !important;
    }

    .action-link {
        margin-top: 3px !important;
        gap: 3px !important;
        font-size: 8px !important;
    }
}


/* =========================================================
   6. MOBILE (600px AND BELOW)
========================================================= */

@media (max-width: 600px) {

    .action-cards {
        display: flex !important;
        flex-wrap: nowrap !important;

        gap: 7px !important;
        overflow-x: auto !important;

        padding: 2px 0 5px !important;
        margin-bottom: 14px !important;

        scrollbar-width: none !important;
    }

    .action-cards::-webkit-scrollbar {
        display: none !important;
    }

    .action-card {
        width: 110px !important;
        min-width: 110px !important;
        flex: 0 0 110px !important;

        height: 78px !important;
        min-height: 78px !important;

        padding: 7px !important;
        border-radius: 13px !important;
    }

    .action-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 15px !important;
        margin-bottom: 4px !important;
    }

    .free-tag {
        left: 35px !important;
        top: 7px !important;

        padding: 2px 5px !important;
        font-size: 7px !important;
        border-radius: 5px !important;
    }

    .action-card h3 {
        font-size: 10px !important;
        line-height: 15px !important;
    }

    .action-link {
        margin-top: 3px !important;
        gap: 3px !important;
        font-size: 8px !important;
    }
}


/* =========================================================
   7. VERY SMALL MOBILE (380px AND BELOW)
========================================================= */

@media (max-width: 380px) {

    .action-card {
        width: 255px !important;
        min-width: 255px !important;
    }
}


/* =========================================================
   8. MAIN CONTAINER ALIGNMENT
========================================================= */

main.container-main > .action-cards {
    padding-left: 5px !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;
}
