/* ─────────────────────────────────────────────────
   Featured Items – Nordic Elementor
   ───────────────────────────────────────────────── */

/* Container */
.nfi-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Section heading */
.nfi-heading {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.25;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 40px;
    letter-spacing: 0.02em;
}

/* Card grid */
.nfi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Single card */
.nfi-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.nfi-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ── Image area ───────────────────────────────── */
.nfi-card__image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    margin: 8px;
}

.nfi-card__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.nfi-card__overlay-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
}

/* Price overlay */
.nfi-card__price {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.nfi-card__price-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nfi-card__price-value {
    font-size: 28px;
    font-weight: 900;
    font-family: 'Arial Black', 'Arial', sans-serif;
}

/* Location overlay */
.nfi-card__location {
    position: absolute;
    bottom: 30px;
    left: 16px;
    z-index: 3;
    font-size: 30px;
    font-weight: 900;
    font-family: 'Arial Black', 'Arial', sans-serif;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    line-height: 1;
    letter-spacing: 0.02em;
}

.nfi-card__country {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 3;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
}

/* Offer badge */
.nfi-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    background: #FFEB3B;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

/* When badge is present, shift price down */
.nfi-card__badge~.nfi-card__price {
    top: auto;
    bottom: 80px;
    right: 16px;
}

/* ── Meta row ─────────────────────────────────── */
.nfi-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}

.nfi-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nfi-card__meta-item i,
.nfi-card__meta-item svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* ── Benefits ─────────────────────────────────── */
.nfi-card__benefits {
    padding: 12px 14px 8px;
    flex: 1;
}

.nfi-card__benefits-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.nfi-card__benefits-text {
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}

/* ── Buttons ──────────────────────────────────── */
.nfi-card__buttons {
    display: flex;
    gap: 10px;
    padding: 10px 14px 16px;
}

.nfi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.04em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

.nfi-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.nfi-btn--learn {
    background: transparent;
    color: #000;
    border-color: #000;
    border-radius: 4px;
}

.nfi-btn--book {
    background: #E30613;
    color: #fff;
    border-color: #E30613;
    border-radius: 4px;
}

/* ─────────────────────────────────────────────────
   Desktop: override Swiper defaults so it behaves
   as a CSS grid. Swiper is only active on mobile.
   ───────────────────────────────────────────────── */

/* Hide pagination on desktop */
.nfi-swiper-pagination {
    display: none;
}

/* On desktop, the .swiper wrapper should not constrain */
.nfi-swiper {
    overflow: visible;
}

/* ─────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .nfi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nfi-heading {
        font-size: 26px;
    }
}

/* Mobile — Swiper takes over */
@media (max-width: 767px) {

    /* Let Swiper handle the layout */
    .nfi-grid {
        display: flex;
        /* Swiper needs flex, not grid */
    }

    .nfi-swiper {
        overflow: hidden;
    }

    .nfi-card {
        width: 100%;
        flex-shrink: 0;
    }

    .nfi-heading {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .nfi-card__image {
        height: 230px;
    }

    .nfi-card__location {
        font-size: 26px;
    }

    /* Show pagination dots */
    .nfi-swiper-pagination {
        display: block;
        text-align: center;
        margin-top: 18px;
    }

    .nfi-swiper-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: #ccc;
        opacity: 1;
        margin: 0 5px;
        border-radius: 50%;
        transition: background 0.3s ease;
        padding: 6px;
        margin: 0 5px !important;
        display: inline-block;
    }

    .nfi-swiper-pagination .swiper-pagination-bullet-active {
        background: #E30613;
    }
}