/* GBWebcams Master Stylesheet — Step 44 brand redesign
   Colour-driven gradient page, solid outlined cards, red/green accent roles,
   handwritten strapline. Every colour comes from the --gb-* tokens in
   style.css (+ Brand Colors / per-location overrides) — no hardcoded hues. */

/* Bundled script font (Step 44) — Caveat, SIL Open Font License, see
   assets/fonts/Caveat-OFL.txt. One variable file covers weights 400-700. */
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/Caveat-Variable-latin.woff2') format('woff2');
}

.gb-script {
    font-family: var(--gb-font-script);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* Inline SVG Icon Helper (Step 28 — replaces emoji glyphs sitewide) */
.gb-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    color: inherit;
    flex-shrink: 0;
}

/* Outline icons (Step 44) paint with stroke, not fill */
.gb-icon-outline {
    fill: none;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--gb-bg-dark);
    color: var(--gb-text-main);
    font-family: var(--gb-font-family);
    line-height: 1.5;
    /* The mock's page gradient: a soft accent glow top-left over a vertical
       fade from the base colour to its darker end. Both stops are tokens, so
       the Brand panel or a Location colour re-shades the whole page. */
    background-image:
        radial-gradient(ellipse 60% 40% at 12% 0%, var(--gb-glow) 0%, transparent 70%),
        linear-gradient(180deg, var(--gb-bg-dark) 0%, var(--gb-bg-gradient-end) 100%);
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--gb-transition);
}

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

/* Container. Step 51: 1280 → 1600px — the mock's desktop layout runs
   nearly edge to edge at 1536px with ~30px gutters, so the old 1280px box
   left the design floating small in the middle of a wide screen. */
.gb-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Header Styles (Step 44: logo | centred nav | actions + strapline) */
.gb-site-header {
    background: rgba(var(--gb-bg-dark-rgb), 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Step 51: a guaranteed gap between the logo, the centred nav and the
   right-hand cluster — at ~1550px the nav used to butt up against the
   brand text. Step 70: the nav is centred on the PAGE, not merely in the
   leftover space between logo and actions — the old `auto 1fr auto` put
   the nav's centre wherever the two unequal outer tracks left it (the
   right cluster with WATCH LIVE + strapline is much wider than the logo,
   so the nav sat visibly left of the video). Equal flexible outer tracks
   fix that; each still never shrinks below its own content, so at tight
   widths they simply stop being equal rather than clipping anything. */
.gb-header-inner {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    align-items: center;
    gap: clamp(28px, 3vw, 56px);
    height: var(--gb-header-h);
}
.gb-header-inner > .gb-brand {
    justify-self: start;
}

.gb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gb-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.gb-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--gb-text-main);
}

.gb-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gb-accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px var(--gb-accent-red-glow);
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.gb-brand-tagline {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gb-text-main);
    font-weight: 700;
    margin-top: 2px;
}

/* Handwritten strapline (Step 44) — Customizer text in the script font,
   wrapped to two short lines with a cyan swoosh underneath. */
.gb-strapline {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 0.95;
    color: var(--gb-text-main);
    text-align: center;
    max-width: 10em;
    white-space: normal;
    transform: rotate(-4deg);
}

.gb-strapline::after {
    content: '';
    display: block;
    width: 72%;
    height: 2px;
    margin: 5px auto 0;
    background: var(--gb-accent-blue);
    border-radius: 2px;
}

/* Uploaded Site Logo (Theme Settings) — replaces the icon+text branding
   above when set. Header is constrained to its 76px bar; footer has more
   room but is kept to a similar visual scale. `width`/`height: auto` +
   `object-fit: contain` override any width/height attributes WordPress
   prints on the <img> tag, so an oversized or oddly-proportioned upload
   is always scaled down to fit rather than stretched or overflowing. */
.gb-site-logo-image {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    max-width: 280px;
}

.gb-brand {
    min-width: 0;
    overflow: hidden;
}

.gb-site-header .gb-site-logo-image {
    max-height: 60px;
    max-width: min(280px, 46vw);
}

.gb-site-footer .gb-site-logo-image {
    max-height: 52px;
    max-width: min(240px, 60vw);
}

.gb-main-nav {
    display: flex;
    align-items: center;
    justify-self: center;
    min-width: 0;
}

.gb-nav-list {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.8vw, 34px);
    list-style: none;
    height: var(--gb-header-h);
}

.gb-nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gb-text-main);
    position: relative;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    opacity: 0.85;
}

.gb-nav-link:hover, .gb-nav-link.active, .current-menu-item > a, .current_page_item > a {
    color: var(--gb-text-main) !important;
    opacity: 1;
}

.gb-nav-link.active::after, .current-menu-item > a::after, .current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gb-accent-red);
    border-radius: 2px;
}

.gb-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.gb-search-toggle {
    background: transparent;
    border: none;
    color: var(--gb-text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--gb-transition);
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
}

.gb-search-toggle:hover,
.gb-search-toggle[aria-expanded="true"] {
    opacity: 1;
    color: var(--gb-accent-blue);
}

/* Header search bar (Step 44) */
.gb-header-search {
    border-top: 1px solid var(--gb-border);
    background: var(--gb-bg-surface); /* solid: sits over page content (Step 54) */
    padding: 12px 0;
}

.gb-header-search[hidden] {
    display: none;
}

.gb-header-search .search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 680px;
    margin: 0 auto;
}

.gb-header-search .search-form label {
    flex: 1;
    display: block;
}

.gb-header-search .search-field {
    width: 100%;
    background: rgba(var(--gb-bg-dark-rgb), 0.6);
    border: 1px solid var(--gb-border);
    color: var(--gb-text-main);
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-size: 0.95rem;
    outline: none;
}

.gb-header-search .search-field:focus {
    border-color: var(--gb-border-highlight);
}

.gb-header-search .search-submit {
    background: var(--gb-accent-red);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
}

/* Light/Dark toggle (Step 41) */
.gb-theme-toggle {
    background: transparent;
    border: none;
    color: var(--gb-text-main);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--gb-transition);
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
}

.gb-theme-toggle:hover {
    opacity: 1;
    color: var(--gb-accent-blue);
}

.gb-theme-toggle .gb-icon-moon {
    display: none;
}

:root[data-theme="light"] .gb-theme-toggle .gb-icon-sun {
    display: none;
}

:root[data-theme="light"] .gb-theme-toggle .gb-icon-moon {
    display: inline-flex;
}

.gb-btn-watch {
    /* Step 84 (owner chose mock A): red outline, no fill or glow, pulsing dot */
    background: transparent;
    color: var(--gb-text-main);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid var(--gb-accent-red);
    transition: var(--gb-transition);
    white-space: nowrap;
}

.gb-btn-watch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gb-accent-red);
    flex-shrink: 0;
    animation: gb-watch-pulse 2s infinite;
}

@keyframes gb-watch-pulse {
    0% { box-shadow: 0 0 0 0 var(--gb-accent-red-glow); }
    70% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.gb-btn-watch:hover {
    background: color-mix(in srgb, var(--gb-accent-red) 14%, transparent);
    color: var(--gb-text-main);
}

/* Drawer foot — the WATCH LIVE + strapline duplicate that only shows
   inside the open mobile drawer */
.gb-nav-drawer-foot {
    display: none;
}

/* Mobile Toggle */
.gb-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--gb-text-main);
    font-size: 1.6rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px;
    line-height: 1;
}

/* Hero Section */
.gb-hero-section {
    padding: 60px 0 40px;
    position: relative;
    width: 100%;
}

.gb-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.gb-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--gb-text-main);
}

.gb-hero-subtitle {
    font-size: 1.15rem;
    color: var(--gb-text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}

.gb-hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gb-btn-primary {
    background: var(--gb-accent-red);
    color: #fff;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: var(--gb-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px var(--gb-accent-red-glow);
}

.gb-btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.gb-btn-outline {
    background: var(--gb-bg-card);
    border: 1px solid var(--gb-border);
    color: var(--gb-text-main);
    padding: 14px 28px;
    font-weight: 700;
    border-radius: var(--gb-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gb-btn-outline:hover {
    background: var(--gb-bg-card-hover);
    border-color: var(--gb-border-highlight);
}

.gb-hero-image-wrap {
    position: relative;
    border-radius: var(--gb-radius);
    overflow: hidden;
    border: 1px solid var(--gb-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    width: 100%;
}

.gb-hero-image-wrap img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* Network Stats Bar */
.gb-stats-bar {
    background: var(--gb-bg-card);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    padding: 24px;
    margin-bottom: 50px;
}

.gb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gb-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gb-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--gb-bg-dark-rgb), 0.5);
    border: 1px solid var(--gb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gb-accent-blue);
    flex-shrink: 0;
}

.gb-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gb-text-main);
}

.gb-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gb-text-muted);
    font-weight: 600;
}

/* Explore Locations Section */
.gb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Section heading (Step 44): small uppercase white title, light-cyan
   "See all →" link on the right — the mock's row header. */
.gb-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gb-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.gb-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gb-accent-blue-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gb-view-all:hover {
    color: var(--gb-text-main);
}

/* Webcams Landing Page — category quick-jump bar + stacked sections */
.gb-webcam-category-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.gb-category-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--gb-border);
    background: var(--gb-bg-card);
    color: var(--gb-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gb-category-pill:hover {
    color: var(--gb-text-main);
    border-color: var(--gb-border-highlight);
}

.gb-webcam-category-section {
    margin-bottom: 8px;
    scroll-margin-top: 24px;
}

.gb-category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gb-category-section-header h2 {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gb-text-main);
    margin: 0;
}

.gb-category-count {
    color: var(--gb-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.gb-location-grid, .gb-webcam-grid, .gb-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
}

.gb-location-card, .gb-webcam-card, .gb-partner-card {
    background: var(--gb-bg-card);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    overflow: hidden;
    transition: var(--gb-transition);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gb-location-card:hover, .gb-webcam-card:hover, .gb-partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--gb-border-highlight);
    background: var(--gb-bg-card-hover);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--gb-border);
}

.gb-card-thumb {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: rgba(var(--gb-bg-dark-rgb), 1);
}

.gb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gb-transition);
}

.gb-location-card:hover .gb-card-thumb img, .gb-webcam-card:hover .gb-card-thumb img, .gb-partner-card:hover .gb-card-thumb img {
    transform: scale(1.05);
}

.gb-badge-live {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gb-accent-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px var(--gb-accent-red-glow);
    z-index: 2;
}

.gb-live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Featured Partner badge (Step 43) — same shape as .gb-badge-live, distinct
   color so it isn't mistaken for a live-stream indicator. */
.gb-badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gb-accent-blue);
    color: #04121c;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
}

.gb-card-body {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gb-card-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gb-text-main);
    line-height: 1.2;
    word-break: break-word;
}

.gb-card-info span {
    font-size: 0.75rem;
    color: var(--gb-text-muted);
}

.gb-card-arrow {
    color: var(--gb-text-main);
    font-size: 1rem;
    transition: var(--gb-transition);
    flex-shrink: 0;
}

.gb-location-card:hover .gb-card-arrow, .gb-webcam-card:hover .gb-card-arrow, .gb-partner-card:hover .gb-card-arrow {
    color: var(--gb-accent-blue);
    transform: translateX(4px);
}

/* ==========================================================================
   LOCATION / WEBCAM PAGE — Step 45 shared layout (template-parts/location/)
   Children are in mobile order; desktop placement via grid-template-areas.
   ========================================================================== */
.gb-location-main {
    /* Step 54: tighter, per the mock — the whole view should fit a screen */
    padding: 16px 0 28px;
}

.gb-loc-layout {
    display: grid;
    gap: 12px;
    /* Third column a touch wider: it carries the weather card beside the
       title on phones (and the Announcements tile once Step 46 lands) */
    /* Step 55: twelve tracks so the title/weather split (7/5) and the three
       equal tiles (4/4/4) can share one grid, as in the mock */
    grid-template-columns: repeat(12, minmax(0, 1fr));
    /* Step 72 (owner): Supporting Local Businesses sits straight under the
       player on phones/tablets (was last, below radio) */
    /* Step 83: the title is the Town Banner and spans the row; the weather
       tile rides inside it on phones (the right column's copy is hidden) and
       the Step 55 strapline row is gone */
    grid-template-areas:
        "title    title    title    title    title    title    title    title    title    title    title    title"
        "sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor"
        "player   player   player   player   player   player   player   player   player   player   player   player"
        "business business business business business business business business business business business business"
        "host     host     host     host     host     host     host     host     host     host     host     host"
        "installed installed installed installed installed installed installed installed installed installed installed installed"
        "radio    radio    radio    radio    radio    radio    radio    radio    radio    radio    radio    radio"
        "share    share    share    share    share    share    share    share    share    share    share    share";
    align-items: start;
    margin-bottom: 16px;
}

/* Once Local Events / Announcements exist (Step 46) the phone layout shows
   the three tiles side by side, as in the mock */
.gb-loc-layout.has-tiles {
    grid-template-areas:
        "title    title    title    title    title    title    title    title    title    title    title    title"
        "sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor  sponsor"
        "player   player   player   player   player   player   player   player   player   player   player   player"
        "business business business business business business business business business business business business"
        "host     host     host     host     host     host     host     host     host     host     host     host"
        "installed installed installed installed installed installed installed installed installed installed installed installed"
        "events   events   events   events   radio    radio    radio    radio    announce announce announce announce"
        "share    share    share    share    share    share    share    share    share    share    share    share";
}

/* Step 51: the three column wrappers (template-parts/location/layout.php)
   are transparent on phones so their children keep taking the areas above */
.gb-loc-col {
    display: contents;
}

.gb-loc-title    { grid-area: title; min-width: 0; }
.gb-loc-weather  { grid-area: weather; }
.gb-loc-sponsor  { grid-area: sponsor; container-type: inline-size; } /* Step 72: cqw sizes the bar */
.gb-loc-player   { grid-area: player; min-width: 0; }
.gb-loc-host     { grid-area: host; }
.gb-loc-installed { grid-area: installed; }
.gb-loc-events   { grid-area: events; }
.gb-loc-radio    { grid-area: radio; }
.gb-loc-announce { grid-area: announce; }
.gb-loc-share    { grid-area: share; min-width: 0; } /* Step 73 */
.gb-loc-business { grid-area: business; min-width: 0; }

@media (min-width: 1025px) {
    /* Desktop (Step 51, revised Step 54): three independent flex stacks —
       left (title, host, events), centre (sponsor bar, player, businesses),
       right (weather, radio, announcements). Step 54 dissolved the shared
       first row: it took the height of the tallest of title / sponsor bar
       / weather, which left a band of empty space between the sponsor bar
       and the player. Now every column flows from the top with ONE gap, and
       the row stretches so the columns end level with the player column
       (the last tile/card in each side column grows to close the bottom).
       Side columns ~22.5% ≈ the mock's 340px at 1536. */
    .gb-loc-layout,
    .gb-loc-layout.has-tiles {
        grid-template-columns: minmax(260px, 22.5%) minmax(0, 1fr) minmax(260px, 22.5%);
        gap: 16px;
        grid-template-areas: "left centre right";
        align-items: stretch;
    }
    .gb-loc-col {
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-width: 0;
    }
    .gb-loc-col > * {
        width: 100%;
    }
    .gb-loc-col-left   { grid-area: left; }
    .gb-loc-col-centre { grid-area: centre; }
    .gb-loc-col-right  { grid-area: right; }
    /* Inside a stack the children no longer need (or may use) an area */
    .gb-loc-col .gb-loc-title,
    .gb-loc-col .gb-loc-weather,
    .gb-loc-col .gb-loc-sponsor,
    .gb-loc-col .gb-loc-player,
    .gb-loc-col .gb-loc-host,
    .gb-loc-col .gb-loc-installed,
    .gb-loc-col .gb-loc-events,
    .gb-loc-col .gb-loc-radio,
    .gb-loc-col .gb-loc-announce,
    .gb-loc-col .gb-loc-share,
    .gb-loc-col .gb-loc-business {
        grid-area: auto;
    }
    /* Side columns end level with the centre: the last tile/card grows.
       Only the Local Events tile and the Announcements card — the host and
       radio cards have a button at their foot and would open a hole above
       it. A location with no announcements will therefore show a short
       right column; that is content, not a layout fault. */
    .gb-loc-col-left  > .gb-loc-events:last-child,
    .gb-loc-col-right > .gb-loc-announce:last-child {
        flex: 1 0 auto;
    }

    /* Step 64/66: with an Installed By banner ALSO present, neither it nor
       the Events tile grows to fill the leftover column height any more.
       Step 64's first attempt (1fr/1fr split) still made both far bigger
       than intended, since the column stretches to match a tall video
       player — splitting that leftover space in half is still a lot of
       space for two small widgets. Owner's correction: Installed By should
       match the Events tile's own NATURAL (un-stretched) size, not the
       other way round, and the column is allowed to end short of the
       centre column here — same accepted trade-off as an Announcements-less
       right column elsewhere. `display: grid` (overriding `.gb-loc-col`'s
       flex via specificity) with `auto` rows gives both their natural
       content height; assets/js/gbwebcams-main.js then copies the Events
       tile's rendered height onto Installed By, since CSS alone can't match
       one stacked sibling's height to another's without either growing to
       fill a container. */
    .gb-loc-col-left.has-installed-events {
        display: grid;
        grid-template-rows: auto auto auto auto;
        gap: 16px;
    }
    .gb-loc-col-left.has-installed-events > .gb-loc-installed .gb-installed-by {
        width: 100%;
        height: 100%;
    }
    .gb-loc-col-left.has-installed-events > .gb-loc-installed .gb-installed-by.is-photo-only {
        aspect-ratio: auto;
    }
}

/* ── Title block ── */
/* Step 51: the block is a size container so the heading scales with the
   COLUMN it sits in, not the viewport — "SOUTHAMPTON" at 2.4rem was wider
   than its 240px column and ran under the sponsor bar. 10.5cqi fits a
   13-letter town on one line in any column width; the sub-line wraps. */
.gb-loc-title {
    container-type: inline-size;
}

.gb-loc-heading {
    display: flex;
    flex-direction: column;
    margin: 0 0 10px;
    color: var(--gb-text-main);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.95;
    /* Never split a place name mid-word; long names shrink via the clamp */
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.gb-loc-heading-main {
    font-size: clamp(1.45rem, 10.5cqi, 2.7rem);
}

.gb-loc-heading-sub {
    font-size: clamp(1rem, 6.4cqi, 1.6rem);
    margin-top: 6px;
    opacity: 0.95;
}

.gb-loc-place {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gb-loc-pin {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gb-text-main);
    margin-top: 1px;
}

.gb-loc-place-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gb-loc-place-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gb-text-main);
}

a.gb-loc-place-name:hover {
    color: var(--gb-accent-blue);
}

.gb-loc-address {
    font-size: 0.85rem;
    color: var(--gb-text-muted);
    line-height: 1.4;
    word-break: break-word;
}

/* ── Host Sponsor Card ── */
.gb-host-sponsor-card {
    background: var(--gb-bg-card);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.gb-card-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gb-text-main);
    display: block;
}

.gb-host-photo {
    border-radius: var(--gb-radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(var(--gb-bg-dark-rgb), 1);
}

.gb-host-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb-host-logo-box {
    background: #ffffff;
    border-radius: var(--gb-radius-sm);
    padding: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    width: 100%;
}

.gb-host-logo-box img {
    max-height: 56px;
    object-fit: contain;
}

.gb-host-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.gb-host-name {
    font-size: 2rem;
    line-height: 1;
    color: var(--gb-text-main);
}

.gb-host-desc {
    font-size: 0.88rem;
    color: var(--gb-text-muted);
    line-height: 1.4;
    margin: 0;
}

.gb-host-body .gb-btn-host-visit {
    margin-top: 8px;
}

/* Phone: photo left, text right (mock). Step 55: the label sits at the top
   of the text column (not across the card) and the text is left-aligned,
   as drawn. */
@media (max-width: 1024px) {
    .gb-host-sponsor-card.has-photo {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas: "photo label" "photo body";
        align-items: start;
        column-gap: 14px;
        row-gap: 6px;
        padding: 12px;
    }
    .gb-host-sponsor-card.has-photo .gb-card-label { grid-area: label; font-size: 0.6rem; }
    .gb-host-sponsor-card.has-photo .gb-host-photo { grid-area: photo; aspect-ratio: 1 / 1; align-self: center; }
    .gb-host-sponsor-card.has-photo .gb-host-body { grid-area: body; align-items: flex-start; text-align: left; gap: 4px; }
    .gb-host-sponsor-card.has-photo .gb-host-name { font-size: 1.7rem; }
    .gb-host-sponsor-card.has-photo .gb-host-desc { font-size: 0.8rem; }
    .gb-host-sponsor-card.has-photo .gb-btn-host-visit { padding: 10px 12px; font-size: 0.72rem; margin-top: 6px; }
}

.gb-btn-host-visit {
    background: var(--gb-accent-green);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: var(--gb-radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--gb-transition);
    width: 100%;
}

.gb-btn-host-visit:hover {
    background: var(--gb-accent-green-hover);
}

/* ── "Advertise Here" placeholders (Step 68) ──
   Rendered by gbwebcams_render_advertise_here() inside the real Host card /
   Main Sponsor banner shells when no sponsor is set for that spot, so they
   inherit every size/phone rule above. Only the placeholder-specific bits
   live here. */
.gb-advertise-here {
    text-decoration: none;
    color: inherit;
}
a.gb-advertise-here {
    cursor: pointer;
    transition: var(--gb-transition);
}
a.gb-advertise-here:hover {
    border-color: var(--gb-border-highlight);
}
/* Text-only stand-in until an image is uploaded: a soft megaphone tile */
.gb-advertise-here-art {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gb-accent-blue);
    flex-shrink: 0;
}
.gb-host-sponsor-card .gb-advertise-here-art {
    border-radius: var(--gb-radius-sm);
    background: var(--gb-accent-blue-soft);
    border: 1px dashed var(--gb-border-highlight);
    padding: 22px 0;
    font-size: 2.4rem;
}
.gb-host-sponsor-card.gb-advertise-here .gb-host-desc {
    color: var(--gb-text-main);
    font-weight: 600;
}
.gb-main-sponsor-banner .gb-advertise-here-art {
    font-size: 1.8rem;
    color: var(--gb-accent-green);
}
/* Image supplied: the strip IS the banner, edge to edge (the placeholder's
   image, or since Step 72 a sponsor's own Main Sponsor Banner).
   Step 72: every Main Sponsor bar — image or text, sponsor or placeholder —
   is the same shape: 8:1 of the bar's width (12.5cqw, .gb-loc-sponsor is
   the size container), 6:1 on phones. The text bars only grow past that
   if their content needs it. Live test: the image placeholder was 104px
   tall and the text one 77px, so the bar jumped when an image was added. */
.gb-main-sponsor-banner {
    min-height: 12.5cqw;
}
.gb-main-sponsor-banner.has-image {
    padding: 0;
    display: block;
    height: 12.5cqw;
    min-height: 0;
}
.gb-advertise-here-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .gb-main-sponsor-banner { min-height: 16.667cqw; }
    .gb-main-sponsor-banner.has-image { height: 16.667cqw; min-height: 0; }
}
/* Step 72: <picture> wrapper for desktop/phone image pairs — transparent to
   layout so the <img> still sizes against its original box */
.gb-picture {
    display: contents;
}
@media (max-width: 1024px) {
    .gb-main-sponsor-banner .gb-advertise-here-art { font-size: 1.3rem; }
    .gb-host-sponsor-card .gb-advertise-here-art { padding: 12px 0; font-size: 1.8rem; }
}

/* ── Installed By widget (Step 57) ──
   Per-webcam credit box, left column between Host and Local Events. Always
   links to the sponsor's Partner listing, never their external website. */
.gb-installed-by {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gb-bg-card);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    padding: 10px 14px;
    width: 100%;
    text-decoration: none;
    transition: var(--gb-transition);
}

.gb-installed-by:hover {
    border-color: var(--gb-border-highlight);
    background: var(--gb-bg-card-hover);
}

.gb-installed-by-photo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--gb-radius-sm);
    overflow: hidden;
    background: rgba(var(--gb-bg-dark-rgb), 1);
}

.gb-installed-by-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb-installed-by-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gb-installed-by-label {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gb-text-muted);
}

.gb-installed-by-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gb-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Photo-only style: the image IS the widget, full banner, no text row */
.gb-installed-by.is-photo-only {
    padding: 0;
    aspect-ratio: 16 / 5;
    overflow: hidden;
}

.gb-installed-by.is-photo-only .gb-installed-by-photo {
    width: 100%;
    height: 100%;
    border-radius: var(--gb-radius);
}

/* Center Main Column */

/* Main Camera Sponsor Banner */
.gb-main-sponsor-banner {
    background: var(--gb-sponsor-bg, #ffffff);
    color: var(--gb-sponsor-text, #0f172a);
    border-radius: var(--gb-radius);
    border: 1px solid var(--gb-border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    flex-wrap: wrap;
}

/* "MAIN SPONSOR" label sits in the row (Step 45), two short lines */
.gb-sponsor-label-top {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gb-sponsor-text, #0f172a);
    opacity: 0.8;
    max-width: 5em;
    line-height: 1.25;
    flex-shrink: 0;
}

.gb-main-sponsor-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
}

.gb-sponsor-logo-wrap {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 220px;
}

.gb-sponsor-logo-wrap img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.gb-sponsor-text {
    min-width: 9em; /* Step 51: the tagline keeps a readable measure before the logo shrinks */
}

.gb-sponsor-text h4 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.gb-sponsor-text p {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.85;
    margin: 0;
    line-height: 1.35;
}

/* Vertical rule between logo and tagline (mock) */
.gb-sponsor-text-ruled {
    border-left: 1px solid rgba(15, 23, 42, 0.18);
    padding-left: 18px;
}

.gb-btn-sponsor-visit {
    background: var(--gb-sponsor-btn-bg, var(--gb-accent-green));
    color: var(--gb-sponsor-btn-text, #ffffff);
    padding: 12px 20px;
    border-radius: var(--gb-radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--gb-transition);
}

.gb-btn-sponsor-visit:hover {
    filter: brightness(0.92);
}

/* Multi-Webcam-Per-Location Switcher (tabs above the player) */
.gb-webcam-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px; /* Step 54: tighter */
}

.gb-webcam-tab {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--gb-radius-sm);
    border: 1px solid var(--gb-border);
    background: var(--gb-bg-card);
    color: var(--gb-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gb-webcam-tab:hover {
    color: var(--gb-text-main);
    border-color: var(--gb-border-highlight);
}

.gb-webcam-tab-active {
    background: var(--gb-location-accent);
    border-color: var(--gb-location-accent);
    color: #fff;
}

/* YouTube Video Player Embed Wrapper */
.gb-player-container {
    background: #000000;
    border-radius: var(--gb-radius);
    overflow: hidden;
    border: 1px solid var(--gb-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    width: 100%;
}

.gb-video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.gb-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* "No live stream currently available" empty state (same 16:9 box as the player) */
.gb-empty-stream-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.gb-empty-stream-icon {
    font-size: 2.5rem;
    opacity: 0.4;
    margin-bottom: 12px;
}

.gb-empty-stream-title {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 6px;
}

.gb-empty-stream-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
    max-width: 320px;
}

/* Player chrome (Step 45): LIVE + date/time top, caption + watermark bottom */
.gb-player-topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
    pointer-events: none;
    z-index: 6;
}

.gb-player-topbar .gb-badge-live {
    position: static;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 8px;
}

.gb-badge-live.gb-badge-offline {
    background: #4b5563;
    box-shadow: none;
}

.gb-badge-offline .gb-live-dot {
    animation: none;
}

.gb-player-clock {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.gb-player-overlay-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
    padding: 14px 150px 16px 16px; /* right padding clears the controls pill */
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    pointer-events: none;
    z-index: 6;
}

.gb-player-caption {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.gb-player-watermark {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

/* Custom YouTube Player Control Bar (Bug 3 rebuild) — stays hidden until
   JS enhances the player. Step 45: a translucent pill bottom-right over
   the video (the mock's mute + fullscreen), rather than a bar beneath it. */
.gb-custom-controls[hidden] {
    display: none;
}

.gb-custom-controls {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gb-yt-controls-spacer {
    display: none;
}

.gb-yt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0;
}

.gb-yt-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.gb-yt-btn svg {
    width: 16px;
    height: 16px;
}

.gb-yt-btn[data-state="playing"] .gb-icon-play { display: none; }
.gb-yt-btn[data-state="paused"] .gb-icon-pause { display: none; }
.gb-yt-btn[data-state="unmuted"] .gb-icon-muted { display: none; }
.gb-yt-btn[data-state="muted"] .gb-icon-unmuted { display: none; }

/* Player Sponsor Overlay (Logo Watermark Bug) */
.gb-player-sponsor-overlay {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--gb-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: var(--gb-transition);
    max-height: 42px;
    pointer-events: auto;
    cursor: pointer;
}

.gb-player-sponsor-overlay:hover {
    opacity: 1 !important;
    transform: scale(1.06);
    background: rgba(15, 23, 42, 0.85);
    border-color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.gb-player-sponsor-overlay img {
    max-height: 28px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Step 51: the top positions sit BELOW the Step 45 top bar (LIVE badge +
   clock) instead of colliding with the clock in the corner */
.gb-player-sponsor-overlay.gb-pos-top-right {
    top: 58px;
    right: 14px;
}

.gb-player-sponsor-overlay.gb-pos-top-left {
    top: 58px;
    left: 14px;
}

.gb-player-sponsor-overlay.gb-pos-bottom-right {
    bottom: 64px;
    right: 14px;
}

.gb-player-sponsor-overlay.gb-pos-bottom-left {
    bottom: 64px;
    left: 14px;
}

/* YouTube Interaction Shield Overlay (Prevents YouTube Click-Through) */
.gb-youtube-click-shield {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    z-index: 5;
    background: transparent;
    cursor: default;
    pointer-events: auto;
}

/* Right Sidebar Elements (Weather & Local Radio) */
.gb-widget-card {
    background: var(--gb-bg-card);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    padding: 18px;
    width: 100%;
}

/* Weather card (Step 45 frame; live data Step 48): icon + reading | date/time */
.gb-loc-weather {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gb-weather-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.gb-weather-now {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gb-weather-icon {
    font-size: 2.6rem;
    line-height: 1;
    color: #f5c542;
    flex-shrink: 0;
}

.gb-weather-reading {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.gb-weather-temp {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--gb-text-main);
}

.gb-weather-condition {
    font-size: 0.85rem;
    color: var(--gb-text-muted);
}

.gb-weather-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    border-left: 1px solid var(--gb-border);
    padding-left: 14px;
    line-height: 1.15;
}

.gb-weather-date {
    font-size: 0.78rem;
    color: var(--gb-text-muted);
    white-space: nowrap;
}

.gb-weather-clock {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gb-text-main);
}

.gb-weather-link {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Radio card (Step 45) */
.gb-radio-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gb-radio-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gb-radio-icon {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--gb-text-main);
    flex-shrink: 0;
}

.gb-radio-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gb-radio-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gb-text-main);
    line-height: 1.15;
}

.gb-radio-line {
    font-size: 0.85rem;
    color: var(--gb-text-main);
    opacity: 0.9;
}

.gb-radio-line-muted {
    color: var(--gb-text-muted);
    opacity: 1;
}

.gb-radio-card .gb-btn-radio-listen {
    justify-content: center;
    width: 100%;
    padding: 11px 16px;
}

.gb-btn-radio-listen {
    background: transparent;
    color: var(--gb-text-main);
    border: 1px solid var(--gb-border-highlight);
    padding: 9px 16px;
    border-radius: var(--gb-radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--gb-transition);
}

.gb-btn-radio-listen:hover {
    background: rgba(var(--gb-accent-blue-rgb), 0.15);
}

/* ── Tiles: Local Events + Announcements (Step 46) ── */
.gb-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: var(--gb-transition);
}

.gb-tile:hover {
    border-color: var(--gb-border-highlight);
    background: var(--gb-bg-card-hover);
}

.gb-tile-icon {
    font-size: 2.2rem;
    line-height: 1;
    color: var(--gb-text-main);
    flex-shrink: 0;
}

.gb-tile-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.gb-tile-sub {
    font-size: 0.9rem;
    color: var(--gb-text-main);
    opacity: 0.9;
}

.gb-tile-arrow {
    font-size: 1.2rem;
    color: var(--gb-text-main);
    flex-shrink: 0;
    transition: var(--gb-transition);
}

.gb-tile:hover .gb-tile-arrow {
    transform: translateX(4px);
    color: var(--gb-accent-blue);
}

.gb-tile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.gb-tile-head .gb-tile-icon {
    font-size: 1.6rem;
}

/* Announcements card */
.gb-loc-announce {
    display: flex;
    flex-direction: column;
}

/* Step 51: prev/next arrows either side of the track (owner: "Announcements
   need arrows"); the wrapper positions them and the card's padding keeps
   them inside the outline */
.gb-announce-wrap {
    position: relative;
    min-width: 0;
}

/* Step 54: when the card grows to close the column the dots drop to the
   bottom; the wrap itself stays content-height so the arrows (50% of it)
   land on the picture, not across the title */
.gb-loc-announce .gb-carousel-dots {
    margin-top: auto;
    padding-top: 10px;
}

.gb-loc-announce .gb-carousel-prev { left: -8px; }
.gb-loc-announce .gb-carousel-next { right: -8px; }

.gb-loc-announce .gb-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    top: 42%; /* biased toward the picture */
}

.gb-announce-item {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
    min-width: 0;
}

.gb-announce-image {
    border-radius: var(--gb-radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(var(--gb-bg-dark-rgb), 1);
}

.gb-announce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb-announce-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.gb-announce-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--gb-text-main);
}

.gb-announce-chevron {
    font-size: 1.2rem;
    color: var(--gb-text-main);
    flex-shrink: 0;
    margin-top: 2px;
}

a.gb-announce-item:hover .gb-announce-chevron {
    color: var(--gb-accent-blue);
}

.gb-announce-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gb-text-main);
    opacity: 0.85;
}

.gb-announce-meta .gb-icon {
    font-size: 1.1rem;
}

/* Dots (static here; Step 47's carousel JS keeps them in sync) */
.gb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.gb-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--gb-accent-blue-rgb), 0.35);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: var(--gb-transition);
}

.gb-carousel-dot:focus-visible {
    outline: 2px solid var(--gb-accent-blue);
    outline-offset: 2px;
}

.gb-carousel-dot.is-active {
    background: var(--gb-accent-blue);
}

/* Phone: the three tiles sit in one row as compact tiles — icon left,
   label + one line, arrow right (the mock; re-drawn Step 55 — the Step 46
   stacked version was three times the height). */
.gb-radio-tile-arrow {
    display: none;
}

@media (max-width: 1024px) {
    /* Step 56: thin tiles (owner: "widgets need to be not as tall on mobile
       and tablet") — no minimum height, content decides */
    .gb-loc-events,
    .gb-loc-radio,
    .gb-loc-announce {
        padding: 8px 10px;
        min-height: 0;
        border-radius: var(--gb-radius-sm);
        align-self: stretch; /* the three tiles share one height */
    }
    /* Events tile: icon | text | arrow on one row; the next-event line is
       desktop-only (no room in a third of a phone) */
    .gb-loc-events {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    .gb-loc-events .gb-tile-next {
        display: none;
    }
    .gb-tile-icon,
    .gb-tile-head .gb-tile-icon,
    .gb-radio-icon {
        font-size: 1.25rem;
    }
    .gb-tile-sub,
    .gb-radio-line {
        font-size: 0.62rem;
        line-height: 1.25;
    }
    .gb-tile-arrow {
        font-size: 0.8rem;
    }
    .gb-tile-text {
        gap: 1px;
    }
    .gb-loc-events .gb-card-label,
    .gb-loc-announce .gb-card-label {
        font-size: 0.5rem;
        letter-spacing: 0.05em;
    }
    .gb-radio-line-from {
        display: none;
    }
    /* Announcements tile: the head's icon and label become grid items so
       the icon sits left of both the label and the first title */
    .gb-loc-announce {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "icon label" "icon wrap";
        align-items: center;
        align-content: center;
        column-gap: 6px;
        row-gap: 1px;
    }
    .gb-loc-announce .gb-tile-head {
        display: contents;
    }
    .gb-loc-announce .gb-tile-head .gb-tile-icon { grid-area: icon; }
    .gb-loc-announce .gb-tile-head .gb-card-label { grid-area: label; }
    .gb-loc-announce .gb-announce-wrap { grid-area: wrap; }
    .gb-loc-announce .gb-announce-image,
    .gb-loc-announce .gb-announce-meta,
    .gb-loc-announce .gb-carousel-dots {
        display: none;
    }
    /* The compact tile has no room for the Step 51 arrows; !important
       because the carousel's "ready + scrollable" show rule is more
       specific and comes later in this file */
    .gb-loc-announce .gb-carousel-btn {
        display: none !important;
    }
    .gb-loc-announce .gb-announce-title {
        font-size: 0.62rem;
        font-weight: 600;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .gb-loc-announce .gb-announce-chevron {
        font-size: 0.8rem;
        margin-top: 0;
    }
    .gb-loc-announce .gb-announce-body {
        align-items: center;
        gap: 4px;
    }
    /* Radio tile: icon | name + "Listen live" | arrow; the button hides and
       the Step 55 arrow link is the tap target */
    .has-tiles .gb-loc-radio {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    .has-tiles .gb-loc-radio .gb-radio-row {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }
    .has-tiles .gb-loc-radio .gb-radio-text {
        gap: 1px;
    }
    .has-tiles .gb-loc-radio .gb-radio-line-muted {
        display: none;
    }
    .has-tiles .gb-loc-radio .gb-btn-radio-listen {
        display: none;
    }
    .has-tiles .gb-loc-radio .gb-radio-tile-arrow {
        display: inline-flex;
        color: var(--gb-text-main);
    }
    .has-tiles .gb-loc-radio .gb-radio-name {
        font-size: 0.72rem;
        line-height: 1.15;
    }
}

/* Tablets: the host photo shouldn't grow to half the card (Step 55) */
@media (min-width: 601px) and (max-width: 1024px) {
    .gb-host-sponsor-card.has-photo {
        grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    }
}

/* Phones (Step 56): a third of a phone can't hold the descriptive lines
   without cutting them, so each tile is just icon + its title — LOCAL
   EVENTS / Shine Radio / ANNOUNCEMENTS — and the whole tile is the tap
   target. Titles size to the tile (container units) so a single long word
   like ANNOUNCEMENTS is never clipped or broken. */
@media (max-width: 600px) {
    .gb-loc-events,
    .gb-loc-radio,
    .gb-loc-announce {
        container-type: inline-size;
        position: relative;
        padding: 9px 8px;
        gap: 6px;
    }
    .gb-loc-events .gb-tile-sub,
    .gb-loc-events .gb-tile-arrow,
    .has-tiles .gb-loc-radio .gb-radio-line,
    .has-tiles .gb-loc-radio .gb-radio-tile-arrow .gb-icon,
    .gb-loc-announce .gb-announce-body,
    .gb-loc-announce .gb-announce-chevron {
        display: none;
    }
    .gb-loc-events .gb-card-label,
    .gb-loc-announce .gb-card-label {
        font-size: clamp(0.42rem, 7cqi, 0.62rem);
        letter-spacing: 0.03em;
        white-space: nowrap;
        line-height: 1.2;
    }
    .has-tiles .gb-loc-radio .gb-radio-name {
        font-size: clamp(0.55rem, 8.5cqi, 0.8rem);
        line-height: 1.2;
    }
    .gb-tile-icon,
    .gb-tile-head .gb-tile-icon,
    .gb-radio-icon {
        font-size: 1.05rem;
    }
    .gb-loc-announce {
        grid-template-areas: "icon label";
        grid-template-rows: auto;
        row-gap: 0;
    }
    /* The announcements track collapses, but its first link still covers
       the tile (pseudo-element stretched over the card) */
    .gb-loc-announce .gb-announce-wrap {
        grid-area: auto;
        position: static;
        height: 0;
        overflow: hidden;
        min-width: 0;
    }
    .gb-loc-announce .gb-announce-track {
        display: block;
    }
    .gb-loc-announce .gb-announce-item {
        position: static;
        display: block;
    }
    .gb-loc-announce a.gb-announce-item:first-child::after,
    .has-tiles .gb-loc-radio .gb-radio-tile-arrow::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
    }
    .has-tiles .gb-loc-radio .gb-radio-tile-arrow {
        position: static;
        width: 0;
        height: 0;
        overflow: visible;
    }
    /* Webcam switcher tabs: shorter (owner: "not as tall") */
    .gb-webcam-switcher {
        gap: 6px;
        margin-bottom: 8px;
    }
    .gb-webcam-tab {
        padding: 5px 10px;
        font-size: 0.66rem;
        border-radius: 7px;
    }
}

/* ==========================================================================
   ARCHIVES / PARTNERS / LEGACY HOMEPAGE (Step 49)
   ========================================================================== */
.gb-archive {
    padding: 36px 0 56px;
}

.gb-page-head {
    margin-bottom: 26px;
}

.gb-page-title {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--gb-text-main);
    margin: 0 0 8px;
}

.gb-page-intro {
    font-size: 0.95rem;
    color: var(--gb-text-muted);
    margin: 0;
    max-width: 62ch;
}

.gb-archive-empty {
    color: var(--gb-text-muted);
    margin: 0 0 40px;
}

/* Partner cards: logo alone on a white band; photo + small logo strip */
.gb-card-thumb-logo {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gb-card-thumb-logo img {
    object-fit: contain;
    max-height: 100%;
}

.gb-partner-card-logo {
    background: #ffffff;
    padding: 8px 14px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gb-partner-card-logo img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.gb-partner-card.is-featured {
    border-color: var(--gb-border-highlight);
}

.gb-badge-inline {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
}

/* Partner profile */
.gb-partner-container {
    max-width: 760px;
}

.gb-partner-profile.is-featured .gb-partner-container {
    max-width: 1040px;
}

.gb-partner-head {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.gb-partner-logo {
    background: #ffffff;
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gb-partner-logo img {
    max-height: 72px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
}

.gb-partner-profile.is-featured .gb-partner-logo img {
    max-height: 96px;
    max-width: 280px;
}

.gb-partner-head-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.gb-partner-name {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    margin: 0;
    color: var(--gb-text-main);
}

/* Step 94: the partner's kinds of business (its Advert Groups) under the name */
.gb-partner-types {
    margin: 0;
    color: var(--gb-text-muted);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.gb-partner-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.gb-partner-profile.is-featured .gb-partner-layout {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.gb-partner-main,
.gb-partner-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.gb-partner-photo {
    border-radius: var(--gb-radius);
    overflow: hidden;
    border: 1px solid var(--gb-border);
    background: rgba(var(--gb-bg-dark-rgb), 1);
}

/* Step 95: no forced 16:9 crop — a designed card or photo shows whole,
   full width at its own shape (the crop was slicing the top off cards). */
.gb-partner-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.gb-partner-about {
    font-size: 0.95rem;
    color: var(--gb-text-muted);
    line-height: 1.6;
    margin-top: 8px;
}

.gb-partner-about p {
    margin: 0 0 10px;
}

.gb-partner-places,
.gb-partner-contact {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gb-partner-places li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gb-border);
}

.gb-partner-places li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.gb-partner-places a {
    color: var(--gb-text-main);
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gb-partner-places a:hover {
    color: var(--gb-accent-blue);
}

.gb-partner-place-via {
    font-size: 0.68rem;
    color: var(--gb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.gb-partner-contact li {
    font-size: 0.9rem;
    color: var(--gb-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gb-partner-contact a {
    color: var(--gb-text-main);
}

.gb-partner-contact a:hover {
    color: var(--gb-accent-blue);
}

.gb-partner-back {
    align-self: flex-start;
}

/* ==========================================================================
   LOCAL EVENTS (Step 53) — /events/ archive, per-location filter, single
   ========================================================================== */
.gb-category-pill.is-active {
    background: var(--gb-accent-blue);
    border-color: var(--gb-accent-blue);
    color: #fff;
}

.gb-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gb-event-card {
    background: var(--gb-bg-card);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: var(--gb-transition);
}

.gb-event-card:hover {
    transform: translateY(-4px);
    border-color: var(--gb-border-highlight);
    background: var(--gb-bg-card-hover);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.gb-event-card.is-past {
    opacity: 0.75;
}

.gb-event-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
}

.gb-event-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 54px;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.gb-event-date-day {
    font-size: 1.35rem;
    font-weight: 900;
}

.gb-event-date-month {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gb-accent-red);
    margin-top: 3px;
}

.gb-event-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.gb-event-when,
.gb-event-where {
    font-size: 0.8rem;
    color: var(--gb-text-muted);
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.35;
}

.gb-event-when {
    color: var(--gb-accent-blue-soft);
    font-weight: 700;
}

.gb-event-when .gb-icon,
.gb-event-where .gb-icon {
    font-size: 1rem;
    margin-top: 1px;
}

.gb-event-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--gb-text-main);
    margin: 0;
}

.gb-event-more {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gb-text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--gb-transition);
}

.gb-event-card:hover .gb-event-more {
    color: var(--gb-accent-blue);
}

.gb-events-empty {
    margin-bottom: 30px;
}

.gb-events-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 40px;
}

.gb-pagination {
    margin: 0 0 30px;
}

.gb-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--gb-radius-sm);
    border: 1px solid var(--gb-border);
    background: var(--gb-bg-card);
    color: var(--gb-text-main);
    font-size: 0.82rem;
    font-weight: 700;
}

.gb-pagination .page-numbers.current {
    background: var(--gb-accent-blue);
    border-color: var(--gb-accent-blue);
    color: #fff;
}

.gb-pagination .screen-reader-text {
    display: none;
}

/* Location page tile: the next event's name/date under "What's on in …" */
.gb-tile-next {
    font-size: 0.78rem;
    color: var(--gb-text-muted);
    line-height: 1.3;
}

/* Single event */
.gb-event-container {
    max-width: 1040px;
}

.gb-event-back {
    display: inline-flex;
    margin-bottom: 18px;
}

.gb-event-hero {
    position: relative;
    border-radius: var(--gb-radius);
    overflow: hidden;
    border: 1px solid var(--gb-border);
    aspect-ratio: 21 / 9;
    background: rgba(var(--gb-bg-dark-rgb), 1);
    margin-bottom: 22px;
}

.gb-event-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb-event-past-badge {
    top: 14px;
    left: 14px;
}

.gb-event-head-when {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gb-accent-blue-soft);
    font-weight: 700;
}

.gb-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 40px;
}

.gb-event-main,
.gb-event-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.gb-event-facts li span {
    color: var(--gb-text-main);
}

.gb-event-cta {
    margin-top: 14px;
}

@media (max-width: 1024px) {
    .gb-event-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .gb-event-grid {
        grid-template-columns: 1fr;
    }
    .gb-event-hero {
        aspect-ratio: 16 / 9;
    }
}

/* Generic post listing (index.php fallback) */
.gb-post-card {
    margin-bottom: 24px;
}

.gb-post-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--gb-text-main);
}

.gb-post-card-title a:hover {
    color: var(--gb-accent-blue);
}

/* Legacy homepage template */
.gb-revslider-section {
    width: 100%;
    overflow: hidden;
}

.gb-hero-image-fallback {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gb-text-muted);
    background: linear-gradient(135deg, var(--gb-bg-card), rgba(var(--gb-bg-dark-rgb), 1));
}

.gb-home-businesses {
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .gb-partner-profile.is-featured .gb-partner-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* "About this location" popover (Step 54 — replaced the Step 45 card).
   Opens on hover of the place name, on keyboard focus, or on tapping the ⓘ
   (gbwebcams-main.js toggles .is-open). Solid surface so it hides the host
   card it overlaps. */
.gb-loc-title {
    position: relative;
    z-index: 5; /* the open popover paints over the host card below */
}

.gb-loc-about-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
}

/* Hover bridge: keeps the popover open while the pointer crosses the gap */
.gb-loc-about-trigger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.gb-loc-about-btn {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--gb-border);
    background: var(--gb-bg-card);
    color: var(--gb-accent-blue-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--gb-transition);
}

.gb-loc-about-trigger:hover .gb-loc-about-btn,
.gb-loc-about-trigger.is-open .gb-loc-about-btn,
.gb-loc-about-btn:focus-visible {
    border-color: var(--gb-border-highlight);
    color: var(--gb-text-main);
    background: var(--gb-bg-card-hover);
}

.gb-loc-about-pop {
    position: absolute;
    top: calc(100% + 12px);
    left: -6px;
    z-index: 30;
    width: min(380px, calc(100vw - 48px));
    padding: 14px 16px 12px;
    background: var(--gb-bg-surface);
    border: 1px solid var(--gb-border-highlight);
    border-radius: var(--gb-radius-sm);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 4px var(--gb-glow);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Arrow pointing up at the name */
.gb-loc-about-pop::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 22px;
    width: 10px;
    height: 10px;
    background: var(--gb-bg-surface);
    border-left: 1px solid var(--gb-border-highlight);
    border-top: 1px solid var(--gb-border-highlight);
    transform: rotate(45deg);
}

.gb-loc-about-trigger:hover .gb-loc-about-pop,
.gb-loc-about-trigger:focus-within .gb-loc-about-pop,
.gb-loc-about-trigger.is-open .gb-loc-about-pop {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.gb-loc-about-pop-label {
    margin-bottom: 6px;
    color: var(--gb-accent-blue-soft);
}

/* Generic body text block (also used by index.php's fallback post card) */
.gb-loc-about-body {
    font-size: 0.9rem;
    color: var(--gb-text-muted);
    line-height: 1.55;
}

.gb-loc-about-body p {
    margin: 0 0 10px;
}

.gb-loc-about-pop .gb-loc-about-body {
    font-size: 0.88rem;
    color: var(--gb-text-main);
    opacity: 0.9;
    line-height: 1.5;
}

.gb-loc-about-pop .gb-loc-about-body p {
    margin: 0 0 8px;
}

.gb-loc-about-pop .gb-loc-about-body p:last-child {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .gb-loc-about-pop {
        transition: none;
        transform: none;
    }
}

/* "Explore more live cameras" row (Step 45; Step 47 adds the carousel).
   Step 54: a rule above it boxes the camera row off from the columns, and
   the spacing is tightened so the row fits on the first screen. */
.gb-explore-cameras {
    margin-bottom: 28px;
    padding-top: 14px;
    border-top: 1px solid var(--gb-border);
}

.gb-explore-cameras .gb-section-header {
    margin-bottom: 12px;
}

.gb-explore-cameras .gb-section-title {
    font-size: 0.95rem;
}

.gb-explore-card .gb-card-body {
    padding: 10px 12px;
}

.gb-explore-wrap {
    position: relative;
}

.gb-explore-track {
    gap: 18px;
    padding-bottom: 4px; /* room for the hover lift */
}

.gb-explore-card {
    flex: 0 0 calc((100% - 3 * 18px) / 4);
    min-width: 0;
}

.gb-explore-card .gb-card-thumb {
    height: 120px;
}

/* Step 51: the mock shows six cameras across on a wide desktop */
@media (min-width: 1400px) {
    .gb-explore-card {
        flex-basis: calc((100% - 5 * 18px) / 6);
    }
    .gb-explore-card .gb-card-thumb {
        height: 96px; /* Step 54: shorter so the row fits on the first screen */
    }
}

@media (max-width: 1024px) {
    .gb-explore-card {
        flex-basis: calc((100% - 2 * 18px) / 3);
    }
}

/* Phones: four small cards across (the mock; Step 55 — was two-up) */
@media (max-width: 768px) {
    .gb-explore-cameras {
        padding-top: 12px;
        margin-bottom: 18px;
    }
    .gb-explore-track {
        gap: 8px;
    }
    .gb-explore-card {
        flex-basis: calc((100% - 3 * 8px) / 4);
        border-radius: var(--gb-radius-sm);
    }
    .gb-explore-card .gb-card-thumb {
        height: 58px;
    }
    .gb-explore-card .gb-card-body {
        padding: 6px 6px;
        gap: 2px;
    }
    .gb-explore-card .gb-card-info {
        min-width: 0;
    }
    .gb-explore-card .gb-card-info h3,
    .gb-explore-card .gb-card-info span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal;
    }
    .gb-explore-card .gb-card-info h3 {
        font-size: 0.58rem;
        line-height: 1.2;
    }
    .gb-explore-card .gb-card-info span {
        font-size: 0.5rem;
        line-height: 1.2;
    }
    .gb-explore-card .gb-card-arrow .gb-icon,
    .gb-explore-card .gb-card-arrow {
        font-size: 0.65rem;
    }
    .gb-explore-card .gb-badge-live {
        top: 5px;
        left: 5px;
        font-size: 0.48rem;
        padding: 2px 5px;
        gap: 3px;
        border-radius: 4px;
    }
    .gb-explore-card .gb-badge-live .gb-live-dot {
        width: 5px;
        height: 5px;
    }
    .gb-explore-card .gb-card-thumb-fallback {
        font-size: 1.2rem;
    }
    .gb-explore-cameras .gb-carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    .gb-explore-cameras .gb-carousel-prev { left: -8px; }
    .gb-explore-cameras .gb-carousel-next { right: -8px; }
}

.gb-card-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--gb-text-muted);
    background: linear-gradient(135deg, var(--gb-bg-card), rgba(var(--gb-bg-dark-rgb), 1));
}

.gb-card-arrow .gb-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   CAROUSEL (Step 47) — generic scroll-snap row + prev/next + dots
   Enhanced by assets/js/gbwebcams-scroller.js; works as a swipeable row
   without it. Used by Supporting Local Businesses, Explore More Live
   Cameras and Announcements.
   ========================================================================== */
.gb-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.gb-carousel-track::-webkit-scrollbar {
    display: none;
}

.gb-carousel-slide {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Step 60: seamless-loop clones (assets/js/gbwebcams-scroller.js) — real
   content duplicated once so autoplay can advance forward onto them and
   snap back invisibly; never reachable by mouse, keyboard or screen reader */
.gb-carousel-slide-clone {
    pointer-events: none;
}

/* Step 66: mandatory scroll-snap fights the marquee's per-frame scrollLeft
   writes — most browsers treat each tiny programmatic change as needing to
   resolve to the nearest snap point, which can cancel visible motion
   entirely regardless of speed. Snapping made sense for manual swipe/paging,
   but a continuous marquee has no discrete "page" to land on anyway, so
   loop mode turns it off outright. Headless Chrome can't reproduce this —
   `--virtual-time-budget` doesn't resolve scroll-snap the way a real
   browser does over real time, which is why this got past every earlier
   headless check. */
[data-gb-carousel][data-loop="1"] .gb-carousel-track {
    scroll-snap-type: none;
}

@media (prefers-reduced-motion: reduce) {
    .gb-carousel-track {
        scroll-behavior: auto;
    }
}

/* Round prev/next buttons, sitting over the row's edges as in the mock.
   Hidden until JS is ready AND there's more than one page. */
.gb-carousel-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--gb-border-highlight);
    background: rgba(var(--gb-bg-dark-rgb), 0.85);
    color: var(--gb-text-main);
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: var(--gb-transition);
}

.gb-carousel-btn:hover {
    background: var(--gb-accent-blue);
    color: #fff;
    border-color: var(--gb-accent-blue);
}

.gb-carousel-btn:focus-visible {
    outline: 2px solid var(--gb-accent-blue);
    outline-offset: 2px;
}

.gb-carousel-prev { left: -14px; }
.gb-carousel-next { right: -14px; }

.gb-carousel-ready.gb-carousel-scrollable .gb-carousel-btn {
    display: inline-flex;
}

.gb-carousel-dots[hidden] {
    display: none;
}

/* ── Supporting Local Businesses ── */
.gb-scroller-section {
    background: var(--gb-bg-card);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    padding: 12px 18px 10px; /* Step 54: tighter */
    width: 100%;
    position: relative;
}

.gb-scroller-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.gb-scroller-header .gb-section-title {
    font-size: 0.9rem;
}

.gb-scroller-track-wrap {
    width: 100%;
    position: relative;
}

/* A white business card. Step 51, per the mock: every card is the same
   4:3 tile — a short logo/name strip on top and the photo filling the rest
   (or the tagline/phone centred in that space when there's no photo). Four
   cards fill the row on desktop with a 12px gap. */
.gb-biz-card {
    flex: 0 0 calc((100% - 3 * 12px) / 4);
    min-width: 0;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    background: var(--gb-ad-bg, #ffffff);
    color: var(--gb-ad-text, #0f172a);
    border-radius: var(--gb-radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: var(--gb-transition);
}

a.gb-biz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.gb-biz-logo {
    flex: 0 0 auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.gb-biz-logo img {
    max-height: 30px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.gb-biz-name {
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.15;
}

.gb-biz-photo {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #e5e7eb;
}

.gb-biz-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb-biz-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    padding: 0 18px 12px; /* clear of the round arrow buttons at the row edges */
    font-size: 0.78rem;
    line-height: 1.3;
}

/* A card that is only an image (Step 52's Card Image slot): no strip */
.gb-biz-card.is-image-only .gb-biz-photo {
    flex: 1 1 100%;
}

.gb-biz-tagline {
    font-weight: 700;
}

.gb-biz-phone {
    opacity: 0.8;
}

.gb-scroller-track {
    gap: 12px;
}

@media (max-width: 1024px) {
    .gb-biz-card {
        flex-basis: calc((100% - 2 * 12px) / 3);
    }
}

/* Phones (Step 55, per the mock): four small cards across, tight strip */
@media (max-width: 768px) {
    .gb-scroller-section {
        padding: 10px 12px 8px;
    }
    .gb-scroller-header {
        margin-bottom: 8px;
    }
    .gb-scroller-header .gb-section-title {
        font-size: 0.78rem;
    }
    .gb-scroller-header .gb-view-all {
        font-size: 0.72rem;
        white-space: nowrap;
    }
    .gb-scroller-track {
        gap: 8px;
    }
    /* Step 72 (owner): two cards across, not four, and the same 4:3 shape
       as desktop — so a Business Card Image shows uncropped on phones too
       (supersedes Step 55's four-up 1:1.1 strip) */
    .gb-biz-card {
        flex-basis: calc((100% - 8px) / 2);
        aspect-ratio: 4 / 3;
        border-radius: 8px;
    }
    .gb-biz-logo {
        min-height: 32px;
        padding: 5px 8px;
    }
    .gb-biz-logo img {
        max-height: 24px;
    }
    .gb-biz-name {
        font-size: 0.72rem;
    }
    .gb-biz-text {
        font-size: 0.72rem;
        padding: 0 8px 8px;
        gap: 2px;
    }
    .gb-scroller-section .gb-carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    .gb-scroller-section .gb-carousel-prev { left: -6px; }
    .gb-scroller-section .gb-carousel-next { right: -6px; }
    .gb-scroller-section .gb-carousel-dots {
        margin-top: 8px;
        gap: 6px;
    }
    .gb-scroller-section .gb-carousel-dot {
        width: 6px;
        height: 6px;
    }
}

/* (Step 55 removed the old ≤600px two-up business-card rule; Step 72 made
   phones two-up again, in the ≤768px block above.) */
@media (max-width: 600px) {
    .gb-carousel-prev { left: -8px; }
    .gb-carousel-next { right: -8px; }
    .gb-carousel-btn { width: 32px; height: 32px; font-size: 1rem; }
}

/* Footer Styles (Step 44 slim band; Step 84: brand + socials | four
   site-map columns, then the copyright + company line) */
.gb-site-footer {
    background: rgba(var(--gb-bg-dark-rgb), 0.55);
    border-top: 1px solid var(--gb-border);
    padding: 34px 0 18px;
    margin-top: auto;
    width: 100%;
}

.gb-footer-inner {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 3fr;
    align-items: start;
    gap: 32px;
}

.gb-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.gb-footer-brand .gb-brand-logo {
    font-size: 1.1rem;
}

.gb-footer-brand .gb-logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
}

.gb-footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 22px 28px;
}

.gb-footer-col-title {
    margin: 0 0 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gb-accent-blue);
}

.gb-footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.gb-footer-menu a {
    color: var(--gb-text-muted);
    font-size: 0.86rem;
    font-weight: 500;
}

.gb-footer-menu a:hover {
    color: var(--gb-text-main);
}

.gb-social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gb-social-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gb-text-main);
    font-size: 1.45rem;
    transition: var(--gb-transition);
}

.gb-social-icon:hover {
    color: var(--gb-accent-blue);
    transform: translateY(-2px);
}

.gb-footer-bottom {
    border-top: 1px solid var(--gb-border);
    margin-top: 26px;
    padding-top: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 0.72rem;
    line-height: 1.55;
    color: var(--gb-text-muted);
    flex-wrap: wrap;
    gap: 8px 24px;
}

.gb-footer-legal {
    margin: 0;
    flex: 1 1 420px;
    max-width: 90ch;
}

.gb-footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gb-text-muted);
    white-space: nowrap;
}

.gb-footer-contact:hover {
    color: var(--gb-text-main);
}

/* RESPONSIVE MEDIA QUERIES FOR MOBILE AND TABLETS */

@media (max-width: 1024px) {
    .gb-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .gb-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* ── Nav drawer (Step 44: breakpoint 768 → 1024; keep in sync with
       NAV_BREAKPOINT in gbwebcams-main.js) ── */
    .gb-header-inner {
        grid-template-columns: auto 1fr;
    }
    .gb-main-nav {
        display: none;
    }
    .gb-main-nav.gb-nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--gb-header-h);
        left: 0;
        right: 0;
        background: var(--gb-bg-surface); /* solid: sits over page content (Step 54) */
        border-bottom: 1px solid var(--gb-border);
        padding: 8px 20px 22px;
        z-index: 9999;
        max-height: calc(100vh - var(--gb-header-h));
        overflow-y: auto;
    }
    .gb-main-nav.gb-nav-open .gb-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        height: auto;
    }
    .gb-main-nav.gb-nav-open .gb-nav-item {
        width: 100%;
        height: auto;
        display: block;
        border-bottom: 1px solid var(--gb-border);
    }
    .gb-main-nav.gb-nav-open .gb-nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        width: 100%;
        font-size: 0.9rem;
        opacity: 1;
    }
    .gb-main-nav.gb-nav-open .gb-nav-link.active::after,
    .gb-main-nav.gb-nav-open .current-menu-item > a::after {
        display: none;
    }
    .gb-main-nav.gb-nav-open .gb-mega-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        background: rgba(var(--gb-bg-dark-rgb), 0.5);
        border: none;
        border-radius: var(--gb-radius-sm);
        box-shadow: none;
        margin: 0 0 12px;
        padding: 12px 16px;
        display: none;
        width: auto;
        min-width: 0;
        max-width: none;
    }
    .gb-main-nav.gb-nav-open .gb-mega-panel::before {
        display: none;
    }
    .gb-main-nav.gb-nav-open .gb-nav-item.gb-mega-active .gb-mega-panel {
        display: block;
    }
    .gb-main-nav.gb-nav-open .gb-mega-inner {
        flex-direction: column;
        gap: 16px;
    }
    .gb-main-nav.gb-nav-open .gb-nav-drawer-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-top: 18px;
        flex-wrap: wrap;
    }
    .gb-mobile-toggle {
        display: inline-flex;
    }
    .gb-header-actions .gb-strapline {
        display: none;
    }
    .gb-site-header .gb-site-logo-image {
        max-height: 48px;
        max-width: min(220px, 40vw);
    }
}

/* Strapline needs the full desktop width; hide it in the header between
   the drawer breakpoint and a comfortable wide layout. Step 51: the nav
   also tightens a notch in this band so six items + chevrons fit beside
   the logo and the WATCH LIVE pill without touching either. */
@media (max-width: 1279px) and (min-width: 1025px) {
    .gb-header-actions .gb-strapline {
        display: none;
    }
    .gb-nav-list {
        gap: 14px;
    }
    .gb-nav-link {
        font-size: 0.74rem;
        letter-spacing: 0.05em;
    }
    .gb-site-header .gb-site-logo-image {
        max-width: min(220px, 20vw);
    }
}

/* Step 51: between 1280 and ~1500 the strapline is back but space is still
   tight — cap the uploaded logo so the centred nav keeps clear of it */
@media (max-width: 1499px) and (min-width: 1280px) {
    .gb-site-header .gb-site-logo-image {
        max-width: min(240px, 17vw);
    }
    .gb-header-actions .gb-strapline {
        font-size: 1.1rem;
        max-width: 9em;
    }
}

@media (max-width: 768px) {
    .gb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .gb-header-actions .gb-btn-watch-header {
        display: none;
    }
    /* Sponsor bar stays ONE row on phones (Step 55, per the mock — the
       Step 45 stacked version was 230px tall): small label | logo | rule |
       tagline | compact green button */
    .gb-main-sponsor-banner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: var(--gb-radius-sm);
    }
    .gb-sponsor-label-top {
        /* Step 72: as wide as its longest word — at 4.6em "ADVERTISE" ran
           into the megaphone beside it */
        width: min-content;
        max-width: none;
        font-size: 0.55rem;
        letter-spacing: 0.08em;
    }
    .gb-main-sponsor-content {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .gb-sponsor-logo-wrap {
        max-width: 32%;
    }
    .gb-sponsor-logo-wrap img {
        max-height: 40px;
        max-width: 100%; /* a wide logo shrinks into its third of the bar */
    }
    .gb-sponsor-text {
        min-width: 0;
        overflow: hidden;
    }
    .gb-sponsor-text h4 {
        font-size: 0.85rem;
    }
    .gb-sponsor-text p {
        font-size: 0.66rem;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .gb-sponsor-text-ruled {
        border-left: 1px solid rgba(15, 23, 42, 0.18);
        padding-left: 10px;
    }
    .gb-btn-sponsor-visit {
        width: auto;
        padding: 9px 10px;
        font-size: 0.6rem;
        gap: 4px;
        flex-shrink: 0;
    }
    /* Phone title block: the weather card sits beside the title as ONE
       compact row — icon, temp/condition | time (Step 55, per the mock;
       the date and FULL FORECAST link are desktop-only). The heading sizes
       itself to the title column (container units, Step 51). */
    /* Tablet + phone webcam tabs: shorter (Step 56) */
    .gb-webcam-tab {
        padding: 6px 12px;
        font-size: 0.72rem;
    }
    .gb-loc-heading-main {
        font-size: clamp(1.5rem, 12.5cqi, 2.7rem);
    }
    .gb-loc-heading-sub {
        font-size: clamp(0.95rem, 7.2cqi, 1.6rem);
        margin-top: 4px;
    }
    .gb-loc-heading {
        margin-bottom: 8px;
    }
    .gb-loc-place-name {
        font-size: 0.9rem;
    }
    .gb-loc-address {
        font-size: 0.78rem;
    }
    .gb-loc-weather {
        padding: 9px 10px;
        gap: 0;
        border-radius: var(--gb-radius-sm);
    }
    .gb-weather-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .gb-weather-now {
        gap: 6px;
        flex: 1;
    }
    .gb-weather-reading {
        min-width: 0;
        line-height: 1.05;
    }
    .gb-weather-icon { font-size: 1.5rem; }
    .gb-weather-temp { font-size: 1rem; white-space: nowrap; }
    .gb-weather-condition {
        font-size: 0.62rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .gb-weather-time {
        border-left: 1px solid var(--gb-border);
        padding-left: 8px;
        align-items: center;
        text-align: center;
        flex-shrink: 0;
    }
    .gb-weather-date,
    .gb-weather-link { display: none; }
    .gb-weather-clock { font-size: 0.95rem; }
    .gb-player-clock { font-size: 0.68rem; gap: 8px; padding: 5px 9px; }
    .gb-player-topbar .gb-badge-live { font-size: 0.68rem; padding: 5px 9px; }
    .gb-player-caption { font-size: 0.85rem; }
    .gb-player-watermark { display: none; }
    .gb-player-overlay-bar { padding-right: 120px; }
    .gb-location-main {
        padding: 12px 0 20px;
    }
    /* Section header rows stay on one line (title left, "See all →" right) */
    .gb-explore-cameras .gb-section-header {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }
    .gb-explore-cameras .gb-section-title {
        font-size: 0.78rem;
        letter-spacing: 0.04em;
    }
    .gb-explore-cameras .gb-view-all {
        font-size: 0.72rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    /* Footer (Step 84): brand + social icons on one row, the site-map
       columns two-up beneath, then the company line */
    .gb-site-footer {
        padding: 22px 0 14px;
    }
    .gb-footer-inner {
        gap: 18px;
    }
    .gb-footer-brand {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .gb-footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 18px;
    }
    .gb-footer-brand .gb-brand-logo { font-size: 0.9rem; }
    .gb-footer-brand .gb-brand-tagline { font-size: 0.5rem; }
    .gb-footer-brand .gb-logo-icon { width: 28px; height: 28px; font-size: 0.9rem; }
    .gb-site-footer .gb-site-logo-image { max-height: 36px; max-width: 42vw; }
    .gb-social-links { gap: 10px; }
    .gb-social-icon { width: 24px; height: 24px; font-size: 1.15rem; }
    .gb-footer-menu { gap: 5px; }
    .gb-footer-menu a { font-size: 0.82rem; }
    .gb-footer-bottom {
        margin-top: 16px;
        padding-top: 10px;
        font-size: 0.66rem;
        gap: 6px 10px;
    }
    .gb-container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .gb-stats-grid {
        grid-template-columns: 1fr;
    }
    .gb-location-grid, .gb-webcam-grid, .gb-partner-grid {
        grid-template-columns: 1fr;
    }
    .gb-header-actions {
        gap: 4px;
    }
    .gb-brand-logo {
        font-size: 1.1rem;
    }
    .gb-logo-icon {
        width: 34px;
        height: 34px;
    }
    .gb-brand-tagline {
        font-size: 0.55rem;
    }
    .gb-nav-drawer-foot .gb-strapline {
        font-size: 1.1rem;
    }
    .gb-site-header .gb-site-logo-image {
        max-height: 38px;
        max-width: min(170px, 44vw);
    }
}

/* ==========================================================================
   MEGA MENU — Step 44: outlined card panel, anchored to the header bar
   ========================================================================== */

/* Top-level items fill the header height so the hover region reaches the
   panel below with no dead gap; the panel itself is positioned against the
   (sticky, therefore positioned) .gb-site-header so it can be wide and
   centred on the page rather than on the link. */
.gb-nav-item {
    position: static;
    height: var(--gb-header-h);
    display: flex;
    align-items: center;
}

/* Chevron icon next to items with mega panels */
.gb-nav-chevron {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
}

.gb-nav-item:hover .gb-nav-chevron,
.gb-nav-item.gb-mega-active .gb-nav-chevron {
    transform: rotate(180deg);
}

/* ── Mega Panel (the dropdown container) ── */
.gb-mega-panel {
    position: absolute;
    top: var(--gb-header-h);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: min(1100px, 92vw);
    background: var(--gb-bg-surface); /* solid: sits over page content (Step 54) */
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    padding: 28px 32px 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.2s;
    z-index: 10000;
    text-align: left;
}

/* Show on hover / keyboard focus (desktop) */
@media (min-width: 1025px) {
    .gb-nav-item.gb-has-mega:hover .gb-mega-panel,
    .gb-nav-item.gb-has-mega:focus-within .gb-mega-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

/* Accent hairline along the top edge */
.gb-mega-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gb-accent-blue), transparent);
    border-radius: 2px;
    opacity: 0.9;
}

/* ── Inner flex layout for columns ── */
.gb-mega-inner {
    display: flex;
    gap: 32px;
}

/* ── Individual column ── */
.gb-mega-col {
    flex: 1;
    min-width: 0;
}

/* Column heading */
.gb-mega-heading {
    display: flex;
    align-items: flex-end;
    height: 2.6em;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gb-text-muted);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gb-border);
    line-height: 1.3;
}

/* Direct column link (no sub-items) */
.gb-mega-col-link {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gb-text-main);
    padding: 6px 0 6px 4px;
    transition: var(--gb-transition);
}

.gb-mega-col-link:hover {
    color: var(--gb-accent-blue);
}

/* ── Links list inside a column ── */
.gb-mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gb-mega-links li {
    margin: 0;
}

.gb-mega-links a {
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--gb-text-main);
    padding: 6px 0 6px 12px;
    border-radius: 4px;
    transition: var(--gb-transition);
    position: relative;
    opacity: 0.85;
}

.gb-mega-links a:hover {
    opacity: 1;
    color: var(--gb-accent-blue);
}

.gb-mega-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--gb-accent-blue);
    border-radius: 50%;
    opacity: 0;
    transition: var(--gb-transition);
}

.gb-mega-links a:hover::before {
    opacity: 1;
}

/* ==========================================================================
   ACCESSIBILITY (Step 44/50)
   ========================================================================== */

/* Keyboard focus ring — every link/button/tab in the theme */
a:focus-visible,
button:focus-visible,
.gb-webcam-tab:focus-visible,
.gb-yt-btn:focus-visible {
    outline: 2px solid var(--gb-accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced motion: no pulsing dot, no hover lifts, no smooth scrolling */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    .gb-live-dot,
    .gb-btn-watch-dot {
        animation: none;
    }
    .gb-location-card:hover, .gb-webcam-card:hover, .gb-partner-card:hover,
    a.gb-biz-card:hover,
    .gb-btn-primary:hover,
    .gb-social-icon:hover,
    .gb-tile:hover .gb-tile-arrow {
        transform: none;
    }
}

/* Screen-reader-only text (used by WordPress's search form label) */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Step 73: Follow & Share card (template-parts/location/share.php)
   Right column under Announcements. Site social icon buttons, a SHARE
   THIS WEBCAM button and a thumbs-up like counter. The share panel is a
   fixed overlay (JS moves it to <body>).
   ═══════════════════════════════════════════════════════════════════ */
.gb-loc-share {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gb-loc-share .gb-tile-head {
    margin-bottom: 0;
}

.gb-share-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gb-share-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gb-text-main);
    background: rgba(var(--gb-accent-blue-rgb), 0.12);
    border: 1px solid var(--gb-border);
    transition: var(--gb-transition);
}

.gb-share-social:hover {
    background: var(--gb-accent-blue);
    border-color: var(--gb-accent-blue);
    color: #fff;
    transform: translateY(-2px);
}

.gb-share-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.gb-share-btn {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--gb-radius-sm);
    border: 0;
    background: var(--gb-accent-blue);
    color: #fff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--gb-transition);
}

.gb-share-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.gb-share-btn .gb-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Phones swap the long label for "SHARE" */
.gb-share-btn-text-short {
    display: none;
}

.gb-like-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: var(--gb-radius-sm);
    border: 1px solid var(--gb-border-highlight);
    background: transparent;
    color: var(--gb-text-main);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--gb-transition);
}

.gb-like-btn .gb-icon {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.gb-like-btn:hover {
    border-color: var(--gb-accent-blue);
    color: var(--gb-accent-blue);
}

.gb-like-btn.is-liked {
    background: var(--gb-accent-blue);
    border-color: var(--gb-accent-blue);
    color: #fff;
}

.gb-like-btn.is-liked .gb-icon {
    transform: scale(1.15) rotate(-8deg);
}

.gb-share-btn:focus-visible,
.gb-like-btn:focus-visible,
.gb-share-social:focus-visible,
.gb-share-target:focus-visible,
.gb-share-close:focus-visible {
    outline: 2px solid var(--gb-accent-blue);
    outline-offset: 2px;
}

/* ── Share panel ── */
.gb-share-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gb-share-modal[hidden] {
    display: none;
}

html.gb-share-open {
    overflow: hidden;
}

.gb-share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.gb-share-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: var(--gb-bg-dark);
    border: 1px solid var(--gb-border-highlight);
    border-radius: var(--gb-radius);
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: var(--gb-text-main);
}

.gb-share-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.gb-share-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gb-border);
    background: transparent;
    color: var(--gb-text-main);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--gb-transition);
}

.gb-share-close:hover {
    border-color: var(--gb-accent-blue);
    color: var(--gb-accent-blue);
}

/* The message as it will be sent, so people know what they're posting */
.gb-share-msg {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: var(--gb-radius-sm);
    background: rgba(var(--gb-accent-blue-rgb), 0.08);
    border: 1px solid var(--gb-border);
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--gb-text-main);
    overflow-wrap: anywhere;
}

.gb-share-grid {
    display: grid;
    /* 5 across in the full-width panel (13 buttons → 5/5/3), 4 across on
       a phone — instead of a fixed 4 that left one button alone on row 4 */
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 10px 6px;
}

.gb-share-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--gb-text-main);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--gb-radius-sm);
}

.gb-share-target-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: var(--gb-share-brand, var(--gb-accent-blue));
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--gb-transition);
}

.gb-share-target:hover .gb-share-target-icon {
    transform: translateY(-2px) scale(1.05);
}

.gb-share-target-label {
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

/* Brand colours on the circles only — the rest of the panel stays themed */
.gb-share-target-whatsapp  .gb-share-target-icon { --gb-share-brand: #25d366; }
.gb-share-target-facebook  .gb-share-target-icon { --gb-share-brand: #1877f2; }
.gb-share-target-x         .gb-share-target-icon { --gb-share-brand: #111; }
.gb-share-target-email     .gb-share-target-icon { --gb-share-brand: #6b7280; }
.gb-share-target-sms       .gb-share-target-icon { --gb-share-brand: #34c759; }
.gb-share-target-telegram  .gb-share-target-icon { --gb-share-brand: #26a5e4; }
.gb-share-target-instagram .gb-share-target-icon { --gb-share-brand: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.gb-share-target-tiktok    .gb-share-target-icon { --gb-share-brand: #111; }
.gb-share-target-threads   .gb-share-target-icon { --gb-share-brand: #111; }
.gb-share-target-bluesky   .gb-share-target-icon { --gb-share-brand: #0085ff; }
.gb-share-target-reddit    .gb-share-target-icon { --gb-share-brand: #ff4500; }
.gb-share-target-linkedin  .gb-share-target-icon { --gb-share-brand: #0a66c2; }

.gb-share-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    min-height: 28px;
}

.gb-share-toast {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gb-accent-blue);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gb-share-toast.is-visible {
    opacity: 1;
}

.gb-share-more {
    margin-left: auto;
    border: 1px solid var(--gb-border-highlight);
    background: transparent;
    color: var(--gb-text-main);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--gb-radius-sm);
    cursor: pointer;
}

.gb-share-more[hidden] {
    display: none;
}

@media (min-width: 1025px) {
    /* Announcements still grows to close the right column (Decisions: it
       and Local Events are the growers), now with the share card beneath
       it — so it ends up with roughly half of what it had, as asked. Its
       picture is a wide strip rather than 16:10 and the title clamps to two
       lines, so the natural (ungrown) card is about half as tall too. */
    .gb-loc-col-right > .gb-loc-announce {
        flex: 1 0 auto;
    }
    .gb-loc-announce .gb-announce-image {
        aspect-ratio: 16 / 7;
    }
    .gb-loc-announce .gb-announce-title {
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 1024px) {
    /* Phones/tablets: one thin tile — tiny label row, then icons left and
       SHARE + like right (matches the Step 56 thin-tile treatment) */
    .gb-loc-share {
        padding: 8px 10px;
        border-radius: var(--gb-radius-sm);
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 8px;
    }
    .gb-loc-share .gb-tile-head {
        flex: 1 1 100%;
        gap: 6px;
    }
    .gb-loc-share .gb-card-label {
        font-size: 0.5rem;
        letter-spacing: 0.05em;
    }
    .gb-share-socials {
        gap: 6px;
    }
    .gb-share-social {
        width: 32px;
        height: 32px;
        font-size: 1.05rem;
    }
    .gb-share-actions {
        margin-left: auto;
        gap: 6px;
    }
    .gb-share-btn {
        padding: 8px 12px;
        font-size: 0.65rem;
    }
    .gb-share-btn-text {
        display: none;
    }
    .gb-share-btn-text-short {
        display: inline;
    }
    .gb-like-btn {
        padding: 7px 10px;
        font-size: 0.72rem;
    }
    .gb-share-grid {
        gap: 8px 4px;
    }
    .gb-share-target-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   CATEGORY PAGE (Step 88) — "In this category" card, left column on computers
   (template-parts/location/category-cameras.php). Phones list the cameras as
   pills above the player, so the card is hidden there and needs no grid area.
   ========================================================================== */
.gb-loc-catlist { display: none; }
@media (min-width: 1025px) {
    .gb-loc-catlist { display: flex; flex-direction: column; gap: 10px; }
    .gb-loc-col-left > .gb-loc-catlist:last-child { flex: 1 0 auto; }
}
.gb-catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gb-catlist a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--gb-radius-sm, 8px); color: var(--gb-text-main); text-decoration: none; border: 1px solid transparent; }
.gb-catlist a:hover, .gb-catlist a:focus-visible { border-color: var(--gb-border-highlight, var(--gb-border)); background: var(--gb-bg-card-hover, transparent); }
.gb-catlist .is-playing a { border-color: var(--gb-accent-blue); }
.gb-catlist-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gb-catlist-text b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-catlist-text small { color: var(--gb-text-muted); font-size: .78rem; }
.gb-catlist-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gb-accent-red, #e01e26); flex-shrink: 0; }
.gb-catlist-dot.is-offline { background: var(--gb-text-muted); }
.gb-catlist .gb-icon { opacity: .6; flex-shrink: 0; }
