/* Ad banner — shown under Book Now on the main page and in the admin preview.
   Auto-fit: the sponsor's whole picture is always visible and centered
   (contain), layered over a blurred copy of itself that fills the ribbon. */
.ad-banner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    width: 100%;
    max-width: 680px;
    min-height: 250px;
    margin: 2.75rem auto 0;
    background-color: #0d0d0d;
    border: 2px solid var(--electric-yellow, #FFED00);
    border-radius: 14px;
    overflow: hidden;
    color: #FFFFFF;
    text-decoration: none;
    text-align: left;
    box-shadow: 0 0 0 4px rgba(255, 237, 0, 0.08), 0 18px 45px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: adIn 0.8s ease-out both;
}

.ad-banner[hidden] { display: none; }

a.ad-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 4px rgba(255, 237, 0, 0.15), 0 24px 55px rgba(0, 0, 0, 0.55);
}

/* Blurred fill: same photo, stretched to cover, so the ribbon is never empty */
.ad-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.5);
    transform: scale(1.2);
}

/* The sponsor's picture itself: fully visible, always centered */
.ad-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

/* Dark scrim so the overlaid caption stays readable over any photo */
.ad-banner.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.05) 75%);
    pointer-events: none;
}

.ad-banner.no-image {
    background:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 0, 0.04) 2px, rgba(255, 255, 0, 0.04) 4px),
        linear-gradient(135deg, #0d0d0d 0%, #1a1a0a 100%);
}

.ad-banner-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    padding: 0.3rem 0.65rem;
    background: var(--electric-yellow, #FFED00);
    color: #000000;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ad-banner-body {
    position: relative;
    z-index: 3;
    padding: 2.5rem 1.5rem 1.4rem;
}

.ad-banner-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    font-weight: 400;
    color: var(--electric-yellow, #FFED00);
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.ad-banner-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #F2F2F2;
    margin: 0 0 1.1rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.ad-banner-cta {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    background: var(--electric-yellow, #FFED00);
    color: #000000;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ad-banner-headline:empty,
.ad-banner-text:empty,
.ad-banner-cta:empty { display: none; }

@keyframes adIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
