/* TGG Launch Stabilisation Patch v1.4.0 */

/*
 * The active child theme hides the populated SmartMag footer with
 * display:none!important. Restore that single canonical footer while leaving
 * the duplicate page-built .tg-footer suppressed by Additional CSS.
 */
.main-wrap > .main-footer,
.main-wrap > footer.main-footer.footer-classic {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Required course-hub Rules Explained eyebrow. */
body.page-id-183548 #tgg-courses-hub-v2 .tgg-kicker {
    color: #c9a84c !important;
    -webkit-text-fill-color: #c9a84c !important;
    text-shadow: none !important;
}

/* Shared editorial category heroes. */
body.tgg-has-archive-hero .main-content,
body.tgg-has-archive-hero .content-area {
    float: none !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}
body.tgg-has-archive-hero .main-sidebar,
body.tgg-has-archive-hero aside.sidebar {
    display: none !important;
}
.tgg-archive-hero {
    position: relative;
    min-height: 440px;
    margin: 24px 0 42px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 4px solid #c9a84c;
    background-position: center;
    background-size: cover;
}
.tgg-archive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(13,27,42,.92),rgba(13,27,42,.28));
}
.tgg-archive-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: clamp(30px,5vw,64px);
    color: #fff;
}
.tgg-archive-hero__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #c9a84c;
    font: 700 10px/1.4 Montserrat,Arial,sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.tgg-archive-hero h2 {
    margin: 0 0 14px;
    color: #fff !important;
    font: 500 clamp(44px,6vw,76px)/.98 "Cormorant Garamond",Georgia,serif !important;
}
.tgg-archive-hero p {
    margin: 0;
    max-width: 640px;
    color: rgba(255,255,255,.9) !important;
    font: 400 15px/1.7 Montserrat,Arial,sans-serif;
}

/* Destination hero contrast and width repairs identified in live QA. */
.tgg-egc .egc-hero h1,
.tgg-can .can-hero h1 {
    color: #fff !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.35) !important;
}

/* Portugal-standard destination presentation: retain destination-specific content and imagery. */
body.page-id-183668 .tgg-scotland .sc-hero {
    width: min(1120px,calc(100% - 48px)) !important;
    min-height: 720px !important;
    margin: 48px auto 0 !important;
    align-items: center !important;
    padding: clamp(34px,5vw,72px) !important;
    background-image: url('/wp-content/uploads/2026/07/Gleneagles-and-the-finest-inland-golf-in-Scotland-championship-courses-in-the-heart-of-the-Perthshire-countryside-no-text-scaled.png') !important;
    border: 1px solid rgba(201,168,76,.5) !important;
    border-bottom: 4px solid #c9a84c !important;
}
body.page-id-183668 .tgg-scotland .sc-hero-inner {
    width: min(760px,100%) !important;
    margin: auto !important;
    padding: clamp(38px,5vw,64px) !important;
    background: rgba(255,253,249,.96) !important;
    border: 1px solid rgba(221,213,200,.9) !important;
    box-shadow: 0 18px 50px rgba(23,36,59,.15) !important;
}
body.page-id-183668 .tgg-scotland .sc-hero h1 {
    color: #272f6e !important;
    text-shadow: none !important;
}
body.page-id-183668 .tgg-scotland .sc-hero-copy {
    color: #17243b !important;
}
body.page-id-183668 .tgg-scotland .sc-hero .sc-btn--outline {
    border-color: #272f6e !important;
    color: #272f6e !important;
}
body.page-id-183668 .tgg-scotland .sc-fit {
    margin-top: 0 !important;
}

body.page-id-183664 .tgg-cotswolds-hub .tgg-hub-hero {
    width: min(1120px,calc(100% - 48px)) !important;
    min-height: 720px !important;
    margin: 48px auto 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: clamp(34px,5vw,72px) !important;
    background-position: center !important;
    background-size: cover !important;
    border: 1px solid rgba(201,168,76,.5) !important;
    border-bottom: 4px solid #c9a84c !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}
body.page-id-183664 .tgg-cotswolds-hub .tgg-portugal-panel {
    width: min(760px,100%) !important;
    margin: auto !important;
    padding: clamp(38px,5vw,64px) !important;
    background: rgba(255,253,249,.96) !important;
    border: 1px solid rgba(221,213,200,.9) !important;
    box-shadow: 0 18px 50px rgba(23,36,59,.15) !important;
    color: #17243b !important;
}
body.page-id-183664 .tgg-cotswolds-hub .tgg-portugal-panel h1 {
    color: #272f6e !important;
    text-shadow: none !important;
}
body.page-id-183664 .tgg-cotswolds-hub .tgg-portugal-panel p,
body.page-id-183664 .tgg-cotswolds-hub .tgg-portugal-panel span {
    color: #17243b !important;
    text-shadow: none !important;
}

body.page-id-183666 .tgg-surrey-hub .tgg-surrey-hero,
body.page-id-183667 .tgg-yorks-hub .tgg-yh-hero {
    width: min(1120px,calc(100% - 48px)) !important;
    min-height: 720px !important;
    margin: 48px auto 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: clamp(34px,5vw,72px) !important;
    background-position: center !important;
    background-size: cover !important;
    border: 1px solid rgba(201,168,76,.5) !important;
    border-bottom: 4px solid #c9a84c !important;
}
body.page-id-183666 .tgg-surrey-hub .tgg-surrey-hero {
    background-image: url('/wp-content/uploads/2026/08/tgg-surrey-heathland-destination-hero-2026.jpg') !important;
}
body.page-id-183667 .tgg-yorks-hub .tgg-yh-hero {
    background-image: url('/wp-content/uploads/2026/08/tgg-yorkshire-moorland-destination-hero-2026.jpg') !important;
}
body.page-id-183666 .tgg-surrey-hub .tgg-portugal-panel,
body.page-id-183667 .tgg-yorks-hub .tgg-portugal-panel {
    width: min(760px,100%) !important;
    margin: auto !important;
    padding: clamp(38px,5vw,64px) !important;
    background: rgba(255,253,249,.96) !important;
    border: 1px solid rgba(221,213,200,.9) !important;
    box-shadow: 0 18px 50px rgba(23,36,59,.15) !important;
    color: #17243b !important;
}
body.page-id-183666 .tgg-surrey-hub .tgg-portugal-panel h1,
body.page-id-183667 .tgg-yorks-hub .tgg-portugal-panel h1 {
    color: #272f6e !important;
    text-shadow: none !important;
}
body.page-id-183666 .tgg-surrey-hub .tgg-portugal-panel p,
body.page-id-183666 .tgg-surrey-hub .tgg-portugal-panel span,
body.page-id-183667 .tgg-yorks-hub .tgg-portugal-panel p,
body.page-id-183667 .tgg-yorks-hub .tgg-portugal-panel span {
    color: #17243b !important;
    text-shadow: none !important;
}

/* Shared Portugal/Canary geometry for legacy destination pages and destination posts. */
body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) .post-content-wrap {
    width: min(1200px,calc(100vw - 48px)) !important;
    max-width: none !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
}
body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) .post-content,
body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) .post-content > main[class^="tgg-"] {
    width: 100% !important;
    max-width: none !important;
}
body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) .post-share-float {
    display: none !important;
}
body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) main[class^="tgg-"] > section[class$="-hero"] {
    width: min(1120px,calc(100% - 80px)) !important;
    min-height: 720px !important;
    margin: 40px auto 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow: hidden !important;
    background-position: center !important;
    background-size: cover !important;
    border-bottom: 4px solid #c9a84c !important;
}
body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) main[class^="tgg-"] > section:is([class$="-fit"],[class*="-section"]) {
    width: min(1120px,calc(100% - 80px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) main[class^="tgg-"] [class$="-grid"] {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)) !important;
}
body.postid-183148 .ay-hero h1,
body.single-tgg_destination .egc-hero h1 {
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0,0,0,.34) !important;
}

/* Older UK landing pages: retain all copy and links, apply the Portugal cream panel. */
body:is(.page-id-183664,.page-id-183666,.page-id-183667,.page-id-183669,.page-id-183670,.page-id-183672,.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226,.page-id-183909,.page-id-183910,.page-id-183916) .entry-content {
    overflow: visible !important;
}
body:is(.page-id-183664,.page-id-183666,.page-id-183667,.page-id-183669,.page-id-183670,.page-id-183672,.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226,.page-id-183909,.page-id-183910,.page-id-183916) .entry-content > div[class^="tgg-"] {
    width: min(1200px,calc(100vw - 48px)) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
}

/* England's Golf Coast primary page: retain its exact Royal Birkdale image while
   matching the Portugal destination canvas and responsive proportions. */
body.page-id-183671 .tgg-egc > .egc-hero {
  width: min(1120px, calc(100% - 80px));
  min-height: 720px;
  margin: 40px auto 0;
}
body:is(.page-id-183669,.page-id-183670,.page-id-183672,.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226,.page-id-183909,.page-id-183910,.page-id-183916) .entry-content > div[class^="tgg-"] {
    box-sizing: border-box !important;
}
body:is(.page-id-183669,.page-id-183670,.page-id-183672) :is(.tgg-cw-hero,.tgg-ln-hero,.tgg-wa-hero),
body:is(.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226) .tgg-region > .hero,
body:is(.page-id-183909,.page-id-183910,.page-id-183916) .tgg-region > .tgg-region-hero {
    width: min(1120px,calc(100% - 80px)) !important;
    min-height: 720px !important;
    margin: 40px auto 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: clamp(34px,5vw,72px) !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow: hidden !important;
    background-position: center !important;
    background-size: cover !important;
    border: 1px solid rgba(201,168,76,.5) !important;
    border-bottom: 4px solid #c9a84c !important;
}
body:is(.page-id-183669,.page-id-183670,.page-id-183672,.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226,.page-id-183909,.page-id-183910,.page-id-183916) .tgg-portugal-panel {
    width: min(760px,100%) !important;
    margin: auto !important;
    padding: clamp(38px,5vw,64px) !important;
    background: rgba(255,253,249,.96) !important;
    border: 1px solid rgba(221,213,200,.9) !important;
    box-shadow: 0 18px 50px rgba(23,36,59,.15) !important;
    color: #17243b !important;
}
body:is(.page-id-183669,.page-id-183670,.page-id-183672,.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226,.page-id-183909,.page-id-183910,.page-id-183916) .tgg-portugal-panel :is(h1,h2) {
    color: #272f6e !important;
    text-shadow: none !important;
}
body:is(.page-id-183669,.page-id-183670,.page-id-183672,.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226,.page-id-183909,.page-id-183910,.page-id-183916) .tgg-portugal-panel :is(p,span) {
    color: #17243b !important;
    text-shadow: none !important;
}

/* Reuse the retained Cruden Bay asset for the Aberdeenshire hub hero. */
body.page-id-186795 .tgg-ab .ab-hero {
    background-image: linear-gradient(90deg,rgba(7,18,36,.88),rgba(7,18,36,.34)),url('/wp-content/uploads/2026/06/Cruden-Bay-Cruden-Bay-Golf-Club-Aberdeenshire-Scotland.png') !important;
    background-position: center !important;
    background-size: cover !important;
}

/* Remove duplicated theme covers where the article already supplies a complete editorial hero. */
body.postid-183740 .featured { display: none !important; }
body.postid-183740 .post-content-wrap {
    margin-top: 0 !important;
}

/* Contact hero heading was present but inherited navy on navy. */
body.page-id-183573 .tgg-contact > section:first-of-type h1,
body.page-id-183573 .tgg-contact [class*="hero"] h1,
body.page-id-183573 .tgg-contact h1:first-of-type {
    color: #fff !important;
}
.tgg-can .can-hero {
    width: min(1120px,calc(100% - 48px)) !important;
    margin: 48px auto 0 !important;
}
body.postid-183173 .post-content-wrap {
    width: min(1200px,calc(100vw - 48px)) !important;
    max-width: none !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
}
body.postid-183173 .post-content.entry-content,
body.postid-183173 .tgg-can {
    width: 100% !important;
    max-width: none !important;
}
.tgg-can .can-inner {
    width: min(760px,100%) !important;
    max-width: 100% !important;
}
.tgg-can .can-hero h1 {
    max-width: 720px !important;
    font-size: clamp(52px,6.3vw,78px) !important;
    line-height: .96 !important;
}

@media (max-width: 700px) {
    .tgg-archive-hero { min-height: 390px; }
    .tgg-can .can-hero { width: calc(100% - 28px) !important; margin: 28px 14px 0 !important; }
    .tgg-can .can-inner { padding: 30px 22px !important; }
    .tgg-can .can-hero h1 { font-size: clamp(42px,13vw,58px) !important; }
    body.postid-183173 .post-content-wrap {
        width: calc(100vw - 28px) !important;
    }
    body.page-id-183668 .tgg-scotland .sc-hero,
    body.page-id-183664 .tgg-cotswolds-hub .tgg-hub-hero,
    body.page-id-183666 .tgg-surrey-hub .tgg-surrey-hero,
    body.page-id-183667 .tgg-yorks-hub .tgg-yh-hero {
        width: calc(100% - 28px) !important;
        min-height: 650px !important;
        margin: 28px 14px 0 !important;
        padding: 26px 16px !important;
    }
    body.page-id-183668 .tgg-scotland .sc-hero-inner,
    body.page-id-183664 .tgg-cotswolds-hub .tgg-portugal-panel,
    body.page-id-183666 .tgg-surrey-hub .tgg-portugal-panel,
    body.page-id-183667 .tgg-yorks-hub .tgg-portugal-panel {
        width: 100% !important;
        padding: 32px 24px !important;
    }
    body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) .post-content-wrap {
        width: calc(100vw - 28px) !important;
    }
    body:is(.page-id-183664,.page-id-183666,.page-id-183667,.page-id-183669,.page-id-183670,.page-id-183672,.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226,.page-id-183909,.page-id-183910,.page-id-183916) .entry-content > div[class^="tgg-"] {
        width: calc(100vw - 28px) !important;
    }
    body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) main[class^="tgg-"] > section[class$="-hero"],
    body:is(.single-post,.single-tgg_destination):has(.post-content > main[class^="tgg-"]) main[class^="tgg-"] > section:is([class$="-fit"],[class*="-section"]),
    body:is(.page-id-183669,.page-id-183670,.page-id-183672) :is(.tgg-cw-hero,.tgg-ln-hero,.tgg-wa-hero),
    body:is(.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226) .tgg-region > .hero,
    body:is(.page-id-183909,.page-id-183910,.page-id-183916) .tgg-region > .tgg-region-hero {
        width: calc(100% - 28px) !important;
        margin-left: 14px !important;
        margin-right: 14px !important;
    }
    body:is(.page-id-183669,.page-id-183670,.page-id-183672,.page-id-186223,.page-id-186224,.page-id-186225,.page-id-186226,.page-id-183909,.page-id-183910,.page-id-183916) .tgg-portugal-panel {
        width: 100% !important;
        padding: 32px 24px !important;
    }
}

/* Course hub: semantic route cards with inner CTAs. */
#tgg-courses-hub-v2 .tgg-route-grid > article.tgg-route {
    min-width: 0;
    min-height: 460px;
}
#tgg-courses-hub-v2 .tgg-route-grid > article.tgg-route .tgg-link {
    display: inline-block;
    align-self: flex-start;
    text-decoration: none;
}
#tgg-courses-hub-v2 .tgg-route-grid > article.tgg-route-image {
    background-image: linear-gradient(0deg,rgba(13,27,42,.84),rgba(13,27,42,.12)),url('/wp-content/uploads/2026/06/Royal-Birkdale-Royal-Birkdale-Golf-Club-Southport-Lancashire-England.png') !important;
    background-position: center !important;
    background-size: cover !important;
}

/* Product directory: semantic cards with inner CTAs and retained TGG imagery. */
body.page-id-183142 #post-183142 > .post-header .featured {
    display: none !important;
}

body.page-id-183384 .tgg-dir .tgg-grid .tgg-dir-card--repaired {
    padding: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
body.page-id-183384 .tgg-dir-card--repaired > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
}
body.page-id-183384 .tgg-dir-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 24px;
}
body.page-id-183384 .tgg-dir-card__cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: auto;
    color: #8c6d22 !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

/* Complete destination discovery: concise primary links in navigation, every guide on the hub. */
.tgg-nav-links .tgg-mega-link--all {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(201,168,76,.35);
    color: #c9a84c !important;
    font-weight: 700;
}
.tgg-mobile-nav .tgg-mobile-destination-menu {
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.tgg-mobile-nav .tgg-mobile-destination-menu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 42px;
    color: #fffdf9;
    cursor: pointer;
    font: 600 17px/1.3 Montserrat,sans-serif;
    letter-spacing: .08em;
    list-style: none;
    text-transform: uppercase;
}
.tgg-mobile-nav .tgg-mobile-destination-menu summary::-webkit-details-marker { display: none; }
.tgg-mobile-nav .tgg-mobile-destination-menu summary::after {
    content: '+';
    color: #c9a84c;
    font-size: 24px;
}
.tgg-mobile-nav .tgg-mobile-destination-menu[open] summary::after { content: '−'; }
.tgg-mobile-nav .tgg-mobile-destination-menu__links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1px;
    padding: 0 28px 24px;
}
.tgg-mobile-nav .tgg-mobile-destination-menu__links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    color: #fffdf9;
    background: rgba(255,255,255,.04);
    font: 500 13px/1.35 Montserrat,sans-serif;
    text-decoration: none;
}

body.page-id-183547 .tgg-destination-directory {
    width: min(1200px,calc(100% - 48px));
    margin: 64px auto;
    padding: clamp(40px,5vw,72px);
    background: #f5f1e8;
    border-top: 4px solid #c9a84c;
}
body.page-id-183547 .tgg-destination-directory__head {
    max-width: 780px;
    margin-bottom: 34px;
}
body.page-id-183547 .tgg-destination-directory__head > span {
    display: block;
    margin-bottom: 10px;
    color: #9a7624;
    font: 700 11px/1.4 Montserrat,sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}
body.page-id-183547 .tgg-destination-directory__head h2 {
    margin: 0 0 12px;
    color: #272f6e;
    font: 400 clamp(42px,5vw,66px)/1 Cormorant Garamond,Georgia,serif;
}
body.page-id-183547 .tgg-destination-directory__head p {
    margin: 0;
    color: #465264;
    font: 400 16px/1.7 Montserrat,sans-serif;
}
body.page-id-183547 .tgg-destination-directory__grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}
body.page-id-183547 .tgg-destination-directory__card {
    min-width: 0;
    padding: 26px;
    background: #fffdf9;
    border: 1px solid #ddd5c8;
    border-top: 3px solid #c9a84c;
}
body.page-id-183547 .tgg-destination-directory__card h3 {
    margin: 0 0 16px;
    color: #272f6e;
    font: 400 29px/1.1 Cormorant Garamond,Georgia,serif;
}
body.page-id-183547 .tgg-destination-directory__links {
    display: grid;
    gap: 3px;
}
body.page-id-183547 .tgg-destination-directory__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 8px 0;
    color: #17243b;
    border-bottom: 1px solid rgba(23,36,59,.12);
    font: 600 13px/1.35 Montserrat,sans-serif;
    text-decoration: none;
}
body.page-id-183547 .tgg-destination-directory__links a:hover,
body.page-id-183547 .tgg-destination-directory__links a:focus-visible {
    color: #9a7624;
}
body.page-id-183547 .tgg-destination-directory__links a span {
    flex: 0 0 auto;
    margin-left: 12px;
    color: #c9a84c;
}

@media (max-width: 900px) {
    body.page-id-183547 .tgg-destination-directory__grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 620px) {
    .tgg-mobile-nav .tgg-mobile-destination-menu__links { grid-template-columns: 1fr; }
    body.page-id-183547 .tgg-destination-directory {
        width: calc(100% - 28px);
        margin: 36px 14px;
        padding: 32px 20px;
    }
    body.page-id-183547 .tgg-destination-directory__grid {
        grid-template-columns: 1fr;
    }
    body.page-id-183547 .tgg-destination-directory__card {
        padding: 22px 20px;
    }
    body.page-id-183547 .tgg-destination-directory__links a {
        min-height: 48px;
    }
}

/* v1.4.2 verified brand landing-page expansion. */
#tgg-shop .brand-grid[data-tgg-expanded="1"] {
    grid-template-columns: repeat(3,minmax(0,1fr));
}
#tgg-shop .brand-grid[data-tgg-expanded="1"] .brand-card:last-child:nth-child(3n+2) {
    grid-column: span 2;
}
@media (max-width: 900px) {
    #tgg-shop .brand-grid[data-tgg-expanded="1"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
    #tgg-shop .brand-grid[data-tgg-expanded="1"] .brand-card:last-child:nth-child(3n+2) { grid-column: auto; }
    #tgg-shop .brand-grid[data-tgg-expanded="1"] .brand-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    #tgg-shop .brand-grid[data-tgg-expanded="1"] { grid-template-columns: 1fr; }
    #tgg-shop .brand-grid[data-tgg-expanded="1"] .brand-card:last-child:nth-child(odd) { grid-column: auto; }
}

/* Keep the restored footer usable above mobile safe areas. */
@media (max-width: 620px) {
    .main-wrap > .main-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }
}

/* v1.4.1 destination quality pass ---------------------------------------- */
body:is(.page-id-183664,.page-id-183666,.page-id-183667,.page-id-183672) .main-content {
    padding-top: 28px !important;
}
body:is(.page-id-183664,.page-id-183666,.page-id-183667,.page-id-183672)
  :is(.tgg-hub-hero,.tgg-surrey-hero,.tgg-yh-hero,.tgg-wa-hero) {
    margin-top: 0 !important;
}

/* Ireland: keep the exact Royal County Down asset visible behind the cream panel. */
body.postid-183149 .ie-hero {
    margin-top: 28px !important;
    background-size: cover !important;
    background-position: center !important;
    isolation: isolate;
}
body.postid-183149 .ie-hero::before {
    background: linear-gradient(90deg,rgba(7,18,36,.42),rgba(7,18,36,.08)) !important;
    opacity: 1 !important;
    z-index: -1 !important;
}
body.postid-183149 .ie-hero > :first-child {
    width: min(780px,calc(100% - 80px)) !important;
    background: rgba(255,253,249,.94) !important;
}

/* Turkey used both SmartMag's cover and the newer destination guide. Keep one. */
body.postid-183178 .post-header,
body.postid-183178 .featured.has-media-shadows,
body.postid-183178 .main-sidebar,
body.postid-183178 aside.sidebar {
    display: none !important;
}
body.postid-183178 .main-content,
body.postid-183178 .content-area,
body.postid-183178 .post-content,
body.postid-183178 .post-content-wrap,
body.postid-183178 article.post {
    width: 100% !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
}
body.postid-183178 .tr-hero {
    left: auto !important;
    width: min(1120px,calc(100% - 48px)) !important;
    min-height: 720px !important;
    margin: 28px auto 0 !important;
    background-size: cover !important;
    background-position: center !important;
}
body.postid-183178 .tr-hero + section,
body.postid-183178 main[class*="turkey"] > section:not(.tr-hero) {
    width: min(1120px,calc(100% - 48px)) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Wales currently has no retained photographic asset. Keep the panel elegant
   until a correct Welsh course image is supplied, without implying stock is Wales. */
body.page-id-183672 .tgg-wa-hero {
    background-color: #0d1b2a !important;
}

/* Archive polish: one heading, no empty sidebar column, stronger image legibility. */
body.tgg-has-archive-hero .archive-heading {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}
body.category-stay-play-recover .tgg-archive-hero::before,
body.category-editors-picks .tgg-archive-hero::before {
    background: linear-gradient(90deg,rgba(7,18,36,.86),rgba(7,18,36,.28)) !important;
}
body.category-golf-resorts .tgg-archive-hero::before {
    background: linear-gradient(90deg,rgba(7,18,36,.62),rgba(7,18,36,.10)) !important;
}
body.category-editors-picks .tgg-archive-hero {
    margin-bottom: 34px;
}

/* Lancashire: remove an injected advert placeholder from the journey form and
   restore the white editorial hero title over the existing Golf Coast image. */
body.postid-183161 .main-content {
    padding-top: 24px !important;
}
body.postid-183161 .lc-hero {
    margin-top: 0 !important;
}
body.postid-183161 .lc-hero h1 {
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(0,0,0,.32);
}
body.postid-183161 .lc-quick > .a-wrap,
body.postid-183161 .lc-quick > [class*="advert"] {
    display: none !important;
}
body.postid-183161 .lc-quick {
    min-height: 0 !important;
    height: auto !important;
}

/* Canary Islands: SmartMag was constraining the full-bleed hero to 672px.
   Keep the existing destination content and links, but use the same centred
   1120px presentation as the approved Portugal destination page. */
body.postid-183173 .post-header,
body.postid-183173 .featured.has-media-shadows,
body.postid-183173 .main-sidebar,
body.postid-183173 aside.sidebar {
    display: none !important;
}
body.postid-183173 .main-content,
body.postid-183173 .content-area,
body.postid-183173 .post-content,
body.postid-183173 .post-content-wrap,
body.postid-183173 article.post {
    width: 100% !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
}
body.postid-183173 .can-hero {
    width: min(1120px,calc(100% - 48px)) !important;
    min-height: 720px !important;
    margin: 28px auto 0 !important;
    background-size: cover !important;
    background-position: center !important;
}
body.postid-183173 .can-fit,
body.postid-183173 .can-section > .can-wrap {
    width: min(1120px,calc(100% - 48px)) !important;
    max-width: 1120px !important;
}

/* The Top 100 contains 78 live cards. Defer off-screen layout and paint work. */
body.page-id-183142 .t100-card--deferred {
    content-visibility: auto;
    contain-intrinsic-size: 390px 430px;
}

@media (max-width: 700px) {
    body:is(.page-id-183664,.page-id-183666,.page-id-183667,.page-id-183672) .main-content {
        padding-top: 14px !important;
    }
    body.postid-183149 .ie-hero > :first-child {
        width: calc(100% - 28px) !important;
    }
    body.postid-183178 .tr-hero,
    body.postid-183178 .tr-hero + section,
    body.postid-183178 main[class*="turkey"] > section:not(.tr-hero) {
        width: calc(100% - 28px) !important;
    }
    body.postid-183173 .can-hero,
    body.postid-183173 .can-fit,
    body.postid-183173 .can-section > .can-wrap {
        width: calc(100% - 28px) !important;
    }
}
