/* CMS → Banners (Views/Shared/Components/SiteBanners). Colours: the banner's own
   (--gcb-bg / --gcb-fg), else the site accent (chain burgundy, hotel-site theme accent). */

/* ── Header strip ─────────────────────────────────────────────────────────── */
.gc-banner-bar {
    position: relative;
    z-index: 1031; /* above the fixed/sticky headers it sits on top of */
    background: var(--gcb-bg, var(--accent-color, #7f1544));
    color: var(--gcb-fg, var(--hs-on-accent, #fff));
    font-size: .92rem;
    line-height: 1.35;
}
.gc-banner-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: .55rem 3rem; /* room for the close button on both sides (LTR/RTL) */
    text-align: center;
}
.gc-banner-bar__text { margin: 0; }
.gc-banner-bar__text strong { font-weight: 700; margin-inline-end: .4rem; }
.gc-banner-bar__thumb img { display: block; height: 32px; width: auto; border-radius: 4px; }
.gc-banner-bar__btn,
.gc-banner-bar__btn:visited {
    display: inline-block;
    padding: .3rem .9rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
    transition: background-color .2s ease;
}
.gc-banner-bar__btn:hover { background: rgba(255, 255, 255, .15); }
.gc-banner-bar--image .gc-banner-bar__picture img { display: block; width: 100%; height: auto; max-height: 120px; object-fit: cover; }
.gc-banner-bar__imglink { display: block; }
.gc-banner-bar__close {
    position: absolute;
    top: 50%;
    inset-inline-end: .5rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
}
.gc-banner-bar--image .gc-banner-bar__close { background: rgba(0, 0, 0, .45); color: #fff; }
.gc-banner-bar__close:hover, .gc-banner-bar__close:focus-visible { opacity: 1; background: rgba(0, 0, 0, .15); }
@media (max-width: 575.98px) {
    .gc-banner-bar { font-size: .85rem; }
    .gc-banner-bar__inner { padding: .5rem 2.5rem; gap: .35rem .75rem; }
}

/* ── Popup ────────────────────────────────────────────────────────────────── */
.gc-banner-pop[hidden] { display: none !important; }
.gc-banner-pop {
    position: fixed;
    inset: 0;
    z-index: 100001; /* the chain navbar is z-index 100000 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: gcbFade .25s ease;
}
.gc-banner-pop__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.gc-banner-pop__box {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    color: #222;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    animation: gcbRise .3s ease;
}
body.hotel-site .gc-banner-pop__box { background: var(--hs-bg, #fff); color: var(--hs-ink, #222); }
.gc-banner-pop__box--image { width: min(640px, 100%); background: transparent; box-shadow: none; overflow: visible; }
.gc-banner-pop__picture img { display: block; width: 100%; height: auto; }
.gc-banner-pop__box:not(.gc-banner-pop__box--image) .gc-banner-pop__picture img { max-height: 320px; object-fit: cover; }
.gc-banner-pop__box--image .gc-banner-pop__picture img { border-radius: 12px; max-height: calc(100vh - 3rem); object-fit: contain; }
.gc-banner-pop__body { padding: 1.5rem 1.75rem 1.75rem; text-align: center; }
.gc-banner-pop__title { margin: 0 0 .5rem; font-size: 1.5rem; line-height: 1.25; }
.gc-banner-pop__text { margin: 0 0 1.25rem; white-space: pre-line; opacity: .85; }
.gc-banner-pop__btn,
.gc-banner-pop__btn:visited {
    display: inline-block;
    padding: .7rem 1.8rem;
    border-radius: 999px;
    background: var(--gcb-bg, var(--accent-color, #7f1544));
    color: var(--gcb-fg, var(--hs-on-accent, #fff)) !important;
    text-decoration: none !important;
    font-weight: 600;
}
.gc-banner-pop__btn:hover { filter: brightness(1.08); }
.gc-banner-pop__close {
    position: absolute;
    top: .6rem;
    inset-inline-end: .6rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.gc-banner-pop__close:hover, .gc-banner-pop__close:focus-visible { background: rgba(0, 0, 0, .75); }
html.gcb-pop-open, html.gcb-pop-open body { overflow: hidden; }

@keyframes gcbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gcbRise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gc-banner-pop, .gc-banner-pop__box { animation: none; } }
