/* ==========================================================================
   SERVICE OPTIONS (TABS): template-parts/modules/service-options.php
   Tour packages / add-ons / multi-location partnerships (Jeremy 10/6).
   ========================================================================== */

.so-sub {
    margin: 16px auto 0;
    max-width: 640px;
    color: #666666;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.55;
}

/* ---------- Tabs ---------- */
.so-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.so-tabs {
    position: relative;
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: #eef1f6;
    box-shadow: inset 0 0 0 1px #e1e6ef;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.so-tabs::-webkit-scrollbar {
    display: none;
}
.so-tabs__pill {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: #02225a;
    box-shadow: 0 8px 20px rgba(2, 34, 90, 0.25);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.so-tab {
    position: relative;
    z-index: 1;
    flex: none;
    padding: 12px 24px;
    border-radius: 999px;
    color: #02225a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s ease;
}
.so-tab.is-on {
    color: #ffffff;
}
.so-tab:focus-visible {
    outline: 2px solid #be9141;
    outline-offset: 2px;
}
/* Before the script has placed the pill, the active tab carries the navy itself */
.so:not(.is-ready) .so-tab.is-on {
    background: #02225a;
}

/* ---------- Panels ---------- */
.so-panel {
    margin-top: 40px;
}
.so-panel[hidden] {
    display: none;
}
@media (prefers-reduced-motion: no-preference) {
    .so.is-ready .so-panel.is-in .so-card,
    .so.is-ready .so-panel.is-in .so-compare,
    .so.is-ready .so-panel.is-in .so-partner {
        animation: so-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--so-i, 0) * 0.07s) backwards;
    }
}
@keyframes so-in {
    from { opacity: 0; translate: 0 18px; }
    to { opacity: 1; translate: 0 0; }
}

/* Each tab's own eyebrow, title and intro */
.so-intro {
    max-width: 680px;
    margin: 0 auto 30px;
    text-align: center;
}
.so-intro__eyebrow {
    margin: 0;
    color: #8c6a21;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.so-intro__title {
    margin: 8px 0 0;
    color: #02225a;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    font-weight: 600;
    line-height: 1.2;
}
.so-intro__sub {
    margin: 10px 0 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.55;
}

/* ---------- Cards ---------- */
.so-cards {
    display: grid;
    gap: 24px;
}
.so-cards--tours {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}
.so-cards--addons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.so-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 0 0 1px #e3e8f0, 0 12px 32px rgba(2, 34, 90, 0.06);
    transition: translate 0.35s ease, box-shadow 0.35s ease;
}
.so-card:hover {
    translate: 0 -4px;
    box-shadow: 0 0 0 1px #d8c18a, 0 20px 44px rgba(2, 34, 90, 0.12);
}
.so-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}
.so-card__name {
    margin: 0;
    color: #02225a;
    font-size: clamp(1.35rem, 1.8vw, 1.6rem);
    font-weight: 600;
    line-height: 1.2;
}
.so-card__badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: #f6edd3;
    color: #8c6a21;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.so-card__tagline {
    margin: -6px 0 0;
    color: #8c6a21;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
.so-card.is-featured .so-card__tagline {
    color: #e2c36d;
}
.so-card__summary {
    margin: 0;
    color: #555c68;
    font-size: 15px;
    line-height: 1.55;
}
.so-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 6px 0 4px;
    padding: 0;
    list-style: none;
}
.so-list li {
    position: relative;
    padding-left: 30px;
    color: #2b3442;
    font-size: 15px;
    line-height: 1.45;
}
.so-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f6edd3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.8 9 1.2' fill='none' stroke='%238c6a21' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% 50% no-repeat;
}
.so-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: auto;
    padding-top: 10px;
}
.so-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: #02225a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease, translate 0.3s ease;
}
.so-btn:hover {
    background: #be9141;
    color: #02225a;
    translate: 0 -1px;
}
.so-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #8c6a21;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.so-watch:hover {
    color: #02225a;
}
.so-watch__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d4af37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='10' viewBox='0 0 16 18'%3E%3Cpath d='M1 1.7v14.6a1 1 0 001.5.87l12.5-7.3a1 1 0 000-1.74L2.5.83A1 1 0 001 1.7z' fill='%2302225a'/%3E%3C/svg%3E") 56% 50% no-repeat;
}

/* Featured (Branded): navy card, gold accents */
.so-card.is-featured {
    background: linear-gradient(160deg, #0a2f6e 0%, #02225a 45%, #001227 100%);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.55), 0 24px 54px rgba(2, 34, 90, 0.32), 0 0 70px rgba(212, 175, 55, 0.16);
    translate: 0 -10px;
}
.so-card.is-featured:hover {
    translate: 0 -14px;
}
.so-card.is-featured .so-card__name {
    color: #ffffff;
}
.so-card.is-featured .so-card__badge {
    background: #d4af37;
    color: #02225a;
}
.so-card.is-featured .so-card__summary {
    color: rgba(255, 255, 255, 0.78);
}
.so-card.is-featured .so-list li {
    color: #ffffff;
}
.so-card.is-featured .so-list li::before {
    background-color: rgba(212, 175, 55, 0.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.8 9 1.2' fill='none' stroke='%23e2c36d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.so-card.is-featured .so-btn {
    background: #d4af37;
    color: #02225a; /* navy on gold (Kristin) */
}
.so-card.is-featured .so-btn:hover {
    background: #e2c36d;
}
.so-card.is-featured .so-watch {
    color: #e2c36d;
}
.so-card.is-featured .so-watch:hover {
    color: #ffffff;
}
/* ---------- Video thumbnails ---------- */
.so-video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
    cursor: pointer;
}
.so-video img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.so-video:hover img {
    scale: 1.05;
}
.so-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 18, 39, 0.7), rgba(0, 18, 39, 0) 55%);
    pointer-events: none;
}
.so-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18'%3E%3Cpath d='M1 1.7v14.6a1 1 0 001.5.87l12.5-7.3a1 1 0 000-1.74L2.5.83A1 1 0 001 1.7z' fill='%2302225a'/%3E%3C/svg%3E") 56% 50% no-repeat;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: scale 0.3s ease, background-color 0.3s ease;
}
.so-video:hover .so-video__play {
    scale: 1.08;
    background-color: #d4af37;
}
.so-video__text {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #ffffff;
    text-align: left;
}
.so-video__text strong {
    font-size: 16px;
    font-weight: 600;
}
.so-video__text span {
    font-size: 13px;
    opacity: 0.85;
}

/* ---------- Clean vs Branded ---------- */
.so-compare {
    margin-top: 56px;
    --so-i: 3;
}
.so-compare__title {
    margin: 0 0 20px;
    color: #02225a;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 600;
    text-align: center;
}
.so-compare__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}
.so-compare__vs {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d4af37;
    color: #02225a;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(190, 145, 65, 0.35);
}
.so-note {
    max-width: 760px;
    margin: 32px auto 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
.so-note a {
    color: #8c6a21;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Add-ons ---------- */
.so-card--addon {
    padding: 14px 14px 26px;
}
.so-card--addon .so-card__name,
.so-card--addon .so-card__summary {
    padding: 0 12px;
}
.so-card__media {
    border-radius: 16px;
    overflow: hidden;
}
.so-card--addon .so-list {
    padding: 0 12px;
}
.so-card__tile {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0) 70%),
        linear-gradient(160deg, #0a2f6e, #001227);
}
.so-card__tile span {
    color: #e2c36d;
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* ---------- Partnerships ---------- */
.so-partner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(22px, 3.5vw, 40px);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 0 0 1px #e3e8f0, 0 16px 40px rgba(2, 34, 90, 0.07);
}
.so-steps {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.so-step {
    position: relative;
    padding-left: 22px;
    border-left: 2px solid #ecdcb0;
}
.so-step__label {
    margin: 0;
    color: #8c6a21;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.so-step__title {
    margin: 4px 0 0;
    color: #02225a;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.so-step__text {
    margin: 4px 0 0;
    color: #555c68;
    font-size: 15px;
    line-height: 1.55;
}
.so-partner__media {
    display: grid;
    gap: 14px;
}
.so-partner__media.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.so-partner__media.is-grid .so-video {
    border-radius: 16px;
}
.so-partner__media.is-grid .so-video__play {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    background-size: 13px 15px;
}
.so-partner__media.is-grid .so-video__text {
    left: 14px;
    bottom: 10px;
}
.so-partner__media.is-grid .so-video__text strong {
    font-size: 14px;
}
.so-partner__cta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding: 24px 28px;
    border-radius: 20px;
    background:
        radial-gradient(70% 140% at 100% 0%, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0) 60%),
        linear-gradient(160deg, #0a2f6e, #001227);
}
.so-partner__cta-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 600;
}
.so-partner__cta-text {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.5;
}
.so-partner__cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.so-btn--gold {
    background: #d4af37;
    color: #02225a; /* navy on gold (Kristin) */
}
.so-btn--gold:hover {
    background: #e2c36d;
    color: #02225a;
}
.so-partner__cta-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

/* ---------- Tablets + phones ---------- */
@media (max-width: 1023px) {
    .so-cards--tours {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        margin-inline: auto;
    }
    .so-cards--addons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .so-card.is-featured,
    .so-card.is-featured:hover {
        translate: 0 0;
    }
    .so-partner {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 767px) {
    .so-tabs-wrap {
        margin-top: 24px;
    }
    .so-tab {
        padding: 11px 15px;
        font-size: 14px;
    }
    .so-panel {
        margin-top: 28px;
    }
    /* phones: tours and add-ons become swipe rails (js/mobile.js) */
    .so-cards--tours,
    .so-cards--addons {
        max-width: none;
    }
    .so-card {
        padding: 24px 22px;
    }
    .so-compare__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .so-compare__vs {
        justify-self: center;
        width: 40px;
        height: 40px;
        margin: -26px 0;
        position: relative;
        z-index: 2;
    }
    .so-partner {
        padding: 22px 18px;
    }
    .so-tab__tail {
        display: none;
    }
    .so-partner__cta {
        padding: 22px 20px;
    }
    .so-partner__cta-action {
        align-items: flex-start;
    }
}
