/* ==========================================================================
   Formula Escapes Package Styles
   BEM Methodology - DO NOT specify font-family (inherit from theme)
   ========================================================================== */

/* Package Container */
.f1-package {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Safari iOS: force own compositing layer to prevent parallax section overlap */
    position: relative;
    z-index: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Package Template Variants - No colored borders, only What's Included has red border */

/* Package Name */
.f1-package__name {
    margin: 0 0 10px;
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 45px;
    font-weight: 700;
    color: #333333;
    line-height: 45px;
    text-transform: uppercase;
}

/* Package Description (Subtitle below title - red text) */
.f1-package__description {
    margin: 0 0 20px;
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: #E02B20; /* F1 Red */
    line-height: 27px;
    text-transform: uppercase;
}

/* Pricing Section */
.f1-package__pricing {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* Pricing Boxes */
.f1-package__pricing-box {
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.f1-package__pricing-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* White Box (2025 Pricing - White bg with RED border and RED text) */
.f1-package__pricing-box--white {
    background: #ffffff;
    border: 4px solid #E02B20; /* Thick red border */
}

/* ALL TEXT IN 2025 BOX MUST BE RED */
.f1-package__pricing-box--white .f1-package__pricing-year,
.f1-package__pricing-box--white .f1-package__pricing-amount,
.f1-package__pricing-box--white .f1-package__pricing-details,
.f1-package__pricing-box--white .f1-package__pricing-deposit {
    color: #E02B20; /* F1 Red */
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Red Box (2026 Pricing - Red bg with WHITE text) */
.f1-package__pricing-box--red {
    background: #E02B20; /* F1 Red */
    border: none;
}

/* ALL TEXT IN 2026 BOX MUST BE WHITE (NO GOLD!) */
.f1-package__pricing-box--red .f1-package__pricing-year,
.f1-package__pricing-box--red .f1-package__pricing-amount,
.f1-package__pricing-box--red .f1-package__pricing-details,
.f1-package__pricing-box--red .f1-package__pricing-deposit {
    color: #ffffff; /* White text */
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Pricing Year */
.f1-package__pricing-year {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Pricing Details */
.f1-package__pricing-details {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-transform: uppercase;
    font-weight: 700;
}

/* Pricing Amount (Price Display) */
.f1-package__pricing-amount {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Pricing Deposit */
.f1-package__pricing-deposit {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sold Out Text */
.f1-package__pricing-sold-out {
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 35px;
    text-transform: uppercase;
    color: #E02B20;
}

/* Red box sold out - white text */
.f1-package__pricing-box--red .f1-package__pricing-sold-out {
    color: #ffffff;
}

/* Promotional Text */
.f1-package__pricing-promo {
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 35px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 0;
}

/* 2025 Box - Red promo text */
.f1-package__pricing-box--white .f1-package__pricing-promo {
    color: #E02B20;
}

/* 2026 Box - White promo text */
.f1-package__pricing-box--red .f1-package__pricing-promo {
    color: #ffffff;
}

/* Inclusions Section */
.f1-package__inclusions {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #E02B20;
}

.f1-package__inclusions-title {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.f1-package__inclusions-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}

.f1-package__inclusions-content ul {
    display: block !important;
    list-style: disc !important;
    margin: 0;
    padding-left: 20px;
}

.f1-package__inclusions-content li {
    display: block !important;
    list-style-type: disc !important;
    margin-bottom: 8px;
    margin-left: 20px;
}

/* Package Card Grid */
.f1-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
    width: 100%;
}

.f1-package-grid--count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 981px) {
    .f1-package-grid--count-4 {
        grid-template-columns: repeat(2, minmax(0, calc((100% - 44px) / 3)));
        justify-content: center;
    }
}

.f1-package-grid .f1-package--card {
    display: flex;
    flex-direction: column;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000000;
    border: 0;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.28);
    color: #ffffff;
    transform: translateZ(0);
}

.f1-package--card .f1-package__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #161616;
}

.f1-package--card .f1-package__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f1-package--card .f1-package__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 16px 18px 20px;
    text-align: center;
}

.f1-package--card .f1-package__accessible-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.f1-package--card .f1-package__departures {
    margin: 0;
}

.f1-package--card .f1-package__section-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
}

.f1-package--card .f1-package__section-title--departing {
    margin-bottom: 2px;
    text-transform: uppercase;
}

.f1-package--card .f1-package__departure-list {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.f1-package--card .f1-package__departure {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
}

.f1-package--card .f1-package__departure + .f1-package__departure {
    border-left: 1px solid rgba(255, 255, 255, 0.7);
}

.f1-package--card .f1-package__departure-date {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.f1-package--card .f1-package__departure-nights,
.f1-package--card .f1-package__nights {
    color: #fb1b03;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.f1-package--card .f1-package__departure-nights {
    margin-top: 3px;
}

.f1-package--card .f1-package__nights {
    margin: 4px 0 0;
}

.f1-package--card .f1-package__inclusions {
    flex: 1 1 auto;
    margin: 18px 0 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.f1-package--card .f1-package__inclusions-list {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    list-style: none;
}

.f1-package--card .f1-package__inclusion {
    margin: 0;
    padding: 0;
}

.f1-package--card .f1-package__inclusion::before {
    content: "- ";
}

.f1-package--card .f1-package__prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 14px;
    align-items: start;
    margin-top: auto;
}

.f1-package--card .f1-package__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.f1-package--card .f1-package__price-year,
.f1-package--card .f1-package__price-person,
.f1-package--card .f1-package__price-promo {
    color: #fb1b03;
    font-weight: 700;
}

.f1-package--card .f1-package__price-year {
    margin-bottom: 2px;
    font-size: 16px;
    line-height: 1.15;
}

.f1-package--card .f1-package__price-amount,
.f1-package--card .f1-package__price-sold-out {
    color: #ffffff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.f1-package--card .f1-package__price-sold-out {
    display: inline-flex;
    align-items: center;
    min-height: 28.35px;
    font-size: 22px;
    text-transform: uppercase;
}

.f1-package--card .f1-package__price-person {
    min-height: 1.15em;
    margin-top: 3px;
    font-size: 16px;
    line-height: 1.15;
}

.f1-package--card .f1-package__price-supporting {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(2.4em + 5px);
    font-size: 13px;
    line-height: 1.2;
}

.f1-package--card .f1-package__price-promo,
.f1-package--card .f1-package__price-deposit {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.2;
}

.f1-package--card .f1-package__price-deposit {
    color: #d7d7d7;
}

.f1-package--card .f1-package__enquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 42px;
    margin-top: 20px;
    padding: 9px 22px;
    background: #fb1b03;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.f1-package--card .f1-package__enquire:hover,
.f1-package--card .f1-package__enquire:focus-visible {
    background: #fb1b03;
    color: #ffffff;
    transform: translateY(-1px);
}

.f1-package--card .f1-package__enquire:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Currency Switcher */
.f1-currency-switcher {
    display: inline-block;
    margin: 20px 0;
}

.f1-currency-switcher select {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #00A7E1;
    border-radius: 4px;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.f1-currency-switcher select:hover,
.f1-currency-switcher select:focus {
    border-color: #E10600;
    outline: none;
}

/* Converted Price Spans (from global filter) */
.f1-converted-price {
    font-weight: 600;
    color: #00A7E1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (max-width: 980px) */
@media (max-width: 980px) {
    .f1-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .f1-package__pricing {
        flex-direction: column;
    }

    .f1-package__name {
        font-size: 28px;
    }

    .f1-package__type {
        font-size: 18px;
    }

    /* Box-specific selectors to match specificity of the full-size rules */
    .f1-package__pricing-box--white .f1-package__pricing-amount,
    .f1-package__pricing-box--red .f1-package__pricing-amount {
        font-size: 24px;
        line-height: 1.2;
    }

    .f1-package__pricing-box--white .f1-package__pricing-details,
    .f1-package__pricing-box--red .f1-package__pricing-details {
        font-size: 18px;
        line-height: 1.3;
    }

    .f1-package__pricing-box--white .f1-package__pricing-year,
    .f1-package__pricing-box--red .f1-package__pricing-year {
        font-size: 20px;
        line-height: 1.2;
    }

    .f1-package__pricing-box--white .f1-package__pricing-deposit,
    .f1-package__pricing-box--red .f1-package__pricing-deposit {
        font-size: 14px;
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    .f1-package-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .f1-package-grid .f1-package--card {
        width: 100%;
        max-width: 420px;
        margin-right: auto;
        margin-left: auto;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .f1-package {
        padding: 15px;
    }

    .f1-package__name {
        font-size: 24px;
    }

    .f1-package__type {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .f1-package__pricing-box {
        padding: 20px;
    }

    /* Box-specific selectors to match specificity of the full-size rules */
    .f1-package__pricing-box--white .f1-package__pricing-year,
    .f1-package__pricing-box--red .f1-package__pricing-year {
        font-size: 18px;
        line-height: 1.2;
    }

    .f1-package__pricing-box--white .f1-package__pricing-amount,
    .f1-package__pricing-box--red .f1-package__pricing-amount {
        font-size: 22px;
        line-height: 1.2;
    }

    .f1-package__pricing-box--white .f1-package__pricing-details,
    .f1-package__pricing-box--red .f1-package__pricing-details {
        font-size: 16px;
        line-height: 1.3;
    }

    .f1-package__pricing-box--white .f1-package__pricing-deposit,
    .f1-package__pricing-box--red .f1-package__pricing-deposit {
        font-size: 12px;
        line-height: 1.3;
    }

    .f1-package__inclusions {
        padding: 20px;
    }

    .f1-package--card .f1-package__body {
        padding: 15px 16px 18px;
    }

    .f1-package--card .f1-package__inclusions {
        padding: 0;
    }

    .f1-package--card .f1-package__departure {
        padding-right: 7px;
        padding-left: 7px;
    }

    .f1-package--card .f1-package__departure-date {
        font-size: 15px;
    }
}
