/* =========================================================
 * GMD MIXED ARCHIVE GRID
 *
 * Desktop: 4 columns
 * Tablet:  2 columns
 * Mobile:  1 column
 * ========================================================= */


/* =========================================================
 * ARCHIVE GRID
 * ========================================================= */

.gmd-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;

    width: 100%;

    align-items: stretch;
}

.gmd-archive-grid-item {
    display: flex;

    min-width: 0;
}


/* =========================================================
 * DESKTOP + TABLET CARD
 * ========================================================= */

.gmd-deal-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100% !important;

    height: 610px !important;
    min-height: 610px !important;
    max-height: 610px !important;

    overflow: hidden !important;

    border-radius: 14px;

    box-sizing: border-box;
}


/* =========================================================
 * CARD CONTENT
 * Desktop + Tablet
 * ========================================================= */

.gmd-card-content {
    display: flex;
    flex-direction: column;

    flex: 1 1 auto;

    width: 100%;
    min-height: 0;

    /* Space reserved for fixed desktop footer */
    padding-bottom: 90px;

    box-sizing: border-box;
}

/* =========================================================
 * DESKTOP + TABLET BUTTON ROW
 * Keep button clear of fixed footer
 * ========================================================= */

.gmd-card-button-row {
    margin-bottom: 18px !important;
}

/* =========================================================
 * CARD FOOTER
 * Desktop + Tablet only
 * ========================================================= */

.gmd-card-footer {
    position: absolute !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    height: 86px !important;

    padding: 8px 14px 10px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;

    gap: 6px !important;

    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
 * Footer Elementor Widgets
 * --------------------------------------------------------- */

.gmd-card-footer > .elementor-element,
.gmd-card-footer .elementor-widget {
    position: static !important;

    width: 100% !important;

    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 0 0 auto !important;
}


/* ---------------------------------------------------------
 * Footer Headings
 * --------------------------------------------------------- */

.gmd-card-footer h1,
.gmd-card-footer h2,
.gmd-card-footer h3,
.gmd-card-footer h4,
.gmd-card-footer h5,
.gmd-card-footer h6,
.gmd-card-footer .elementor-heading-title {
    margin: 0 !important;
    padding: 0 !important;

    line-height: 1.25 !important;
}


/* ---------------------------------------------------------
 * Footer Text / Sales Count
 * --------------------------------------------------------- */

.gmd-card-footer p,
.gmd-card-footer .product-sales {
    margin: 0 !important;
    padding: 0 !important;

    line-height: 1.25 !important;
}


/* =========================================================
 * VOUCHER CARD
 * Desktop + Tablet
 * ========================================================= */

.gmd-deal-card:not(.gmd-restaurant-card) .gmd-card-title-area {
    min-height: 72px;
}

.gmd-deal-card:not(.gmd-restaurant-card) .gmd-card-subtitle-area {
    min-height: 58px;
}

.gmd-deal-card:not(.gmd-restaurant-card) .gmd-card-description-area {
    min-height: 92px;
}

.gmd-deal-card:not(.gmd-restaurant-card) .gmd-card-price-area {
    min-height: 58px;
}


/* =========================================================
 * RESTAURANT CARD
 * Desktop + Tablet
 * ========================================================= */

.gmd-restaurant-card .gmd-card-title-area {
    min-height: 48px;
    margin-bottom: 2px;
}

.gmd-restaurant-card .gmd-card-description-area {
    min-height: 78px;
    margin-bottom: 4px;
}


/* ---------------------------------------------------------
 * Restaurant Offer Box
 * --------------------------------------------------------- */

.gmd-restaurant-card .gmd-card-price-area {
    width: auto !important;

    min-height: 78px;

    margin: 10px 18px 10px !important;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
 * Restaurant Button
 * --------------------------------------------------------- */

.gmd-restaurant-card .elementor-widget-button {
    width: auto !important;

    margin: 0 18px 18px !important;

    box-sizing: border-box;
}

.gmd-restaurant-card .elementor-button-wrapper,
.gmd-restaurant-card .elementor-button {
    width: 100% !important;
}

.gmd-restaurant-card .elementor-button {
    display: block;

    box-sizing: border-box;
}


/* =========================================================
 * MASSAGE OFFER BOX
 * Desktop + Tablet
 * ========================================================= */

.gmd-massage-card .gmd-massage-loop-offer {
    margin: 6px 18px 6px !important;
    padding: 7px 12px !important;

    background: #f5f6f7;

    border: 1px solid #dde2e6;
    border-radius: 10px;

    text-align: center;

    box-sizing: border-box;
}

.gmd-massage-card .gmd-massage-loop-fee {
    margin: 0 0 2px 0 !important;

    font-size: 13px;
    line-height: 1.2;
}

.gmd-massage-card .gmd-massage-loop-saving {
    margin: 0 0 2px 0 !important;

    font-size: 17px;
    line-height: 1.15;
}

.gmd-massage-card .gmd-massage-loop-saving strong {
    color: #e60023;

    font-weight: 700;
}

.gmd-massage-card .gmd-massage-loop-note {
    margin: 0 !important;

    font-size: 13px;
    line-height: 1.15;
}


/* =========================================================
 * IMAGE CONTROL
 * ========================================================= */

.gmd-deal-card img {
    display: block;

    max-width: 100%;
}


/* =========================================================
 * GENERAL ELEMENTOR SPACING
 * ========================================================= */

.gmd-deal-card .elementor-widget {
    margin-bottom: 4px;
}

.gmd-card-footer .elementor-widget {
    margin-bottom: 0 !important;
}

/* =========================================================
 * TABLET
 * ========================================================= */

@media (max-width: 1024px) {

    .gmd-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
 * MOBILE
 * Dedicated Mobile Loop Items
 * ========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------------------
     * Grid
     * ----------------------------------------------------- */

    .gmd-archive-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .gmd-archive-grid-item {
        display: block;
        width: 100%;
        min-width: 0;
    }


    /* -----------------------------------------------------
     * Card
     * Remove desktop fixed height
     * ----------------------------------------------------- */

    .gmd-deal-card {
        position: relative;

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: hidden !important;
    }


    /* -----------------------------------------------------
     * Card Content
     * Remove desktop reserved footer space
     * ----------------------------------------------------- */

    .gmd-card-content {
        width: 100%;

        min-height: 0 !important;

        padding-bottom: 0 !important;
    }


    /* -----------------------------------------------------
     * Button Row
     * Remove desktop footer clearance
     * ----------------------------------------------------- */

    .gmd-card-button-row {
        margin-bottom: 0 !important;
    }


    /* -----------------------------------------------------
     * Footer
     * Return footer to normal mobile document flow
     * ----------------------------------------------------- */

    .gmd-card-footer {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;

        box-sizing: border-box !important;
    }


    /* -----------------------------------------------------
     * Footer Widgets
     * Remove desktop positioning
     * ----------------------------------------------------- */

    .gmd-card-footer > .elementor-element,
    .gmd-card-footer .elementor-widget {
        position: relative !important;

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;

        transform: none !important;
    }


    /* -----------------------------------------------------
     * Remove Desktop Minimum Heights
     * Dedicated mobile loops control their own spacing
     * ----------------------------------------------------- */

    .gmd-deal-card .gmd-card-title-area,
    .gmd-deal-card .gmd-card-subtitle-area,
    .gmd-deal-card .gmd-card-description-area,
    .gmd-deal-card .gmd-card-price-area {
        min-height: 0 !important;
    }


    /* -----------------------------------------------------
     * Restaurant
     * Remove desktop-specific spacing
     * ----------------------------------------------------- */

    .gmd-restaurant-card .gmd-card-price-area {
        min-height: 0 !important;
    }

/* -----------------------------------------------------
 * Quick View
 * Mobile secondary action
 * ----------------------------------------------------- */

.gmd-qv-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: calc(100% - 36px) !important;

    margin: 12px 18px 8px !important;
    padding: 11px 16px !important;

    background: #ffffff !important;
    color: #222222 !important;

    border: 1px solid #d9dde1 !important;
    border-radius: 9px !important;

    box-shadow: none !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-align: center;
    text-decoration: none !important;

    box-sizing: border-box !important;
}

.gmd-qv-btn:hover,
.gmd-qv-btn:focus {
    background: #f5f6f7 !important;
    color: #111111 !important;
    border-color: #c9ced3 !important;
}

}



