/* algemene basisinstellingen voor de hele site */
body{
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(7, 77, 37);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* hoofdcontent krijgt flex zodat footer onderaan blijft */
main {
    flex: 1;
    overflow-x: hidden;
}

/* navigatiebalk bovenaan de pagina */
nav {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(7, 77, 37);
}

/* desktop versie van de navigatieknoppen */
.btngroup.desktop {
    display: flex;
    flex: 1;
    justify-content: center;
}

.btngroup.desktop ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    width: 100%;
    gap: 0.5rem;
}

.btngroup.desktop li {
    flex: 1;
    display: flex;
}

/* knopstijl voor navigatie-elementen */
.menu-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: rgb(34, 37, 49);
    color: white;
    text-decoration: none;
    border: 2px solid black;
    padding: 0.5rem 1.5rem;
    font-size: 16px;
    border-radius: 5px;
}

.menu-btn:hover {
    background-color: rgb(44, 47, 60);
}

/* Off-screen menu (mobile) */
.off-screen-menu {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: rgb(34, 37, 49);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5rem;
    transition: 0.3s;
}

.off-screen-menu.active {
    right: 0;
}

.ham-menu {
    z-index: 1100;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    display: none;
    margin-left: auto;
}

.ham-menu span {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #6F86FF;
    left: 0;
    transition: 0.3s;
}

.ham-menu span:nth-child(1) { top: 10px; }
.ham-menu span:nth-child(2) { top: 18px; }
.ham-menu span:nth-child(3) { top: 26px; }

.ham-menu.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
}

.ham-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}
/* hoofdcontent sectie: breed op desktop, center op mobiel */
.content{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 5%;
    padding-right: 5%;
    color: rgb(193, 193, 193);
}
/* balk-layout voor grote schermen, verdwijnt op klein scherm */
.balk{
    display: none;
}
.content img {
    width: 90%;
    max-width: 80%;
    max-height: 370px;
    object-fit: cover;
    padding-top: 2rem;
    margin: 0 auto;
}

.content article {
    max-width: 35%;
}

.content embed {
    padding-left: 10%;   
}
/* CLS verbetering: vaste verhouding voor embedded kaart en duidelijke image-layout */
.map {
    aspect-ratio: 3 / 2;
    width: 100%;
    max-width: 100%;
    height: auto;
}
/* styling voor informatiekaarten en reviewcards */
.card{
    background-color: rgb(34, 37, 49);
    color: white;
    max-width: 450px;
    max-height: 500px;
    padding: 1rem;
    border-radius: 5px;
    margin: 2rem auto;
}
/* beelden in kaarten schalen netjes mee in de kaart */
.card img{        
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 240px;
    object-fit: cover;
    margin: 0 auto;
    padding-left: 0px;
    padding-right: 0px;
}

.card .rvpng {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* footer styling, blijft onderaan de pagina */
footer,
.footer {
    background-color: rgb(7, 77, 37);
    color: white;
    text-align: center;
    padding: 1rem;
}

/* responsive aanpassingen voor tablet en kleinere schermen */
@media (max-width: 1024px) and (min-width: 601px) {
    .btngroup.desktop ul {
        gap: 0.25rem;
    }

    .menu-btn {
        padding: 0.4rem 0.5rem;
        font-size: 14px;
    }
    .balk {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        scroll-padding-right: 5%;
        gap: 1rem;
    }
    .card{
    background-color: rgb(34, 37, 49);
    color: white;
    max-width: 450px;
    max-height: 500px;
    padding: 1rem;
    border-radius: 5px;
    margin: 2rem auto;
    }
    .content:has(.balk) > article {
        display: none;
    }
    .content:has(.balk) > .card {
        display: none;
    }
    .content {
        flex-direction: column;
        align-items: center;
        
    }
    .content img {
        order: 1;
        width: 90%;
        max-width: 100%;
        max-height: 370px;
        object-fit: cover;
        margin: 0 auto;
    }

    .content article {
        order: 2;
        max-width: 95%;
    }
    .content embed {
        order: 3;
        place-content: bottom;
        padding-left: 0%;
        max-width: 100%;
 }
    .card img{        
    width: 100%;
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin: 0 auto;
    padding-left: 0px;
    padding-right: 0px;
}
.content .card .rvpng{
        width: 100%;
        height: auto;
        object-fit: contain;
        margin: 0 auto;  
}
}

/* extra mobile regels voor klein scherm */
@media (max-width: 600px) {

    .btngroup.desktop {
        display: none;
    }

    .ham-menu {
        display: block;
    }
    .balk{
        display: none;
    }
    .content {
        flex-direction: column;
        align-items: center;
        padding-left: 0px;
        padding-right: 0px;
        overflow-x: hidden;
    }

    .content img {
        order: 1;
        width: 100%;
        max-width: 100%;
        max-height: 300px;
        object-fit: cover;
        margin: 0 auto;
        padding-left: 0px;
        padding-right: 0px;
    }

    .content article {
        order: 2;
        max-width: 100%;
    }
    .content embed {
        order: 3;
        place-content: bottom;
        padding: 0px;
        width: 100%;
        max-width: 100%;
    }
    .card img{        
        width: 100%;
        max-width: 100%;
        max-height: 270px;
        object-fit: cover;
        margin: 0 auto;
        padding-left: 0px;
        padding-right: 0px;
    }
    .card .rvpng {
        max-height: 200px;
    }
}
