/* ════════════════════════════════════════════════════════════════
   MET Plans — per-tour plan-selection section.
   Sits between the gallery and the description, hidden until the
   user picks a date in the booking card.
   ════════════════════════════════════════════════════════════════ */

.met-plans {
    --mp-navy:   var(--met-navy,   #10243F);
    --mp-orange: var(--met-orange, #FF5533);
    --mp-muted:  var(--met-muted,  #6B7280);
    --mp-border: #E2E6EE;
    --mp-soft:   #F8FAFD;
    /* Brand-only palette — every interactive accent uses orange (action) or
       navy (trust/confirmation). The old --mp-blue token was the only blue
       on the page, now retired. */
    --mp-accent: var(--met-orange, #FF5533);

    margin: 28px 0;
    color: var(--mp-navy);
    box-sizing: border-box;
}
.met-plans *,
.met-plans *::before,
.met-plans *::after { box-sizing: border-box; }

.met-plans.is-revealed { animation: met-plans-fade .35s ease-out; }
@keyframes met-plans-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.met-plans__heading {
    margin: 0 0 18px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--mp-navy);
}

.met-plans__list { display: flex; flex-direction: column; gap: 14px; }

/* ─── Plan card ───────────────────────────────────────────────── */
.met-plan {
    background: #fff;
    border: 1.5px solid var(--mp-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.met-plan:hover { border-color: var(--mp-accent); box-shadow: 0 2px 14px rgba(15,30,53,.06); }
.met-plan.is-open { border-color: var(--mp-accent); box-shadow: 0 4px 18px rgba(15,30,53,.10); }
.met-plan.is-chosen { border-color: var(--mp-orange); box-shadow: 0 4px 18px rgba(255,85,51,.18); }

/* ─── Head (always visible) ──────────────────────────────────── */
.met-plan__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
}
.met-plan__title {
    flex: 1;          /* title takes the remaining space */
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-navy);
    line-height: 1.35;
    min-width: 0;     /* allow truncation if needed */
}
/* Badge sits on the RIGHT of the head, just before the chevron toggle. */
.met-plan__badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #FFE3D2 0%, #FFCFAA 100%);
    color: #7c2d12;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.met-plan__toggle {
    width: 36px; height: 36px;
    background: transparent;
    border: 0;
    color: var(--mp-accent);
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: background .12s, color .12s, transform .2s;
    flex-shrink: 0;
}
.met-plan__toggle:hover { background: rgba(255, 85, 51, .10); }
.met-plan.is-open .met-plan__toggle { transform: rotate(180deg); }

/* ─── Body (collapsed by default) ─────────────────────────────── */
.met-plan__body {
    display: none;
    padding: 0 18px 18px;
}
.met-plan.is-open .met-plan__body { display: block; }

/* Summary — JS truncates long text and splices a "Read more" link AT THE
   END OF THE SAME PARAGRAPH. The link is plain dark-blue underlined text,
   inline with the rest of the paragraph: clicking it doesn't introduce a
   new block, the expanded text continues from the same baseline. */
.met-plan__summary {
    margin: 0 0 14px;
    color: var(--mp-muted);
    font-size: 14px;
    line-height: 1.55;
    /* Important: text must wrap normally so the inline "Read more" sits next
       to the ellipsis on the same paragraph (not on its own row). */
    overflow-wrap: anywhere;
    word-break: break-word;
}
.met-plan__summary-more {
    display: inline;
    color: var(--mp-navy);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
    /* Reset any inherited button styling — this is a plain link. */
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}
.met-plan__summary-more:hover,
.met-plan__summary-more:focus { color: var(--mp-orange); }

/* Facts (guide language, pickup zones) */
.met-plan__facts {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.met-plan__facts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--mp-navy);
}
.met-plan__facts .met-fa {
    color: var(--mp-navy);
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}
.met-plan__zones-link {
    color: var(--mp-navy);
    font-weight: 700;
    text-decoration: underline;
}
.met-plan__zones-link:hover { color: var(--mp-orange); }
.met-plan__zones-hint {
    display: block;
    font-size: 12.5px;
    color: var(--mp-muted);
    margin-top: 2px;
}
.met-plan__facts li:has(.met-plan__zones-link) {
    flex-direction: column;
    padding-left: 26px;
    position: relative;
}
.met-plan__facts li:has(.met-plan__zones-link) > .met-fa {
    position: absolute;
    left: 0;
    top: 2px;
}

/* Single start-time (plan with one slot) */
.met-plan__single-time {
    margin: 0 0 14px;
    color: var(--mp-muted);
    font-size: 13.5px;
}
.met-plan__single-time .met-fa { color: var(--mp-navy); margin-right: 6px; }

/* Start-times picker (plan with multiple slots) */
.met-plan__start {
    margin: 4px 0 16px;
    padding: 14px;
    background: var(--mp-soft);
    border: 1px solid var(--mp-border);
    border-radius: 10px;
}
.met-plan__start h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mp-navy);
}
.met-plan__start-date {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--mp-muted);
}
.met-plan__time-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.met-plan__time-chip {
    appearance: none;
    background: #fff;
    border: 1.5px solid var(--mp-border);
    color: var(--mp-navy);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    min-width: 64px;
    min-height: 38px;
}
.met-plan__time-chip:hover { border-color: var(--mp-orange); color: var(--mp-orange); }
.met-plan__time-chip.is-selected {
    background: var(--mp-navy);
    color: #fff;
    border-color: var(--mp-navy);
}

/* Policies (cancellation, pay-later) */
.met-plan__policies {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 0 0;
    border-top: 1px solid #F0F2F6;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: var(--mp-navy);
}
.met-plan__policies li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.met-plan__policies .met-fa {
    color: var(--mp-accent);
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}
.met-plan__policies a {
    color: var(--mp-navy);
    text-decoration: underline;
    font-weight: 700;
}
.met-plan__policies a:hover { color: var(--mp-orange); }

/* Footer (price + Continue) */
.met-plan__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #F0F2F6;
}
.met-plan__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    line-height: 1.2;
}
.met-plan__price-original {
    color: rgba(16,36,63,.55);
    font-size: 13.5px;
    text-decoration: line-through;
}
.met-plan__price-current {
    color: var(--mp-orange);
    font-size: 22px;
    font-weight: 800;
}
.met-plan__price-discount {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: #FFE3D2;
    color: #B23A1C;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}
.met-plan__price-breakdown {
    font-size: 12.5px;
    color: var(--mp-muted);
    margin-top: 2px;
}
.met-plan__price-fees {
    font-size: 12px;
    color: var(--mp-muted);
}
.met-plan__price-err {
    color: #B23A1C;
    font-size: 13px;
    font-weight: 700;
}
.met-plan__price-err i { margin-right: 6px; }

.met-plan__continue {
    appearance: none;
    background: var(--mp-accent);
    color: #fff;
    border: 0;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    min-height: 44px;
    transition: background .15s, transform .12s;
    white-space: nowrap;
}
.met-plan__continue:hover:not(:disabled) {
    background: #E5482B;          /* darker orange — same hover tone as the booking card Reserve button */
    transform: translateY(-1px);
}
.met-plan__continue:disabled {
    background: #d8dee9;
    color: rgba(16,36,63,.55);
    cursor: not-allowed;
}

/* ════════════════════════════════════════════════════════════════
   Mobile responsiveness
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
    .met-plans { margin: 20px 0; }
    .met-plan__head { padding: 14px 14px; }
    .met-plan__body { padding: 0 14px 14px; }
    .met-plan__title { font-size: 15px; }
    .met-plan__badge { font-size: 10px; padding: 2px 8px; }

    /* Stack price + Continue vertically on phones so neither has to truncate. */
    .met-plan__foot {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .met-plan__continue {
        width: 100%;
        padding: 14px 18px;
        min-height: 48px;
    }

    /* Time chips wider for touch */
    .met-plan__time-chip {
        flex: 1 1 auto;
        min-width: 70px;
        min-height: 44px;
    }
}

@media (max-width: 380px) {
    .met-plan__head { gap: 8px; }
    .met-plan__title { font-size: 14.5px; }
    .met-plan__price-current { font-size: 20px; }
}

/* Don't fight Elementor's mobile-overlap fixes from met-tour-widgets.css */
@media (max-width: 880px) {
    .elementor-widget-shortcode > .elementor-widget-container > .met-plans {
        clear: both;
        float: none;
        width: 100%;
    }
}
