/* =========================================================
   MOROCCO PREMIUM EDITORIAL
   Italian tour cards - Blocksy
   Version 3.0.0
   ========================================================= */

/* Grid */
.entries.mpe-premium-grid {
    align-items: stretch !important;
}

/* Main card */
.entries.mpe-premium-grid article.entry-card.mpe-premium-card {
    --mpe-gold: #d9b76b;
    --mpe-gold-light: #f2d99b;

    position: relative !important;
    isolation: isolate !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;

    width: 100% !important;
    height: auto !important;
    min-height: 450px !important;
    box-sizing: border-box !important;

    padding: 175px 23px 22px !important;
    margin: 0 !important;

    overflow: hidden !important;

    border: 1px solid rgba(217, 183, 107, .4) !important;
    border-radius: 8px !important;

    background-color: #292219 !important;
    background-image: var(--mpe-card-image) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;

    box-shadow: 0 8px 24px rgba(30, 24, 16, .12) !important;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease !important;
}

@media (hover: hover) {
    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card:hover {
        transform: translateY(-5px) !important;
        border-color: rgba(217, 183, 107, .9) !important;
        box-shadow: 0 18px 38px rgba(30, 24, 16, .25) !important;
    }
}

/* Image source: use it as the card background */
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
a.ct-media-container {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
    opacity: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
a.ct-media-container img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Dark gradient */
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card::after {
    content: "" !important;

    position: absolute !important;
    inset: 0 !important;

    z-index: 1 !important;
    pointer-events: none !important;

    background: linear-gradient(
        180deg,
        rgba(15, 13, 10, .15) 0%,
        rgba(15, 13, 10, .08) 25%,
        rgba(15, 13, 10, .35) 48%,
        rgba(15, 13, 10, .83) 75%,
        rgba(15, 13, 10, .97) 100%
    ) !important;
}

/* Fallback when a card has no featured image */
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card.mpe-no-background {
    background-image:
        radial-gradient(
            circle at 75% 20%,
            rgba(217, 183, 107, .25),
            transparent 36%
        ),
        linear-gradient(145deg, #66563c, #201d17) !important;
}

/* =========================================================
   TOP ROW: BADGE LEFT, FIVE STARS RIGHT
   ========================================================= */

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-card-top {
    position: absolute !important;
    top: 19px !important;
    right: 19px !important;
    left: 19px !important;

    z-index: 6 !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;

    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Private tour badge */
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-private-badge {
    position: static !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 1 auto !important;
    max-width: 65% !important;
    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 8px 11px !important;

    border: 1px solid rgba(242, 217, 155, .7) !important;
    border-radius: 3px !important;

    background: rgba(28, 25, 19, .82) !important;
    color: #f2d99b !important;

    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 1.1px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Five decorative gold stars */
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-card-top .mpe-stars {
    position: static !important;

    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;

    margin: 0 !important;
    padding: 8px 9px !important;

    border: 1px solid rgba(242, 217, 155, .42) !important;
    border-radius: 3px !important;

    background: rgba(28, 25, 19, .82) !important;
    color: #e6c477 !important;

    line-height: 1 !important;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-card-top .mpe-stars span {
    display: inline-block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #e6c477 !important;
    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

/* =========================================================
   CONTENT
   ========================================================= */

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-card-content {
    position: relative !important;
    inset: auto !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;

    z-index: 4 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #fff !important;
}

/* Full title: no line clamp */
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-card-content .entry-title,
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-card-content h2.entry-title,
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-card-content h3.entry-title {
    display: block !important;

    position: relative !important;
    inset: auto !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;

    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;

    color: #fff !important;

    font-family: inherit !important;
    font-size: clamp(19px, 1.7vw, 24px) !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    letter-spacing: -.3px !important;
    text-align: left !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-card-content .entry-title a {
    display: inline !important;

    color: #fff !important;
    font: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-card-content .entry-title a:hover {
    color: #f2d99b !important;
}

/* Duration */
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-duration {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    color: rgba(255, 255, 255, .94) !important;

    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-duration svg {
    display: block !important;
    flex: 0 0 16px !important;

    width: 16px !important;
    height: 16px !important;

    fill: none !important;
    stroke: #e6c477 !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* =========================================================
   CUSTOM FIELDS: DESTINATION + DEPARTURE
   ========================================================= */

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-meta-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 8px !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: rgba(255, 255, 255, .94) !important;

    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;

    overflow-wrap: anywhere !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-meta-row svg {
    display: block !important;
    flex: 0 0 16px !important;

    width: 16px !important;
    height: 16px !important;

    margin-top: 1px !important;

    fill: none !important;
    stroke: #e6c477 !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-meta-row > span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-meta-row strong {
    color: #f2d99b !important;
    font-weight: 650 !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-destination-row,
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-departure-row {
    visibility: visible !important;
}

/* Duration separator */
.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-separator {
    color: #e6c477 !important;
}

/* =========================================================
   CTA: DISCOVER THE TOUR
   ========================================================= */

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-cta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    align-self: stretch !important;
    gap: 12px !important;

    width: 100% !important;
    min-height: 43px !important;
    box-sizing: border-box !important;

    margin: 3px 0 0 !important;
    padding: 10px 14px !important;

    border: 1px solid rgba(230, 196, 119, .75) !important;
    border-radius: 3px !important;

    background: rgba(217, 183, 107, .08) !important;
    color: #f2d99b !important;

    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-cta:hover {
    background: #d9b76b !important;
    border-color: #d9b76b !important;
    color: #211d17 !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-cta-arrow {
    display: inline-block !important;

    color: inherit !important;
    font-size: 20px !important;
    line-height: 1 !important;

    transition: transform .25s ease !important;
}

.entries.mpe-premium-grid
article.entry-card.mpe-premium-card
.mpe-cta:hover .mpe-cta-arrow {
    transform: translateX(3px) !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card {
        min-height: 440px !important;
        padding: 165px 19px 20px !important;
    }

    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-card-top {
        top: 16px !important;
        right: 16px !important;
        left: 16px !important;
    }

    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-card-content .entry-title {
        font-size: 21px !important;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card {
        min-height: 440px !important;
        padding: 155px 18px 18px !important;
        border-radius: 7px !important;
    }

    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-card-top {
        top: 15px !important;
        right: 14px !important;
        left: 14px !important;
        gap: 7px !important;
    }

    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-private-badge {
        max-width: 60% !important;
        padding: 7px 8px !important;
        font-size: 9px !important;
        letter-spacing: .8px !important;
    }

    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-card-top .mpe-stars {
        gap: 2px !important;
        padding: 7px 6px !important;
    }

    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-card-top .mpe-stars span {
        font-size: 13px !important;
    }

    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-card-content {
        gap: 9px !important;
    }

    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-card-content .entry-title {
        font-size: 21px !important;
        line-height: 1.3 !important;
    }

    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-meta-row,
    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card
    .mpe-duration {
        font-size: 12px !important;
    }
}

/* Accessibility: reduce animations */
@media (prefers-reduced-motion: reduce) {
    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card,
    .entries.mpe-premium-grid
    article.entry-card.mpe-premium-card * {
        transition: none !important;
    }
}