/*
 Theme Name:   Treyarnon Bay Holidays
 Theme URI:    https://unify-studio.co.uk
 Description:  Child theme for Treyarnon Bay Holidays. Built on Unify by Unify Studio. Replaces bespoke-theme-main.
 Author:       Unify Studio for Treyarnon Bay Holidays
 Author URI:   https://unify-studio.co.uk
 Template:     unify
 Version:      1.2.2
 Requires PHP: 7.4
 License:      GNU General Public License v2 or later
 Text Domain:  treyarnon-bay
*/

/* ══════════════════════════════════════════════════════
   FONTS
   MarketPro (headings) is self-hosted; Poppins is loaded from Google Fonts.
   ══════════════════════════════════════════════════════ */

@font-face {
    font-family: "MarketPro";
    src: url("font/MarketPro-Bold.woff2") format("woff2"),
         url("font/MarketPro-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MarketPro";
    src: url("font/MarketPro.woff2") format("woff2"),
         url("font/MarketPro.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ══════════════════════════════════════════════════════
   TREYARNON BAY — Brand colours (from bespoke-theme-main)
   and Unify custom property overrides
   ══════════════════════════════════════════════════════ */

:root {

    /* ── Brand palette ── */
    --tb-sage:        #b9c0a7;   /* old --primary: buttons, nav accents */
    --tb-sky:         #8acfdd;   /* old --secondary: top bar, footer, active filter */
    --tb-navy:        #3c4989;   /* old --dark-blue: h3, card titles, links */
    --tb-mist:        #edf7f7;   /* old --light-blue: facilities band, testimonials */
    --tb-h1:          #5dc3ec;
    --tb-h2:          #5d83c3;

    /* ── Unify colours ── */
    --unify-primary:        var(--tb-navy);
    --unify-secondary:      var(--tb-sky);
    --unify-accent:         var(--tb-sage);
    --unify-bg:             #ffffff;
    --unify-bg-alt:         var(--tb-mist);
    --unify-text:           #000000;
    --unify-text-muted:     #4d5566;

    /* ── Typography ── */
    --unify-font-heading:   "MarketPro", sans-serif;
    --unify-font-body:      "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
    --unify-line-height:    1.6;

    /* ── Nav ── */
    --unify-nav-height:      110px;
    --unify-nav-logo-height: 80px;
    --unify-nav-bg:          #ffffff;
    --unify-nav-color:       #000000;
    --tb-topbar-height:      30px;

    /* ── Borders & Radius ── */
    --unify-radius-md:      0px;     /* old buttons were square */
    --unify-radius-lg:      15px;    /* old image / card corners */
    --unify-radius-pill:    50px;
}

@media (max-width: 768px) {
    :root {
        --unify-nav-height:      76px;
        --unify-nav-logo-height: 52px;
    }
}


/* ══════════════════════════════════════════════════════
   BASE TYPOGRAPHY (matches the old theme)
   ══════════════════════════════════════════════════════ */

html { font-size: 16px; }

body {
    color: var(--unify-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5rem; }

h1 {
    font-family: var(--unify-font-heading);
    font-weight: normal;
    font-size: clamp(2.5rem, 6vw, 60px);
    line-height: 1;
    letter-spacing: 2px;
    color: var(--tb-h1);
}

h2 {
    font-family: var(--unify-font-body);
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--tb-h2);
}

h3 {
    font-family: var(--unify-font-body);
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--tb-navy);
}

h4 {
    font-family: var(--unify-font-body);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: inherit;
}

h5 {
    font-family: var(--unify-font-heading);
    font-size: 22px;
    font-weight: normal;
    letter-spacing: 1px;
    color: inherit;
}

h6 {
    font-family: var(--unify-font-body);
    font-size: 16px;
    font-weight: 600;
    color: inherit;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 1rem; }

/* Unify removes underlines everywhere; keep links in body copy recognisable. */
.entry-content p a:not(.btn):not(.wp-block-button__link):not(.spt-price-link__a),
.entry-content li a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Unify makes every image a block; keep inline images inline in text. */
.entry-content p img { display: inline-block; }

.meta { font-size: 12px; color: var(--unify-text-muted); }
.meta a { color: var(--tb-navy); }


/* ══════════════════════════════════════════════════════
   CONTENT COLUMN & BLOCK ALIGNMENTS
   Pages sit in a 1200px column; full/wide blocks break out, as before.
   ══════════════════════════════════════════════════════ */

.entry-content {
    max-width: var(--unify-max-width);
    margin-inline: auto;
    padding-inline: 20px;
}

.tb-page,
.tb-single,
.tb-news,
.tb-cottages,
.tb-cottage {
    padding-block: 40px 60px;
}

/* The header image already gives space above cottage content. */
.header-image + .entry-content { padding-top: 0; }

.entry-content > .alignwide {
    margin-inline: -20px;
    width: auto;
    max-width: none;
}

.entry-content > .alignfull,
.entry-content .alignfull {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

/* First/last full-width block sits flush with the header/footer. */
.tb-page > .alignfull:first-child { margin-top: -40px; }
.tb-page > .alignfull:last-child  { margin-bottom: -60px; }

.alignfull img { width: 100%; }

.alignnone   { margin: 5px 20px 20px 0; }
.aligncenter,
div.aligncenter { display: block; margin: 5px auto; }
.alignright  { float: right; margin: 5px 0 20px 20px; }
.alignleft   { float: left;  margin: 5px 20px 20px 0; }

.wp-caption { max-width: 100%; text-align: center; }
.wp-caption-text,
.wp-element-caption { font-size: 12px; color: var(--unify-text-muted); }

.wp-block-cover.has-parallax,
.wp-block-cover-image.has-parallax { background-attachment: fixed; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.tb-skip:focus {
    position: fixed !important;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    clip: auto;
    margin: 0;
    padding: 10px 16px;
    background: #fff;
    color: var(--tb-navy);
    z-index: 1000;
}

.clear { clear: both; }


/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */

.btn,
.wp-block-button__link,
.unify-btn {
    display: inline-block;
    font-family: var(--unify-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background-color: var(--tb-sage);
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.4s ease-in-out, background-color 0.2s ease;
}

.btn:hover,
.wp-block-button__link:hover,
.unify-btn:hover {
    color: #000;
    opacity: 0.8;
    transform: none;
}

.btn.outline,
.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
    border: 2px solid var(--tb-sage);
    line-height: 36px;
    background: transparent;
    color: var(--tb-sage);
}

.spt-price-link { margin: 0.75em 0 1.5em; }


/* ══════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════ */

.tb-topbar {
    background: var(--tb-sky);
    color: #fff;
    font-size: 0.8rem;
    line-height: var(--tb-topbar-height);
}

.tb-topbar__inner {
    max-width: var(--unify-max-width);
    margin-inline: auto;
    padding-inline: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: var(--tb-topbar-height);
}

.tb-topbar__social {
    display: flex;
    gap: 5px;
}

.tb-topbar__social a {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: var(--tb-sky);
    transition: background 0.3s, color 0.3s;
}

.tb-topbar__social a:hover { background: var(--tb-navy); color: #fff; opacity: 1; }
.tb-topbar__social svg { width: 12px; height: 12px; }

.tb-topbar__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
}

.tb-topbar__links li { margin: 0; line-height: inherit; }

.tb-topbar__links a {
    display: block;
    padding: 0 10px;
    background: var(--tb-sage);
    color: #fff;
    transition: transform 0.4s ease-in-out;
}

.tb-topbar__links a:hover { transform: scale(1.1) rotate(1deg); opacity: 1; }


/* ══════════════════════════════════════════════════════
   MAIN NAVIGATION
   The header scrolls with the top bar, then sticks to the top.
   ══════════════════════════════════════════════════════ */

.unify-nav {
    position: sticky;
    top: 0;
}

.admin-bar .unify-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .unify-nav { top: 0; } }

.unify-main { padding-top: 0; }

.unify-nav__inner { padding-inline: 20px; }

.unify-nav__logo img {
    height: var(--unify-nav-logo-height);
    width: auto;
    max-width: 60vw;
}

.tb-nav { flex: 1; display: flex; justify-content: flex-end; }

.unify-nav__menu { gap: 0; }

.unify-nav__menu > li {
    position: relative;
    margin: 0;
}

.unify-nav__menu > li > a {
    display: block;
    padding: 0 14px;
    line-height: 40px;
    font-size: 15px;
    font-weight: 400;
    color: #000;
}

.unify-nav__menu .current-menu-item > a,
.unify-nav__menu .current-menu-ancestor > a { opacity: 1; color: var(--tb-navy); font-weight: 600; }

/* Sage underline on parents, as before */
.unify-nav__menu > li.menu-item-has-children::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 4px;
    background: var(--tb-sage);
    transform: translateX(-50%);
    transition: width 0.4s ease-in-out;
}

.unify-nav__menu > li.menu-item-has-children:hover::before,
.unify-nav__menu > li.menu-item-has-children:focus-within::before { width: 80%; }

/* Dropdowns (Unify has none built in) */
.unify-nav__menu .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 10px;
    background: var(--tb-sage);
    z-index: var(--unify-z-dropdown);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease-in-out;
}

.unify-nav__menu li:hover > .sub-menu,
.unify-nav__menu li:focus-within > .sub-menu { transform: scaleY(1); }

.unify-nav__menu .sub-menu li { margin: 0; }

.unify-nav__menu .sub-menu a {
    display: block;
    padding: 0 10px;
    line-height: 35px;
    white-space: nowrap;
    color: #000;
}

.unify-nav__menu .sub-menu a:hover { background: rgba(255, 255, 255, 0.35); opacity: 1; }

@media (max-width: 980px) {
    .unify-nav__menu > li > a { padding: 0 8px; font-size: 14px; }
}

/* Mobile menu panel */
.unify-nav__mobile {
    top: 0;
    padding-top: calc(var(--unify-nav-height) + var(--tb-topbar-height) + 1.5rem);
}

.unify-nav__mobile-menu a {
    font-family: var(--unify-font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tb-navy);
}

.unify-nav__mobile-menu .menu-item-has-children > a::after {
    content: "+";
    float: right;
    font-weight: 400;
}

.unify-nav__mobile-menu .menu-item-has-children.is-open > a::after { content: "–"; }

.unify-nav__mobile-menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 4px solid var(--tb-sage);
}

.unify-nav__mobile-menu .is-open > .sub-menu { display: block; }

.unify-nav__mobile-menu .sub-menu a {
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    line-height: 2.2;
}


/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */

.tb-footer {
    background: var(--tb-sky);
    color: #fff;
    padding-block: 40px 24px;
}

.tb-footer .unify-inner { padding-inline: 20px; }

.tb-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tb-footer h4 { color: #fff; }
.tb-footer p  { color: #fff; }
.tb-footer a  { color: #fff; }
.tb-footer a:hover { opacity: 0.75; }

.tb-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-footer ul li { margin: 0; }
.tb-footer ul li a { display: block; line-height: 35px; }

.tb-footer .unify-footer__bar {
    border-top-color: rgba(255, 255, 255, 0.35);
}

.tb-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
}

.tb-footer .unify-footer__copy,
.tb-footer .unify-footer__nav a,
.tb-footer .unify-footer__social a { color: rgba(255, 255, 255, 0.9); }

.tb-footer .unify-footer__copy { margin: 0; }
.tb-footer .unify-footer__nav li a { line-height: inherit; display: inline; }

@media (max-width: 672px) {
    .tb-footer__grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════
   SECTIONS & SHARED COMPONENTS (from the old theme)
   ══════════════════════════════════════════════════════ */

.p20 { padding: 20px; }
.p30 { padding: 30px; }
.p40 { padding: 40px; }

.bar,
.news-block {
    padding-block: 60px;
}

.facilities.bar { background: var(--tb-mist); }

.news-block h3,
.bar h3,
.news-block h4 a,
.news-post h4 a {
    position: relative;
    color: var(--tb-navy);
    text-decoration: none;
}

/* Sage dash above section headings */
.news-block h3::before,
.bar h3::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 50px;
    height: 5px;
    background: var(--tb-sage);
}

.news-header a { color: var(--tb-sage); }
.news-block .wp-block-group { padding: 0 !important; }

.feature-image { margin-bottom: 40px; }
.feature-image img { width: 100%; border-radius: var(--unify-radius-lg); }

.header-image {
    height: 60vh;
    margin-bottom: 60px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.post-template {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Blog listing */
.news-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0 100px;
}

.news-post { margin-bottom: 20px; }

.news-image {
    display: block;
    aspect-ratio: 3 / 2;
    border-radius: var(--unify-radius-lg);
    overflow: hidden;
    background: var(--tb-sky);
    margin-bottom: 20px;
}

.news-block img,
.cottages img,
.news-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    border-radius: var(--unify-radius-lg);
}

.navigation { display: flow-root; }

.tb-post-nav { margin-top: 40px; }
.tb-post-nav .nav-links { display: flex; justify-content: space-between; gap: 20px; }

/* Cottages listing */
.cottage-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 60px;
}

.cottage-filters .btn.active { background: var(--tb-sky); }

.cottages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cottage[hidden] { display: none; }

.cottage a { color: var(--tb-navy); text-decoration: none; }
.cottage h3 { margin-top: 12px; }
.cottage p  { color: var(--tb-navy); margin: 0; }

/* Facilities list (single cottage + Facilities block) */
.facilities-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    color: #000;
}

.facilities-list .facility {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    align-items: center;
}

.facilities-list .facility img { max-width: 80px; width: 100%; }

/* Cottage gallery */
.gallery-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.gallery-content li { margin: 0; }

.gallery-content img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--unify-radius-lg);
}

/* Swiper (Slider / Large Slider blocks) */
.swiper h2 {
    font-family: var(--unify-font-heading);
    font-size: clamp(2.5rem, 6vw, 60px);
    font-weight: normal;
    line-height: 1;
    letter-spacing: 2px;
    color: #fff;
}

.swiper-button-next,
.swiper-button-prev { color: #fff; }
.swiper-pagination-bullet { background: #fff; }

/* Unify Hero Slider / Carousel plugins: use the site fonts */
.unify-hero-slider h1,
.unify-hero-slider h2 { color: #fff; }

.tb-carousel { padding-block: 60px; background: var(--tb-mist); }


/* ══════════════════════════════════════════════════════
   RESPONSIVE (matches the old theme's breakpoints)
   ══════════════════════════════════════════════════════ */

@media (max-width: 672px) {
    .block-large-slider .swiper .overlay .overlay-wrap { padding: 0 40px; }

    .news-block { padding-inline: 20px; }
    .news-header { position: relative; }
    .news-header .has-text-align-right { position: absolute; right: 0; top: 7px; }
    .news-block .wp-block-buttons { margin-bottom: 20px; }

    .block-signpost { grid-template-columns: 1fr; }
    .block-signpost > .sign-box { grid-column: 1 !important; }
    .block-testimonial > div { grid-template-columns: 1fr; }

    .cottages,
    .news-posts,
    .two-column,
    .gallery-content { grid-template-columns: 1fr; }

    .facilities-list { grid-template-columns: repeat(2, 1fr); }

    .header-image { height: 40vh; margin-bottom: 40px; }
}

/* Core button block: equal heights for filled and outline buttons */
.wp-block-buttons .wp-block-button > .wp-block-button__link { padding: 0 20px; }
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link { padding: 0 18px; line-height: 36px; }

/* Keep an opened parent in the mobile menu at full strength */
.unify-nav__mobile-menu .is-open > a { opacity: 1; }


/* ══════════════════════════════════════════════════════
   v1.1 — TWEAKS AFTER STAGING REVIEW
   ══════════════════════════════════════════════════════ */

:root {
    --tb-sun:    #fcdc38;   /* logo yellow */
    --tb-ink:    #1f2747;
    --tb-card-shadow: 0 10px 30px -14px rgba(30, 40, 80, 0.35);
}

/* ── Header: never wrap menu items; switch to the burger before they run out of room ── */
.unify-nav__menu > li > a { white-space: nowrap; }

@media (max-width: 1100px) {
    .tb-nav .unify-nav__menu { display: none; }
    .unify-nav__burger { display: flex; }
}

/* ── Price button: styled here so it looks right even if the price plugin's CSS isn't loaded ── */
.tb-price-link { margin: 0 0 28px; }

.tb-price-btn,
.entry-content .tb-price-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--tb-navy);
    color: #fff !important;
    font-family: var(--unify-font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 6px 18px -8px rgba(60, 73, 137, 0.7);
    transition: background 0.2s ease, transform 0.2s ease;
}

.tb-price-btn::after { content: "→"; transition: transform 0.2s ease; }
.tb-price-btn:hover { background: #2c3768; opacity: 1; transform: translateY(-1px); }
.tb-price-btn:hover::after { transform: translateX(3px); }

/* ── Single cottage ── */
.tb-cottage .tb-cottage__title {
    font-family: var(--unify-font-heading);
    font-weight: normal;
    font-size: clamp(2.5rem, 6vw, 60px);
    line-height: 1.05;
    letter-spacing: 2px;
    color: var(--tb-h1);
    border: 0;
    padding: 0;
    margin: 0 0 12px;
}

.tb-cottage__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.tb-cottage__facts li {
    margin: 0;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--tb-mist);
    color: var(--tb-navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.tb-cottage > h2,
.tb-cottage .wp-block-heading:where(h2) { margin-top: 1.5rem; }

/* Header image: full width and never boxed */
.header-image {
    width: 100%;
    max-width: none;
    height: clamp(260px, 55vh, 620px);
}

/* ── Blog archives, news page and search ── */
.tb-archive-header {
    background: var(--tb-mist);
    padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
    margin-bottom: 0;
}

.tb-archive-header h1 { margin-bottom: 12px; }

.tb-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--tb-navy);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tb-archive-header__lead {
    max-width: 760px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--tb-h2);
}

.tb-archive-header__intro,
.tb-archive-header__intro p {
    max-width: 760px;
    color: #333;
}

.tb-archive-header .search-form,
.tb-archive-header #searchform { margin-top: 16px; }

.tb-news { padding-top: 48px; }

.tb-cards.news-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0 0 48px;
}

.tb-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--tb-card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tb-card:hover,
.tb-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -16px rgba(30, 40, 80, 0.45);
}

.tb-card .tb-card__image {
    display: block;
    margin: 0;
    border-radius: 0;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--tb-sky), var(--tb-mist));
}

.tb-card .tb-card__image img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tb-card:hover .tb-card__image img { transform: scale(1.05); }

.tb-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 24px;
}

.tb-card__eyebrow {
    margin-bottom: 6px;
    color: var(--unify-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tb-card .tb-card__title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.tb-card .tb-card__title a { color: var(--tb-navy); text-decoration: none; }
.tb-card .tb-card__title a::before { display: none; }

.tb-card__excerpt {
    flex: 1;
    margin: 0 0 16px;
    color: #333;
    font-size: 15px;
    line-height: 1.55;
}

.tb-card__more {
    align-self: flex-start;
    color: var(--tb-navy);
    font-size: 14px;
    font-weight: 600;
}

.tb-card__more::after { content: " →"; }

.tb-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 60px;
}

.tb-pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--tb-mist);
    color: var(--tb-navy);
    font-weight: 600;
}

.tb-pagination .page-numbers.current { background: var(--tb-navy); color: #fff; }

.tb-empty { padding-block: 40px 80px; }

@media (max-width: 900px) {
    .tb-cards.news-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .tb-cards.news-posts { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Pitch map page ── */
.slug-pitch-map .tb-page { padding-top: clamp(32px, 5vw, 56px); }

.slug-pitch-map .tb-page > h1:first-child,
.slug-pitch-map .tb-page > .wp-block-heading:first-child {
    margin-bottom: 24px;
    text-align: center;
}

.slug-pitch-map .tb-page .wp-block-spacer { height: 16px !important; }

.tb-zoom {
    position: relative;
    margin: 0 auto 48px;
    padding: 12px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 50px -20px rgba(30, 40, 80, 0.45);
}

.tb-zoom img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.tb-zoom__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 6px 2px;
}

.tb-zoom__open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--tb-navy);
    color: #fff;
    font: 600 14px/1 var(--unify-font-body);
    cursor: pointer;
}

.tb-zoom__open:hover { background: #2c3768; }

.tb-zoom__full {
    color: var(--tb-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Full-screen viewer */
.tb-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    background: rgba(18, 24, 48, 0.94);
}

.tb-viewer.is-open { display: block; }

.tb-viewer__stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.tb-viewer__stage:active { cursor: grabbing; }

.tb-viewer__stage img {
    max-width: 96vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    transform-origin: center;
    user-select: none;
    -webkit-user-drag: none;
}

.tb-viewer__controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.tb-viewer__controls button {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--tb-ink);
    font: 600 18px/1 var(--unify-font-body);
    cursor: pointer;
}

.tb-viewer__controls .tb-viewer__close { background: var(--tb-sun); font-size: 24px; }

.tb-viewer__hint {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
}

/* ── Booking hero on the homepage (Gemapark search form) ──
   site.js tags the full-width block as .tb-booking-hero and the box around
   the form as .tb-booking. */
.tb-booking-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(520px, 78vh, 820px) !important;
    padding: clamp(48px, 8vw, 110px) 20px !important;
    background-size: cover;
    background-position: center;
}

/* Light, even tint so the panel reads on any photo or video (no fade) */
.tb-booking-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(20, 28, 60, 0.18);
}

.tb-booking-hero .wp-block-cover__background { opacity: 0 !important; }

.tb-booking-hero > :not(.wp-block-cover__image-background):not(.wp-block-cover__video-background):not(.wp-block-cover__background):not(.swiper):not(img):not(video) {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* The panel */
.tb-booking {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto !important;
    padding: clamp(24px, 3.5vw, 44px) clamp(20px, 3.5vw, 48px) clamp(24px, 3vw, 40px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 30px 70px -28px rgba(10, 16, 40, 0.7), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
    color: var(--tb-ink);
    text-align: left;
}

/* Any group/column inside the panel (e.g. the old grey box) goes see-through */
.tb-booking .wp-block-group,
.tb-booking .wp-block-group.has-background,
.tb-booking .wp-block-column,
.tb-booking .wp-block-group__inner-container {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tb-booking .wp-block-spacer { display: none; }

/* Gemapark's form is an iframe: fit it to the panel */
.tb-booking iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 4px auto 0;
    border: 0;
    background: transparent;
}

/* Yellow accent bar, like the sun in the logo */
.tb-booking::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 64px;
    height: 5px;
    border-radius: 0 0 6px 6px;
    background: var(--tb-sun);
    transform: translateX(-50%);
}

.tb-booking h1,
.tb-booking h2,
.tb-booking h3,
.tb-booking h4 {
    margin: 0 0 6px !important;
    color: var(--tb-navy) !important;
    font-family: var(--unify-font-heading) !important;
    font-size: clamp(36px, 4.5vw, 56px) !important;
    font-weight: normal !important;
    line-height: 1.05 !important;
    letter-spacing: 1px;
    text-align: center !important;
    text-shadow: none !important;
}

.tb-booking h1 + p,
.tb-booking h2 + p,
.tb-booking h3 + p {
    margin: 0 0 8px;
    text-align: center;
    color: var(--unify-text-muted);
}

.tb-booking form,
.tb-booking .tb-booking__fields { margin-top: 18px; }

.tb-booking .tb-booking__fields {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px 14px;
    align-items: end;
}

.tb-booking .tb-booking__fields > * {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
}

.tb-booking label {
    display: block;
    margin: 0 0 6px;
    color: var(--tb-navy);
    font-family: var(--unify-font-body);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: nowrap;
}

.tb-booking select,
.tb-booking input[type="text"],
.tb-booking input[type="date"],
.tb-booking input[type="number"],
.tb-booking input[type="search"] {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    height: 50px !important;
    margin: 0;
    padding: 0 40px 0 14px !important;
    border: 1.5px solid #d3d9e6 !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    color: var(--tb-ink) !important;
    font: 500 15px/1.2 var(--unify-font-body) !important;
    box-shadow: 0 1px 2px rgba(20, 28, 60, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tb-booking select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233c4989' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    cursor: pointer;
}

.tb-booking select:hover,
.tb-booking input:hover { border-color: #aab4cc !important; }

.tb-booking select:focus,
.tb-booking input:focus {
    outline: none;
    border-color: var(--tb-navy) !important;
    box-shadow: 0 0 0 4px rgba(60, 73, 137, 0.15);
}

/* Date field: leave room for Gemapark's calendar icon */
.tb-booking input[type="text"] { padding-right: 44px !important; }
.tb-booking img { display: inline-block; vertical-align: middle; }

.tb-booking button,
.tb-booking input[type="submit"],
.tb-booking input[type="button"],
.tb-booking .tb-booking__go {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--tb-navy) !important;
    background-image: none !important;
    color: #fff !important;
    font: 600 16px/1 var(--unify-font-body) !important;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 22px -10px rgba(60, 73, 137, 0.9);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tb-booking button:hover,
.tb-booking input[type="submit"]:hover,
.tb-booking input[type="button"]:hover,
.tb-booking .tb-booking__go:hover {
    background: #2c3768 !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(60, 73, 137, 0.95);
    opacity: 1;
}

/* Small reassurance line under the form, if the editor adds a paragraph after it */
.tb-booking > p:last-child {
    margin: 14px 0 0;
    text-align: center;
    color: var(--unify-text-muted);
    font-size: 13px;
}

/* Theme booking form (inc/booking-form.php), swapped in for Gemapark's iframe */
.tb-booking-form { margin: 18px 0 0; }
.tb-booking-form .tb-booking__fields { margin-top: 0; }
.tb-booking-form .tb-field { display: flex; flex-direction: column; justify-content: flex-end; }
.tb-booking-form .tb-field.is-off { opacity: 0.45; }
.tb-booking-form .tb-field.is-off select { pointer-events: none; }
.tb-booking input[type="date"] {
    padding-right: 12px !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.tb-booking input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.7;
    cursor: pointer;
    filter: invert(26%) sepia(28%) saturate(1700%) hue-rotate(205deg);
}
.tb-booking-form .tb-booking__go { gap: 10px; }
.tb-booking-form .tb-booking__go svg { flex: none; }
.tb-booking-form .tb-booking__go:focus-visible { outline: 3px solid var(--tb-sun); outline-offset: 3px; }

@media (min-width: 900px) {
    .tb-booking .tb-booking__fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    /* Search button fills the rest of the last row */
    .tb-booking .tb-booking__fields > :last-child:nth-child(4n + 3) { grid-column: span 2; }
    .tb-booking .tb-booking__fields > :last-child:nth-child(4n + 2) { grid-column: span 3; }
    .tb-booking .tb-booking__fields > :last-child:nth-child(4n + 1) { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .tb-booking-hero { padding: 28px 14px 48px !important; min-height: 0 !important; }
    .tb-booking { border-radius: 18px; }
    .tb-booking .tb-booking__fields { grid-template-columns: 1fr 1fr; }
    .tb-booking .tb-booking__fields > :last-child { grid-column: 1 / -1; }
    .tb-booking label { white-space: normal; }
}
