/*
 * Header contact icons and site banner.
 * Hand-written standalone file, not generated by gulp. See inc/header-extras.php.
 * 1rem = 10px on this site.
 */

/* ---------- Site banner (sits inside the fixed .Header, above .Header-wrapper) ---------- */

.SiteBanner {
    margin: -1.2rem -2rem 1.2rem;
    font-family: "Gotham Rounded", sans-serif;
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 500;
    text-align: center;
}

.SiteBanner-inner {
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.SiteBanner-text {
    margin: 0;
}

.SiteBanner-link {
    display: inline-block;
    margin-left: .6rem;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .3rem;
    white-space: nowrap;
}

.SiteBanner-link:hover,
.SiteBanner-link:focus-visible {
    text-decoration-thickness: .2rem;
}

.SiteBanner--dark {
    background-color: #1a2f2f;
    color: #ffffff;
}

.SiteBanner--teal {
    background-color: #4db8b9;
    color: #242424;
}

.SiteBanner--cream {
    background-color: #F5F0E7;
    color: #2C3C3B;
}

/* Uploaded design: full width, scaled to fit, capped so a tall upload can't swamp the page */
.SiteBanner-picture,
.SiteBanner-imageLink {
    display: block;
}

.SiteBanner-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 16rem;
    margin: 0 auto;
    object-fit: contain;
}

.SiteBanner-imageLink:focus-visible {
    outline: .2rem solid currentColor;
    outline-offset: -.4rem;
}

/* The header is fixed and overlaps the top of the page, so push the page down by
   the banner's height (set by header-extras.js) to avoid covering more content. */
body.has-site-banner main {
    padding-top: var(--tsc-site-banner-height, 3.6rem);
}

/*
 * The cards banner has a height the stylesheet already knows - the card plus the
 * padding above and below it - so say it here rather than wait for the script.
 * Without this the page reserves 3.6rem for a 16.4rem banner, and everything
 * below jumps down the moment the script runs, or stays wrong if it never does.
 * The script still sets the exact value and wins. Browsers without :has() keep
 * the old behaviour.
 */
:root:has(.SiteBanner--cards) {
    --tsc-site-banner-height: 16.4rem;   /* 14rem card + 1.2rem above and below */
}

@media (max-width: 768px) {
    :root:has(.SiteBanner--cards) {
        --tsc-site-banner-height: 13.6rem;   /* 12rem card + .8rem above and below */
    }
}

@media (max-width: 600px) {
    :root:has(.SiteBanner--cards) {
        --tsc-site-banner-height: 11.6rem;   /* 10rem card + .8rem above and below */
    }
}

/* The uploaded design is capped at 16rem tall, so that is the most it can need */
:root:has(.SiteBanner--image) {
    --tsc-site-banner-height: 16rem;
}

/* ---------- Pages built from blocks: room for the fixed header ---------- */

/* Header height without the banner. header-extras.js sets the exact value;
   these fallbacks cover the moment before it runs. */
:root {
    --tsc-header-height: 7.3rem;
}

@media (max-width: 768px) {
    :root {
        --tsc-header-height: 6.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --tsc-header-height: 6.4rem;
    }
}

/* Added when the first visible block isn't a full-width image block (hero, promo banner),
   so its top isn't hidden behind the header. Includes the usual 4.5rem gap between sections. */
.TscBelowHeader {
    padding-top: calc(var(--tsc-header-height) + 4.5rem);
}

@media (max-width: 1200px) {
    body.has-site-banner .Menu {
        height: calc(100dvh - 7rem - var(--tsc-site-banner-height, 3.6rem));
    }
}

@media (max-width: 768px) {
    body.has-site-banner .Menu {
        height: calc(100dvh - 6.2rem - var(--tsc-site-banner-height, 3.6rem));
    }
}

/* ---------- Header contact icons ---------- */

.HeaderContact {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-left: 2.4rem;
    pointer-events: initial;
}

.HeaderContact-item {
    position: relative;
}

.HeaderContact-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 200ms ease-out;
}

.HeaderContact-toggle:hover,
.HeaderContact-toggle[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, .15);
}

.HeaderContact-toggle:focus-visible {
    outline: .2rem solid #ffffff;
    outline-offset: .2rem;
}

.HeaderContact-toggle svg,
.HeaderContact-icon {
    display: block;
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
}

/* The box sizes itself to its content so the number or email always stays on one line */
.HeaderContact-popover {
    position: absolute;
    top: calc(100% + 1.2rem);
    right: 0;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: 1.6rem 2rem;
    background-color: #ffffff;
    border-radius: .5rem;
    box-shadow: 0 .8rem 2.4rem rgba(0, 0, 0, .2);
    text-align: left;
    white-space: nowrap;
}

.HeaderContact-popover[hidden] {
    display: none;
}

/* Phones: line the box up with the header's right edge rather than the icon, so it never runs off-screen */
@media (max-width: 480px) {
    .HeaderContact,
    .HeaderContact-item {
        position: static;
    }

    .HeaderContact-popover {
        z-index: 10;
        right: 0;
    }
}

/* Label: the site's small caps style, as used on buttons and the desktop menu */
.HeaderContact-label {
    display: block;
    margin-bottom: .4rem;
    font-family: "Gotham Rounded", sans-serif;
    font-size: 1.2rem;
    line-height: 1.6rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #283D3B;
}

/* Number / email: the site's standard text link (teal, medium weight, underlined), at body text size */
.HeaderContact-link {
    display: block;
    font-family: "Gotham Rounded", sans-serif;
    font-size: 1.6rem;
    line-height: 2.1rem;
    font-weight: 500;
    color: #4db8b9;
    text-decoration: underline;
    white-space: nowrap;
}

.HeaderContact-link:hover,
.HeaderContact-link:focus-visible {
    color: #4db8b9;
    text-decoration: none;
}

/* Below 1200px the menu moves into the burger and the logo pushes everything right */
@media (max-width: 1200px) {
    .HeaderContact {
        margin-left: 0;
    }
}

/* Below 480px the burger is positioned absolutely on the right, so leave room for it */
@media (max-width: 480px) {
    .HeaderContact {
        margin-right: 4.4rem;
    }

    .HeaderContact-toggle {
        width: 3.6rem;
        height: 3.6rem;
    }
}

/* ---------- Phone logo (Options → Mobile logo) ---------- */

/* A shorter logo on phones so it fits beside the phone, email and menu icons */
.Header-logo--hasMobile .Header-logoMobile {
    display: none;
}

@media (max-width: 480px) {
    .Header-logo--hasMobile {
        flex-shrink: 0;
    }

    .Header-logo--hasMobile .Header-logoFull {
        display: none;
    }

    .Header-logo--hasMobile .Header-logoMobile {
        display: block;
    }
}

/* The narrowest phones (under 360px): slightly smaller logo and icons so nothing touches the menu button */
@media (max-width: 359px) {
    .Header-logo.Header-logo--hasMobile {
        height: 3rem;
    }

    .HeaderContact {
        gap: 0;
        margin-right: 4rem;
    }

    .HeaderContact-toggle {
        width: 3.2rem;
        height: 3.2rem;
    }
}

/* ---------- Phone and email at the top of the open menu (tablets and phones) ---------- */

.MenuContact {
    display: none;
}

@media (max-width: 1200px) {
    .Menu.Menu--hasContact {
        padding-top: 2rem;
    }

    .MenuContact {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid #ffffff;
    }

    /* The contact block's line replaces the first menu item's top line */
    .Menu.Menu--hasContact > ul > li:first-child {
        border-top: 0;
    }

    /* The menu items' size and weight (18px medium), in normal lettering so the email stays readable */
    .MenuContact-link {
        display: flex;
        align-items: center;
        gap: 1.2rem;
        font-family: "Gotham Rounded", sans-serif;
        font-size: 1.8rem;
        line-height: 2.4rem;
        font-weight: 500;
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
    }

    .MenuContact-link:hover,
    .MenuContact-link:focus-visible {
        color: #ffffff;
        text-decoration: underline;
    }

    .MenuContact-link svg,
    .MenuContact-icon {
        display: block;
        flex-shrink: 0;
        width: 2.2rem;
        height: 2.2rem;
    }
}

/* ---------- Site banner: cards (up to 6, scrolled with the arrows or a swipe) ---------- */

.SiteBanner--cards {
    padding: 1.2rem 0;
    text-align: left;
}

/* Lines up with the header and the page content. The banner is pulled out to the full width of
   the header (margin -2rem), so its inner container needs that 2rem back on top of its own. */
.SiteBanner-cards {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    max-width: 136rem;
    padding-left: 4rem;
    padding-right: 4rem;
}

/* One row of cards that scrolls sideways. Cards keep the same width whatever the screen size,
   so three sit across the page with the next one peeking; narrower screens simply show fewer. */
.SiteBanner-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(32rem, 86vw);
    gap: 1.6rem;
    flex: 1;
    /* When every card fits, sit them in the middle of the strip rather than
       leaving a gap on the right. "safe" means that as soon as there are more
       cards than fit, they go back to the left so the first one is never
       scrolled out of reach. */
    justify-content: safe center;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}

.SiteBanner-track::-webkit-scrollbar {
    display: none;
}

.SiteBanner-cardItem {
    scroll-snap-align: start;
}

.SiteBanner-card {
    display: flex;
    align-items: stretch;
    height: 14rem;
    padding: 0;
    background-color: #ffffff;
    border-radius: .5rem;
    color: #283D3B;
    text-decoration: none;
    overflow: hidden;
}

/* Keyboard users need to see where they are */
a.SiteBanner-card:focus-visible {
    outline: .2rem solid #4db8b9;
    /* Drawn inside the card: the track is exactly card height, so a ring outside
       it would have its top and bottom cut off */
    outline-offset: -.2rem;
}

/*
 * Pressing a card. A phone has no hover, so this is the only cue it can
 * give: the card dips and shades for as long as the finger is down, which
 * confirms the tap landed. It answers on a mouse press too, so everyone
 * gets the same acknowledgement at the moment of clicking.
 */
a.SiteBanner-card {
    transition: transform 120ms ease-out, background-color 120ms ease-out;
}

a.SiteBanner-card:active {
    transform: scale(.98);
    background-color: #f1f3f3;
}

/*
 * Pointing at a card grows the picture and the words together, the same
 * gesture the footer image links and the resort gallery already use.
 * Only on devices with a real pointer: a phone has no hover, and some
 * mobile browsers would leave the effect stuck on after a tap.
 */
@media (hover: hover) and (pointer: fine) {
    /* Grows from its left edge too, so the picture never creeps towards
       the words as it gets bigger */
    .SiteBanner-cardImage {
        transform-origin: left center;
        transition: transform 200ms ease-in-out;
    }

    /* Grows from its left edge, so the words spread into their own
       margin rather than towards the picture */
    .SiteBanner-cardBody {
        transform-origin: left center;
        transition: transform 200ms ease-in-out;
    }

    a.SiteBanner-card:hover .SiteBanner-cardImage,
    a.SiteBanner-card:focus-visible .SiteBanner-cardImage {
        transform: scale(1.1);
    }

    a.SiteBanner-card:hover .SiteBanner-cardBody,
    a.SiteBanner-card:focus-visible .SiteBanner-cardBody {
        transform: scale(1.06);
    }
}

/* Anyone who has asked their device for less movement gets none.
   The pressed card still shades, so the tap is still acknowledged. */
@media (prefers-reduced-motion: reduce) {
    a.SiteBanner-card,
    .SiteBanner-cardImage,
    .SiteBanner-cardBody {
        transition: none;
    }

    a.SiteBanner-card:active {
        transform: none;
    }

    a.SiteBanner-card:hover .SiteBanner-cardImage,
    a.SiteBanner-card:focus-visible .SiteBanner-cardImage,
    a.SiteBanner-card:hover .SiteBanner-cardBody,
    a.SiteBanner-card:focus-visible .SiteBanner-cardBody {
        transform: none;
    }
}

/* The picture sits on the right, running to the card's edges */
.SiteBanner-cardImage {
    order: 2;
    flex-shrink: 0;
    width: 14rem;
    min-width: 14rem;
    height: 100%;
    object-fit: cover;
}

/* Fixed spacing: more above and below than between the lines */
.SiteBanner-cardBody {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .9rem;
    min-width: 0;
    /* Take whatever the picture leaves, so the card is always filled. Without
       this the words size to their own width and the picture stops short of
       the edge, leaving a white strip. */
    flex: 1 1 auto;
    padding: 1.6rem 1.4rem;
}

.SiteBanner-cardLabel {
    font-family: "Gotham Rounded", sans-serif;
    font-size: 1.2rem;
    line-height: 1.6rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #4db8b9;
    /* One line only: a label that wrapped would push the heading and the
       detail line out of the bottom of the card */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
 * The description is up to three lines, each typed separately in the admin so
 * the wording breaks where it is meant to. Each line stays on its own line and
 * tails off if it is too long, rather than wrapping and pushing the card about.
 */
.SiteBanner-cardHeading {
    font-family: "Gotham Rounded", sans-serif;
    font-size: 1.3rem;
    line-height: 1.7rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Three lines is what the card has room for, whatever is typed */
    max-height: 5.1rem;
    overflow: hidden;
}

.SiteBanner-cardLine {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.SiteBanner-cardText {
    font-family: "Gotham Rounded", sans-serif;
    font-size: 1.1rem;
    line-height: 1.5rem;
    color: #5a6b6a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* A card that is just a picture: the picture fills it */
.SiteBanner-cardItem--imageOnly .SiteBanner-cardImage {
    width: 100%;
    max-width: none;
}

.SiteBanner-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Just the chevron, no circle: its outer edge lines up with the content edge */
    width: 2.8rem;
    height: 4.4rem;
    padding: 0;
    border: 0;
    background-color: transparent;
    color: inherit;
    cursor: pointer;
    transition: opacity 200ms ease-out;
}

.SiteBanner-arrow svg {
    width: 2.8rem;
    height: 2.8rem;
}

.SiteBanner-arrow:hover {
    opacity: .65;
}

.SiteBanner-arrow:focus-visible {
    outline: .2rem solid currentColor;
    outline-offset: .4rem;
}

.SiteBanner-arrow[hidden] {
    display: none;
}

/* Tablets: no arrows, swipe instead, but keep whole cards rather than one wide one */
@media (max-width: 768px) {
    .SiteBanner--cards {
        padding: .8rem 0;
    }

    .SiteBanner-card {
        height: 12rem;
    }

    /* Square again at the shorter height */
    .SiteBanner-cardImage {
        width: 12rem;
        min-width: 12rem;
    }

    /* Less room top to bottom, so the words sit closer together and a
       three-line heading still fits inside the shorter card */
    .SiteBanner-cardBody {
        gap: .6rem;
        padding: 1.2rem 1.3rem;
    }

    .SiteBanner-cardHeading {
        line-height: 1.6rem;
        max-height: 4.8rem;
    }

    .SiteBanner-arrow {
        display: none;
    }
}

/* Phones: a smaller card, sized so one and a bit show and it's obviously swipeable */
@media (max-width: 600px) {
    .SiteBanner-track {
        grid-auto-columns: min(28rem, 86%);
        gap: 1.2rem;
    }

    /* Shorter card, so the square picture is smaller and the words keep their room.
       The type steps down a little so a heading still gets its three lines. */
    .SiteBanner-card {
        height: 10rem;
    }

    .SiteBanner-cardImage {
        width: 10rem;
        min-width: 10rem;
    }

    .SiteBanner-cardBody {
        gap: .4rem;
        padding: .8rem 1.2rem;
    }

    .SiteBanner-cardLabel {
        line-height: 1.5rem;
        letter-spacing: .08em;
    }

    .SiteBanner-cardHeading {
        font-size: 1.2rem;
        line-height: 1.5rem;
        max-height: 4.5rem;
    }

    .SiteBanner-cardText {
        line-height: 1.4rem;
    }
}

/* The banner belongs at the top of the page: on the way back up the header returns on its own */
.Header--pastBanner .SiteBanner {
    display: none;
}

/* Klaviyo sign-up popup (Nov 2026)
   The theme gives the fixed header z-index 99999 (assets/scss/module/wordpress/layouts/_Header.scss),
   which is above Klaviyo's popup overlay, so the header sat on top of the popup. Lowering the header
   to 9999 puts it under Klaviyo while keeping it above the rest of the page. !important is needed to
   beat the theme's own value whatever order the stylesheets load in.
   This lived in staging's Appearance -> Customize -> Additional CSS from 22 Oct 2026; moved here so it
   ships with the code and reaches both sites. See docs/customizer-css/README.md. */
header.Header.__header {
    z-index: 9999 !important;
}
