/* =========================================================
   FRBM HERO
   ========================================================= */


/* ---------------------------------------------------------
   Hero test page - full width
   --------------------------------------------------------- */

body.page-id-5677 .site-content,
body.page-id-5677 .ast-container,
body.page-id-5677 .site-main,
body.page-id-5677 .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.page-id-5677 .entry-content > *:first-child {
    margin-top: 0;
}

body.page-id-5677 .frbm-hero {
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw);
}

body.page-id-5677 .frbm-hero-slide {
    margin: 0;
}


/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

.frbm-hero,
.frbm-hero-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.frbm-hero-media {
    position: relative;
    width: 100%;
}

.frbm-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Desktop tekstflade */
.frbm-hero-content {
    position: absolute;
    z-index: 2;

    top: 0;
    bottom: 0;

    right: 20%;

    width: min(450px, 34%);

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 1rem;
    padding: 3rem 2.5rem;

    background: rgba(255, 255, 255, 0.78);

    transform: none;
}


/* ---------------------------------------------------------
   Mobile placeholder
   Billede øverst, tekst under
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .frbm-hero-slide {
        position: static;
        min-height: 0;
        overflow: visible;
    }

    .frbm-hero-media {
        position: static;

        height: clamp(260px, 38vh, 380px);

        overflow: hidden;
    }

    .frbm-hero-image {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: left center;
    }

    .frbm-hero-content {
        position: static;

        width: 100%;
        min-height: 0;

        margin: 0;
        padding: 1rem 1.25rem 1.25rem;

        background: #fff;

        transform: none;

        gap: 0.65rem;
    }

    .frbm-hero-name {
        font-size: 1.6rem;
        line-height: 1.15;
    }

    .frbm-hero-status,
    .frbm-hero-next-available,
    .frbm-hero-available-days,
    .frbm-hero-actions {
        width: 100%;
    }

    .frbm-hero-available-days {
        row-gap: 0.35rem;
    }
}

.frbm-hero-name-mobile {
    display: none;
}

@media (max-width: 768px) {
    .frbm-hero-name-desktop {
        display: none !important;
    }

    .frbm-hero-name-mobile {
        display: inline !important;
    }
}

/* =========================================================
   MOBILE HERO - overlay layout
   ========================================================= */

@media (max-width: 768px) {

    .frbm-hero-slide {
        position: relative;
        min-height: 0;
        overflow: hidden;
    }

    .frbm-hero-media {
        position: relative;
        height: clamp(360px, 52vw, 540px);
        overflow: hidden;
    }

    .frbm-hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left center;
    }

    /*
     * Hele content-laget ligger oven på billedet.
     * Selve content har ingen baggrund.
     */
    .frbm-hero-content {
        position: absolute;
        inset: 0;
        z-index: 2;

        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;

        background: transparent;
        transform: none;

        display: block;
    }

    /*
     * Navn + klinikstatus.
     * Lille felt omkring hoved/øverste højre område.
     */
    .frbm-hero-identity {
        position: absolute;

        top: 05%;
        right: 2%;

        width: 34%;
        padding: 0.65rem 0.7rem;

        background: rgba(255, 255, 255, 0.70);
        border-radius: 25px;
    }

    .frbm-hero-name h2 {
    margin: 0;
    }

    .frbm-hero-name {
        margin: 0 0 0.25rem;
    }

    .frbm-hero-name-desktop {
        display: none !important;
    }

    .frbm-hero-name-mobile {
        display: inline !important;
    }

    .frbm-hero-name {
        font-size: 1.45rem;
        line-height: 1.1;
    }

    .frbm-hero-status {
        display: block;
        font-size: 0.99rem;
        line-height: 1.25;
    }

    /*
     * Availability-felt nederst.
     */
.frbm-hero-availability {
    position: absolute;

    left: 2%;
    bottom: 0%;

    width: 96%;

    padding: 0.75rem 1rem;

    background: rgba(255, 255, 255, 0.84);
    border-radius: 15px 15px 0px 0px;
}

    .frbm-hero-next-available {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 0.4rem;

        font-size: 0.95rem;
        line-height: 1.3;
    }

    .frbm-hero-available-days {
        margin-top: 0.45rem;
    }
}

.frbm-hero-available-days {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.frbm-hero-available-days > span:first-child {
    margin-right: 0.25rem;
}

/* Ledig dag = grøn + klikbar */
.frbm-hero-day-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.7rem;
    height: 2.7rem;

    border: 2px solid var(--frb-green);
    border-radius: 50%;

    color: var(--frb-green);
    text-decoration: none;

    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

/* Ikke ledig = mørk + ikke klikbar */
.frbm-hero-day-unavailable {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.7rem;
    height: 2.7rem;

    border: 2px solid #222;
    border-radius: 50%;

    color: #222;

    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

.frbm-hero-available-days {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.frbm-hero-available-days h3 {
    flex-basis: 100%;
    margin: 0 0 0.35rem;
}

.frbm-hero-slide {
    display: none;
}

.frbm-hero-slide.is-active {
    display: block;
}

/* Hero navigation */
.frbm-hero-navigation {
    position: absolute;
    inset: 0;

    z-index: 5;

    pointer-events: none;
}

.frbm-hero-nav {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.72);
    color: #222;

    font-size: 2rem;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    pointer-events: auto;
}

.frbm-hero-slides {
    position: relative;
}

.frbm-hero-prev {
    left: 1rem;
}

.frbm-hero-next {
    right: 1rem;
}
@media (max-width: 768px) {

    .frbm-hero-navigation {
        position: absolute;
        inset: 0;
        z-index: 20;
        pointer-events: none;
    }

    .frbm-hero-nav {
        top: 50%;
        width: 42px;
        height: 42px;

        transform: translateY(-50%);

        display: flex;
        visibility: visible;
        opacity: 1;

        pointer-events: auto;
    }

    .frbm-hero-prev {
        left: 0.5rem;
    }

    .frbm-hero-next {
        right: 0.5rem;
    }
}