/*
 * YWG site.css — design tokens + component/layout styles for the new
 * non-Elementor templates. Tokens match the Elementor Site Settings export
 * at /.migration/elementor-kit/site-settings.json so visual output is faithful
 * to the current live site after Elementor is removed.
 *
 * Scope: every new rule lives under .ywg-*. Do not touch existing
 * .room-type-* / .ywg-amenity-* rules in style.css.
 */

/* ============================================================
 * Design tokens
 * ============================================================ */

:root {
    /* Palette — system colours from Elementor Global Colors */
    --ywg-primary: #324526;           /* Dark olive — H-colors */
    --ywg-secondary: #BCBEA6;         /* Light sage */
    --ywg-text: #515151;
    --ywg-accent: #F0EAD2;            /* Cream */
    --ywg-white: #FFFFFF;
    --ywg-light-cream: #F8F6EB;       /* Body background */
    --ywg-green: #57693F;             /* Brand green */
    --ywg-green-darker: #656D4A;      /* Footer background */
    --ywg-mauve: #663D63;             /* Use sparingly */
    --ywg-line-light-green: #656D4A40;
    --ywg-line-white: #FFFFFF40;
    --ywg-border-grey: #DADFDE;

    /* Heading colour: Elementor kit uses #333D29 (very close to primary) */
    --ywg-heading: #333D29;

    /* Typography */
    --ywg-font-heading: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ywg-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --ywg-body-size: 15px;
    --ywg-body-weight: 400;

    /* Heading sizes — desktop / tablet / mobile (em-based like the original) */
    --ywg-h1-size: 3em;
    --ywg-h1-size-tablet: 2.6em;
    --ywg-h1-size-mobile: 1.9em;
    --ywg-h2-size: 2em;
    --ywg-h2-size-tablet: 2.3em;
    --ywg-h2-size-mobile: 2em;
    --ywg-h3-size: 1.5em;
    --ywg-h3-size-tablet: 1.2em;
    --ywg-h4-size: 1.3em;
    --ywg-h5-size: 1.2em;
    --ywg-h5-size-tablet: 1.1em;

    /* Layout */
    --ywg-container-max: 1200px;
    --ywg-container-pad: clamp(1rem, 4vw, 2.5rem);
    --ywg-section-pad-y: clamp(3rem, 8vw, 6rem);

    /* Breakpoints (for reference — used in @media below) */
    /* --ywg-bp-md: 768px;  --ywg-bp-lg: 1025px; */

    /* Components */
    --ywg-radius-pill: 999px;
    --ywg-radius-btn: 25px;            /* default button radius from kit */
    --ywg-btn-border-width: 3px;
    --ywg-btn-pad-y: 15px;
    --ywg-btn-pad-x: 30px;
    --ywg-shadow-md: 0 2px 12px rgba(0, 0, 0, 0.08);
    --ywg-shadow-lg: 0 5px 10px rgba(0, 0, 0, 0.41);
}

/* ============================================================
 * Base — scoped to our new page-level wrapper .ywg-page so we don't
 * pollute Elementor-rendered pages during the preview period.
 * ============================================================ */

body.ywg-body {
    margin: 0;
    background-color: var(--ywg-light-cream);
    color: var(--ywg-text);
    font-family: var(--ywg-font-body);
    font-size: var(--ywg-body-size);
    font-weight: var(--ywg-body-weight);
    line-height: 1.6;
}

body.ywg-body * { box-sizing: border-box; }

body.ywg-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.ywg-body a {
    color: var(--ywg-green);
    text-decoration: none;
}

body.ywg-body a:hover,
body.ywg-body a:focus-visible {
    color: var(--ywg-mauve);
}

body.ywg-body h1,
body.ywg-body h2,
body.ywg-body h3,
body.ywg-body h4,
body.ywg-body h5,
body.ywg-body h6 {
    font-family: var(--ywg-font-heading);
    color: var(--ywg-heading);
    margin: 0 0 0.5em;
    line-height: 1.15;
}

body.ywg-body h1 { font-size: var(--ywg-h1-size); font-weight: 900; }
body.ywg-body h2 { font-size: var(--ywg-h2-size); font-weight: 800; line-height: 47px; }
body.ywg-body h3 { font-size: var(--ywg-h3-size); font-weight: 800; }
body.ywg-body h4 { font-size: var(--ywg-h4-size); font-weight: 800; }
body.ywg-body h5 { font-size: var(--ywg-h5-size); font-weight: 800; }
body.ywg-body h6 { font-size: 1em; font-weight: 800; }

@media (max-width: 1024px) {
    body.ywg-body h1 { font-size: var(--ywg-h1-size-tablet); }
    body.ywg-body h2 { font-size: var(--ywg-h2-size-tablet); line-height: 1; }
    body.ywg-body h3 { font-size: var(--ywg-h3-size-tablet); }
    body.ywg-body h5 { font-size: var(--ywg-h5-size-tablet); }
}

@media (max-width: 767px) {
    body.ywg-body h1 { font-size: var(--ywg-h1-size-mobile); }
    body.ywg-body h2 { font-size: var(--ywg-h2-size-mobile); }
}

/* Parent theme Albatross applies `ul li, ol li { margin-bottom: 1.5em }`
 * globally, which pushes nav items / social icons / badges apart visually.
 * Reset it on every list we own. Scoped to these specific components so
 * post/blog content with bulleted copy still gets the default spacing. */
body.ywg-body .ywg-nav-primary li,
body.ywg-body .ywg-nav-primary .sub-menu li,
body.ywg-body .ywg-socials li,
body.ywg-body .ywg-welcome__features li,
body.ywg-body .ywg-site-footer__nav-col li,
body.ywg-body .ywg-booking__payments-list li {
    margin-bottom: 0;
}

/* ============================================================
 * Layout primitives
 * ============================================================ */

.ywg-container {
    max-width: var(--ywg-container-max);
    margin: 0 auto;
    padding-left: var(--ywg-container-pad);
    padding-right: var(--ywg-container-pad);
}

.ywg-section {
    padding-top: var(--ywg-section-pad-y);
    padding-bottom: var(--ywg-section-pad-y);
}

/* Shape divider — matches the Elementor "mountains" bottom divider on the
 * header and "pyramids" top divider on the footer. Implemented as masked
 * pseudo-element gradients so we don't need SVG assets. */

.ywg-divider {
    height: 15px;
    background-color: inherit;
}

/* ============================================================
 * Button component — variants match the Elementor button configs seen
 * in Site Settings + Header exports. Extra specificity (a.ywg-btn and
 * !important on text color) to override parent-theme `a`/`.button` rules.
 * ============================================================ */

a.ywg-btn,
button.ywg-btn,
.ywg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: var(--ywg-font-body);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none !important;
    padding: var(--ywg-btn-pad-y) var(--ywg-btn-pad-x);
    /* Border colour matches Elementor Site Settings (#656D4A = --ywg-green-darker)
     * — previously this was set to --ywg-accent which equalled the bg, making
     * the dotted border invisible. */
    border: var(--ywg-btn-border-width) dotted var(--ywg-green-darker);
    border-radius: var(--ywg-radius-btn);
    background-color: var(--ywg-accent);
    color: var(--ywg-heading) !important;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 300ms ease;
    box-sizing: border-box;
}

a.ywg-btn:hover,
a.ywg-btn:focus-visible,
button.ywg-btn:hover,
button.ywg-btn:focus-visible,
.ywg-btn:hover,
.ywg-btn:focus-visible {
    background-color: var(--ywg-mauve);
    color: var(--ywg-white) !important;
    border-color: var(--ywg-mauve);
    transform: scale(1.05);
}

/* Primary — green background, cream dotted border, white text (header Book Now). */
a.ywg-btn--primary,
button.ywg-btn--primary,
.ywg-btn--primary {
    background-color: var(--ywg-green);
    color: var(--ywg-white) !important;
    border-color: var(--ywg-accent);
}
a.ywg-btn--primary:hover,
a.ywg-btn--primary:focus-visible,
button.ywg-btn--primary:hover,
button.ywg-btn--primary:focus-visible,
.ywg-btn--primary:hover,
.ywg-btn--primary:focus-visible {
    background-color: var(--ywg-mauve);
    color: var(--ywg-white) !important;
    border-color: var(--ywg-accent);
}

/* Small — announcement-bar button */
.ywg-btn--sm {
    --ywg-btn-pad-y: 10px;
    --ywg-btn-pad-x: 18px;
    font-size: 14px;
    font-weight: 800;
}

/* ============================================================
 * Site header (two bars: top main bar + announcement bar below)
 * ============================================================ */

.ywg-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--ywg-light-cream);
    transition: box-shadow 200ms ease;
}

.ywg-site-header.is-scrolled {
    box-shadow: var(--ywg-shadow-md);
}

/* When scrolled, compress the header to give the page more room.
 * - Shrinks vertical padding and logo
 * - Hides the mountain divider entirely
 * Animated via transitions below. */
.ywg-site-header .ywg-site-header__bar,
.ywg-site-header__inner,
.ywg-site-header__logo img,
.ywg-site-header__logo .custom-logo-link img,
.ywg-site-header__divider-wrap {
    transition: padding 200ms ease, min-height 200ms ease, max-height 200ms ease, max-width 200ms ease, opacity 200ms ease;
}
.ywg-site-header.is-scrolled .ywg-site-header__bar {
    padding: 6px 0;
}
.ywg-site-header.is-scrolled .ywg-site-header__inner {
    min-height: 60px;
}
.ywg-site-header.is-scrolled .ywg-site-header__logo img,
.ywg-site-header.is-scrolled .ywg-site-header__logo .custom-logo-link img {
    max-height: 54px;
}
.ywg-site-header.is-scrolled .ywg-site-header__divider-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.ywg-site-header__bar {
    padding: 15px 0;
    background-color: var(--ywg-light-cream);
    position: relative;
}

.ywg-site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    min-height: 100px;
}

/* Mountain shape divider wrapper sits between main header bar and announcement
 * bar. The wrapper's background is the green of the announcement bar below,
 * and the SVG (flipped vertically) renders cream mountain peaks dropping down
 * into the green — using Elementor's native 3-layer "mountains" path. */
.ywg-site-header__divider-wrap {
    background-color: var(--ywg-green);
    line-height: 0;
    margin-top: -1px;
    overflow: hidden;
    max-height: 100px;
    transition: max-height 200ms ease, opacity 200ms ease;
}
.ywg-site-header__divider {
    display: block;
    width: 100%;
    height: 40px;
    fill: var(--ywg-light-cream);
    /* Elementor's native mountains path has a flat top + wavy bottom, which is
     * exactly the silhouette we want here: cream continues from the header bar
     * above and drops into the green announcement bar below. No flip needed. */
}

.ywg-site-header__logo {
    flex: 0 0 auto;
    max-width: 220px;
}
.ywg-site-header__logo img,
.ywg-site-header__logo .custom-logo,
.ywg-site-header__logo .custom-logo-link img {
    height: auto;
    max-height: 100px;
    width: auto;
    display: block;
}

.ywg-site-header__nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-self: stretch;
    align-items: center;
}

.ywg-site-header__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

/* Primary nav */
.ywg-nav-primary ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
}
.ywg-nav-primary li {
    position: relative;
    white-space: nowrap;
}
.ywg-nav-primary a {
    display: block;
    padding: 0.7em 10px;
    font-family: var(--ywg-font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.1px;
    color: var(--ywg-primary);
    text-decoration: none;
}
.ywg-nav-primary a:hover,
.ywg-nav-primary li.current-menu-item > a,
.ywg-nav-primary li.current-menu-parent > a {
    color: var(--ywg-green);
}
.ywg-nav-primary .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    list-style: none;
    margin: 0;
    background-color: var(--ywg-white);
    border-radius: 10px;
    box-shadow: 0 2px 15px -4px rgba(0, 0, 0, 0.25);
    padding: 6px 0;
    z-index: 10;
    flex-direction: column;
}
.ywg-nav-primary li:hover > .sub-menu,
.ywg-nav-primary li:focus-within > .sub-menu {
    display: flex;
}
.ywg-nav-primary .sub-menu li {
    margin: 0;
    padding: 0;
    line-height: 1;
}
.ywg-nav-primary .sub-menu a {
    display: block;
    padding: 8px 18px;
    font-family: var(--ywg-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--ywg-primary);
    white-space: nowrap;
    border: 0;
}
.ywg-nav-primary .sub-menu a:hover {
    color: var(--ywg-green);
    background-color: var(--ywg-light-cream);
}

/* Chevron indicator for top-level items that have a submenu */
.ywg-nav-primary .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ywg-nav-primary .menu-item-has-children > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 150ms ease;
}
.ywg-nav-primary .menu-item-has-children:hover > a::after,
.ywg-nav-primary .menu-item-has-children:focus-within > a::after {
    transform: rotate(180deg);
}

/* Social icons shared between header and footer. Uses Lucide via <i data-lucide>
 * so both icons are identically sized/stroked (24x24, stroke 2px). */
.ywg-socials {
    display: flex;
    gap: 14px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ywg-socials li { line-height: 0; display: inline-flex; }
.ywg-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--ywg-primary);
    transition: color 150ms ease;
    line-height: 0;
}
.ywg-socials a:hover { color: var(--ywg-green); }
.ywg-socials i,
.ywg-socials svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor;
    color: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ywg-socials svg { stroke-width: 2; }

/* Mobile nav toggle (hidden on desktop) */
.ywg-nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--ywg-primary);
    font-family: var(--ywg-font-body);
    font-weight: 600;
    align-items: center;
    gap: 6px;
}
.ywg-nav-toggle__icon {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.ywg-nav-toggle__icon::before,
.ywg-nav-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}
.ywg-nav-toggle__icon::before { top: -7px; }
.ywg-nav-toggle__icon::after { top: 7px; }

@media (max-width: 1024px) {
    .ywg-site-header__bar {
        flex-wrap: wrap;
        padding: 20px 0 30px;
    }
    .ywg-site-header__nav {
        order: 99;
        width: 100%;
        flex-basis: 100%;
        justify-content: stretch;
        display: none;
    }
    .ywg-site-header__nav.is-open {
        display: flex;
    }
    .ywg-nav-primary ul {
        flex-direction: column;
        width: 100%;
    }
    .ywg-nav-primary a {
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid var(--ywg-border-grey);
    }
    .ywg-nav-primary .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0 0 0 16px;
        display: flex;
        background: transparent;
    }
    .ywg-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
}

/* Announcement bar (lower header bar, ACF-driven) */
.ywg-announce {
    background-color: var(--ywg-green);
    color: var(--ywg-white);
    text-align: center;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-family: var(--ywg-font-body);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1px;
}
.ywg-announce__text {
    /* Parent theme ships `p { margin-bottom: 1.5em }`, so we force reset. */
    margin: 0 !important;
}
.ywg-announce .ywg-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 800;
    background-color: var(--ywg-accent);
    color: var(--ywg-green);
    border-color: var(--ywg-green);
}
.ywg-announce .ywg-btn:hover {
    background-color: var(--ywg-mauve);
    color: var(--ywg-white);
    border-color: var(--ywg-accent);
}

/* ============================================================
 * Homepage sections
 * ============================================================ */

/* Welcome intro — polaroid image collage on the left, heading + body + CTA
 * + dashed divider + 3 feature badges on the right. Extra bottom padding so
 * the booking section's mountain peaks (which extend upward by 80px) have
 * visible breathing room above them. */
.ywg-welcome {
    background-color: var(--ywg-light-cream);
    position: relative;
    overflow: hidden;
    padding-bottom: calc(var(--ywg-section-pad-y) + 160px);
}

/* Watercolor background — reuses the Watercolor-3.png asset already in
 * uploads (same one the popup uses). Subtle, matches live site. */
.ywg-welcome::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: url('/wp-content/uploads/2024/03/Watercolor-3.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
}

.ywg-welcome > .ywg-container { position: relative; z-index: 1; }

.ywg-welcome__grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 1.2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.ywg-welcome__collage {
    position: relative;
    min-height: 420px;
    padding: 20px;
}

.ywg-welcome__polaroid {
    background: var(--ywg-white);
    padding: 14px 14px 42px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    margin: 0;
    position: absolute;
    border-radius: 2px;
}
.ywg-welcome__polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ywg-welcome__polaroid--top {
    top: 0;
    left: 5%;
    width: 72%;
    transform: rotate(-3deg);
    z-index: 1;
}
.ywg-welcome__polaroid--bottom {
    bottom: 0;
    right: 0;
    width: 60%;
    transform: rotate(5deg);
    z-index: 2;
}

.ywg-welcome__heading {
    margin: 0 0 0.6em;
}

.ywg-welcome__copy {
    color: var(--ywg-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.ywg-welcome__copy p { margin: 0 0 1em; }
.ywg-welcome__copy p:last-child { margin-bottom: 0; }

.ywg-welcome__cta {
    margin-bottom: 2rem;
}

.ywg-welcome__divider {
    border: 0;
    border-top: 2px dashed var(--ywg-secondary);
    margin: 0 0 2rem;
}

.ywg-welcome__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ywg-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ywg-feature__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--ywg-mauve);
    color: var(--ywg-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ywg-feature__icon svg,
.ywg-feature__icon i {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    color: var(--ywg-white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ywg-feature__label {
    font-family: var(--ywg-font-heading);
    font-weight: 900;
    font-size: 1.1em;
    line-height: 1.15;
    color: var(--ywg-heading);
}

@media (max-width: 900px) {
    .ywg-welcome__grid { grid-template-columns: 1fr; }
    .ywg-welcome__collage { min-height: 360px; max-width: 500px; margin: 0 auto; width: 100%; }
    .ywg-welcome__features { grid-template-columns: 1fr; gap: 1rem; }
}

/* Booking widget section — mauve block with mauve mountain peaks extending UP
 * out of the section into the welcome section above (so the welcome backdrop
 * shows between peaks). White heading + form, cream form fields, payment
 * icons below. overflow: visible is required for the peaks to escape upwards. */
.ywg-booking {
    position: relative;
    background-color: var(--ywg-mauve);
    color: var(--ywg-white);
    padding: 70px 0 60px;
    overflow: visible;
}

.ywg-booking__divider-top {
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}
.ywg-booking__divider-top svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--ywg-mauve);
    overflow: visible;
    /* Flip vertically so mauve fill anchors to the BOTTOM of the divider
     * (seamlessly continuing the mauve booking section) and the peaks point
     * UP into the welcome section above. */
    transform: scaleY(-1);
}

.ywg-booking__inner {
    position: relative;
    z-index: 3;
}

body.ywg-body .ywg-booking .ywg-booking__heading {
    text-align: center;
    margin: 0 0 0.4em;
    color: var(--ywg-white);
    /* Match the Welcome H1 size exactly (desktop/tablet/mobile). */
    font-size: var(--ywg-h1-size);
    font-weight: 900;
    line-height: 1.1;
}
@media (max-width: 1024px) {
    body.ywg-body .ywg-booking .ywg-booking__heading { font-size: var(--ywg-h1-size-tablet); }
}
@media (max-width: 767px) {
    body.ywg-body .ywg-booking .ywg-booking__heading { font-size: var(--ywg-h1-size-mobile); }
}
.ywg-booking__subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--ywg-white);
    font-size: 1.05em;
}
.ywg-booking__form {
    max-width: 1100px;
    margin: 0 auto;
}

/* Hide MPHB's "Required fields are followed by *" tip — it's redundant
 * information clutter for this layout. !important beats the horizontal-form
 * `form > p { display: flex }` rule above which otherwise wins on specificity. */
.ywg-booking__form .mphb-required-fields-tip,
.ywg-popup__body .mphb-required-fields-tip,
.mphb_sc_search-form .mphb-required-fields-tip {
    display: none !important;
}

/* Payment icons row */
.ywg-booking__payments {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem auto 0;
    max-width: 900px;
    text-align: center;
}
.ywg-booking__payments-text {
    margin: 0;
    color: var(--ywg-white);
    font-size: 0.95em;
}
.ywg-booking__payments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.ywg-booking__payments-list li {
    line-height: 0;
}
/* Payment icons — each SVG already bakes in a white rounded-card background
 * internally, so don't wrap in our own white card (it hides the card outline
 * and makes identically-coloured SSL SVG invisible). The `secure-1.svg` file
 * also omits width/height on its root <svg>, so we explicitly set aspect-ratio
 * to stop browsers from rendering it at a tiny default size. */
.ywg-booking__payments-list img {
    display: block;
    height: 36px;
    width: auto;
    aspect-ratio: 38 / 24;
    object-fit: contain;
    border-radius: 4px;
    background: transparent;
    padding: 0;
}
@media (max-width: 767px) {
    .ywg-booking__payments { flex-direction: column; }
    .ywg-booking__payments-text { font-size: 0.9em; }
}

/* Horizontal MPHB search form — replicates Elementor's is-style-horizontal-form
 * by making the form's <p>-wrapped field groups a flex row. Works on both
 * the homepage booking section and the Best Rates popup. */
.ywg-booking__form .mphb_sc_search-form,
.ywg-popup__body .mphb_sc_search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.ywg-booking__form .mphb_sc_search-form > p,
.ywg-popup__body .mphb_sc_search-form > p {
    flex: 1 1 150px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ywg-booking__form .mphb_sc_search-form > p > br,
.ywg-popup__body .mphb_sc_search-form > p > br {
    display: none;
}
.ywg-booking__form .mphb_sc_search-form label {
    font-family: var(--ywg-font-body);
    font-weight: 700;
    font-size: 13px;
    color: var(--ywg-white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ywg-popup__body .mphb_sc_search-form label {
    font-family: var(--ywg-font-body);
    font-weight: 700;
    font-size: 13px;
    color: var(--ywg-heading);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ywg-booking__form .mphb_sc_search-form input:not([type="submit"]),
.ywg-booking__form .mphb_sc_search-form select,
.ywg-popup__body .mphb_sc_search-form input:not([type="submit"]),
.ywg-popup__body .mphb_sc_search-form select {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 6px;
    background-color: var(--ywg-light-cream);
    color: var(--ywg-heading);
    font-family: var(--ywg-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    min-height: 52px;
}
.ywg-booking__form .mphb_sc_search-form input::placeholder,
.ywg-popup__body .mphb_sc_search-form input::placeholder {
    color: var(--ywg-text-muted);
    opacity: 1;
}
.ywg-booking__form .mphb_sc_search-form select,
.ywg-popup__body .mphb_sc_search-form select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23324526' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.ywg-booking__form .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper,
.ywg-popup__body .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper {
    flex: 0 0 auto;
}
.ywg-booking__form .mphb_sc_search-form input[type="submit"],
.ywg-popup__body .mphb_sc_search-form input[type="submit"] {
    padding: 16px 36px;
    border: 3px dotted var(--ywg-accent);
    border-radius: var(--ywg-radius-btn);
    background-color: var(--ywg-green);
    color: var(--ywg-white);
    font-family: var(--ywg-font-body);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    min-height: 52px;
    transition: background-color 150ms ease, border-color 150ms ease, transform 200ms ease;
}
.ywg-booking__form .mphb_sc_search-form input[type="submit"]:hover,
.ywg-popup__body .mphb_sc_search-form input[type="submit"]:hover {
    background-color: var(--ywg-green-darker);
    border-color: var(--ywg-accent);
    transform: scale(1.02);
}
.ywg-booking__form .mphb_sc_search-form abbr {
    color: var(--ywg-white);
    text-decoration: none;
    border: 0;
    margin-left: 2px;
}
.ywg-popup__body .mphb_sc_search-form abbr {
    color: var(--ywg-green);
    text-decoration: none;
    border: 0;
    margin-left: 2px;
}

@media (max-width: 767px) {
    .ywg-booking__form .mphb_sc_search-form > p,
    .ywg-popup__body .mphb_sc_search-form > p {
        flex: 1 1 100%;
    }
}

/* Middle text + 3 promo boxes */
.ywg-middle {
    background-color: var(--ywg-light-cream);
    text-align: center;
}
.ywg-middle__text {
    max-width: 820px;
    margin: 0 auto 3rem;
    color: var(--ywg-text);
    font-size: 1.05em;
}
.ywg-promo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
}
.ywg-promo-card {
    display: flex;
    flex-direction: column;
    background-color: var(--ywg-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ywg-shadow-md);
    text-align: left;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.ywg-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
/* Image container — strict 4:3 aspect ratio, flex-locked so the card body
 * can't steal height from it. The <img> is absolutely positioned + !important
 * width/height to beat the parent theme's `body.ywg-body img { height: auto }`
 * and `max-width: 100%` which were making the three cards render at slightly
 * different heights. */
.ywg-promo-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
    background-color: var(--ywg-white);
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}
body.ywg-body .ywg-promo-card__image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: top;
}
.ywg-promo-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    margin-top: 0;
}
.ywg-promo-card__title {
    margin: 0;
    font-family: var(--ywg-font-heading);
    font-size: var(--ywg-h3-size);
    font-weight: 800;
    color: var(--ywg-heading);
}
.ywg-promo-card__desc {
    margin: 0;
    color: var(--ywg-text);
    flex: 1;
}
.ywg-promo-card__cta {
    margin-top: auto;
    align-self: flex-start;
}
@media (max-width: 900px) {
    .ywg-promo-row { grid-template-columns: 1fr; }
}

/* Footer banner — "Our Location" hero CTA. Full-width background photo of
 * the Yorkshire Wolds (ACF-driven, falls back to Views.jpg) with a dark
 * overlay for legibility, centered heading/body/CTAs in white, and a cream
 * mountain shape divider at the top transitioning from the cream promo
 * section above. */
.ywg-footer-banner {
    position: relative;
    isolation: isolate;
    padding: 160px 0 140px;
    color: var(--ywg-white);
    text-align: center;
    background-image: var(--ywg-fb-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark overlay on top of the background photo — tuned for text legibility
 * without obscuring the landscape. */
.ywg-footer-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(50, 69, 38, 0.35) 0%,
        rgba(50, 69, 38, 0.55) 100%
    );
    pointer-events: none;
}

.ywg-footer-banner__divider-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}
.ywg-footer-banner__divider-top svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--ywg-light-cream);
}

/* Bottom gradient fade — the banner image softens into cream over its last
 * ~160px so it merges into the footer's cream top pyramids without a hard
 * straight cut. Replaces an earlier mirrored-SVG divider that read as
 * upside-down mountains. */
.ywg-footer-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(
        to bottom,
        rgba(248, 246, 235, 0) 0%,
        var(--ywg-light-cream) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.ywg-footer-banner__inner {
    position: relative;
    z-index: 3;
}

body.ywg-body .ywg-footer-banner__heading {
    color: var(--ywg-white);
    font-size: var(--ywg-h1-size);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 1024px) {
    body.ywg-body .ywg-footer-banner__heading { font-size: var(--ywg-h1-size-tablet); }
}
@media (max-width: 767px) {
    body.ywg-body .ywg-footer-banner__heading { font-size: var(--ywg-h1-size-mobile); }
}

.ywg-footer-banner__text {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    color: var(--ywg-white);
    font-size: 1.15em;
    line-height: 1.65;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.ywg-footer-banner__ctas {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Large button modifier — used on this hero section. Also exposes an
 * icon slot so we can put a right-arrow before each label. */
a.ywg-btn--lg,
button.ywg-btn--lg,
.ywg-btn--lg {
    --ywg-btn-pad-y: 18px;
    --ywg-btn-pad-x: 40px;
    font-size: 17px;
    font-weight: 700;
    gap: 0.6em;
}
.ywg-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.ywg-btn__icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
 * Site footer
 * ============================================================ */

.ywg-site-footer {
    background-color: var(--ywg-green-darker);
    color: var(--ywg-white);
    padding: 120px 0 30px;
    position: relative;
    overflow: hidden;
}

/* Force white on everything inside the footer — the parent theme's `a` and
 * heading colour rules win without the body-scoped prefix. */
body.ywg-body .ywg-site-footer,
body.ywg-body .ywg-site-footer p,
body.ywg-body .ywg-site-footer h5,
body.ywg-body .ywg-site-footer a,
body.ywg-body .ywg-site-footer .ywg-site-footer__contact-title {
    color: var(--ywg-white);
}
body.ywg-body .ywg-site-footer a:hover,
body.ywg-body .ywg-site-footer a:focus-visible {
    color: var(--ywg-secondary);
}

/* Pyramids shape divider at top of footer */
.ywg-site-footer__divider-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}
.ywg-site-footer__divider-top svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--ywg-light-cream);
}

.ywg-site-footer__inner {
    position: relative;
    z-index: 2;
}

.ywg-site-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width: 900px) {
    .ywg-site-footer__grid { grid-template-columns: 1fr; }
}

.ywg-site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}
.ywg-site-footer__logo {
    display: inline-block;
    max-width: 200px;
}
body.ywg-body .ywg-site-footer__logo img {
    max-width: 200px !important;
    height: auto !important;
    display: block !important;
}
.ywg-site-footer__description {
    margin: 0;
    line-height: 1.6;
    max-width: 380px;
}

/* Bottom row of brand column: socials + DF Awards badge inline. */
.ywg-site-footer__brand-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ywg-site-footer__socials {
    gap: 12px;
}
.ywg-site-footer__socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--ywg-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ywg-white);
    transition: background-color 150ms ease;
}
.ywg-site-footer__socials a:hover { background-color: var(--ywg-mauve); }
.ywg-site-footer__socials i,
.ywg-site-footer__socials svg {
    width: 22px;
    height: 22px;
}

.ywg-site-footer__awards {
    display: inline-block;
    line-height: 0;
}
body.ywg-body .ywg-site-footer__awards img {
    max-width: 110px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    opacity: 0.95;
}

.ywg-site-footer__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ywg-site-footer__contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 600px) {
    .ywg-site-footer__contact-row { grid-template-columns: 1fr; }
}
.ywg-site-footer__contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ywg-site-footer__contact-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--ywg-accent);
    color: var(--ywg-green);
    font-size: 21px;
}
.ywg-site-footer__contact-icon i,
.ywg-site-footer__contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    color: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}
.ywg-site-footer__contact-title {
    font-family: var(--ywg-font-heading);
    font-weight: 900;
    font-size: 1.5em;
    color: var(--ywg-white);
    line-height: 1.2;
}
.ywg-site-footer__contact-text {
    color: var(--ywg-white);
    margin: 0;
}

.ywg-site-footer__divider {
    border: 0;
    border-top: 2px dashed var(--ywg-line-white);
    margin: 0;
}

.ywg-site-footer__nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 2rem;
}
@media (max-width: 900px) {
    .ywg-site-footer__nav-row { grid-template-columns: 1fr 1fr; }
    .ywg-site-footer__features { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
}
@media (max-width: 600px) {
    .ywg-site-footer__nav-row { grid-template-columns: 1fr; }
    .ywg-site-footer__features { flex-direction: column; align-items: center; }
}

.ywg-site-footer__nav-col h5 {
    font-family: var(--ywg-font-heading);
    font-weight: 900;
    font-size: 1.5em;
    color: var(--ywg-white);
    margin: 0 0 0.75em;
}
.ywg-site-footer__nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ywg-site-footer__nav-col a {
    color: var(--ywg-white);
    text-decoration: none;
}

.ywg-site-footer__features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ywg-site-footer__feature {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--ywg-white);
    color: var(--ywg-mauve);
    border-radius: 8px;
    font-family: var(--ywg-font-heading);
    font-weight: 900;
    font-size: 1.1em;
    text-align: center;
}

.ywg-site-footer__copyright {
    text-align: center;
    color: var(--ywg-white);
    font-size: 0.95em;
    margin: 0;
    padding-top: 1rem;
}
.ywg-site-footer__copyright a { color: var(--ywg-white); text-decoration: underline; }

/* ============================================================
 * Best Rates popup (replicates Elementor popup 1517)
 * ============================================================ */

.ywg-popup {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: 65vw;
    max-width: 960px;
    background-color: var(--ywg-light-cream);
    border-radius: 20px 20px 0 0;
    box-shadow: 2px 8px 23px -4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: transform 500ms ease, opacity 300ms ease, visibility 0s linear 300ms;
    overflow: hidden;
}

.ywg-popup.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    transition: transform 500ms ease, opacity 300ms ease, visibility 0s;
}

.ywg-popup__header {
    background-color: var(--ywg-green);
    color: var(--ywg-white);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ywg-popup__title {
    margin: 0;
    color: var(--ywg-white);
    font-family: var(--ywg-font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.ywg-popup__close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--ywg-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 150ms ease;
}
.ywg-popup__close:hover,
.ywg-popup__close:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
}

.ywg-popup__body {
    padding: 24px;
    background-image: url('https://yorkshirewoldsglamping.com/wp-content/uploads/2024/03/Watercolor-3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--ywg-light-cream);
    background-blend-mode: overlay;
}

@media (max-width: 1024px) { .ywg-popup { width: 75vw; } }
@media (max-width: 767px)  { .ywg-popup { width: 100vw; border-radius: 20px 20px 0 0; } }

/* ============================================================
 * Page hero — reusable hero for Gutenberg-built inner pages.
 * Rendered by template-parts/page/hero.php under new-templates/page.php.
 * Olive backdrop by default; per-page ACF image override with dark overlay.
 * Cream mountain divider at the bottom dips into the Gutenberg content
 * area below. Auto-suppresses on Elementor-edited pages via PHP.
 * ============================================================ */

.ywg-page-hero {
    position: relative;
    isolation: isolate;
    padding: 120px 0 140px;
    text-align: center;
    color: var(--ywg-white);
    background-color: var(--ywg-green);
    overflow: hidden;
}
.ywg-page-hero--image {
    background-image: var(--ywg-ph-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ywg-page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(50, 69, 38, var(--ywg-ph-overlay, 0.45));
    pointer-events: none;
}
.ywg-page-hero__inner {
    position: relative;
    z-index: 3;
}

.ywg-page-hero__breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9em;
    opacity: 0.92;
}
body.ywg-body .ywg-page-hero__breadcrumb,
body.ywg-body .ywg-page-hero__breadcrumb a,
body.ywg-body .ywg-page-hero__breadcrumb span {
    color: var(--ywg-white);
}
body.ywg-body .ywg-page-hero__breadcrumb a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.ywg-body .ywg-page-hero__breadcrumb a:hover,
body.ywg-body .ywg-page-hero__breadcrumb a:focus-visible {
    color: var(--ywg-accent);
}

body.ywg-body .ywg-page-hero__heading {
    color: var(--ywg-white);
    font-size: var(--ywg-h1-size);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 1024px) {
    body.ywg-body .ywg-page-hero__heading { font-size: var(--ywg-h1-size-tablet); }
}
@media (max-width: 767px) {
    body.ywg-body .ywg-page-hero__heading { font-size: var(--ywg-h1-size-mobile); }
}

.ywg-page-hero__subtitle {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    color: var(--ywg-white);
    font-size: 1.1em;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.ywg-page-hero__cta {
    margin-top: 0.5rem;
}

.ywg-page-hero__divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}
.ywg-page-hero__divider-bottom svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--ywg-light-cream);
    transform: scaleY(-1);
}

@media (max-width: 767px) {
    .ywg-page-hero { padding: 80px 0 100px; }
}

/* Wrapper around the_content() on generic pages so the Gutenberg post body
 * gets consistent vertical breathing room below the hero. */
.ywg-page-content {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

