/* ===== variables.css ===== */
/* Root Variables */
:root {
    --primary-color: #374794;
    --dark-color: #374794; /* Was #282471 — nu gelijk aan primary */
    --pink-color: #c0589a;
    --light-bg: #F5F6FF;
    --broken-white: rgb(245, 246, 255);
    
    /* Typography */
    --font-regular: 'Edmondsans Regular', sans-serif;
    --font-medium: 'Edmondsans Medium', sans-serif;
    --font-bold: 'Edmondsans Bold', sans-serif;
    --font-title: 'acier-bat-solid', sans-serif;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 50px;
    
    /* Border radius */
    --border-radius-sm: 5px;
    --border-radius-md: 12px;
    
    /* Transitions */
    --transition-fast: 0.1s;
    --transition-normal: 0.2s;
    --transition-slow: 0.3s;
    
    /* Aliases / missing variables */
    --text-color: #000;
    --scout-blue: #374794;
    --scout-yellow: #ffc107;
    --color-light-bg: #F5F6FF;
    --color-border: #e0e0e0;
    --color-bg-alt: #F5F6FF;
    --color-primary: #374794;
    --accent-color: #c0589a;
}

/* ===== fonts.css ===== */
/* Font Faces - woff2 eerst (kleiner), woff als fallback */
@font-face {
    font-family: 'Edmondsans Regular';
    src: local('Edmondsans Regular'), url('../fonts/primary/regular/EdmondsansRegular_web.woff2') format('woff2'), url('../fonts/primary/regular/EdmondsansRegular_web.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Edmondsans Medium';
    src: local('Edmondsans Medium'), url('../fonts/primary/medium/EdmondsansMedium_web.woff2') format('woff2'), url('../fonts/primary/medium/EdmondsansMedium_web.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Edmondsans Bold';
    src: local('Edmondsans Bold'), url('../fonts/primary/bold/EdmondsansBold_web.woff2') format('woff2'), url('../fonts/primary/bold/EdmondsansBold_web.woff') format('woff');
    font-display: swap;
}

/* ===== main.css ===== */
/* Import external stylesheets */
@import url('variables.css');
@import url('fonts.css');

/* Global Styles */
html {
    height: 100%;
    background: var(--dark-color);
}

body {
    font-family: var(--font-regular);
    min-height: 100%;
    margin: 0;
    background: var(--light-bg);
}

/* Globale link styling - alle links krijgen de homepage styling */
a {
    color: var(--primary-color);
    text-decoration: underline dotted var(--primary-color) 3px !important;
    font-family: var(--font-medium);
}

a.mobile-top-result {
    text-decoration: none !important;
}

a:hover {
    color: var(--pink-color) !important;
    text-decoration-color: var(--pink-color) !important;
}

/* Exceptions voor navigatie en speciale links */
.nav-icon,
.nav-button,
.header-logo,
.search-button {
    text-decoration: none !important;
    font-family: inherit !important;
}

/* Body flexbox only for homepage */
body.homepage {
    display: flex;
    flex-direction: column;
    background: white url(../images/icons/Asset\ 10thilala.svg) no-repeat center -200px / 80vw;
}

strong {
    font-family: var(--font-bold);
    font-weight: bold;
}

/* Homepage intro tekst links */
.upper-left p a {
    color: var(--primary-color);
    text-decoration: underline dotted var(--primary-color) 3px;
    font-family: var(--font-medium);
    transition: var(--transition-fast);
}

.upper-left p a:hover {
    color: var(--pink-color);
    text-decoration-color: var(--pink-color);
}

mark {
    background-color: #fff;
    color: var(--primary-color);
}

h1 {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 3em;
    margin: 0;
}

/* Container Styles */
.containerVoorpagina {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: var(--spacing-lg);
    border-radius: var(--border-radius-md);
}

/* Upper Section */
.upper {
    display: flex;
    flex: 2;
    min-height: 0;
}

.upper-left {
    flex: 2;
    flex-direction: column;
    align-items: start;
    margin: var(--spacing-lg) 0px var(--spacing-lg) clamp(12px, 3vw, var(--spacing-xxl));
    justify-content: center;
    padding: var(--spacing-sm);
    height: fit-content;
    align-self: center;
}

.upper-left h1 {
    text-align: left;
    color: var(--primary-color);
    font-size: clamp(2em, 4vw, 3.5em);
}

.upper-left p {
    font-family: var(--font-regular);
    font-size: clamp(0.85em, 1.5vw, 1.2em);
    color: var(--primary-color);
}

/* Intro content wrapper for markdown */
.intro-content {
    font-family: var(--font-regular);
    font-size: 1em;
    color: var(--primary-color);
    line-height: 1.6;
}

.intro-content p {
    margin: 0 0 1.2em 0;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* Normalize markdown generated paragraphs in intro */
.upper-left p p {
    margin: 0;
    display: inline;
}

.upper-left img {
    width: 70px;
}

.titel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-upper-right {
    display: flex;
    flex: 2.7;
    flex-direction: column;
    margin: clamp(8px, 2vh, var(--spacing-xxl));
    margin-bottom: var(--spacing-md);
    position: relative;
    min-height: 0;
}

.container-upper-right h1 {
    color: var(--primary-color);
    font-family: var(--font-medium);
    font-size: 20px;
    font-size: clamp(0.8em, 1.4vw, 22px);
    text-align: center;
    margin-left: clamp(20px, 5vw, 60px);
    margin-bottom: -20px;
    flex-shrink: 0;
}

.upper-right {
    position: relative;
    background-color: rgba(255, 255, 255, 0);
    margin: clamp(4px, 1.5vh, var(--spacing-xl)) clamp(4px, 1.5vh, var(--spacing-xl)) clamp(4px, 1vh, var(--spacing-md)) clamp(20px, 5vw, 60px);
    flex: 1;
    min-height: 0;
}

.upper-right h2 {
    color: var(--primary-color);
    font-family: var(--font-bold);
    font-weight: 400;
    font-size: clamp(1.2em, 2.5vw, 2em);
}

/* Lower Section - Legacy styles for backward compatibility */
.lower {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    padding: 0 var(--spacing-xs);
    background-color: var(--broken-white);
    min-height: 0;
}

.lower .box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 75%;
    background-color: var(--primary-color);
    box-shadow: 0 0px 10px rgba(34, 11, 77, 0.3);
    flex: 1 1 calc(0% - 40px);
    margin: var(--spacing-md);
}

.lower .box:nth-child(1) {
    background-color: #000;
}

.lower .box:nth-child(2) {
    background-color: var(--primary-color);
}

.lower .box:nth-child(4) {
    background-color: #000;
}

.lower .box:nth-child(5) {
    background-color: var(--primary-color);
}

.lower .box:nth-child(6) {
    background-color: #000;
}

.lower img {
    width: 30%;
    margin-top: auto;
    margin-bottom: -10px;
}

.lower h3 {
    font-family: var(--font-medium);
    font-size: 1.5em;
    margin-top: auto;
}

/* Navigation box colors */
.lower .nav-button:nth-child(1) {
    background-color: #dddcf0;
}

.lower .nav-button:nth-child(2) {
    background-color: #e0d8ec;
}

.lower .nav-button:nth-child(3) {
    background-color: #f5e0ef;
}

.lower .nav-button:nth-child(4) {
    background-color: #dceede;
}

.lower .nav-button:nth-child(5) {
    background-color: #d8e4d2;
}

.lower .nav-button:nth-child(6) {
    background-color: #c0d2ba;
}
/* ===== slideshow.css ===== */
/* Slideshow Component */
.slideshow-container {
    position: relative;
    background-color: rgba(255, 255, 255, 0);
    margin: var(--spacing-xl) var(--spacing-xl) var(--spacing-md) 60px;
}

.slideshow-title {
    color: var(--primary-color);
    font-family: var(--font-medium);
    font-size: 1.3em;
    text-align: center;
    margin-left: 60px;
    margin-bottom: -20px;
}

#slideshow {
    position: relative;
    background-color: rgba(255, 255, 255, 0);
    margin: var(--spacing-xl) var(--spacing-xl) var(--spacing-md) 60px;
    height: clamp(250px, 40vh, 400px);
    flex-shrink: 0;
}

.slide {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    transition: transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-direction: row-reverse;
    container-type: size;
}

.slide img {
    flex: 1;
    width: 33.33%;
    object-fit: cover;
}

.slide-text {
    flex: 2;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: white;
    margin-left: var(--spacing-sm);
}

.slide-text h2 {
    font-family: var(--font-bold);
    font-size: 28px;
    font-size: clamp(16px, 8cqh, 28px);
    margin: 0;
    color: var(--primary-color);
    font-weight: 400;
}

.slide-text p {
    color: #000;
    line-height: 1.45;
    font-size: 15px;
    font-size: clamp(12px, 3.4cqh, 15px);
}

.meer-button {
    margin-top: auto;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-bold);
    font-size: 14px;
    font-size: clamp(12px, 3.2cqh, 14px);
    background-color: var(--primary-color);
    color: var(--broken-white);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    align-self: flex-start;
}

.meer-button:hover {
    background-color: var(--broken-white);
    box-shadow: inset 0 0 0 2px var(--primary-color);
    color: var(--primary-color);
}

/* Dots */
.slideshow-dots {
    text-align: center;
    padding-left: 60px;
    margin-top: 0px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 var(--spacing-xs);
    background-color: #d9d6e8;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* ===== navigation.css ===== */
/* Navigation Component - inherits flex properties from .lower class */

.nav-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    box-shadow: none;
    flex: 1 1 0%;
    margin: clamp(4px, 1.5vh, var(--spacing-md));
    border-radius: var(--border-radius-md);
    color: var(--broken-white);
    transition: var(--transition-normal);
    margin: clamp(3px, 3vh, var(--spacing-xl)) clamp(4px, 3vw, var(--spacing-md));
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
}

.nav-button:hover {
    transform: scale(1.03);
}

.nav-button img {
    width: clamp(28px, 5vw, 30%);
    margin-top: auto;
    margin-bottom: -10px;
}

.nav-button h3 {
    font-family: var(--font-medium);
    font-size: clamp(0.65em, 2vw, 1.5em);
    margin-top: auto;
    margin-bottom: auto;
}

/* Individual button colors */
.nav-button:nth-child(1) {
    background-color: #dddcf0;
}
.nav-button:nth-child(1) h3 { color: #4943be; }
.nav-button:nth-child(1) img, .nav-button:nth-child(1) h3 { filter: brightness(0.9); }

.nav-button:nth-child(2) {
    background-color: #e0d8ec;
}
.nav-button:nth-child(2) h3 { color: #6a45a8; }

.nav-button:nth-child(3) {
    background-color: #f5e0ef;
}
.nav-button:nth-child(3) h3 { color: #e167b4; }
.nav-button:nth-child(3) img, .nav-button:nth-child(3) h3 { filter: brightness(0.9); }

.nav-button:nth-child(4) {
    background-color: #dceede;
}
.nav-button:nth-child(4) h3 { color: #98caa5; }
.nav-button:nth-child(4) img, .nav-button:nth-child(4) h3 { filter: brightness(0.8); }

.nav-button:nth-child(5) {
    background-color: #d8e4d2;
}
.nav-button:nth-child(5) h3 { color: #556f3c; }

.nav-button:nth-child(6) {
    background-color: #c0d2ba;
}
.nav-button:nth-child(6) h3 { color: #314021; }
.nav-button:nth-child(6) img, .nav-button:nth-child(6) h3 { filter: brightness(1.1); }

.nav-button:nth-child(5) {
    background-color: #d8e4d2;
}
.nav-button:nth-child(5) h3 { color: #556f3c; }

.nav-button:nth-child(6) {
    background-color: #c0d2ba;
}
.nav-button:nth-child(6) h3 { color: #314021; }

/* ===== responsive.css ===== */
/* ============================================================
   RESPONSIVE STYLES - Thila Coloma
   Desktop UI = ONAANGETAST. Alle regels zitten in media queries.
   
   Breakpoints:
   - 950px  = tablet (homepage layout)
   - 768px  = mobile (all pages)  
   - 480px  = small mobile (extra verfijning)
   ============================================================ */

/* Mobile bottom nav: hidden on desktop */
.mobile-bottom-nav {
    display: none;
}

/* Mobile top bar: hidden on desktop */
.mobile-top-bar {
    display: none;
}

/* ===========================================
   TABLET (max-width: 950px)
   Homepage layout adjustments
   =========================================== */
@media (max-width: 950px) {
    /* Smaller nav icons for tablet/small laptop */
    .simple-header .nav-icon,
    .nav-icon {
        width: 28px !important;
        height: 28px !important;
    }

    /* Homepage container */
    body.home,
    body.homepage {
        background-size: 200vw;
        background-position: -53vw -70px;
    }

    .containerVoorpagina {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: fit-content;
    }

    .upper {
        flex-direction: column;
        flex: none;
        padding: 0;
        width: 100%;
    }

    .upper-left {
        margin-left: var(--spacing-md);
        flex: none;
        margin-bottom: 0px;
    }

    .upper-left p {
        font-size: 1.1em;
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-md);
    }

    .container-upper-right {
        margin: 0;
        padding: 15px;
        flex: none;
        height: auto;
        overflow: hidden;
    }

    .container-upper-right h1 {
        margin-left: 0;
        margin-bottom: var(--spacing-md);
    }

    .upper-right {
        margin-top: var(--spacing-lg);
        width: 100%;
        margin: 0;
        max-height: 400px;
    }

    #slideshow {
        margin: var(--spacing-md) 0;
        height: 350px;
        min-height: 350px;
    }

    .slideshow-dots {
        padding-left: 0;
    }

    .navigation-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        height: auto;
        padding: 15px;
        flex: none;
        margin-bottom: 15px;
        gap: var(--spacing-sm);
        background-color: var(--broken-white);
    }

    .nav-button {
        flex: none;
        margin: 0;
        height: 20vh;
        min-height: 120px;
    }

    .slide {
        width: 100%;
        height: 100%;
        position: absolute;
        display: flex;
        flex-direction: row-reverse;
    }

    .slide img {
        width: 33.33%;
        height: 100%;
        object-fit: cover;
    }

    .slide-text {
        flex: 2;
        padding: var(--spacing-md);
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: var(--spacing-sm);
    }
}

/* ===========================================
   MOBILE (max-width: 768px)
   Complete mobile experience
   =========================================== */
@media (max-width: 768px) {

    /* ------- HEADER: hide desktop, show mobile bars ------- */
    .simple-header {
        display: none !important;
    }

    .header-hover-zone {
        display: none !important;
    }

    /* ------- MOBILE TOP BAR ------- */
    .mobile-top-bar {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: var(--primary-color);
        height: 52px;
        padding: 8px 12px;
        align-items: center;
        gap: 10px;
        box-shadow: 0 2px 12px rgba(55, 71, 148, 0.25);
    }

    .mobile-home-logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--border-radius-sm);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        text-decoration: none !important;
    }

    .mobile-home-logo img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .mobile-top-search {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.18);
        border-radius: var(--border-radius-sm);
        padding: 0 12px;
        height: 36px;
        gap: 8px;
    }

    .mobile-top-search:focus-within {
        background: rgba(255, 255, 255, 0.28);
    }

    .mobile-top-search-icon {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        flex-shrink: 0;
    }

    #mobile-top-search-input,
    #mobile-top-search-input-home {
        flex: 1;
        border: none;
        background: transparent;
        color: white;
        font-family: var(--font-regular);
        font-size: 0.9em;
        outline: none;
        padding: 0;
        min-width: 0;
        height: 36px;
        line-height: 36px;
    }

    #mobile-top-search-input:focus,
    #mobile-top-search-input-home:focus {
        background: rgba(255, 255, 255, 0.28);
    }

    #mobile-top-search-input::placeholder,
    #mobile-top-search-input-home::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .mobile-top-search-dropdown {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        background: white;
        border-radius: var(--border-radius-sm);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        max-height: 65vh;
        overflow-y: auto;
        z-index: 2000;
    }

    .mobile-top-search-dropdown.hidden {
        display: none !important;
    }

    a.mobile-top-result {
        display: flex;
        align-items: center;
        padding: 10px 14px;
        text-decoration: none !important;
        border-bottom: 1px solid #f0f1f5;
        gap: 10px;
        transition: background 0.15s;
        color: inherit;
        font-family: var(--font-regular);
    }

    a.mobile-top-result:hover,
    a.mobile-top-result:active {
        background: #f5f6ff;
    }

    a.mobile-top-result:last-child {
        border-bottom: none;
    }

    .mobile-top-result-icon {
        flex: 0 0 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-top-result-icon .search-svg-icon {
        width: 18px;
        height: 18px;
    }

    .mobile-top-result-icon i {
        font-size: 14px;
        color: var(--primary-color);
    }

    .mobile-top-result-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        gap: 1px;
        text-decoration: none;
    }

    a.mobile-top-result,
    a.mobile-top-result:hover,
    a.mobile-top-result:active,
    a.mobile-top-result:visited {
        text-decoration: none !important;
    }

    .mobile-top-result-text strong,
    .mobile-top-result-text small {
        text-decoration: none;
    }

    .mobile-top-result-text strong {
        font-family: var(--font-medium);
        font-size: 0.88em;
        color: #000;
    }

    .mobile-top-result-text small {
        font-family: var(--font-regular);
        font-size: 0.75em;
        color: #888;
    }

    .mobile-top-no-results {
        padding: 16px;
        text-align: center;
        color: #999;
        font-size: 0.85em;
        font-family: var(--font-regular);
    }

    /* Shrink desktop nav icons even further if somehow visible at mobile width */
    .simple-header .nav-icon,
    .nav-icon {
        width: 26px !important;
        height: 26px !important;
    }

    /* ------- MOBILE BOTTOM NAV: white bar, colored icons, no labels ------- */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999 !important;
        background: #ffffff;
        padding: 4px 8px env(safe-area-inset-bottom, 4px) 8px;
        box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.08);
        justify-content: space-around;
        align-items: center;
        transform: translateZ(0); /* Force GPU layer — fixes position:fixed on iOS Safari */
    }

    .mobile-bottom-nav .mobile-nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        padding: 6px;
        min-width: 44px;
        min-height: 30px;
        border-radius: var(--border-radius-md);
        transition: all 0.2s ease;
    }

    .mobile-bottom-nav .mobile-nav-item img {
        width: 26px;
        height: 26px;
        transition: all 0.2s ease;
        opacity: 1;
    }

    /* Active state - colored background per nav item (like desktop hover) */
    .mobile-bottom-nav .mobile-nav-item.active {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .mobile-bottom-nav .mobile-nav-item[aria-label="Thilala"].active {
        background: #dddcf0;
    }

    .mobile-bottom-nav .mobile-nav-item[aria-label="Stamhoofd"].active {
        background: #e0d8ec;
    }

    .mobile-bottom-nav .mobile-nav-item[aria-label="Kalender"].active {
        background: #f5e0ef;
    }

    .mobile-bottom-nav .mobile-nav-item[aria-label="Takken"].active {
        background: #dceede;
    }

    .mobile-bottom-nav .mobile-nav-item[aria-label="Verhuur"].active {
        background: #d8e4d2;
    }

    .mobile-bottom-nav .mobile-nav-item[aria-label="Meer"].active {
        background: #dce2f5;
    }

    .mobile-bottom-nav .mobile-nav-item.active img {
        opacity: 1;
    }

    .mobile-bottom-nav .mobile-nav-item:hover img {
        opacity: 1;
    }

    /* Hide labels in bottom nav by default (icons only); homepage shows them */
    .mobile-bottom-nav .mobile-nav-label {
        display: none;
        font-size: 13px;
        line-height: 1;
        text-align: center;
        font-family: var(--font-regular, sans-serif);
        color: var(--primary-color, #374794) !important;
        white-space: nowrap;
        text-decoration: none !important;
        text-decoration-line: none !important;
    }

    /* Homepage: show labels under icons */
    body.home .mobile-bottom-nav .mobile-nav-label,
    body.homepage .mobile-bottom-nav .mobile-nav-label {
        display: block;
        /* Override main.css span rule which adds underline to all spans */
        text-decoration: none !important;
        text-decoration-line: none !important;
        color: var(--primary-color, #374794) !important;
    }

    /* On homepage: icon gets the colored box, label sits outside below */
    body.home .mobile-bottom-nav .mobile-nav-item,
    body.homepage .mobile-bottom-nav .mobile-nav-item {
        flex-direction: column;
        gap: 0;
        padding: 4px 6px;
        min-height: unset;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0;
    }

    body.home .mobile-bottom-nav .mobile-nav-item .nav-icon-wrap,
    body.homepage .mobile-bottom-nav .mobile-nav-item .nav-icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: var(--border-radius-sm);
        transition: all 0.2s ease;
    }

    body.home .mobile-bottom-nav .mobile-nav-item.active .nav-icon-wrap,
    body.homepage .mobile-bottom-nav .mobile-nav-item.active .nav-icon-wrap {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Thilala"].active .nav-icon-wrap,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Thilala"].active .nav-icon-wrap {
        background: #dddcf0;
    }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Stamhoofd"].active .nav-icon-wrap,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Stamhoofd"].active .nav-icon-wrap {
        background: #e0d8ec;
    }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Kalender"].active .nav-icon-wrap,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Kalender"].active .nav-icon-wrap {
        background: #f5e0ef;
    }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Takken"].active .nav-icon-wrap,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Takken"].active .nav-icon-wrap {
        background: #dceede;
    }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Verhuur"].active .nav-icon-wrap,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Verhuur"].active .nav-icon-wrap {
        background: #d8e4d2;
    }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Meer"].active .nav-icon-wrap,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Meer"].active .nav-icon-wrap {
        background: #dce2f5;
    }

    /* Label colors match each icon's color */
    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Thilala"] .mobile-nav-label,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Thilala"] .mobile-nav-label { color: var(--primary-color) !important; }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Stamhoofd"] .mobile-nav-label,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Stamhoofd"] .mobile-nav-label { color: #362256 !important; }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Kalender"] .mobile-nav-label,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Kalender"] .mobile-nav-label { color: #c0589a !important; }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Takken"] .mobile-nav-label,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Takken"] .mobile-nav-label { color: #7CA687 !important; }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Verhuur"] .mobile-nav-label,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Verhuur"] .mobile-nav-label { color: #314022 !important; }

    body.home .mobile-bottom-nav .mobile-nav-item[aria-label="Meer"] .mobile-nav-label,
    body.homepage .mobile-bottom-nav .mobile-nav-item[aria-label="Meer"] .mobile-nav-label { color: #374794 !important; }

    /* Hide old search button styles (search is now in top bar) */
    .mobile-bottom-nav .mobile-search-btn {
        display: none !important;
    }

    /* Mobile search overlay (kept as fallback) */
    .mobile-search-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .mobile-search-overlay.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-search-overlay .mobile-search-box {
        width: 100%;
        max-width: 500px;
        background: white;
        border-radius: var(--border-radius-md);
        padding: var(--spacing-md);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .mobile-search-overlay .mobile-search-header {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .mobile-search-overlay .mobile-search-input {
        flex: 1;
        border: 2px solid var(--primary-color);
        border-radius: var(--border-radius-sm);
        padding: 12px 16px;
        font-size: 1em;
        font-family: var(--font-regular);
        outline: none;
    }

    .mobile-search-overlay .mobile-search-input:focus {
        border-color: var(--pink-color);
    }

    .mobile-search-overlay .mobile-search-close {
        background: none;
        border: none;
        font-size: 1.5em;
        color: var(--primary-color);
        cursor: pointer;
        padding: 8px;
        line-height: 1;
    }

    .mobile-search-overlay .mobile-search-results {
        max-height: 60vh;
        overflow-y: auto;
    }

    /* Body padding: top for mobile top bar, bottom for bottom nav */
    body {
        padding-top: 52px !important;
        padding-bottom: 64px !important;
    }

    /* ------- TYPOGRAPHY SCALING ------- */
    h1 {
        font-size: 2em !important;
    }

    .upper-left h1 {
        font-size: 2.2em !important;
    }

    .page-section h2 {
        font-size: 1.8em !important;
    }

    .container-upper-right h1 {
        font-size: 1.1em !important;
    }

    /* ------- HOMEPAGE MOBILE ------- */
    body.home,
    body.homepage {
        background: white !important;
        box-sizing: border-box;
        height: 100dvh;
        /* overflow: hidden removed — causes position:fixed nav to be invisible on iOS Safari.
           Scroll locking is handled by .containerVoorpagina { overflow: hidden } below. */
        padding-top: 52px !important;
        padding-bottom: 84px !important; /* taller: icons + labels */
    }

    .containerVoorpagina {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .upper {
        flex-direction: column;
        flex: 1;
        display: flex;
        padding: 0;
        min-height: 0;
    }

    .upper-left {
        margin: var(--spacing-md) var(--spacing-md) var(--spacing-xs);
        padding: var(--spacing-sm);
        flex: 0 0 auto;
    }

    .upper-left h1 {
        font-size: 2em !important;
    }

    .upper-left p {
        font-size: 0.95em;
        padding: 0;
        line-height: 1.6;
    }

    .intro-content {
        font-size: 0.9em;
        line-height: 1.6;
    }

    /* Hide redundant section title on mobile */
    .container-upper-right > h1 {
        display: none;
    }

    .container-upper-right {
        margin: 0;
        padding: 0 var(--spacing-md) 6px;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
    }

    #slideshow {
        margin: 0;
        flex: 1;
        min-height: 0;
        border-radius: var(--border-radius-md);
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    }

    /* Dots and button must NOT steal slideshow space */
    .slideshow-dots {
        flex: 0 0 auto;
    }

    .slide {
        flex-direction: column !important;
        border-radius: var(--border-radius-md);
        overflow: hidden;
        border: none !important;
        box-shadow: none !important;
    }

    .slide img {
        width: 100% !important;
        height: 140px !important;
        object-fit: cover;
    }

    .slide-text {
        flex: 1;
        padding: var(--spacing-sm) var(--spacing-md);
        margin-left: 0 !important;
    }

    .slide-text h2 {
        font-size: 1.2em !important;
        margin-bottom: 4px;
    }

    .slide-text p {
        font-size: 0.85em;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slideshow-dots {
        padding-left: 0;
        margin-top: 6px;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    /* Compact meer-button on mobile */
    .meer-button {
        margin-top: 4px !important;
        padding: 2px 8px !important;
        font-size: 0.72em !important;
        border-radius: 4px !important;
        align-self: flex-start !important;
        line-height: 1.6 !important;
        min-height: unset !important;
        width: auto !important;
        display: inline-block !important;
    }

    /* Homepage navigation grid: HIDDEN on mobile (bottom nav replaces it) */
    .navigation-grid {
        display: none !important;
    }

    /* ------- GENERAL MOBILE TYPOGRAPHY ------- */
    body {
        font-size: 15px;
        line-height: 1.65;
    }

    p, .card-content p, .upper-left p, .intro-content p {
        line-height: 1.6;
    }

    /* Word-break for long emails/URLs */
    a[href^="mailto:"],
    .email-link,
    .contact-email-item a {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
    }

    /* ------- SUBPAGE CONTENT ------- */
    .page-content {
        padding: var(--spacing-sm) var(--spacing-md) !important;
    }

    /* Back button op mobile: terug in de flow */
    .back-to-takken {
        position: static !important;
        margin-bottom: var(--spacing-sm) !important;
        display: block;
    }

    /* ------- CARDS: consistent spacing ------- */
    .card {
        margin-bottom: var(--spacing-sm);
        border-radius: var(--border-radius-md);
    }

    .card-content {
        padding: var(--spacing-md) !important;
    }

    .card-content h3 {
        font-size: 1.1em;
    }

    /* Compact cards (afwezigheid/betaling) stapelen */
    .compact-card .card-content {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .compact-card .card-left {
        text-align: center;
    }

    .compact-card .card-right {
        display: flex;
        justify-content: center;
    }

    .compact-card .card-right .btn,
    .compact-card .card-right .copy-btn,
    .compact-card .card-right button {
        width: 100%;
        justify-content: center !important;
    }

    /* ------- GRIDS ------- */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }

    /* ------- LEIDING GRID (tak pagina's) ------- */
    .leiding-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: var(--spacing-sm) !important;
    }

    .leiding-card {
        padding: 0 !important;
        overflow: hidden !important;
    }

    .leiding-foto {
        height: 160px !important;
        width: 100% !important;
    }

    .leiding-foto img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }

    .leiding-info {
        padding: var(--spacing-sm) !important;
    }

    .leiding-info h3 {
        font-size: 0.95em !important;
        margin-bottom: 4px !important;
    }

    .leiding-info p,
    .leiding-info .echte-naam {
        font-size: 0.8em !important;
        margin-bottom: 2px !important;
    }

    .leiding-info .email {
        font-size: 0.7em !important;
        word-break: break-all !important;
    }

    .leiding-info .telefoon {
        font-size: 0.7em !important;
    }

    /* ------- BANK ACCOUNT BUTTON (tak pagina's) ------- */
    .copy-btn {
        white-space: normal !important;
        word-break: break-all !important;
        text-align: center !important;
        font-size: 0.75em !important;
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        line-height: 1.3 !important;
    }

    /* ------- TAB NAVIGATION (Verhuur: 3 tabs, Meer: 8 tabs, Takken) ------- */
    .tab-navigation {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        gap: 6px !important;
        padding-bottom: var(--spacing-xs);
        justify-content: center !important; /* Gecentreerd voor verhuur (2 tabs) */
        margin: var(--spacing-sm) 0 var(--spacing-md) 0 !important;
    }

    .tab-navigation::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .tab-navigation .tab-button {
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 0.85em !important;
        white-space: nowrap !important;
        margin-top: 0 !important;
    }

    /* ------- INFO LAYOUT (Meer pagina) ------- */
    .info-layout {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    /* Groepsleiding grid */
    .groepsleiding-grid {
        grid-template-columns: 1fr !important;
    }

    .leiding-member {
        flex-direction: column !important;
        text-align: center;
    }

    .leiding-member .leiding-photo {
        margin: 0 auto var(--spacing-sm) !important;
    }

    /* Contact emails */
    .contact-email-item {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    /* ------- KALENDER ------- */
    .evenementen-layout {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm) !important;
    }

    .kalender-slideshow {
        height: 360px !important;
        margin: 0 0 var(--spacing-xs) 0 !important;
        overflow: hidden !important;
    }

    .kalender-dots {
        padding-left: 0 !important;
    }

    /* Jaarkalender: 2 kolommen op mobile */
    .calendar-events {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-sm) !important;
    }

    /* Sectie titels compacter */
    .nieuws-sectie h3,
    .agenda-sectie h3 {
        font-size: 1em !important;
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Page sections minder padding */
    .section-intro {
        font-size: 0.9em;
        margin-bottom: var(--spacing-sm);
    }

    /* ------- IFRAME CARDS (Stamhoofd, Verhuur, Thilala) ------- */
    .iframe-card-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .iframe-card-info {
        padding-right: 0 !important;
    }

    .iframe-container iframe {
        width: 100% !important;
        height: 70vh !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* iOS Safari iframe scroll wrapper */
    .iframe-container {
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Two column layout (Stamhoofd/Thilala) */
    .two-column-layout {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }

    /* Info cards compact on mobile */
    .info-card-header {
        padding: var(--spacing-sm) var(--spacing-md) !important;
    }

    .info-card-header h3 {
        font-size: 1.1em !important;
    }

    .info-card-body {
        padding: var(--spacing-sm) var(--spacing-md) !important;
        font-size: 0.95em !important;
    }

    /* Archive table compact */
    .archive-section-compact {
        padding: var(--spacing-md) !important;
    }

    .archive-section-compact h3 {
        font-size: 1.3em !important;
        margin-bottom: var(--spacing-sm) !important;
    }

    .archive-table th,
    .archive-table td {
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        font-size: 0.85em !important;
    }

    /* ------- VERHUUR SPECIFIEK ------- */
    .lokalen-top-section {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-md);
    }

    .materiaal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-sm) !important;
    }

    .tent-grid {
        grid-template-columns: 1fr !important;
    }

    /* ------- TAKKEN OVERZICHTSPAGINA ------- */
    .tak-card {
        margin-bottom: var(--spacing-md);
    }

    .tak-header {
        flex-direction: row;
        gap: var(--spacing-sm);
    }

    .tak-logo {
        width: 40px !important;
        height: 40px !important;
    }

    .tak-leiding {
        font-size: 0.9em;
    }

    /* ------- FOOTER: simplified on mobile ------- */
    .page-footer {
        margin-bottom: 0; /* Naadloos naar bottom nav */
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm) !important;
        padding: var(--spacing-md) !important;
        text-align: center;
    }

    /* Hide redundant footer sections (Contact/Links already in nav) */
    .footer-content .footer-section:first-child,
    .footer-content .footer-section:last-child {
        display: none;
    }

    .sponsor-carousel {
        height: 140px;
        max-width: 280px;
        margin: 0 auto;
    }

    .footer-section a {
        text-decoration: underline dotted var(--primary-color) 3px;
    }

    .social-links {
        justify-content: center;
        gap: var(--spacing-md);
    }

    .social-links a {
        font-size: 1.3em;
    }

    .footer-bottom {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .footer-bottom p {
        font-size: 0.8em;
    }

    /* ------- PAGE SECTIONS ------- */
    .page-section {
        margin-bottom: var(--spacing-lg);
    }

    .page-section h2 {
        font-size: 1.6em !important;
        margin-bottom: var(--spacing-sm);
    }

    .page-section .section-intro {
        font-size: 0.95em !important;
        padding: 0;
        line-height: 1.6;
    }

    /* ------- BUTTONS: full-width touch targets ------- */
    .btn,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-md) !important;
    }

    /* Make standalone buttons full-width */
    .card-content > .btn:only-of-type,
    .card-content > a.btn-primary:only-of-type {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* ------- ALERTS ------- */
    .alert {
        padding: var(--spacing-sm) var(--spacing-md) !important;
        font-size: 0.9em;
        border-radius: var(--border-radius-md);
    }

    /* ------- IFRAME PAGES: twee losse boxen op mobile ------- */

    /* De outer iframe-card wordt een transparante wrapper zonder eigen stijl */
    .iframe-card {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-md) !important;
        padding: 0 !important;
    }

    /* Box 1: header krijgt eigen kaart-stijl */
    .iframe-card-header {
        background: white !important;
        border-radius: var(--border-radius-md) !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
        padding: var(--spacing-md) !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .iframe-card-info h2 {
        font-size: 1.1em !important;
        margin-bottom: 4px !important;
    }

    .iframe-card-info p {
        font-size: 0.85em !important;
        line-height: 1.4 !important;
    }

    .iframe-fallback-toggle {
        align-self: flex-start !important;
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        font-size: 0.85em !important;
    }

    /* Box 2: iframe-container krijgt eigen kaart-stijl */
    .iframe-container {
        background: white !important;
        border-radius: var(--border-radius-md) !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .iframe-container iframe {
        display: block !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* ------- ARCHIVE GRID (Thilala) ------- */
    .archive-grid {
        grid-template-columns: 1fr !important;
    }

    /* ------- YEAR THEME ------- */
    .year-theme h3 {
        font-size: 1.5em !important;
    }

    /* ------- PDF VIEWER ------- */
    .pdf-viewer {
        height: 60vh !important;
    }
}

/* ===========================================
   SMALL MOBILE (max-width: 480px)
   Extra verfijning voor kleine schermen
   =========================================== */
@media (max-width: 480px) {

    /* Bottom nav: tighter on small phones */
    .mobile-bottom-nav .mobile-nav-item {
        min-width: 32px;
        padding: 6px;
        margin: 6px 0px;
    }

    /* Typography */
    h1 {
        font-size: 1.7em !important;
    }

    .upper-left h1 {
        font-size: 1.8em !important;
    }

    .page-section h2 {
        font-size: 1.4em !important;
    }

    /* Homepage */
    body.home,
    body.homepage {
        background-size: 300vw;
        background-position: -100vw -30px;
    }

    /* Slideshow nog compacter */
    #slideshow {
        height: 240px;
        min-height: 240px;
    }

    .slide img {
        height: 100px !important;
    }

    .slide-text h2 {
        font-size: 1em !important;
    }

    .slide-text p {
        -webkit-line-clamp: 2;
        font-size: 0.8em;
    }

    /* Page content - minder padding */
    .page-content {
        padding: var(--spacing-xs) var(--spacing-sm) !important;
    }

    /* Leiding grid: 2 kolommen ook op klein scherm */
    .leiding-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: var(--spacing-sm) !important;
    }

    /* Tab buttons kleiner op small mobile */
    .tab-button {
        padding: 6px 10px !important;
        font-size: 0.75em !important;
    }

    /* Cards */
    .card-content {
        padding: var(--spacing-sm) !important;
    }

    /* Iframe kleiner */
    .iframe-container iframe {
        height: 60vh !important;
    }

    /* Kalender slideshow */
    .kalender-slideshow {
        height: 320px !important;
    }

    /* Bottom nav: smaller icons on tiny screens */
    .mobile-bottom-nav .mobile-nav-item {
        min-width: 40px;
        padding: 6px;
    }

    .mobile-bottom-nav .mobile-nav-item img {
        width: 22px;
        height: 22px;
    }

    /* Top bar: slightly smaller */
    .mobile-top-bar {
        height: 48px;
        padding: 6px 10px;
    }

    .mobile-home-logo {
        width: 32px;
        height: 32px;
    }

    .mobile-home-logo img {
        width: 24px;
        height: 24px;
    }

    #mobile-top-search-input {
        font-size: 0.85em;
    }

    body {
        padding-top: 48px !important;
    }
}

/* ===== uniform-buttons.css ===== */
/* Uniform Button Styling — ALLE knoppen op de site */

/* === FORCE: NOOIT link styling op knoppen === */
.btn, .btn-white, .btn-primary, .btn-secondary,
.meer-button, .meer-info-btn, .pagination-btn,
.footer-btn, .newsletter-cta-btn, .download-button,
.iframe-fallback-toggle, .fallback-action,
.calendar-nav-btn, .jaarkalender-toggle,
.tab-button {
    text-decoration: none !important;
}
.btn *, .btn-white *, .btn-primary *, .btn-secondary *,
.meer-button *, .meer-info-btn *, .pagination-btn *,
.footer-btn *, .newsletter-cta-btn *, .download-button *,
.iframe-fallback-toggle *, .fallback-action *,
.calendar-nav-btn *, .jaarkalender-toggle *,
.tab-button * {
    text-decoration: none !important;
    text-decoration-color: transparent !important;
}

/* === ALLE KNOPPEN: default state === */
.btn, .btn-primary, .btn-secondary,
.meer-button, .meer-info-btn, .pagination-btn,
.footer-btn, .newsletter-cta-btn, .download-button,
.iframe-fallback-toggle, .fallback-action,
.calendar-nav-btn, .jaarkalender-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--spacing-xs) !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-family: var(--font-bold) !important;
    font-size: 0.9em !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s !important;
}

/* === ALLE KNOPPEN: hover === */
.btn:hover, .btn-primary:hover, .btn-secondary:hover,
.meer-button:hover, .meer-info-btn:hover, .pagination-btn:hover,
.footer-btn:hover, .newsletter-cta-btn:hover, .download-button:hover,
.iframe-fallback-toggle:hover, .fallback-action:hover,
.calendar-nav-btn:hover, .jaarkalender-toggle:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    box-shadow: inset 0 0 0 2px var(--primary-color) !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* === WITTE KNOPPEN (op blauwe achtergrond) === */
.btn-white {
    background-color: white !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
}
.btn-white:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: inset 0 0 0 2px white !important;
}

/* === SEARCH BUTTON === */
.search-button {
    display: flex !important;
    align-items: center !important;
    justify-content: right !important;
    background: transparent !important;
    color: rgba(255,255,255,0.8) !important;
    border: none !important;
    padding: 0 12px !important;
    width: 50px !important;
    height: 100% !important;
    cursor: pointer !important;
}
.search-button:hover {
    background: transparent !important;
    color: white !important;
    box-shadow: none !important;
    transform: none !important;
}

/* === TAB BUTTONS === */
.tab-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--spacing-xs) !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-family: var(--font-bold) !important;
    font-size: 0.9em !important;
    background-color: white !important;
    color: var(--primary-color) !important;
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 2px var(--primary-color) !important;
    transition: background-color 0.2s, color 0.2s, transform 0.2s !important;
}
.tab-button:hover:not(.active) {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}
.tab-button.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: none !important;
}
.tab-button.active:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}

/* Iconen */
.btn i, .btn-primary i, .meer-button i, .meer-info-btn i,
.pagination-btn i, .footer-btn i, .newsletter-cta-btn i, .download-button i,
.iframe-fallback-toggle i, .fallback-action i,
.calendar-nav-btn i, .jaarkalender-toggle i, .tab-button i {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .btn, .btn-primary, .meer-button, .meer-info-btn,
    .pagination-btn, .footer-btn, .newsletter-cta-btn, .download-button,
    .iframe-fallback-toggle, .fallback-action,
    .calendar-nav-btn, .jaarkalender-toggle, .tab-button {
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        font-size: 0.85em !important;
    }
}

