/* =====================================================================
   Antelope Island Landing Page
   Scoped to: body.page-template-template-antelope-island
   Design tokens from Figma (MDW 2026): navy #061432, Red Rock #df6461,
   Sky Blue #00a9df, Golden Grass #f5c87c.
   All rules are namespaced to the template body class so nothing here
   leaks into other pages.
   ===================================================================== */

body.page-template-template-antelope-island {
    --ai-navy: #061432;
    --ai-red: #df6461;
    --ai-red-dark: #c9514e;
    --ai-blue: #00a9df;
    --ai-blue-dark: #0090be;
    --ai-gold: #f5c87c;
    --ai-ink: #2a2f3a;
    --ai-muted: #6b7280;
    --ai-radius: 0; /* square corners (no rounding) */
    --ai-shadow: 0 16px 34px rgba(6, 20, 50, 0.13);
    --ai-shadow-hover: 0 22px 46px rgba(6, 20, 50, 0.20);

    /* Widen the constrained layout to match the content column */
    --wp--style--global--content-size: 1440px;
    --wp--style--global--wide-size: 1520px;

    color: var(--ai-ink);
}

/* ---- Layout: widen content column to the Figma grid + full-bleed -- */
/* Theme constrains .post .content to 1000px site-wide; this page's grid
   is ~1266px, so widen it for this template only. */
body.page-template-template-antelope-island .default-page {
    overflow-x: clip; /* contain the 100vw full-bleed sections */
}
/* The theme only centers .content for single blog posts
   (.single-blog-post .post .content), so on a page it defaults to
   margin:0 and pins left. Center it here and widen to fill the screen. */
body.page-template-template-antelope-island .post .content {
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 28px);
}
/* break a block out of the constrained column to true viewport width */
body.page-template-template-antelope-island .ai-fullbleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ---- Shared type & rhythm ---------------------------------------- */
body.page-template-template-antelope-island .wp-block-heading {
    color: var(--ai-navy);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.01em;
}
body.page-template-template-antelope-island h2.wp-block-heading {
    font-size: clamp(1.9rem, 3.2vw, 2.85rem);
}
body.page-template-template-antelope-island h3.wp-block-heading {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

/* Centered intro/lead paragraph under a section heading */
body.page-template-template-antelope-island .ai-lead {
    max-width: 860px;
    margin-inline: auto;
    color: var(--ai-ink);
    font-size: clamp(1.02rem, 1.25vw, 1.2rem);
    line-height: 1.65;
}

/* Section wrapper spacing */
body.page-template-template-antelope-island .ai-section {
    padding-block: clamp(20px, 2.4vw, 36px);
}
/* The theme stacks its own rhythm on top of ours: group inner containers
   get padding: 3em 2em and columns get margin-bottom: 3em globally.
   Flatten both here so .ai-section padding is the only vertical spacing. */
body.page-template-template-antelope-island .wp-block-group .wp-block-group__inner-container {
    padding-block: 0;
}
body.page-template-template-antelope-island .wp-block-columns {
    margin-bottom: 0;
}
body.page-template-template-antelope-island .ai-section > .wp-block-heading.has-text-align-center {
    margin-bottom: 0.6em;
}
/* Section + panel titles are uppercase (accordion titles stay title-case) */
body.page-template-template-antelope-island .ai-section > .wp-block-heading,
body.page-template-template-antelope-island .ai-split__panel h2.wp-block-heading {
    text-transform: uppercase;
}

/* ---- Buttons ------------------------------------------------------ */
body.page-template-template-antelope-island .wp-block-button__link {
    display: inline-block;
    background: var(--ai-red);
    color: #fff;
    border: 0;
    border-radius: 0;
    padding: 0.95em 2.4em;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.1;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
body.page-template-template-antelope-island .wp-block-button__link:hover,
body.page-template-template-antelope-island .wp-block-button__link:focus-visible {
    background: var(--ai-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(223, 100, 97, 0.35);
    color: #fff;
}

/* =====================================================================
   1. HERO
   ===================================================================== */
body.page-template-template-antelope-island .ai-hero.wp-block-cover {
    min-height: clamp(440px, 58vw, 620px);
    padding-block: clamp(48px, 6vw, 72px);
    align-items: center;
    justify-content: center;
    text-align: center;
}
body.page-template-template-antelope-island .ai-hero .wp-block-cover__inner-container {
    width: min(1020px, 90%);
}
body.page-template-template-antelope-island .ai-hero h1 {
    color: #fff;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.015em;
    font-size: clamp(2.4rem, 5.4vw, 4.6rem);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    margin: 0;
}
/* Intro copy lives on the hero image, under the headline (birding pattern) */
body.page-template-template-antelope-island .ai-hero .ai-hero__copy {
    max-width: 880px;
    margin: 1.2em auto 0;
    color: #fff;
    font-size: clamp(0.98rem, 1.25vw, 1.18rem);
    line-height: 1.65;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

/* ---- Hero caption: navy "swish" label pinned to the bottom-right
   corner of the hero image (MDW 2026 header treatment). The navy panel
   is full height on the right and curves gently down to the bottom-left.
   To add one: drop a Paragraph block inside the hero Cover, type the
   caption (Shift+Enter for the line break), then either pick the
   "Hero Caption" block style OR set the CSS class  ai-hero__caption . */

/* Anchor the caption to the Cover's own corner rather than the centered
   text column. Dropping `position` off the inner container makes the
   Cover the positioning context for the caption; the inner container is
   still a flex item, so a z-index keeps the headline above the dim
   overlay without re-introducing a positioned containing block. */
body.page-template-template-antelope-island .ai-hero .wp-block-cover__inner-container {
    position: static;
    z-index: 2;
    isolation: isolate;
}
body.page-template-template-antelope-island .ai-hero :is(.ai-hero__caption, .is-style-ai-hero-caption) {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    margin: 0;
    min-width: min(520px, 76%);
    max-width: 92%;
    padding: 1.7em 1.9em 1.3em 4em;
    background-color: var(--ai-navy);
    /* gentle swish silhouette as an alpha mask — scales with the label,
       no image asset; equivalent to a stretched SVG clip-path. The navy
       is a near-flat shelf across the right (behind the text) and only
       curves down on the left third, so the text is never clipped. */
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20860%20235'%20preserveAspectRatio='none'%3E%3Cpath%20d='M860%20235%20L860%206%20C660%206%20470%2014%20360%2034%20C270%2050%20170%20120%2096%20178%20C62%20205%2036%20220%200%20235%20Z'%20fill='%23fff'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20860%20235'%20preserveAspectRatio='none'%3E%3Cpath%20d='M860%20235%20L860%206%20C660%206%20470%2014%20360%2034%20C270%2050%20170%20120%2096%20178%20C62%20205%2036%20220%200%20235%20Z'%20fill='%23fff'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
    color: #fff;
    text-align: right;
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -0.005em;
    font-size: clamp(1.3rem, 2.2vw, 2.1rem);
    text-shadow: none;
}
/* On phones/small tablets the hero copy is tall, so the corner-pinned
   caption would overlap it. Drop the caption into normal flow as a
   full-bleed bar flush to the hero's bottom edge — in-flow, so it can
   never overlap, but edge-to-edge so it doesn't read as a floating card. */
@media (max-width: 781px) {
    body.page-template-template-antelope-island .ai-hero.wp-block-cover {
        padding-bottom: 0; /* let the bar reach the bottom edge */
    }
    body.page-template-template-antelope-island .ai-hero :is(.ai-hero__caption, .is-style-ai-hero-caption) {
        position: static;
        width: 100vw;
        margin: 1.4em calc(50% - 50vw) 0; /* full-bleed sides, flush bottom */
        min-width: 0;
        max-width: none;
        padding: 1.2em 6vw 1.05em 9vw;
        font-size: clamp(1.05rem, 4.4vw, 1.5rem);
    }
}

/* =====================================================================
   3. PROMO — Score FREE Park Passes (floating card on a starry-night
   gradient with a subtle dotted texture and a 3-color top accent)
   ===================================================================== */
body.page-template-template-antelope-island .ai-promo {
    position: relative;
    padding: 0 clamp(16px, 4vw, 32px) 0 calc((100vw - 1500px) / 2);
    /*background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 169, 223, 0.42), transparent 55%),
        radial-gradient(ellipse at 85% 110%, rgba(245, 200, 124, 0.22), transparent 50%),
        linear-gradient(165deg, var(--ai-navy) 0%, #0a1f4f 55%, #061432 100%);*/
    background-color: #01B2A9;
    text-align: center;
    display: flex;
    align-items: stretch;
    isolation: isolate; /* scope the red-arch pseudo (z-index:-1) to this section */
}
@media(max-width: 1200px) {
    body.page-template-template-antelope-island .ai-promo {
        flex-wrap: wrap;
        padding-inline: 2.5dvw;
    }
}

body.page-template-template-antelope-island .ai-promo > .wp-block-group__inner-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
/* The floating card */
body.page-template-template-antelope-island .ai-promo .ai-promo__inner {
    position: relative;
    z-index: 1;
   /* max-width: 1020px;*/
    flex: 1 0 55%;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 68px)  0;
    /*background: #fff;*/
    border: 0;
    /*border-radius: var(--ai-radius);
    color: var(--ai-ink);
    font-weight: 400;*/
    font-size: 1rem;
    line-height: 1.55;
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    /*box-shadow:
        0 32px 80px rgba(6, 20, 50, 0.45),
        0 4px 0 rgba(6, 20, 50, 0.08);*/
}
body.page-template-template-antelope-island .ai-promo .ai-promo__inner + .wp-block-image {
    position: relative;
    flex: 0 1 45%;
    background-color: transparent; /* white panel comes from the border SVG below */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
body.page-template-template-antelope-island .ai-promo .ai-promo__inner + .wp-block-image img {
    max-width: max(35vw, 400px);
}
/* =====================================================================
   Red arch border — theme SVG (img/ai-backpack-border.svg) draws the white
   Explorer-Backpack panel with a curved left edge and the red arch line
   along it. Stretched across the whole section behind the content: the
   transparent left half reveals the teal, the white right half backs the
   backpack image. Sits behind the cards & backpack (z-index:-1). To reshape
   the curve, edit the path in the SVG file. Path is relative to this file
   (css/ -> ../img/).
   ===================================================================== */
body.page-template-template-antelope-island .ai-promo::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url("../img/ai-backpack-border.svg") 0 0 / 115% 100% no-repeat;
    pointer-events: none;
}
@media(max-width:1200px) {
    body.page-template-template-antelope-island .ai-promo::after {
         background-image: url("../img/ai-backpack-border-mobile.svg");
         background-size: max(800px, 100vw) 100%;
         height: 65%;
         background-position: center bottom;
         background-repeat: no-repeat;
         width:100vw;
         top: unset;
         bottom: 0;
    }
    body.page-template-template-antelope-island .ai-promo > .wp-block-image {
        margin-inline: auto;
    }
}
@media(max-width:767px) {
    body.page-template-template-antelope-island .ai-promo::after {
       /*  background-size: 1200px 100%;
         background-position: 0 300px;*/
    }
}
body.page-template-template-antelope-island .ai-promo > .wp-block-image figcaption {
    max-width: max(35vw, 350px);
    text-align: left;
    padding-inline: 2.5vw;
}

/* Heading inside the card */
body.page-template-template-antelope-island .ai-promo h2.wp-block-heading {
    margin: 0.15em 0 0.2em;
    font-size: clamp(2rem, 4vw, 3.1rem);
    text-transform: uppercase;
    color: var(--ai-navy);
}
/* "A Wild Deal at Antelope Island" subhead under the H2 */
body.page-template-template-antelope-island .ai-promo h3.ai-promo__subhead {
    margin: 0 0 0.9em;
    color: #fff
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}
/* Intro / kicker paragraphs */
body.page-template-template-antelope-island .ai-promo p {
    max-width: 720px;
    margin: 0.5em auto 1.25em;
    color: #fff;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.6;
}
/* Closing "Now that's staying power" kicker — last <p> before the button */
body.page-template-template-antelope-island .ai-promo .ai-promo__inner > p:last-of-type {
    margin: 1.4rem auto 1.75rem;
    color: var(--ai-navy);
    font-weight: 800;
    font-style: italic;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
/* Perks list — 3 gold pill cards with red checkmark badges */
body.page-template-template-antelope-island .ai-promo ul.wp-block-list {
    list-style: none;
    margin: 1.75rem auto;
    padding: 0;
    max-width: 880px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
body.page-template-template-antelope-island .ai-promo ul.wp-block-list li {
    position: relative;
    margin: 0;
    padding: 18px 18px 18px 60px;
    background: linear-gradient(135deg, #fff7e6 0%, #fde8c0 100%);
    border-left: 4px solid var(--ai-red);
    color: var(--ai-navy);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.4;
    text-align: left;
}
body.page-template-template-antelope-island .ai-promo ul.wp-block-list li::before {
    content: "\2713"; /* ✓ */
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--ai-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(223, 100, 97, 0.35);
}
/* Three promo cards styling */
body.page-template-template-antelope-island .ai-promo .promo-cards {
    margin-top: calc(67px + 1.5rem);
    max-width:45rem;
}
@media(max-width:1200px) {
    body.page-template-template-antelope-island .ai-promo .promo-cards {
        margin-inline: auto;
        justify-content: center;
    }
}

@media(max-width:800px) {
    body.page-template-template-antelope-island .ai-promo .promo-cards {
        flex-wrap: wrap-reverse;
    }
}

body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card {
    --ai-card-color: #32B6E2;
    border-radius: 25px;
    position: relative;
    background-color: #fff !important;
    border: 8px solid var(--ai-card-color);
    color: var(--ai-ink);
    flex: 1 1 30%;
    max-width: 50%;
}
@media(max-width:600px) {
    body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card {
        flex: 0 0 100% !important;
        max-width: 350px;
        margin-bottom: 65px;
    }
}
body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card:nth-child(2) {
    --ai-card-color: var(--ai-gold);
    flex-basis: 32.5%;
}
body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card:nth-child(3) {
    --ai-card-color: var(--ai-navy);
    flex-basis: 37.5%;
}
@media(max-width:800px) {
    body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card:nth-child(3) {
        margin-bottom: 65px;
    }
}

body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card > .wp-block-image:first-of-type {
    position: relative;
    width: 100px;
    aspect-ratio: 1/1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -67px auto 0 auto;
    background-color: var(--ai-card-color);
    padding: 1rem;
    border: 5px solid #fff;
    border-radius: 50%;
}
body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card .wp-block-heading {
    margin-inline: auto;
    font-size: clamp(1.125rem, 3vw, 1.75rem);
    color: var(--ai-card-color);
}
body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card > p:has( + .wp-block-heading) {
    font-family: arboria,sans-serif !important;
    color: var(--ai-navy);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 auto -0.5rem;
    text-align: center;
    text-transform: uppercase;
    color: var(--ai-card-color);

 }
body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card > .wp-block-image:last-of-type {
    border-radius: 0 0 12.5px 12.5px;
    overflow:hidden;
    display: block;
    width: 100%;
}
body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card > .wp-block-image:last-of-type img {
    margin-bottom: -2px;
    width: 100%;
}
body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card p {
    color: var(--ai-ink);
    padding-inline: 0.5rem;
}
/* "Best Value!" flag on the third (Stay 4+ Nights) card — CSS-only, no
   markup element needed. Anchored to the card's top-right corner. */
body.page-template-template-antelope-island .ai-promo .promo-cards .promo-card:nth-child(3)::after {
    content: "Best\A Value!";
    white-space: pre;
    position: absolute;
    top: -2.75rem;
    right: -3.5rem;
    z-index: 4;
    padding: 1rem 1.5rem;
    background: var(--ai-red);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.25rem;
    line-height: 1.02;
    letter-spacing: 0.03em;
    text-align: center;
    transform: rotate(9deg);
    box-shadow: 0 7px 16px rgba(6, 20, 50, 0.32);
   clip-path: shape(
    from 46% 2%, 
    curve to 54% 2% with 50% 0%, 
    line to 96% 22%, 
    curve to 100% 28% with 100% 24%, 
    line to 100% 72%, 
    curve to 96% 78% with 100% 76%, 
    line to 54% 98%, 
    curve to 46% 98% with 50% 100%, 
    line to 4% 78%, 
    curve to 0% 72% with 0% 76%, 
    line to 0% 28%, 
    curve to 4% 22% with 0% 24%, 
    close);
}





/* Center the CTA */
body.page-template-template-antelope-island .ai-promo .wp-block-buttons {
    justify-content: center;
}

/* =====================================================================
   4. ACTIVITIES — expanding panels (5 cards, even by default; hover one
   to grow it and shrink the rest). Pure CSS, no JS. Falls back to a
   responsive grid on touch / small screens.
   ===================================================================== */
body.page-template-template-antelope-island .ai-panels {
    display: flex;
    gap: 12px;
    height: clamp(360px, 40vw, 470px);
    margin-top: 1.75rem;
}
body.page-template-template-antelope-island .ai-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* horizontal resize only; gentle ease-in-out so it doesn't snap */
    transition: flex-grow 0.62s cubic-bezier(0.65, 0, 0.35, 1);
}
body.page-template-template-antelope-island .ai-panel__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
body.page-template-template-antelope-island .ai-panel__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 20, 50, 0.78) 0%, rgba(6, 20, 50, 0.18) 55%, rgba(6, 20, 50, 0.05) 100%);
    transition: background 0.62s cubic-bezier(0.65, 0, 0.35, 1);
}
body.page-template-template-antelope-island .ai-panel__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(14px, 1.5vw, 26px);
}
body.page-template-template-antelope-island .ai-panel__icon {
    color: #fff;
    font-size: clamp(1.7rem, 2.6vw, 2.7rem);
    line-height: 1;
    margin-bottom: 0.45em;
}
body.page-template-template-antelope-island .ai-panel__label {
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    font-size: clamp(1rem, 1.5vw, 1.7rem);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
/* Description + CTA: collapsed to nothing until the panel is expanded, then
   they ease in (slightly delayed so they appear once the panel has widened). */
body.page-template-template-antelope-island .ai-panel__desc {
    color: #fff;
    margin: 0;
    max-width: 44ch;
    font-size: clamp(0.92rem, 1vw, 1.08rem);
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.42s ease, transform 0.42s ease, max-height 0.42s ease, margin 0.42s ease;
}
body.page-template-template-antelope-island .ai-panel__cta {
    display: inline-block;
    margin: 0;
    padding: 0.62em 1.5em;
    background: var(--ai-red);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(0.78rem, 0.9vw, 0.92rem);
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.42s ease, transform 0.42s ease, max-height 0.42s ease, margin 0.42s ease, background 0.2s ease;
}
/* The interaction: while the row is hovered, shrink every panel; the
   hovered panel itself uses a more specific selector so it wins and grows. */
body.page-template-template-antelope-island .ai-panels:hover .ai-panel,
body.page-template-template-antelope-island .ai-panels:focus-within .ai-panel {
    flex-grow: 0.7;
}
body.page-template-template-antelope-island .ai-panels:hover .ai-panel:hover,
body.page-template-template-antelope-island .ai-panels:focus-within .ai-panel:focus-within {
    flex-grow: 4;
}
body.page-template-template-antelope-island .ai-panel:hover .ai-panel__scrim,
body.page-template-template-antelope-island .ai-panel:focus-within .ai-panel__scrim {
    background: linear-gradient(to top, rgba(6, 20, 50, 0.8) 0%, rgba(6, 20, 50, 0.55) 100%);
}
/* Reveal the copy once a panel is expanded (hover or keyboard focus-within). */
body.page-template-template-antelope-island .ai-panel:hover .ai-panel__desc,
body.page-template-template-antelope-island .ai-panel:focus-within .ai-panel__desc {
    opacity: 1;
    transform: none;
    max-height: 18em;
    margin-top: 0.7em;
    pointer-events: auto;
    transition-delay: 0.16s;
}
body.page-template-template-antelope-island .ai-panel:hover .ai-panel__cta,
body.page-template-template-antelope-island .ai-panel:focus-within .ai-panel__cta {
    opacity: 1;
    transform: none;
    max-height: 5em;
    margin-top: 1.1em;
    pointer-events: auto;
    transition-delay: 0.24s;
}
body.page-template-template-antelope-island .ai-panel__cta:hover {
    background: var(--ai-red-dark);
}
body.page-template-template-antelope-island .ai-panel__cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    body.page-template-template-antelope-island .ai-panel,
    body.page-template-template-antelope-island .ai-panel__scrim,
    body.page-template-template-antelope-island .ai-panel__desc,
    body.page-template-template-antelope-island .ai-panel__cta { transition: none; }
}
/* touch / small screens: even grid, no hover-grow. Copy is always shown
   (there's no hover), so each panel becomes a full card with its text. */
@media (max-width: 900px), (hover: none) {
    body.page-template-template-antelope-island .ai-panels {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        gap: 12px;
    }
    body.page-template-template-antelope-island .ai-panel {
        flex: none;
        height: auto;
        min-height: clamp(260px, 52vw, 340px);
    }
    body.page-template-template-antelope-island .ai-panel:last-child { grid-column: 1 / -1; }
    body.page-template-template-antelope-island .ai-panels:hover .ai-panel,
    body.page-template-template-antelope-island .ai-panel:hover { flex-grow: 0; }
    body.page-template-template-antelope-island .ai-panel__scrim {
        background: linear-gradient(to top, rgba(6, 20, 50, 0.85) 0%, rgba(6, 20, 50, 0.5) 100%);
    }
    body.page-template-template-antelope-island .ai-panel__desc,
    body.page-template-template-antelope-island .ai-panel__cta {
        opacity: 1;
        transform: none;
        max-height: none;
        overflow: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }
    body.page-template-template-antelope-island .ai-panel__desc { margin-top: 0.6em; }
    body.page-template-template-antelope-island .ai-panel__cta { margin-top: 1em; }
}
@media (max-width: 520px) {
    body.page-template-template-antelope-island .ai-panels { grid-template-columns: 1fr; }
    body.page-template-template-antelope-island .ai-panel:last-child { grid-column: auto; }
}

/* Plan-your-stay closing block */
body.page-template-template-antelope-island .ai-plan {
    padding-top: clamp(16px, 2vw, 32px);
}
body.page-template-template-antelope-island .ai-plan .ai-lead {
    margin-bottom: 2rem;
}
body.page-template-template-antelope-island .ai-plan .wp-block-buttons {
    display: flex;
    justify-content: center;
}

/* =====================================================================
   5. SPLIT FEATURE — Sunsets (colored panel + image, unified rounded card)
   ===================================================================== */
body.page-template-template-antelope-island .ai-split.wp-block-columns {
    gap: 0;
    align-items: stretch;
    border-radius: var(--ai-radius);
    overflow: hidden;
    box-shadow: var(--ai-shadow);
    margin-block: 0;
}
body.page-template-template-antelope-island .ai-split > .wp-block-column {
    display: flex;
    flex-direction: column;
}
/* text panel */
body.page-template-template-antelope-island .ai-split__panel {
    justify-content: center;
    gap: 1.1rem;
    padding: clamp(2rem, 4vw, 4rem);
    min-height: clamp(360px, 36vw, 500px);
}
body.page-template-template-antelope-island .ai-split__panel--navy {
    background: var(--ai-navy);
}
body.page-template-template-antelope-island .ai-split__panel--navy h2,
body.page-template-template-antelope-island .ai-split__panel--navy h3 {
    color: #fff;
}
body.page-template-template-antelope-island .ai-split__panel--navy p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}
body.page-template-template-antelope-island .ai-split__panel p {
    line-height: 1.6;
    margin: 0;
}
body.page-template-template-antelope-island .ai-split__panel .wp-block-buttons {
    margin-top: 0.5rem;
}
/* sky-blue CTA inside the starry panel */
body.page-template-template-antelope-island .ai-split--starry .wp-block-button__link {
    background: var(--ai-blue);
}
body.page-template-template-antelope-island .ai-split--starry .wp-block-button__link:hover,
body.page-template-template-antelope-island .ai-split--starry .wp-block-button__link:focus-visible {
    background: var(--ai-blue-dark);
    box-shadow: 0 10px 22px rgba(0, 169, 223, 0.35);
}
/* image side */
body.page-template-template-antelope-island .ai-split__media.wp-block-cover {
    min-height: clamp(280px, 36vw, 500px);
    height: 100%;
    margin: 0;
    border-radius: 0;
}

/* =====================================================================
   8. TWO-COLUMN — History (text + rounded image, no card chrome)
   ===================================================================== */
body.page-template-template-antelope-island .ai-twocol.wp-block-columns {
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
}
body.page-template-template-antelope-island .ai-twocol__text {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
body.page-template-template-antelope-island .ai-twocol__text h2 {
    text-transform: uppercase;
}
body.page-template-template-antelope-island .ai-twocol__text p {
    margin: 0;
    line-height: 1.6;
}
body.page-template-template-antelope-island .ai-twocol__media.wp-block-cover {
    min-height: clamp(300px, 34vw, 460px);
    border-radius: var(--ai-radius);
    overflow: hidden;
    margin: 0;
}

/* =====================================================================
   6. EVENTS — white cards w/ image, title, accent
   ===================================================================== */
body.page-template-template-antelope-island .ai-event-cards.wp-block-columns,
body.page-template-template-antelope-island .ai-experience-cards.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 40px);
    align-items: stretch;
    margin-top: 1.5rem;
}
body.page-template-template-antelope-island .ai-experience-cards.wp-block-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.page-template-template-antelope-island .ai-event-cards > .wp-block-column,
body.page-template-template-antelope-island .ai-experience-cards > .wp-block-column {
    flex-basis: auto !important;
    padding: 0;
    min-width: 0;
}
/* cards size to their content (no forced stretch => no dead white space) */
body.page-template-template-antelope-island .ai-event-cards.wp-block-columns {
    align-items: start;
}
body.page-template-template-antelope-island .ai-event-card {
    background: #fff;
    border-radius: var(--ai-radius);
    box-shadow: var(--ai-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.page-template-template-antelope-island .ai-event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ai-shadow-hover);
}
/* Image spans the full width across the top of the card. */
body.page-template-template-antelope-island .ai-event-card .wp-block-image,
body.page-template-template-antelope-island .ai-event-card figure {
    margin: 0;
    line-height: 0;
}
body.page-template-template-antelope-island .ai-event-card .wp-block-image img {
    display: block;
    width: 100% !important;
    height: clamp(240px, 26vw, 330px);
    object-fit: cover;
    aspect-ratio: auto !important; /* override UA aspect-ratio from width/height attrs */
}
body.page-template-template-antelope-island .ai-event-card h3 {
    margin: 0;
    padding: clamp(20px, 2vw, 30px) clamp(22px, 2vw, 32px) clamp(24px, 2.4vw, 36px);
    text-transform: uppercase;
    font-size: clamp(1.2rem, 1.9vw, 1.9rem);
}
body.page-template-template-antelope-island .ai-event-card h3 a {
    color: var(--ai-navy);
    text-decoration: none;
}
body.page-template-template-antelope-island .ai-event-card h3 a:hover {
    color: var(--ai-red);
}
body.page-template-template-antelope-island .ai-event-card h3::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 0.55em;
    background: var(--ai-red);
}

/* =====================================================================
   7 + 9. HORSEBACK BANNER + EXPERIENCE cards
   ===================================================================== */
body.page-template-template-antelope-island .ai-horseback-banner.wp-block-cover,
body.page-template-template-antelope-island .ai-horseback-banner img {
    border-radius: var(--ai-radius);
}
body.page-template-template-antelope-island .ai-horseback-banner.wp-block-cover {
    min-height: clamp(220px, 28vw, 400px);
    overflow: hidden;
    margin-bottom: clamp(24px, 4vw, 56px);
}

body.page-template-template-antelope-island .ai-experience-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
body.page-template-template-antelope-island .ai-experience-card .wp-block-image {
    margin: 0;
}
body.page-template-template-antelope-island .ai-experience-card .wp-block-image img {
    display: block;
    width: 100% !important;
    height: clamp(220px, 25vw, 320px);
    object-fit: cover;
    aspect-ratio: auto !important;
    border-radius: var(--ai-radius);
}
body.page-template-template-antelope-island .ai-experience-card h3 {
    margin: 0;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
}
body.page-template-template-antelope-island .ai-experience-card p {
    margin: 0;
    line-height: 1.6;
    flex: 1 1 auto;
}
body.page-template-template-antelope-island .ai-experience-card .wp-block-buttons {
    margin-top: 0.25rem;
}

/* =====================================================================
   10. GUIDE — accordion (reuses .ekr-accordion-content from theme)
   ===================================================================== */
body.page-template-template-antelope-island .ekr-accordion-content {
    padding-block: 0;
}
/* keep the guide column to the Figma width (~860px), centered */
body.page-template-template-antelope-island .ai-guide .ekr-accordion-content .offset-accordion {
    max-width: 860px;
    margin-inline: auto;
}
body.page-template-template-antelope-island .offset-accordion > div {
    padding: 0.65em 0;
    box-shadow: none;
}
body.page-template-template-antelope-island .offset-accordion > div h3 {
    padding-bottom: 0.55em;
    border-bottom: 1.5px solid var(--ai-navy);
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    text-transform: none;
}
body.page-template-template-antelope-island .offset-accordion button {
    top: 0;
    bottom: unset;
    box-shadow: none !important;
    padding: 0;
    background: transparent;
}
body.page-template-template-antelope-island .offset-accordion button i {
    color: var(--ai-navy);
}

/* =====================================================================
   11. KEEP THE ADVENTURE GOING — kraken coverflow inherits plugin css
   ===================================================================== */
body.page-template-template-antelope-island .ai-keep-going {
    padding-bottom: clamp(40px, 5vw, 80px);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
    /* Splits stack */
    body.page-template-template-antelope-island .ai-split.wp-block-columns {
        grid-template-columns: 1fr;
    }
    body.page-template-template-antelope-island .ai-split.wp-block-columns,
    body.page-template-template-antelope-island .ai-split > .wp-block-column {
        display: flex;
        flex-direction: column;
    }
    /* History: show the image above the copy when stacked */
    body.page-template-template-antelope-island .ai-twocol.wp-block-columns {
        flex-direction: column;
    }
    body.page-template-template-antelope-island .ai-twocol .ai-twocol__text {
        order: 2;
    }
}

@media (max-width: 900px) {
    body.page-template-template-antelope-island .ai-experience-cards.wp-block-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    body.page-template-template-antelope-island .ai-event-cards.wp-block-columns,
    body.page-template-template-antelope-island .ai-experience-cards.wp-block-columns {
        grid-template-columns: 1fr;
    }
}
