/* ===========================================================================
 * Venue pages with a featured pass (template-destination.php)
 *
 * Coachford, after Eoghan's comment 11931178 (31 October 2026): Coachford
 * Activity Park's own brand in the Hub hero, the All Access Day Pass's price or
 * coming-soon message docked across the hero's foot, the pass's own section
 * straight after it, and the practical information and directions last.
 * Loaded on the venue pages only (inc/destinations.php). Tokens only: every
 * colour is the Ballyhass palette, in the pairings tokens.css allows (navy on
 * white 15.04:1, navy on the light surface 13.63:1, white on navy 15.04:1,
 * navy on yellow 13.34:1, yellow on navy 13.34:1).
 * ======================================================================== */

/* ---- The hero: the destination's logo in place of the title -------------
 * The reversed Coachford Activity Park flag (a white flag, navy letters) is the
 * version made for a dark ground: the flag on the navy panel is 15.04:1 and its
 * letters keep their colour. Its clear space is at least the height of its
 * capitals on every side, so the label above and the line below stand off it.
 * The artwork is shown whole and never recoloured or cropped. */

.bh-hub-hero__title--logo {
    margin: var(--bh-space-2) 0;
    line-height: 0;
}

.bh-hub-hero__logo {
    display: block;
    width: clamp(220px, 26vw, 360px);
    max-width: 100%;
    height: auto;
}

.bh-hub-hero--logo .bh-hub-hero__eyebrow {
    margin-bottom: var(--bh-space-6);
}

.bh-hub-hero--logo .bh-hub-hero__intro {
    margin-top: var(--bh-space-6);
    font-size: var(--bh-text-md);
    font-weight: var(--bh-weight-bold);
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
    opacity: 1;
}

@media (max-width: 991.98px) {
    /* The photograph is a wide band on a phone, so the pass's message docked
       below the panel is on the first screen. */
    .bh-hub-hero--logo.bh-hub-hero--split .bh-hub-hero__media {
        aspect-ratio: 16 / 9;
    }

    .bh-hub-hero--logo.bh-hub-hero--split .bh-hub-hero__container {
        padding-top: var(--bh-space-4);
    }
}

/* The pass's summary docks on the hero's torn edge. main.min.css gives the last
   section of a parent a 100px bottom margin, which opened a gap between them. */
.page-template-template-destination .bh-hub-hero {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .bh-hub-hero--logo .bh-hub-hero__logo {
        width: clamp(180px, 50vw, 220px);
    }

    .bh-hub-hero--logo .bh-hub-hero__title--logo {
        margin: var(--bh-space-1) 0;
    }

    .bh-hub-hero--logo .bh-hub-hero__eyebrow {
        margin-bottom: var(--bh-space-4);
    }

    .bh-hub-hero--logo .bh-hub-hero__intro {
        margin-top: var(--bh-space-4);
        font-size: var(--bh-text-xs);
    }
}

@media (max-width: 575.98px) {
    .bh-hub-hero--logo.bh-hub-hero--split .bh-hub-hero__media {
        aspect-ratio: 2 / 1;
    }
}

/* ---- The pass's summary on the hero's foot --------------------------------
 * The strip docks over the hero as on a product page, but stays where it is:
 * the page below sells other things, so it neither sticks under the header nor
 * hands over to the phone bar. */

.bh-booking--static {
    position: relative;
    top: auto;
}

.bh-destination-page > .bh-booking {
    margin-bottom: 0;
}

/* "EXPLORE THE ALL ACCESS DAY PASS" is longer than a product page's "BOOK AT
   MALLOW": it wraps rather than running past the card (56px over at 320px). */
.bh-booking--static .bh-booking__cta {
    padding-top: var(--bh-space-2);
    padding-bottom: var(--bh-space-2);
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

/* ---- The featured pass (template-parts/destination-feature.php) --------- */

.bh-dest-feature {
    margin: var(--bh-space-12) 0 0;
    padding: var(--bh-space-6) var(--bh-space-5);
    border-radius: var(--bh-radius-md);
    background: var(--bh-surface-2);
    color: var(--bh-on-white);
    font-family: var(--bh-font);
}

@media (min-width: 768px) {
    .bh-dest-feature {
        padding: var(--bh-space-12);
    }
}

.bh-dest-feature__head {
    max-width: 48rem;
    margin: 0 0 var(--bh-space-8);
}

.bh-dest-feature__title {
    margin: 0 0 var(--bh-space-4);
    color: var(--bh-on-white);
    font-family: var(--bh-font);
    font-size: clamp(1.75rem, 3.2vw, var(--bh-text-2xl));
    font-weight: var(--bh-weight-bold);
    line-height: var(--bh-leading-tight);
}

.bh-dest-feature__lede {
    color: var(--bh-on-white);
    font-size: var(--bh-text-md);
    font-weight: var(--bh-weight-medium);
    line-height: var(--bh-leading-body);
}

.bh-dest-feature__lede > :first-child,
.bh-dest-feature__text > :first-child { margin-top: 0; }
.bh-dest-feature__lede > :last-child,
.bh-dest-feature__text > :last-child { margin-bottom: 0; }

.bh-dest-feature__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--bh-space-8) var(--bh-space-12);
}

@media (min-width: 992px) {
    .bh-dest-feature__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

    .bh-dest-feature__grid--single {
        grid-template-columns: minmax(0, 48rem);
    }
}

/* Subtitles: all caps, bold. */
.bh-dest-feature__label {
    margin: 0 0 var(--bh-space-3);
    color: var(--bh-on-white);
    font-family: var(--bh-font);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
    letter-spacing: 0.06em;
    line-height: var(--bh-leading-body);
    text-transform: uppercase;
}

/* Included activities: photograph and name, two across. */
.bh-dest-feature__activities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bh-space-5) var(--bh-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.bh-dest-feature__activities--one {
    grid-template-columns: minmax(0, 1fr);
    max-width: 24rem;
}

.bh-dest-feature__activity {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--bh-space-2);
    min-width: 0;
}

.bh-dest-feature__photo {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: var(--bh-radius-md);
    background: var(--bh-navy);
}

.bh-dest-feature__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-dest-feature__activity-name {
    color: var(--bh-on-white);
    font-size: var(--bh-text-sm);
    font-weight: var(--bh-weight-bold);
    line-height: 1.3;
}

a.bh-dest-feature__activity-name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* The whole tile is the link's target; the name is what a screen reader reads. */
a.bh-dest-feature__activity-name::after {
    position: absolute;
    inset: 0;
    border-radius: var(--bh-radius-md);
    content: "";
}

a.bh-dest-feature__activity-name:hover,
a.bh-dest-feature__activity-name:focus {
    color: var(--bh-on-white);
    text-decoration-thickness: 2px;
}

a.bh-dest-feature__activity-name:focus-visible {
    outline: none;
}

a.bh-dest-feature__activity-name:focus-visible::after {
    outline: var(--bh-focus-width) solid var(--bh-focus-color);
    outline-offset: var(--bh-focus-offset);
    box-shadow: var(--bh-focus-shadow);
}

.bh-dest-feature__block + .bh-dest-feature__block {
    margin-top: var(--bh-space-6);
}

.bh-dest-feature__text {
    color: var(--bh-on-white);
    font-size: var(--bh-text-sm);
    font-weight: var(--bh-weight-medium);
    line-height: var(--bh-leading-body);
}

/* The comparison in figures, every one a live price. */
.bh-dest-feature__compare {
    margin: var(--bh-space-4) 0 0;
    padding: var(--bh-space-2) var(--bh-space-4);
    border-radius: var(--bh-radius-md);
    background: var(--bh-white);
}

.bh-dest-feature__compare-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--bh-space-1) var(--bh-space-4);
    padding: var(--bh-space-2) 0;
    font-size: var(--bh-text-xs);
}

.bh-dest-feature__compare-row + .bh-dest-feature__compare-row {
    border-top: 1px solid var(--bh-line);
}

.bh-dest-feature__compare dt {
    font-weight: var(--bh-weight-medium);
}

.bh-dest-feature__compare dd {
    margin: 0;
    font-weight: var(--bh-weight-bold);
}

.bh-dest-feature__compare-row--pass dt {
    font-weight: var(--bh-weight-bold);
}

/* The state and the one action. */
.bh-dest-feature__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--bh-space-4) var(--bh-space-8);
    margin-top: var(--bh-space-8);
    padding-top: var(--bh-space-6);
    border-top: 1px solid var(--bh-line);
}

.bh-dest-feature__state {
    margin: 0;
    color: var(--bh-on-white);
}

.bh-dest-feature__state strong {
    display: block;
    font-size: var(--bh-text-md);
    font-weight: var(--bh-weight-bold);
    line-height: 1.3;
}

.bh-dest-feature__state span {
    display: block;
    margin-top: 2px;
    color: var(--bh-muted);                  /* 5.8:1 on the light surface */
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-medium);
}

.bh-dest-feature__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bh-space-3) var(--bh-space-5);
}

/* Brand primary: yellow, navy text, all caps, bold, rounded square. */
.bh-dest-feature__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 var(--bh-space-6);
    border-radius: 6px;
    background: var(--bh-yellow);
    color: var(--bh-on-yellow);
    font: var(--bh-weight-bold) 0.9375rem / 1.2 var(--bh-font);
    letter-spacing: 0.03em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.bh-dest-feature__cta:hover,
.bh-dest-feature__cta:focus {
    background: var(--bh-navy);
    color: var(--bh-on-navy);
    text-decoration: none;
}

.bh-dest-feature__cta:focus-visible,
.bh-dest-feature__link:focus-visible {
    outline: var(--bh-focus-width) solid var(--bh-focus-color);
    outline-offset: var(--bh-focus-offset);
}

.bh-dest-feature__link {
    color: var(--bh-on-white);               /* navy, underlined: 13.63:1 on the light surface (blue text would be 4.54:1) */
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
    .bh-dest-feature__actions,
    .bh-dest-feature__cta {
        width: 100%;
    }
}

/* ---- The venue's lists after it (template-parts/destination-hub.php) ---- */

.bh-dest-feature + .bh-destination {
    margin-top: var(--bh-space-16);
}

/* ---- Practical information and directions, last ------------------------ */

.bh-dest-practical {
    margin-top: var(--bh-space-16);
    padding-top: var(--bh-space-12);
    border-top: 1px solid var(--bh-line);
    color: var(--bh-on-white);
    font-family: var(--bh-font);
}

.bh-dest-practical__title {
    margin: 0 0 var(--bh-space-6);
    color: var(--bh-on-white);
    font-family: var(--bh-font);
    font-size: var(--bh-text-xl);
    font-weight: var(--bh-weight-black);
    line-height: var(--bh-leading-tight);
}

.bh-dest-practical__label,
.bh-dest-practical .bh-destination__editorial-heading {
    margin: 0 0 var(--bh-space-2);
    color: var(--bh-on-white);
    font-family: var(--bh-font);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
    letter-spacing: 0.06em;
    line-height: var(--bh-leading-body);
    text-transform: uppercase;
}

.bh-dest-practical__address {
    margin: 0 0 var(--bh-space-4);
    font-size: var(--bh-text-md);
    font-weight: var(--bh-weight-semibold);
    line-height: var(--bh-leading-body);
}

.bh-dest-practical__directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--bh-target-comfortable);
    padding: 0 var(--bh-space-5);
    border: 2px solid var(--bh-navy);
    border-radius: 6px;
    background: var(--bh-white);
    color: var(--bh-on-white);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
}

.bh-dest-practical__directions:hover,
.bh-dest-practical__directions:focus {
    background: var(--bh-navy);
    color: var(--bh-on-navy);
    text-decoration: none;
}

.bh-dest-practical__directions:focus-visible {
    outline: var(--bh-focus-width) solid var(--bh-focus-color);
    outline-offset: var(--bh-focus-offset);
}

.bh-dest-practical .bh-destination__editorial {
    margin-top: var(--bh-space-8);
}

.bh-dest-practical .bh-destination__other {
    margin-top: var(--bh-space-8);
}
