/*
 * externalrendering.net — site stylesheet (2026-11 refresh).
 * Replaces the parent theme (traveltour) and GoodLayers page builder stylesheets; the markup they
 * print is unchanged, so selectors below target their class names.
 *
 *  1. Tokens          5. Mobile call bar     9. Home sections      13. Forms
 *  2. Base            6. Menus & search     10. Inner pages        14. Footer
 *  3. Layout          7. Photo carousel     11. Blog               15. Small screens / motion
 *  4. Header          8. Page builder       12. Gallery & cases
 */

/* ---------- 1. Tokens ---------- */

@font-face {
    font-family: "Figtree";
    src: url("fonts/figtree-var.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #101b33;
    --ink-soft: #46526b;
    --navy: #0f1d3a;
    --navy-soft: #c5cfe3;
    --blue: #1c5bd0;
    --blue-dark: #1548a8;
    --blue-tint: #e8f0fd;
    --amber: #f7a71d;
    --amber-dark: #ea940f;
    --band: #f2f5fa;
    --line: #dde3ed;
    --white: #fff;
    --error: #b3261e;
    --ok: #17663a;

    --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gutter: clamp(16px, 4vw, 32px);
    --container: min(1200px, 100% - 2 * var(--gutter));
    --section: clamp(48px, 7vw, 88px);
    --radius: 14px;
    --radius-s: 10px;
    --shadow: 0 1px 2px rgb(16 27 51 / 0.06), 0 10px 28px rgb(16 27 51 / 0.09);
    --shadow-lift: 0 2px 4px rgb(16 27 51 / 0.08), 0 18px 40px rgb(16 27 51 / 0.14);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 64px;
    --callbar-h: 0px;

    --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
    --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 7l-10 7L2 7'/%3E%3C/svg%3E");
    --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    --i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 5.96 6.56.95-4.75 4.63 1.12 6.54L12 17.5l-5.87 3.08 1.12-6.54L2.5 9.41l6.56-.95z'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    accent-color: var(--blue);
    overflow-wrap: break-word;
}

::selection {
    background: var(--blue);
    color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    color: var(--ink);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); }
h4 { font-size: 1.1875rem; }
h5, h6 { font-size: 1rem; letter-spacing: 0; }

p, ul, ol, dl, blockquote, table, figure, pre {
    margin: 0 0 1.15em;
}

ul, ol {
    padding-left: 1.3em;
}

li + li {
    margin-top: 0.3em;
}

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.15s;
}

a:hover {
    color: var(--blue-dark);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

img, svg, video, iframe {
    max-width: 100%;
}

img {
    height: auto;
    vertical-align: middle;
}

strong, b {
    font-weight: 700;
}

blockquote {
    padding: 4px 0 4px 20px;
    border-left: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 1.125rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

hr {
    height: 1px;
    margin: 2em 0;
    border: 0;
    background: var(--line);
}

.clear {
    display: block;
    clear: both;
}

.screen-reader-text,
.screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* The theme prints icon-font tags; icons are drawn from the SVG tokens above instead. */
i.fa,
i[class^="icon_"],
i[class*=" icon_"],
i[class^="arrow_"] {
    display: none;
}

.alignleft { float: left; margin: 4px 24px 16px 0; }
.alignright { float: right; margin: 4px 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { margin-top: 8px; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- 3. Layout ---------- */

.traveltour-container,
.gdlr-core-container {
    width: var(--container);
    margin-inline: auto;
}

.traveltour-container .gdlr-core-container,
.gdlr-core-container .gdlr-core-container,
.traveltour-container .traveltour-container {
    width: 100%;
}

.traveltour-page-wrapper {
    min-height: 40vh;
}

.traveltour-content-container {
    padding-block: clamp(24px, 4vw, 48px) var(--section);
}

.traveltour-sidebar-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
}

.traveltour-header-transparent-substitute,
.traveltour-top-bar,
.traveltour-navigation-slide-bar,
.wave {
    display: none;
}

/* ---------- 4. Header ---------- */

.traveltour-mobile-header-wrap,
.traveltour-header-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    color: var(--white);
}

.traveltour-mobile-header-wrap :focus-visible,
.traveltour-header-wrap :focus-visible {
    outline-color: var(--white);
}

.admin-bar .traveltour-mobile-header-wrap,
.admin-bar .traveltour-header-wrap {
    top: 46px;
}

.traveltour-header-background-transparent {
    display: none;
}

.traveltour-mobile-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-h);
}

.traveltour-logo,
.traveltour-logo-inner {
    display: contents;
}

/* Wordmark with the email address under it */
.er-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.er-brand > a:first-child {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.er-brand-email {
    padding-block: 3px; /* a 24px tap target */
    color: var(--navy-soft);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 18px;
    text-decoration: none;
    white-space: nowrap;
}

.er-brand-email:hover {
    color: var(--white);
    text-decoration: underline;
}


.traveltour-mobile-menu-right,
.traveltour-main-menu-right-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Icon buttons: search and hamburger. */
.traveltour-main-menu-search,
.traveltour-overlay-menu-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.15s;
}

.traveltour-main-menu-search:hover,
.traveltour-overlay-menu-icon:hover {
    background: rgb(255 255 255 / 0.14);
    color: var(--white);
}

.traveltour-main-menu-search::before {
    content: "";
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--i-search) center / contain no-repeat;
    mask: var(--i-search) center / contain no-repeat;
}

.traveltour-overlay-menu-icon span {
    position: relative;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.traveltour-overlay-menu-icon span::before,
.traveltour-overlay-menu-icon span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.traveltour-overlay-menu-icon span::before { top: -7px; }
.traveltour-overlay-menu-icon span::after { top: 7px; }

/* ---------- 5. Phone number, quote link and the mobile call bar ---------- */

.contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact li {
    margin: 0;
}

.contact li:first-child {
    display: none; /* email address: shown under the wordmark instead */
}

.contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 2px solid var(--amber);
    border-radius: 999px;
    background: var(--amber);
    color: var(--navy);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.contact a:hover {
    border-color: var(--amber-dark);
    background: var(--amber-dark);
    color: var(--navy);
}

.contact a[href^="tel"]::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--i-phone) center / contain no-repeat;
    mask: var(--i-phone) center / contain no-repeat;
}

.contact .quote a {
    border-color: var(--navy);
    background: var(--white);
    color: var(--navy);
}

.contact .quote a:hover {
    border-color: var(--navy);
    background: var(--band);
    color: var(--navy);
}

@media (max-width: 999.98px) {
    :root {
        --callbar-h: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    body {
        padding-bottom: var(--callbar-h);
    }

    .traveltour-mobile-header .contact {
        position: fixed;
        inset: auto 0 0;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 -6px 24px rgb(16 27 51 / 0.1);
    }

    .traveltour-mobile-header .contact a {
        padding: 0 10px;
        font-size: 1rem;
    }
}

/* ---------- 6. Menus and search ---------- */

/* Mobile menu panel */
.traveltour-overlay-menu-content {
    display: none;
}

.traveltour-mobile-menu .traveltour-overlay-menu-content {
    position: fixed;
    inset: 0;
    z-index: 5;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5px var(--gutter) 40px; /* the first item shares the top row with the close button */
    background: var(--white);
    color: var(--ink);
}

.er-menu-open .traveltour-mobile-menu .traveltour-overlay-menu-content {
    display: block;
    animation: er-panel 0.28s var(--ease);
}

.er-menu-open body {
    overflow: hidden;
}

@keyframes er-panel {
    from { opacity: 0; transform: translateY(-10px); }
}

.traveltour-overlay-menu-close,
.traveltour-top-search-row .traveltour-top-search-close {
    position: absolute;
    top: 10px;
    right: calc(var(--gutter) - 6px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

.traveltour-overlay-menu-close::before,
.traveltour-top-search-row .traveltour-top-search-close::before {
    content: "";
    width: 24px;
    height: 24px;
    background: currentColor;
    -webkit-mask: var(--i-close) center / contain no-repeat;
    mask: var(--i-close) center / contain no-repeat;
}

.traveltour-overlay-menu-close:hover {
    background: var(--band);
}

.traveltour-mobile-menu .menu,
.traveltour-mobile-menu .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.traveltour-mobile-menu .menu li {
    margin: 0;
}

.traveltour-mobile-menu .menu a {
    display: flex;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.1875rem;
    font-weight: 700;
    text-decoration: none;
}

.traveltour-mobile-menu .menu > li:first-child > a {
    padding-right: 56px;
}

.traveltour-mobile-menu .sub-menu a {
    min-height: 46px;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 1.0625rem;
    font-weight: 500;
}

.traveltour-mobile-menu .current-menu-item > a {
    color: var(--blue);
}

/* Search overlay */
.traveltour-top-search-wrap {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    place-items: start center;
    padding: 22vh var(--gutter) 0;
    background: var(--navy);
    color: var(--white);
}

.traveltour-top-search-wrap.er-open {
    display: grid;
    animation: er-fade 0.2s ease-out;
}

@keyframes er-fade {
    from { opacity: 0; }
}

.traveltour-top-search-wrap > .traveltour-top-search-close {
    position: absolute;
    inset: 0;
}

.traveltour-top-search-row {
    position: relative;
    width: min(640px, 100%);
}

.traveltour-top-search-row .traveltour-top-search-close {
    position: fixed;
    top: 16px;
    right: var(--gutter);
    color: var(--white);
}

.traveltour-top-search-row .search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border-bottom: 2px solid var(--white);
}

.traveltour-top-search-row .search-field {
    flex: 1;
    min-width: 0;
    height: 64px;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    color: var(--white);
    font: 600 clamp(1.25rem, 4vw, 1.75rem) var(--font);
    caret-color: var(--white);
}

.traveltour-top-search-row .search-submit {
    display: none;
}

.traveltour-top-search-submit {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
}

.traveltour-top-search-submit::before {
    content: "";
    width: 26px;
    height: 26px;
    background: currentColor;
    -webkit-mask: var(--i-search) center / contain no-repeat;
    mask: var(--i-search) center / contain no-repeat;
}

/* Desktop header and navigation */
@media (min-width: 1000px) {
    :root {
        --header-h: 76px;
    }

    .traveltour-mobile-header-wrap {
        display: none;
    }

    .traveltour-header-background-transparent {
        display: contents;
    }

    .traveltour-header-container-inner {
        display: flex;
        align-items: center;
        gap: clamp(12px, 2vw, 28px);
        min-height: var(--header-h);
    }

    .er-brand > a:first-child {
        font-size: 1.4375rem;
    }

    .er-brand-email {
        font-size: 0.9375rem;
    }

    .traveltour-navigation {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-left: auto;
    }

    .traveltour-header-container-inner .contact {
        order: 3;
        display: flex;
    }

    .traveltour-header-container-inner .contact .quote,
    .traveltour-main-menu-right {
        display: none;
    }

    .sf-menu {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sf-menu li {
        position: relative;
        margin: 0;
    }

    .sf-menu > li > a {
        display: flex;
        align-items: center;
        gap: 4px;
        height: 44px;
        padding: 0 clamp(8px, 1vw, 14px);
        border-radius: 999px;
        color: var(--white);
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color 0.15s, color 0.15s;
    }

    .sf-menu > li > a:hover,
    .sf-menu > li:hover > a,
    .sf-menu > li:focus-within > a {
        background: rgb(255 255 255 / 0.12);
        color: var(--white);
    }

    .sf-menu > .current-menu-item > a,
    .sf-menu > .current-menu-ancestor > a,
    .sf-menu > .current-page-ancestor > a {
        color: var(--amber);
    }

    .sf-menu > .menu-item-has-children > a::after {
        content: "";
        width: 14px;
        height: 14px;
        background: currentColor;
        -webkit-mask: var(--i-chevron) center / contain no-repeat;
        mask: var(--i-chevron) center / contain no-repeat;
        transition: transform 0.2s var(--ease);
    }

    .sf-menu > li:hover > a::after,
    .sf-menu > li:focus-within > a::after {
        transform: rotate(180deg);
    }

    .sf-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10;
        min-width: 260px;
        margin: 0;
        padding: 8px;
        list-style: none;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--white);
        box-shadow: var(--shadow-lift);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.18s, transform 0.25s var(--ease), visibility 0.18s;
    }

    .sf-menu li:hover > .sub-menu,
    .sf-menu li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .sf-menu .sub-menu a {
        display: block;
        padding: 9px 12px;
        border-radius: 8px;
        color: var(--ink);
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.3;
        text-decoration: none;
    }

    .sf-menu .sub-menu a:hover,
    .sf-menu .sub-menu .current-menu-item > a {
        background: var(--band);
        color: var(--blue);
    }
}

@media (min-width: 783px) {
    .admin-bar .traveltour-mobile-header-wrap,
    .admin-bar .traveltour-header-wrap {
        top: 32px;
    }
}

/* ---------- 7. Photo carousel (#gallery) ---------- */

#gallery {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: var(--radius);
    background: var(--band);
}

/* The track scrolls (templates print it; site.js adds one to older markup). Without a track the
   gallery itself scrolls. */
#gallery .er-track,
#gallery:not(:has(> .er-track)) {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

#gallery .er-track::-webkit-scrollbar,
#gallery:not(:has(> .er-track))::-webkit-scrollbar {
    display: none;
}

#gallery .item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#gallery .item img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

#gallery .text-holder {
    display: none;
}

.er-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.92);
    color: var(--ink);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background-color 0.15s, transform 0.25s var(--ease);
}

.er-arrow::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--i-arrow) center / contain no-repeat;
    mask: var(--i-arrow) center / contain no-repeat;
}

.er-prev { left: 12px; }
.er-next { right: 12px; }
.er-prev::before { transform: scaleX(-1); }
.er-arrow:hover { background: var(--white); transform: scale(1.06); }

.er-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 3;
    display: flex;
    transform: translateX(-50%);
    padding: 0 6px;
    border-radius: 999px;
    background: rgb(15 29 58 / 0.55);
}

.er-dots button {
    position: relative;
    width: 20px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.er-dots button::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.5);
    transition: background-color 0.2s, transform 0.2s;
}

.er-dots button[aria-current]::before {
    background: var(--white);
    transform: scale(1.25);
}

/* ---------- 8. Page builder (GoodLayers) ---------- */

.gdlr-core-pbf-wrapper,
.gdlr-core-pbf-section,
.gdlr-core-pbf-column-content-margin {
    position: relative;
}

.gdlr-core-pbf-wrapper-container,
.gdlr-core-pbf-section-container,
.gdlr-core-pbf-column-content {
    display: flow-root;
}

.gdlr-core-pbf-section {
    padding-top: clamp(24px, 4vw, 48px);
}

.gdlr-core-page-builder-body {
    padding-bottom: var(--section);
}

.home .gdlr-core-page-builder-body,
.traveltour-sidebar-center .gdlr-core-page-builder-body {
    padding-bottom: 0;
}

.gdlr-core-page-builder-body:empty,
.gdlr-core-pbf-wrapper:not(:has(.gdlr-core-pbf-wrapper-container > *)) {
    display: none;
}

.gdlr-core-pbf-background-wrap,
.gdlr-core-pbf-background {
    position: absolute;
    inset: 0;
}

.gdlr-core-pbf-background {
    background-position: center;
    background-size: cover;
}

.gdlr-core-pbf-wrapper-content {
    position: relative;
}

.gdlr-core-pbf-column-content {
    position: relative;
}

.gdlr-core-item-pdb {
    padding-bottom: 28px;
}

.gdlr-core-center-align { text-align: center; }
.gdlr-core-left-align { text-align: left; }
.gdlr-core-right-align { text-align: right; }

/* Section and page headings printed by the "title" element */
.gdlr-core-title-item-title,
.gdlr-core-item-title-item-item-title {
    margin: 0;
    font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem) !important;
    font-weight: 750 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

.gdlr-core-pbf-column .gdlr-core-title-item-title {
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem) !important;
}

.gdlr-core-title-item-title a,
.gdlr-core-item-title-item-item-title a {
    color: inherit !important;
    text-decoration: none;
}

.gdlr-core-title-item-title a:hover,
.gdlr-core-item-title-item-item-title a:hover {
    color: var(--blue) !important;
}

.gdlr-core-title-item-title-divider,
.gdlr-core-item-title-item-item-title-divider {
    display: none;
}

.subtitle,
.subitem-title {
    max-width: 60ch;
    margin: 12px auto 0;
    color: var(--ink-soft);
    font-size: 1.125rem;
    text-wrap: pretty;
}

.subtitle p,
.subitem-title p {
    margin: 0;
}

.gdlr-core-text-box-item-content {
    font-size: 1.0625rem !important;
}

.gdlr-core-text-box-item-content > :last-child {
    margin-bottom: 0;
}

/* Buttons */
.gdlr-core-button,
.btn,
.wpcf7-submit,
input[type="submit"],
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font: 750 1rem/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, transform 0.25s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.gdlr-core-button:hover,
.btn:hover,
.wpcf7-submit:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
    color: var(--white);
}

.gdlr-core-button:active,
.btn:active,
.wpcf7-submit:active {
    transform: scale(0.98);
}

/* FAQ (toggle box) */
.gdlr-core-toggle-box-item {
    max-width: 860px;
}

.gdlr-core-toggle-box-item-tab {
    border-bottom: 1px solid var(--line);
}

.gdlr-core-toggle-box-item-tab:first-child {
    border-top: 1px solid var(--line);
}

.gdlr-core-toggle-box-item-icon {
    display: none;
}

.gdlr-core-toggle-box-item-title {
    position: relative;
    margin: 0;
    padding: 20px 48px 20px 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-wrap: pretty;
    cursor: pointer;
    transition: color 0.15s;
}

.gdlr-core-toggle-box-item-title:hover {
    color: var(--blue);
}

.gdlr-core-toggle-box-item-title::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    background: currentColor;
    -webkit-mask: var(--i-chevron) center / contain no-repeat;
    mask: var(--i-chevron) center / contain no-repeat;
    transition: transform 0.25s var(--ease);
}

.gdlr-core-active > .gdlr-core-toggle-box-item-content-wrapper > .gdlr-core-toggle-box-item-title::after {
    transform: rotate(180deg);
}

.gdlr-core-toggle-box-item-content {
    display: none;
    max-width: 70ch;
    padding: 0 0 20px;
    color: var(--ink-soft);
}

.gdlr-core-active > .gdlr-core-toggle-box-item-content-wrapper > .gdlr-core-toggle-box-item-content {
    display: block;
}

.gdlr-core-toggle-box-item-content > :last-child {
    margin-bottom: 0;
}

/* FAQs (faqs.php): FAQ page, location and service pages */
.er-faqs {
    margin-top: 48px;
}

.er-faqs h2 {
    margin: 0 0 16px;
}

.er-faq-list {
    max-width: 860px;
    margin-bottom: 30px;
}

.er-faqs .er-faq-list {
    margin-bottom: 0;
}

.er-faq {
    border-bottom: 1px solid var(--line);
}

.er-faq:first-child {
    border-top: 1px solid var(--line);
}

.er-faq summary {
    position: relative;
    padding: 20px 48px 20px 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    text-wrap: pretty;
    list-style: none;
    cursor: pointer;
    transition: color 0.15s;
}

.er-faq summary::-webkit-details-marker {
    display: none;
}

.er-faq summary:hover {
    color: var(--blue);
}

.er-faq summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    background: currentColor;
    -webkit-mask: var(--i-chevron) center / contain no-repeat;
    mask: var(--i-chevron) center / contain no-repeat;
    transition: transform 0.25s var(--ease);
}

.er-faq[open] summary::after {
    transform: rotate(180deg);
}

.er-faq-answer {
    max-width: 70ch;
    padding: 0 0 20px;
    color: var(--ink-soft);
}

.er-faq-answer > :last-child {
    margin-bottom: 0;
}

/* Share links under blog posts */
.gdlr-core-social-share-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: left;
    font-size: 0.9375rem;
}

.gdlr-core-social-share-count,
.gdlr-core-social-share-google-plus {
    display: none;
}

.gdlr-core-social-share-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.gdlr-core-social-share-wrap::before {
    content: "Share:";
    color: var(--ink-soft);
}

.gdlr-core-social-share-facebook::after { content: "Facebook"; }
.gdlr-core-social-share-pinterest::after { content: "Pinterest"; }
.gdlr-core-social-share-twitter::after { content: "X / Twitter"; }

@media (min-width: 768px) {
    .gdlr-core-pbf-column {
        float: left;
        min-height: 1px;
    }

    .gdlr-core-column-first {
        clear: left;
    }

    .gdlr-core-column-10 { width: 16.6666%; }
    .gdlr-core-column-12 { width: 20%; }
    .gdlr-core-column-15 { width: 25%; }
    .gdlr-core-column-20 { width: 33.3333%; }
    .gdlr-core-column-24 { width: 40%; }
    .gdlr-core-column-30 { width: 50%; }
    .gdlr-core-column-36 { width: 60%; }
    .gdlr-core-column-40 { width: 66.6666%; }
    .gdlr-core-column-45 { width: 75%; }
    .gdlr-core-column-48 { width: 80%; }
    .gdlr-core-column-60 { width: 100%; }

    .gdlr-core-column-36 > .gdlr-core-pbf-column-content-margin {
        padding-right: clamp(24px, 4vw, 56px);
    }

    /* Photo columns (image set as a background beside a text column) */
    .gdlr-core-pbf-column-content-margin:has(> .gdlr-core-pbf-background-wrap > .gdlr-core-pbf-background) {
        min-height: 340px;
    }

    .gdlr-core-pbf-column .gdlr-core-pbf-background {
        border-radius: var(--radius);
    }

    /* Text beside a photo: two equal columns, the photo as tall as the text */
    .gdlr-core-pbf-wrapper-container:has(> .gdlr-core-pbf-column > .gdlr-core-pbf-column-content-margin > .gdlr-core-pbf-background-wrap > .gdlr-core-pbf-background) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(32px, 5vw, 72px);
        align-items: center;
        margin-bottom: clamp(32px, 5vw, 64px);
    }

    .gdlr-core-pbf-wrapper-container:has(> .gdlr-core-pbf-column > .gdlr-core-pbf-column-content-margin > .gdlr-core-pbf-background-wrap > .gdlr-core-pbf-background) > .gdlr-core-pbf-column {
        float: none;
        width: auto;
    }

    .gdlr-core-pbf-wrapper-container:has(> .gdlr-core-pbf-column > .gdlr-core-pbf-column-content-margin > .gdlr-core-pbf-background-wrap > .gdlr-core-pbf-background) .gdlr-core-pbf-column-content-margin {
        margin: 0 !important;
        padding: 0 !important;
    }

    .gdlr-core-pbf-wrapper-container:has(> .gdlr-core-pbf-column > .gdlr-core-pbf-column-content-margin > .gdlr-core-pbf-background-wrap > .gdlr-core-pbf-background) .gdlr-core-pbf-column-content {
        height: auto !important;
    }

    .gdlr-core-pbf-wrapper-container:has(> .gdlr-core-pbf-column > .gdlr-core-pbf-column-content-margin > .gdlr-core-pbf-background-wrap > .gdlr-core-pbf-background) .gdlr-core-pbf-background {
        inset: 0 !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
        background-position: center !important;
    }
}

@media (max-width: 767.98px) {
    .gdlr-core-hide-in-mobile {
        display: none;
    }

    .gdlr-core-pbf-column-content-margin {
        padding: 0 0 24px !important;
    }
}

/* ---------- 9. Home sections ---------- */

.bg-gray {
    background: var(--band);
}

.home .traveltour-page-wrapper > .gdlr-core-pbf-wrapper,
.home .traveltour-page-wrapper > .gdlr-core-page-builder-body > .gdlr-core-pbf-wrapper {
    padding: var(--section) 0 !important;
}

.gdlr-core-pbf-wrapper-container > .gdlr-core-pbf-element[style*="margin-bottom"] {
    margin-bottom: clamp(28px, 4vw, 44px) !important;
}

/* Hero: the photo carousel, each slide carrying its caption as the headline. The call-to-action
   block that follows becomes a full-width band; its wrappers dissolve (display: contents) so the
   band and the intro paragraphs sit directly in the page's one-column grid. */
.home .traveltour-page-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.home .traveltour-page-wrapper > .gdlr-core-pbf-wrapper:has(#gallery) {
    padding: 0 !important;
}

.home .gdlr-core-pbf-wrapper:has(#gallery) .gdlr-core-container {
    width: 100%;
}

.home #gallery {
    --edge: calc((100% - min(1200px, 100% - 2 * var(--gutter))) / 2);
    margin: 0;
    border-radius: 0;
    background: var(--navy);
}

.home #gallery .item {
    position: relative;
}

.home #gallery .item img {
    aspect-ratio: 4 / 3;
}

.home #gallery .item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(15 29 58 / 0) 35%, rgb(15 29 58 / 0.9) 100%);
    pointer-events: none;
}

.home #gallery .text-holder {
    position: absolute;
    inset: auto var(--edge) 46px;
    z-index: 2;
    display: block;
}

.home #gallery .text-holder h4 {
    display: none; /* internal slide name ("Slide 1") */
}

.home #gallery .text-holder p {
    max-width: 16em;
    margin: 0;
    color: var(--white);
    font-size: clamp(1.5rem, 1rem + 3.2vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.home #gallery .er-dots {
    left: var(--edge);
    bottom: 12px;
    transform: none;
    margin-left: -6px;
    padding: 0;
    background: none;
}

.home #gallery .er-arrow {
    top: 16px;
    margin: 0;
}

.home #gallery .er-prev {
    left: auto;
    right: calc(var(--edge) + 56px);
}

.home #gallery .er-next {
    right: var(--edge);
}

.home .gdlr-core-pbf-wrapper:has(#cta1),
.home .gdlr-core-pbf-wrapper:has(#cta1) > .gdlr-core-pbf-wrapper-content,
.home .gdlr-core-pbf-wrapper:has(#cta1) .gdlr-core-pbf-wrapper-container,
.home #cta1 {
    display: contents;
}

.home .gdlr-core-pbf-wrapper:has(#cta1) > .gdlr-core-pbf-background-wrap {
    display: none;
}

/* Call band: phone number and quote button */
#cta1 .cta-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
    padding: clamp(22px, 3.5vw, 32px);
    border-radius: var(--radius);
    background: var(--amber);
}

.home #cta1 .cta-container,
.er-location #cta1 .cta-container {
    margin: 0;
    padding: 24px max(var(--gutter), (100% - 1200px) / 2) 26px;
    border-radius: 0;
}

#cta1 h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

#cta1 h2 a {
    display: block;
    width: fit-content;
    margin: 2px 0;
    color: var(--navy);
    font-size: clamp(2.5rem, 1.6rem + 4.4vw, 3.5rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 0.12em;
    white-space: nowrap;
}

#cta1 h2 a:hover {
    color: var(--navy);
    text-decoration-thickness: 5px;
}

#cta1 .email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

#cta1 .email::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--i-mail) center / contain no-repeat;
    mask: var(--i-mail) center / contain no-repeat;
}

#cta1 .email:hover {
    color: var(--navy);
    text-decoration-thickness: 3px;
}

#cta1 .btn {
    display: inline-block; /* ::first-letter needs a block box */
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    line-height: 44px;
    text-transform: lowercase;
}

#cta1 .btn::first-letter {
    text-transform: uppercase;
}

#cta1 .btn:hover {
    border-color: #1c3160;
    background: #1c3160;
    color: var(--white);
}

#cta1 .cta-container :focus-visible {
    outline-color: var(--navy);
}

/* Phones and tablets: no band, the fixed call bar at the bottom already has the number and quote link */
@media (max-width: 999.98px) {
    #cta1 .cta-container {
        display: none;
    }
}

@media (min-width: 900px) {
    #cta1 .cta-container {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px 24px;
    }

    #cta1 h2 a {
        display: inline;
        margin: 0 0.12em;
        font-size: 1.5em;
        vertical-align: -0.04em;
    }

    #cta1 h2 {
        flex: 1 1 0;
        min-width: 16em;
        font-size: 1.3125rem;
        text-wrap: balance;
    }

    #cta1 .email,
    #cta1 .btn {
        flex: none;
    }

    .home #gallery .item img {
        aspect-ratio: auto;
        height: clamp(440px, 42vw, 600px);
    }

    /* the header's navy runs down the left and thins out across the photo */
    .home #gallery .item::after {
        background:
            linear-gradient(90deg, rgb(15 29 58 / 0.92) 0%, rgb(15 29 58 / 0.7) 34%, rgb(15 29 58 / 0) 66%),
            linear-gradient(180deg, rgb(15 29 58 / 0) 55%, rgb(15 29 58 / 0.55) 100%);
    }

    .home #gallery .text-holder {
        bottom: 84px;
    }

    .home #gallery .er-dots {
        bottom: 34px;
    }

    .home #gallery .er-arrow {
        top: auto;
        bottom: 28px;
    }
}

#cta1 > p {
    font-size: 1.125rem;
    text-wrap: pretty;
}

.home #cta1 > p {
    justify-self: center;
    width: var(--container); /* same width as the page content */
    margin-bottom: 1em;
}

.home #cta1 > p:empty {
    display: none;
}

.home #cta1 > p:not(:empty):nth-last-of-type(-n + 2) {
    margin-bottom: var(--section);
}

.home #cta1 > p:not(:empty):nth-last-of-type(-n + 2):has(+ p:not(:empty)) {
    margin-bottom: 1em;
}

/* Rendering systems */
#categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 2.2vw, 28px);
    text-align: left;
}

#categories .item {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

#categories .item:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

#categories .background {
    order: -1;
    aspect-ratio: 16 / 9;
    background-color: var(--band);
    background-position: center;
    background-size: cover;
}

#categories .item-title {
    padding: 20px 22px 0;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-decoration: none;
}

#categories .item-title::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

#categories .item-title:focus-visible {
    outline: 0;
}

#categories .item:has(.item-title:focus-visible) {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

#categories .text {
    display: flex;
    flex-direction: column;
    padding: 12px 22px 20px;
}

#categories .tags {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

#categories .tag {
    position: relative;
    padding-left: 26px;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.4;
}

#categories .tag::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 17px;
    height: 17px;
    background: var(--blue);
    -webkit-mask: var(--i-check) center / contain no-repeat;
    mask: var(--i-check) center / contain no-repeat;
}

#categories .btn {
    align-self: flex-start;
    min-height: 0;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font-size: 1rem;
    font-weight: 700;
}

#categories .btn::after {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--i-arrow) center / contain no-repeat;
    mask: var(--i-arrow) center / contain no-repeat;
    transition: transform 0.3s var(--ease);
}

#categories .item:hover .btn::after {
    transform: translateX(4px);
}

/* Map */
#locations {
    overflow: hidden;
    background: var(--band);
}

.gdlr-core-container > #locations,
.gdlr-core-text-box-item-content #locations,
.wpgmza_map {
    margin-bottom: 0 !important;
    border-radius: var(--radius);
}

/* Case study tiles */
#case-studies {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 210px;
    gap: 12px;
}

#case-studies .left,
#case-studies .right {
    display: contents;
}

#case-studies .item,
.er-projects .item {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    isolation: isolate;
}

#case-studies .background,
.er-projects .background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    transition: transform 0.6s var(--ease);
}

#case-studies .item::after,
.er-projects .item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(12 23 48 / 0) 30%, rgb(12 23 48 / 0.86) 100%);
}

#case-studies .item:hover .background,
.er-projects .item:hover .background {
    transform: scale(1.05);
}

#case-studies h3,
.er-projects h3 {
    margin: 0;
    padding: 18px 20px;
    color: var(--white);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

#case-studies h3 span,
.er-projects h3 span,
.gdlr-core-blog-metro .er-label,
.branded-title span {
    display: block;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

#case-studies h3 span:empty,
.er-projects h3 span:empty,
.branded-title span:empty {
    display: none;
}

@media (min-width: 640px) {
    #case-studies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #case-studies .left .item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    #case-studies .left .item:first-child h3 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1000px) {
    #case-studies {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 220px;
        gap: 16px;
    }
}

/* Manufacturer and accreditation logos: a quiet one-colour strip, each logo in colour on hover.
   One row from the first paint (a row the visitor can swipe), so nothing moves when site.js
   turns it into the endless scrolling row. */
#manufacturers {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

#manufacturers::-webkit-scrollbar {
    display: none;
}

#manufacturers .manufacturer {
    display: block;
    flex: none;
    width: 100px;
    margin-right: 32px; /* a margin, not gap, keeps the two halves of the scrolling track equal */
}

#manufacturers img {
    display: block;
    width: 100%;
    height: 38px;
    object-fit: contain;
    filter: grayscale(1) contrast(1.1);
    mix-blend-mode: multiply; /* drops the white box around the JPEG logos */
    opacity: 0.62;
    transition: filter 0.3s, opacity 0.3s;
}

#manufacturers .manufacturer:hover img,
#manufacturers .manufacturer:focus-visible img {
    filter: none;
    opacity: 1;
}

@media (max-width: 899.98px) {
    #manufacturers {
        margin-inline: calc(-1 * var(--gutter)); /* edge to edge */
    }
}

@media (min-width: 900px) {
    #manufacturers .manufacturer {
        width: 132px;
        margin-right: 40px;
    }

    #manufacturers img {
        height: 54px;
    }
}

/* With site.js the logos run as one endless, slowly scrolling row. The track holds the logos
   twice, so moving it by half its width loops without a seam; hover or focus pauses it. */
#manufacturers.er-marquee {
    overflow: hidden;
}

#manufacturers .er-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: er-marquee calc(var(--er-logos, 9) * 3.3s) linear infinite;
}

#manufacturers.er-marquee:hover .er-marquee-track,
#manufacturers.er-marquee:focus-within .er-marquee-track {
    animation-play-state: paused;
}

@keyframes er-marquee {
    to { transform: translateX(-50%); }
}

@media (min-width: 900px) {
    #manufacturers .er-marquee-track {
        animation-duration: calc(var(--er-logos, 9) * 4.3s);
    }
}

/* No motion: a row the visitor scrolls by hand, without the repeated logos */
@media (prefers-reduced-motion: reduce) {
    #manufacturers.er-marquee {
        overflow-x: auto;
        -webkit-mask: none;
        mask: none;
    }

    #manufacturers .er-marquee-track {
        animation: none !important;
    }

    #manufacturers .er-marquee-track [aria-hidden="true"] {
        display: none;
    }
}

/* Home: the strip sits straight under the call band, above the intro text */
.home .traveltour-page-wrapper > .gdlr-core-pbf-wrapper:has(#gallery) { order: -3; }
.home #cta1 .cta-container { order: -2; }

.home .traveltour-page-wrapper > .gdlr-core-pbf-wrapper:has(#manufacturers),
.er-location > .gdlr-core-pbf-wrapper:has(#manufacturers) {
    order: -1;
    padding: clamp(22px, 3vw, 32px) 0 !important;
    border-bottom: 1px solid var(--line);
}

.home #cta1 > .cta-container + p {
    margin-top: clamp(36px, 5vw, 64px);
}

/* Google reviews, above the footer on the home page and the location pages: the average score as
   the heading, then a row of review cards that scrolls sideways, then the link to the listing.
   site.js adds the arrows (beside the link) and "Read more". */
.er-reviews {
    padding-block: var(--section);
    background: var(--band);
}

.home .er-reviews {
    background: none; /* follows the grey case studies band */
}

.er-reviews-score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 0 0 clamp(20px, 3vw, 28px);
    color: var(--ink-soft);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
}

.er-reviews-score strong {
    color: var(--ink);
    font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.er-stars {
    --size: 18px;
    display: inline-block;
    flex: none;
    width: calc(var(--size) * 5);
    height: var(--size);
    background: linear-gradient(90deg, var(--amber-dark) calc(var(--rating) * 20%), var(--line) 0);
    -webkit-mask: var(--i-star) 0 0 / var(--size) var(--size) repeat-x;
    mask: var(--i-star) 0 0 / var(--size) var(--size) repeat-x;
}

.er-reviews-score .er-stars {
    --size: 22px;
}

.er-review-list {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.er-review-list::-webkit-scrollbar {
    display: none;
}

.er-review {
    display: flex;
    flex: 0 0 86%;
    margin: 0;
    scroll-snap-align: start;
}

/* While a review is open, the others keep the row's closed height instead of stretching to it */
.er-review-list.has-open {
    align-items: flex-start;
}

.er-review-list.has-open > .er-review {
    min-height: var(--er-row);
}

.er-review figure {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: clamp(20px, 2.5vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.er-review blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
}

.er-review blockquote p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    line-clamp: 7;
}

.er-review blockquote.is-open p {
    display: block;
}

.er-review-more {
    align-self: flex-start;
    margin: -14px 0 -10px;
    padding: 10px 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: 700 0.9375rem/1.2 var(--font);
    cursor: pointer;
}

.er-review-more:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.er-review figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
    color: var(--ink-soft);
    font-size: 0.875rem;
    line-height: 1.35;
}

.er-review figcaption strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
}

.er-review-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue-tint);
    color: var(--blue-dark);
    font-weight: 750;
}

.er-reviews-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 20px;
}

.er-reviews-nav {
    display: flex;
    gap: 8px;
}

.er-reviews-nav[hidden] {
    display: none;
}

.er-reviews-nav .er-arrow {
    position: static;
    margin: 0;
}

.er-reviews-nav .er-arrow[aria-disabled="true"] {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

@media (max-width: 999.98px) {
    /* the row runs to the screen edges, so the next card shows at the side */
    .er-review-list {
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        scroll-padding-inline: var(--gutter);
    }
}

@media (min-width: 640px) {
    .er-review {
        flex-basis: 44%;
    }
}

@media (min-width: 1000px) {
    .er-review {
        flex-basis: calc((100% - 32px) / 3);
    }
}

/* ---------- 10. Inner pages ---------- */

/* Running text */
.traveltour-content-area,
.traveltour-single-article-content,
.gdlr-core-text-box-item-content {
    text-wrap: pretty;
}

:is(.traveltour-content-area, .traveltour-single-article-content, .gdlr-core-text-box-item-content) > :is(p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote) {
    max-width: 72ch;
}

:is(.traveltour-content-area, .traveltour-single-article-content, .gdlr-core-text-box-item-content) :is(h2, h3, h4) {
    margin-top: 1.6em;
}

:is(.traveltour-content-area, .traveltour-single-article-content, .gdlr-core-text-box-item-content) > :first-child {
    margin-top: 0;
}

:is(.traveltour-content-area, .traveltour-single-article-content, .gdlr-core-text-box-item-content) img {
    border-radius: var(--radius-s);
}

/* Page title: the template prints it as an h4 above the text */
.gdlr-core-pbf-wrapper-container > h4,
.branded-title {
    margin: 0 0 0.6em !important;
    color: var(--ink) !important;
    font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-transform: none !important;
}

.traveltour-page-wrapper > .gdlr-core-pbf-wrapper {
    padding-top: clamp(24px, 4vw, 48px) !important;
}

.traveltour-sidebar-center .gdlr-core-pbf-wrapper {
    padding-top: 0 !important;
}

.branded-title span {
    margin: 0 0 14px;
    background: var(--blue-tint);
    color: var(--blue-dark);
    font-size: 0.9375rem;
    padding: 6px 12px;
}

.branded-title {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}

/* Sidebar */
.traveltour-sidebar-area {
    display: grid;
    gap: 24px;
    align-content: start;
}

.traveltour-sidebar-area .widget {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--band);
}

.traveltour-widget-title {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.bulletpoint p,
.er-location-copy li {
    position: relative;
    margin: 0;
    padding: 7px 0 7px 34px;
    font-weight: 600;
    line-height: 1.35;
}

.bulletpoint img {
    display: none;
}

.bulletpoint p::before,
.er-location-copy li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue);
}

.bulletpoint p::after,
.er-location-copy li::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 5px;
    width: 12px;
    height: 12px;
    background: var(--white);
    -webkit-mask: var(--i-check) center / contain no-repeat;
    mask: var(--i-check) center / contain no-repeat;
}

.traveltour-sidebar-area .menu,
.traveltour-sidebar-area .gdlr-core-custom-menu-widget {
    margin: 0;
    padding: 0;
    list-style: none;
}

.traveltour-sidebar-area .menu-item {
    margin: 0;
    border-top: 1px solid var(--line);
}

.traveltour-sidebar-area .menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 8px 0;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.traveltour-sidebar-area .menu-item a::after {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    background: var(--blue);
    -webkit-mask: var(--i-arrow) center / contain no-repeat;
    mask: var(--i-arrow) center / contain no-repeat;
    transition: transform 0.3s var(--ease);
}

.traveltour-sidebar-area .menu-item a:hover,
.traveltour-sidebar-area .current-menu-item a {
    color: var(--blue);
}

.traveltour-sidebar-area .menu-item a:hover::after {
    transform: translateX(3px);
}

@media (min-width: 1000px) {
    .traveltour-sidebar-wrap {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: clamp(32px, 5vw, 64px);
    }

    .traveltour-sidebar-area {
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }
}

/* Case study facts (Problem / Solution / Job size / Year) */
.single-case-study .gdlr-core-pbf-wrapper-container:has(> h6) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--line);
}

.single-case-study h6 {
    margin: 0;
    padding-top: 18px;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.5;
}

.single-case-study h6 + p {
    margin: 0;
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
}

@media (min-width: 700px) {
    .single-case-study .gdlr-core-pbf-wrapper-container:has(> h6) {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .single-case-study h6,
    .single-case-study h6 + p {
        padding: 18px 0;
        border-bottom: 1px solid var(--line);
    }

    /* Same line box as the value beside it, so label and value sit on one line */
    .single-case-study h6 {
        line-height: calc(1.125rem * 1.65);
    }
}

.single-case-study .traveltour-page-wrapper > #locations {
    margin-top: var(--section);
}

/* Location pages (location.php): the title over a house photo, then the home page's call band and
   logo strip, the text beside the sidebar, the nearest case studies and the other areas covered */
.er-location-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(300px, 80vw, 400px);
    background: var(--navy);
    color: var(--white);
    isolation: isolate;
}

.er-location-hero > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
}

.er-location-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(15 29 58 / 0) 15%, rgb(15 29 58 / 0.6) 52%, rgb(15 29 58 / 0.92) 100%);
}

.er-location-hero-text {
    width: var(--container);
    margin-inline: auto;
    padding: 64px 0 26px;
}

.er-location-hero h1 {
    max-width: 12em;
    margin: 0;
    color: var(--white);
    font-size: clamp(1.875rem, 1rem + 3.2vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.er-location-hero :focus-visible {
    outline-color: var(--white);
}

.er-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.er-crumbs li {
    display: flex;
    align-items: center;
    margin: 0;
    color: rgb(255 255 255 / 0.86);
}

.er-crumbs li + li::before {
    content: "";
    width: 16px;
    height: 16px;
    margin: 0 4px;
    background: currentColor;
    -webkit-mask: var(--i-chevron) center / contain no-repeat;
    mask: var(--i-chevron) center / contain no-repeat;
    transform: rotate(-90deg);
}

.er-crumbs a {
    padding-block: 4px;
    color: var(--white);
    text-decoration-color: rgb(255 255 255 / 0.45);
}

.er-crumbs a:hover {
    color: var(--white);
    text-decoration-color: currentColor;
}

@media (min-width: 900px) {
    .er-location-hero {
        min-height: clamp(360px, 30vw, 440px);
    }

    /* as on the home page: the header's navy runs down the left and thins out across the photo */
    .er-location-hero::after {
        background:
            linear-gradient(90deg, rgb(15 29 58 / 0.92) 0%, rgb(15 29 58 / 0.72) 40%, rgb(15 29 58 / 0) 75%),
            linear-gradient(180deg, rgb(15 29 58 / 0) 55%, rgb(15 29 58 / 0.55) 100%);
    }

    .er-location-hero-text {
        padding-bottom: 48px;
    }
}

/* The first paragraph reads as the introduction; the render systems become a ticked list */
.er-location-copy > p:first-child {
    font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
    line-height: 1.55;
}

.er-location-copy ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    column-gap: 28px;
    padding: 0;
    list-style: none;
}

.er-location-projects {
    padding-block: var(--section);
    background: var(--band);
}

.er-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 24px;
    margin-bottom: clamp(20px, 3vw, 32px);
}

.er-section-head h2 {
    margin: 0;
}

.er-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 700;
    text-decoration: none;
}

.er-more::after {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--i-arrow) center / contain no-repeat;
    mask: var(--i-arrow) center / contain no-repeat;
    transition: transform 0.3s var(--ease);
}

.er-more:hover {
    text-decoration: underline;
}

.er-more:hover::after {
    transform: translateX(3px);
}

.er-projects {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.er-projects .item {
    min-height: 240px;
}

.er-projects .background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 640px) {
    .er-projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .er-projects .item:first-child {
        grid-column: span 2;
        min-height: 320px;
    }
}

@media (min-width: 1000px) {
    .er-projects {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .er-projects .item,
    .er-projects .item:first-child {
        grid-column: auto;
        min-height: 300px;
    }
}

.er-location-areas {
    padding-block: var(--section);
}

.er-location-areas > h2 {
    margin-bottom: clamp(16px, 2.5vw, 28px);
}

.er-area-group + .er-area-group {
    margin-top: 28px;
}

.er-area-group h3 {
    margin: 0 0 12px;
    font-size: 1.125rem;
}

.er-area-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.er-area-links li {
    margin: 0;
}

.er-area-links a,
.er-area-links span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.er-area-links a:hover {
    border-color: var(--blue);
    background: var(--blue-tint);
    color: var(--blue-dark);
}

.er-area-links [aria-current] {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

/* Search results, archives and the 404 page reuse the blog list styles below. */
.traveltour-not-found-wrap,
.traveltour-page-title-wrap {
    padding: var(--section) 0;
    text-align: center;
}

.traveltour-not-found-wrap form {
    display: flex;
    gap: 8px;
    width: min(480px, 100%);
    margin: 24px auto 0;
}

/* ---------- 11. Blog ---------- */

.traveltour-blog-title-wrap {
    padding: clamp(28px, 5vw, 56px) 0 0;
}

.traveltour-single-article-head,
.gdlr-core-blog-full-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.traveltour-single-article-date-wrapper,
.gdlr-core-blog-date-wrapper {
    display: none; /* the full date is printed next to it or in the address */
}

.traveltour-single-article-head-right,
.gdlr-core-blog-full-head-right {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

.traveltour-single-article-title {
    max-width: 22ch;
    margin: 0;
}

.traveltour-blog-info-wrapper,
.gdlr-core-blog-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.traveltour-blog-info-wrapper a,
.gdlr-core-blog-info-wrapper a {
    color: var(--ink-soft);
}

.traveltour-blog-info-wrapper a:hover,
.gdlr-core-blog-info-wrapper a:hover {
    color: var(--blue);
}

.traveltour-blog-info-comment-number,
.gdlr-core-blog-info-author,
.traveltour-head,
.gdlr-core-head {
    display: none;
}

.traveltour-single-article-thumbnail {
    margin-bottom: 28px;
}

.traveltour-single-article-thumbnail img,
.gdlr-core-blog-thumbnail img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
}

.traveltour-single-article-thumbnail img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.traveltour-single-nav-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 28px;
}

.traveltour-single-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 700;
    text-decoration: none;
}

.traveltour-single-nav a::before,
.traveltour-single-nav-right a::after {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--i-arrow) center / contain no-repeat;
    mask: var(--i-arrow) center / contain no-repeat;
}

.traveltour-single-nav-left a::before { transform: scaleX(-1); }
.traveltour-single-nav-right a::before { display: none; }
.traveltour-single-nav-right { margin-left: auto; }

/* Blog list */
.gdlr-core-blog-item-holder {
    display: grid;
    gap: clamp(32px, 5vw, 56px);
    max-width: 860px;
}

.gdlr-core-blog-full {
    display: grid;
    gap: 16px;
}

.gdlr-core-blog-thumbnail img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.gdlr-core-blog-title {
    margin: 0;
    font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem);
}

.gdlr-core-blog-title a {
    color: var(--ink);
    text-decoration: none;
}

.gdlr-core-blog-title a:hover {
    color: var(--blue);
}

.gdlr-core-blog-content {
    max-width: 72ch;
    color: var(--ink-soft);
}

.gdlr-core-excerpt-read-more {
    margin-top: 16px;
}

.gdlr-core-load-more-wrap,
.gdlr-core-pagination {
    margin-top: 40px;
    text-align: center;
}

.gdlr-core-load-more {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 26px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    color: var(--blue);
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.gdlr-core-load-more:hover {
    background: var(--blue-tint);
}

/* Photo tiles used by the "metro" post list */
.gdlr-core-blog-item-holder:has(.gdlr-core-blog-metro) {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    max-width: none;
}

.gdlr-core-blog-item-holder:has(.gdlr-core-blog-metro) {
    height: auto !important;
}

.gdlr-core-blog-item-holder:has(.gdlr-core-blog-metro) > .gdlr-core-item-list {
    position: static !important;
    float: none;
    width: auto !important;
}

.gdlr-core-blog-metro {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
}

.gdlr-core-blog-metro img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gdlr-core-blog-metro:hover img {
    transform: scale(1.05);
}

/* Covers the whole tile so the title link below can stretch over it */
.gdlr-core-blog-metro-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 20px 18px;
    background: linear-gradient(180deg, rgb(12 23 48 / 0) 40%, rgb(12 23 48 / 0.88) 100%);
}

.gdlr-core-blog-metro .gdlr-core-blog-title {
    font-size: 1.1875rem;
}

/* The whole tile opens the post, not just its title */
.gdlr-core-blog-metro .gdlr-core-blog-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.gdlr-core-blog-metro .gdlr-core-blog-info-wrapper a {
    position: relative;
    z-index: 1;
}

.gdlr-core-blog-metro .gdlr-core-blog-title a:focus-visible {
    outline: none;
}

.gdlr-core-blog-metro:has(.gdlr-core-blog-title a:focus-visible) {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}

.gdlr-core-blog-metro .gdlr-core-blog-title a,
.gdlr-core-blog-metro .gdlr-core-blog-info-wrapper,
.gdlr-core-blog-metro .gdlr-core-blog-info-wrapper a {
    color: var(--white);
}

/* ---------- 12. Gallery page ---------- */

.gdlr-core-pbf-wrapper-container:has(> .gallery-row) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr));
    gap: 12px;
}

.gdlr-core-pbf-wrapper-container:has(> .gallery-row) > :not(.gallery-row) {
    grid-column: 1 / -1;
}

.gallery-row {
    display: contents;
}

.gallery-row .a-type {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-s);
    background: var(--band);
    color: var(--white);
    text-decoration: none;
}

.gallery-row .a-type[hidden] {
    display: none;
}

.gallery-row .a-type img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-row .a-type:hover img {
    transform: scale(1.05);
}

.gallery-row .a-type span {
    position: absolute;
    inset: auto 0 0;
    padding: 36px 12px 10px;
    background: linear-gradient(180deg, rgb(12 23 48 / 0), rgb(12 23 48 / 0.85));
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-row .a-type.excluded {
    opacity: 0.4;
}

.gallery-row .manage {
    align-self: center;
    font-size: 0.875rem;
}

.types {
    display: flex;
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter)) 12px;
    padding: 4px var(--gutter) 12px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.types::-webkit-scrollbar {
    display: none;
}

.types li {
    flex: none;
    margin: 0;
}

.types a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.types a:hover {
    border-color: var(--ink);
}

.types a.active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

@media (min-width: 768px) {
    .types {
        flex-wrap: wrap;
        overflow: visible;
    }
}

.lb-data .lb-caption {
    font: 600 1rem/1.4 var(--font);
}

/* ---------- 13. Forms (Contact Form 7) ---------- */

.wpcf7 form {
    margin: 0;
}

.wpcf7 form > p {
    margin: 0 0 6px;
    font-weight: 600;
}

.wpcf7 br {
    display: none;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 14px;
}

/* Room for the "I'm not a robot" box, which loads when the form is first used (site.js) */
.cf7sr-g-recaptcha {
    min-height: 78px;
}

.hidden-fields-container {
    display: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
select,
textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid #b9c2d3;
    border-radius: var(--radius-s);
    background: var(--white);
    color: var(--ink);
    font: 400 1rem/1.4 var(--font);
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101b33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 18px;
}

textarea {
    height: 160px;
    min-height: 110px;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--ink-soft);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(28 91 208 / 0.25);
}

::placeholder {
    color: #5d6880;
    opacity: 1;
}

.wpcf7-not-valid {
    border-color: var(--error);
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: var(--error);
    font-size: 0.9375rem;
    font-weight: 600;
}

.wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: var(--radius-s);
    background: var(--band);
    font-weight: 600;
}

.wpcf7-response-output:empty,
.wpcf7 form.init .wpcf7-response-output {
    display: none;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: #fbeceb;
    color: var(--error);
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #e6f4ec;
    color: var(--ok);
}

.wpcf7-spinner {
    display: none;
    width: 20px;
    height: 20px;
    margin-left: 12px;
    border: 2.5px solid var(--line);
    border-top-color: var(--blue);
    border-radius: 50%;
    vertical-align: middle;
    animation: er-spin 0.7s linear infinite;
}

.wpcf7 form.submitting .wpcf7-spinner {
    display: inline-block;
}

.wpcf7 form.submitting .wpcf7-submit {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes er-spin {
    to { transform: rotate(360deg); }
}

/* Picture captcha ("select the car") */
.kc_captcha {
    display: block;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: none;
}

.captcha-image {
    display: block;
    margin: 4px 0 18px;
    padding: 14px 16px !important;
    border: 1.5px solid var(--line) !important;
    border-radius: var(--radius-s);
    background: var(--band);
    font-weight: 500;
}

.captcha-image label {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 8px 6px 0 0;
    border-radius: var(--radius-s);
    background: var(--white);
    cursor: pointer;
}

.grecaptcha-badge {
    visibility: hidden;
}

/* ---------- 14. Footer ---------- */

footer {
    background: var(--navy);
    color: var(--navy-soft);
}

.traveltour-footer-wrapper {
    padding: var(--section) 0 clamp(32px, 5vw, 56px);
}

.traveltour-footer-container {
    display: grid;
    gap: 40px;
}

.traveltour-footer-wrapper .traveltour-widget-title {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 1.125rem;
}

.traveltour-footer-wrapper a {
    color: var(--white);
    text-underline-offset: 0.2em;
}

.traveltour-footer-wrapper a:hover {
    color: var(--white);
    text-decoration-thickness: 2px;
}

.traveltour-footer-wrapper .menu {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 24px;
}

.traveltour-footer-wrapper .menu li {
    margin: 0;
    break-inside: avoid;
}

.traveltour-footer-wrapper .menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 0;
    color: var(--navy-soft);
    line-height: 1.3;
    text-decoration: none;
}

.traveltour-footer-wrapper .menu a:hover {
    color: var(--white);
    text-decoration: underline;
}

.traveltour-footer-wrapper .textwidget br + br {
    display: block;
    content: "";
    margin-top: 12px;
}

.traveltour-footer-wrapper .wpcf7 form > p {
    color: var(--white);
    font-size: 0.9375rem;
}

.traveltour-footer-wrapper input,
.traveltour-footer-wrapper textarea {
    border-color: transparent;
}

.traveltour-footer-wrapper textarea {
    height: 120px;
}

.traveltour-footer-wrapper .wpcf7-not-valid-tip {
    color: #ffb4ab;
}

.traveltour-copyright-wrapper {
    border-top: 1px solid rgb(255 255 255 / 0.14);
}

.traveltour-copyright-text {
    padding: 20px 0;
    color: var(--navy-soft);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .traveltour-footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .traveltour-footer-column:last-child {
        grid-column: 1 / -1;
        max-width: 560px;
    }
}

@media (min-width: 1000px) {
    .traveltour-footer-container {
        grid-template-columns: 1.1fr 0.9fr 1.2fr;
        gap: clamp(32px, 5vw, 72px);
    }

    .traveltour-footer-column:last-child {
        grid-column: auto;
    }
}

/* ---------- 15. Small screens and motion ---------- */

@media (max-width: 599.98px) {
    /* Rendering systems: compact rows, photo on the left */
    #categories .item {
        grid-template-columns: 34% minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    #categories .background {
        grid-row: 1 / -1;
        aspect-ratio: auto;
        min-height: 100%;
    }

    /* The tall crop keeps the lit corner of the finish photos (right) and the layers of the
       two system cutaways (left). */
    #categories .background {
        background-position: 88% center;
    }

    #categories .service-ewi-external-wall-insulation .background,
    #categories .service-rainscreen-cladding .background {
        background-position: 10% center;
    }

    #categories .item-title {
        padding: 16px 16px 0;
        font-size: 1.125rem;
    }

    #categories .text {
        padding: 8px 16px 16px;
    }

    #categories .tags {
        margin-bottom: 12px;
    }

    #categories .tag {
        padding-left: 22px;
        font-size: 0.9375rem;
    }

    #categories .tag::before {
        width: 15px;
        height: 15px;
    }

    #categories .btn {
        font-size: 0.9375rem;
        white-space: nowrap;
    }

    #locations {
        height: 380px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
