/*
Theme Name: Adoptiedieren Custom Theme
Author: Platform Creator
Version: 1.3.0
Description: Schaalbaar OOP platform met AJAX queries en ingebouwde Dark Mode voor adoptiedieren.nl
*/

/* ==========================================================================
   1. BRAND VARIABELEN & KLEURENARCHITECTUUR (LIGHT MODE)
   ========================================================================== */
:root {
    --primary: #ef6626;
    --primary-dark: #d5531c;
    --primary-light: #fff0ea;
    --text-main: #1a1a1a;
    --text-muted: #6b7280;
    --bg-site: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);

    /* Extra variabelen voor theming tweaks */
    --bg-tabs-bridge: #e2e8f0;
    --text-tabs-bridge: #475569;
    --bg-ad: #f1f5f9;
    --border-ad: #cbd5e1;
    --text-ad: #94a3b8;
}

/* ==========================================================================
   2. VARIABELEN OVERRIDES (DARK MODE BOUWSTEEN)
   ========================================================================== */
.dark-theme {
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-site: #0f172a; /* Diep donkerblauw/grijs (Slate 900) */
    --white: #1e293b;   /* Iets lichtere elementkaarten (Slate 800) */
    --border: #334155;
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);

    --primary-light: #2c2522; /* Subtiele warme gloed voor actieve elementen */
    --bg-tabs-bridge: #334155;
    --text-tabs-bridge: #cbd5e1;
    --bg-ad: #1e293b;
    --border-ad: #475569;
    --text-ad: #64748b;
}

/* Transitions voor een vloeiende overgang bij het schakelen tussen thema's */
body, header, aside, div, section, article, h2, h3, p, label, select, input, footer, button, a {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   3. BASE & CORE LAY-OUT STRUCTUUR
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-site);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- HEADER & NAVIGATIE --- */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links > li { list-style: none; padding-right: 25px; border-right: 1px solid var(--border); }

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-steun {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(239, 102, 38, 0.2);
}

.btn-steun:hover {
    background: var(--primary-dark);
}

/* --- DARK MODE TOGGLE BUTTON --- */
.dark-mode-btn {
    background: transparent;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-main);
}

.dark-mode-btn:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}


/* ==========================================================================
   MOBILE MENU CORE STYLING
   ========================================================================== */

/* Verberg de mobiele hamburger standaard op desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: inherit;
    cursor: pointer;
    padding: 10px;
}

/* De Mobiele Menu Overlay Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Standaard onzichtbaar buiten het scherm gecached */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff; /* Schakelt in dark mode automatisch mee als je CSS variabelen gebruikt */
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    z-index: 99999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out; /* Zorgt voor een vloeiende animatie */
}

/* Wanneer het menu geactiveerd is */
.mobile-menu-panel.is-active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: inherit;
    cursor: pointer;
}

/* Styling voor de menu items op mobiel */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #f1f5f9);
}

/* Media Query voor Mobiele Schermen */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important; /* Verberg het brede desktop menu */
    }
    .mobile-menu-toggle {
        display: block; /* Toon de hamburger-knop */
    }
}

/* ==========================================================================
   4. HERO & MODUS OVERGANG (TABS BRIDGE)
   ========================================================================== */
.hero {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff; /* Altijd wit op de donkere foto */
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e2e8f0; /* Altijd licht op de donkere foto */
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: #1a1a1a !important;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

/* --- MODUS SWITCHER --- */
.tabs-bridge-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: -55px;
    z-index: 20;
    padding: 0 2rem;
}

.tabs-bridge {
    display: flex;
    background: var(--bg-tabs-bridge);
    padding: 6px;
    border-radius: 24px;
    width: 100%;
    max-width: 750px;
}

.tab-btn {
    flex: 1;
    padding: 1.4rem 2rem;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-tabs-bridge);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   5. HOOFDCONTENT GRID & SIDEBAR FILTERS
   ========================================================================== */
.main-container {
    max-width: 1440px;
    margin: 3rem auto 4rem auto;
    padding: 0 2rem;
}

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* --- STICKY SIDEBAR --- */
.sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    z-index: 90;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border: 1px solid var(--border);
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--white);
    color: var(--text-main);
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    border-color: var(--primary);
}

/* --- RANGE SLIDER STYLING --- */
.range-container {
    margin-top: 0.5rem;
}

.range-value {
    font-weight: bold;
    color: var(--primary);
    float: right;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -7px;
}

/* ==========================================================================
   6. DIEREN RESULTATEN GRID & KAARTEN (CARDS)
   ========================================================================== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sort-select {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-main);
    font-weight: 600;
    outline: none;
}

/* Brede 3-koloms layout */
.animal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-8px);
}

/* --- CARD GALLERY SLIDER --- */
.card-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e2e8f0;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.card-image-container img.active {
    display: block;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 10;
    color: #1a1a1a;
}

.card:hover .slide-btn {
    display: block;
}

.slide-prev { left: 10px; }
.slide-next { right: 10px; }

/* Badges */
.badge-populair {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4d4d;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 5;
}

/* Positionering voor de badges (Zorg dat dit matcht met je .badge-populair) */
.badge-gereserveerd,
.badge-populair {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* De specifieke oranje look voor Gereserveerd */
.badge-gereserveerd {
    background-color: #ff9800;
    color: #ffffff;
}

/* (Optioneel) Mocht je de kaart zelf iets willen dimmen als hij gereserveerd is,
   kun je deze optie activeren om te laten zien dat hij minder 'beschikbaar' is: */
.card:has(.badge-gereserveerd) .card-image-container img {
    filter: brightness(0.92);
}

/* Inhoud Kaart */
.card-body {
    padding: 1.5rem;
}

.card-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-meta span i {
    color: var(--primary);
    margin-right: 4px;
}

/* ==========================================================================
   7. SEO PAGINERING ARCHITECTUUR
   ========================================================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3.5rem;
    gap: 0.5rem;
}



.page-link, .pagination-container a, .pagination-container span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
}

.page-link:hover, .pagination-container a:hover, .pagination-container span:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-link.active, .pagination-container a.current, .pagination-container span.current {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-link.disabled, .pagination-container a.disabled, .pagination-container span.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================================================
   8. SLUITERS: USP SECTION & BLOG OVERZICHT
   ========================================================================== */
.section-title {
    margin: 5rem 0 2rem 0;
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
}

/* --- USP SECTIE --- */
.usp-section {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 32px;
    margin-top: 4rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.usp-card {
    text-align: center;
}

.usp-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.usp-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

/* --- BLOGS GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-item {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.blog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

/* --- AD SPACE --- */
.reclblok {
  margin: 35px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 4rem 0;
    padding: 25px;
    gap: 15px;
}

/* ==========================================================================
   9. POPUPS & INTERACTIEVE ELEMENTEN (MODALS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.dark-theme .modal-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.modal {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border);
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 1.5rem 0;
}

.donate-opt {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}

.donate-opt.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.modal input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--white);
    color: var(--text-main);
}

/* ==========================================================================
   10. FOOTER COMPONENT
   ========================================================================== */
footer {
    background: #1e293b;
    color: #f8fafc;
    padding: 5rem 2rem 2rem 2rem;
}

.footer-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-col a:hover {
    color: #ffffff;
}

.newsletter input {
    background: #334155;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    width: 100%;
    color: white;
    margin-bottom: 10px;
    outline: none;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN & OFF-CANVAS MOBIEL FILTER
   ========================================================================== */
.mobile-filter-trigger {
    display: none;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(239, 102, 38, 0.2);
}

.sidebar-header-mobile {
    display: none;
}

/* Medium Schermen (Tablets / Kleine Monitors) */
@media (max-width: 1200px) {
    .animal-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .usp-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobiele Schermen (Layout transformatie naar slide-out filter) */
@media (max-width: 950px) {
    .layout { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-filter-trigger { display: block; }

    /* Transformeer sticky filter naar off-canvas popup */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        z-index: 3000;
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .usp-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Kleine Mobiele Telefoons */
@media (max-width: 600px) {
    .animal-grid, .blog-grid, .usp-grid, .footer-grid { grid-template-columns: 1fr; }
    .tab-btn { font-size: 1rem; padding: 1rem; }
    .page-link.hide-mobile { display: none; }
    .hero h1 { font-size: 2.3rem; }
}


/* ==========================================================================
   12. SUBMENU & DROPDOWN ARCHITECTUUR
   ========================================================================== */
/* Zorg dat de hoofd-lijstitems de dropdown correct positioneren */
.nav-links ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-links li {
    position: relative; /* Cruciaal voor het positioneren van de dropdown */
}

/* De onzichtbare submenu container */
.nav-links li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1100;
}

/* Toon het submenu bij hover op desktop */
.nav-links li:hover > ul.sub-menu,
.nav-links li.sfHover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Styling voor de submenu links */
.nav-links ul.sub-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    border-radius: 0;
    transition: background-color 0.2s, color 0.2s;
}

.nav-links ul.sub-menu li a:hover {
	background: var(--primary-light);
	color: var(--primary);
}

/* Indicator pijltje voor menu-items met een submenu */
.nav-links li.menu-item-has-children > a::after {
    content: "\f107"; /* FontAwesome angle-down code */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.8rem;
    display: inline-block;
    transition: transform 0.2s;
}

/* Draai pijltje bij openen */
.nav-links li:hover .menu-item-has-children > a::after {
    transform: rotate(180deg);
}


.custom-shape-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    position: absolute;
    bottom:0px; left: 0px;
}

.custom-shape-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 30px; /* Pas hier de hoogte van de curve aan */
}

.custom-shape-divider .shape-fill {
    fill: #f8fafc; /* De kleur van de aansluitende sectie */
}


/* ==========================================================================
   13. DETAILPAGINA DIER (SINGLE-DIEREN) SPECIFIEKE STYLING
   ========================================================================== */

/* --- HOOFDLAY-OUT CONTAINER --- */
.detail-container {
    max-width: 1440px;
    margin: 2.5rem auto 5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 420px; /* Brede linkerkolom + vaste conversie-zijbalk */
    gap: 3rem;
    align-items: start;
}

/* --- MULTI-PHOTO SLIDER --- */
.gallery-block {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.main-stage {
    position: relative;
    height: 500px;
    background: #000000;
}

.main-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.main-stage img.active {
    display: block;
}

.stage-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.stage-nav:hover {
    background: #ffffff;
    color: var(--primary);
}

.stage-prev { left: 20px; }
.stage-next { right: 20px; }

/* Miniaturen balk onder de slider */
.thumbnail-row {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow-x: auto;
}

.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.thumb.active, .thumb:hover {
    border-color: var(--primary);
    opacity: 1;
}

/* --- DETAILPAGINA CONTENT --- */
.animal-title-wrapper {
    margin-bottom: 2rem;
}

.animal-title-wrapper h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.badge-duo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffb703;
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.views-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Eigenschappen Kaart & Grid (Meta data) */
.properties-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.prop-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prop-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.prop-meta p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.prop-meta h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Biografie / Editor Teksten */
.biography-block h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.biography-block p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

/* --- NIEUW: GEKOPPELD DIER / DUO MODULE --- */
.linked-animals-section {
    margin-top: 3.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
}

.linked-animals-section h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.linked-animals-section .sub-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.linked-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.linked-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
}

.linked-card:hover {
    border-color: var(--primary);
}

.linked-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
}

.linked-info {
    flex: 1;
}

.linked-info h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-main);
}

.linked-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.linked-arrow {
    width: 40px;
    height: 40px;
    background: var(--bg-site);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    margin-right: 10px;
}

.linked-card:hover .linked-arrow {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* --- RECHTER STICKY ZIJBALK --- */
.sidebar-sticky {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 80;
}

/* Conversie Kaart */
.cta-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.price-tag {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.price-tag strong {
    font-size: 0.8rem;
    color: var(--text-main);
    font-weight: 400;
}

.btn-cta-main, .acf-form-submit input[type=submit] {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: #ffffff !important;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(239, 102, 38, 0.25);
    margin-bottom: 1rem;
}

.acf-form-submit input[type=submit]  { border: 0px; }

.btn-cta-main:hover,  .acf-form-submit input[type=submit]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Organisatie profielkaart */
.organization-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.org-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.org-logo {
    width: 100%;
    height: auto;
    color: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.org-header h3 { font-size: 1.1rem; font-weight: 800; }
.org-header p { font-size: 0.85rem; color: var(--text-muted); }
.org-body p { font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); margin-bottom: 1.5rem; }

.org-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
}

.org-links li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.org-links li i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.org-links li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* --- RESPONSIVE BREAKPOINTS VOOR DETAILPAGINA --- */
@media (max-width: 1100px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .sidebar-sticky {
        position: relative;
        top: 0;
    }
    .main-stage {
        height: 400px;
    }
}

@media (max-width: 650px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .animal-title-wrapper h1 {
        font-size: 2.2rem;
    }
    .detail-container {
        padding: 0 1rem;
    }
    .main-stage {
        height: 280px;
    }
    .linked-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .linked-img {
        width: 100%;
        height: 160px;
    }
    .linked-arrow {
        display: none;
    }
}


/* ==========================================================================
   14. FRONTEND LOGIN FORMULIER (WP_LOGIN_FORM)
   ========================================================================== */
.frontend-login-container {
    max-width: 450px;
    margin: 5rem auto;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.frontend-login-container h2 {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.frontend-login-container .login-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 0.95rem;
}

/* Fout- en succesmeldingen */
.login-error-msg {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.9rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.login-success-msg {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 0.9rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Veldgroepen binnen het WP formulier */
#frontend-login-form .login-username,
#frontend-login-form .login-password {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#frontend-login-form label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#frontend-login-form input[type="text"],
#frontend-login-form input[type="password"] {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-site);
    color: var(--text-main);
    outline: none;
    font-size: 1rem;
    box-sizing: border-box;
}

#frontend-login-form input:focus {
    border-color: var(--primary);
}

/* Remember me checkbox container */
#frontend-login-form .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
}

#frontend-login-form .login-remember label {
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

#frontend-login-form .login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin: 0;
}

/* De inlogknop (.login-submit) */
#frontend-login-form .login-submit {
    margin: 0;
}

#frontend-login-form input[type="submit"] {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 102, 38, 0.2);
    transition: background-color 0.2s;
}

#frontend-login-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* Footer links */
.login-footer-links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
}

.login-footer-links .lost-pass-link {
    display: block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
}

.login-footer-links p {
    color: var(--text-muted);
}

.login-footer-links p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}



/* ==========================================================================
   15. ORGANISATIE DASHBOARD ARCHITECTUUR & FORMULIEREN
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.dash-sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.org-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.org-logo-placeholder {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.menu-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0 0.5rem 0.5rem;
    display: block;
}

.dash-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dash-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 14px;
    font-size: 0.95rem;
}

.dash-menu-item.active a,
.dash-menu-item a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dash-main {
    padding: 3rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.dash-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    display: none;
}

.dash-section.active {
    display: block;
}

/* --- STATS CARDS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-site);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 16px;
}

.stat-card label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 0.25rem;
    color: var(--primary);
}

/* --- DATA TABELLEN --- */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
}

.data-table td {
    font-size: 0.95rem;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
}

/* --- RESPONSIVE DASHBOARD GRAPHICS --- */
@media (max-width: 1024px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .dash-main { padding: 2rem; }
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   16. SINGLE BLOG POST READABILITY STYLES
   ========================================================================== */
.blog-article-content {
    max-width: 800px; /* Optimaal voor lange teksten */
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-main);
}

.blog-article-content p {
    margin-bottom: 1.5rem;
}

.blog-article-content h2,
.blog-article-content h3 {
    margin: 2.5rem 0 1rem 0;
    font-weight: 800;
}

.blog-meta-top a {
    color: var(--primary);
    text-decoration: none;
}
.blog-meta-top a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   17. ADVANCED CUSTOM FIELDS (ACF_FORM) INTEGRATIE & HUISSTYLING (OPGELOST)
   ========================================================================== */

/* Algemene formulier wrapper */
.acf-form {
    margin-top: 1.5rem;
    width: 100% !important;
}

/* Verberg de standaard ACF titels/headers */
.acf-form h2, .acf-form-head {
    display: none !important;
}

/*
 * 1. Herstel native ACF veldenlay-out (Met behoud van floats voor perfecte kolom-percentages)
 */
.acf-fields {
    border: none !important;
    background: transparent !important;
    display: block !important; /* Slopen van de destructieve CSS grid */
}

/* Zorg dat floats netjes gecleared worden */
.acf-fields::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Individuele veldcontainers stylen */
.acf-field {
    padding: 12px 15px !important; /* Nette interne spacing */
    border: none !important;
    box-sizing: border-box !important;
}

/* Labels stylen conform de strakke website-huisstijl */
.acf-label label {
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.6rem !important;
    display: block !important;
}

/* Required sterretje (*) kleur */
.acf-label label .acf-required {
    color: var(--primary) !important;
}

/*
 * 2. Input velden en Selectboxen transformeren naar website-huisstijl
 */
.acf-input input[type="text"],
.acf-input input[type="email"],
.acf-input input[type="password"],
.acf-input input[type="number"],
.acf-input input[type="url"],
.acf-input select,
.acf-input textarea {
    width: 100% !important;
    padding: 0.9rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background: var(--bg-site) !important;
    color: var(--text-main) !important;
    outline: none !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Focus state */
.acf-input input:focus,
.acf-input select:focus,
.acf-input textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 1px var(--primary) !important;
}

/*
 * 3. ACF VERTICALE TABS STYLING (Voor links-uitgelijnde tabbladen)
 * Herstelt de absolute positionering van de tab-sidebar links en content rechts
 */
.acf-fields.-left {
    padding-left: 220px !important; /* Ruimte voor de tab-balk links */
    position: relative !important;
    min-height: 250px !important;
}

.acf-fields.-left > .acf-tab-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 200px !important;
    border-right: 1px solid var(--border) !important;
    background: transparent !important;
}

/* Tab-lijsten (Zowel horizontaal als verticaal) */
.acf-tab-group {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
}

/* Verticale specifieke tab-lijst */
.acf-fields.-left .acf-tab-group {
    flex-direction: column !important;
    gap: 8px !important;
}

/* Individuele tab knoppen */
.acf-tab-group li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

.acf-tab-group li a {
    display: block !important;
    padding: 10px 16px !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: none !important;
}

/* Hover en Actieve states van ACF tabs */
.acf-tab-group li a:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.acf-tab-group li.active a {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/*
 * 4. ACF HORIZONTALE TABS STYLING (Bovenste uitlijning)
 */
.acf-fields.-top > .acf-tab-wrap {
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
}

.acf-fields.-top .acf-tab-group {
    flex-direction: row !important;
    gap: 12px !important;
    padding-bottom: 8px !important;
}

/*
 * 5. WYSIWYG Editor (Gutenberg/TinyMCE) & Media Uploaders
 */
.acf-field .wp-editor-wrap {
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--bg-site) !important;
}

.acf-field .wp-editor-tools,
.acf-field .mce-top-part {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border) !important;
}

.acf-field .quicktags-toolbar,
.acf-field .mce-btn {
    background: transparent !important;
    border: none !important;
}

.acf-image-uploader, .acf-file-uploader {
    border: 2px dashed var(--border) !important;
    padding: 1.5rem !important;
    border-radius: 16px !important;
    background: var(--bg-site) !important;
    text-align: center !important;
}

/*
 * 6. De ACF Actieknop / Submit Button onderaan
 */
.acf-form-actions {
    padding: 15px !important;
    border: none !important;
    background: transparent !important;
    margin-top: 2rem !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.acf-form-actions .acf-button,
.acf-form-actions input[type="submit"] {
    padding: 0.9rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: none !important;
    font-size: 1rem !important;
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(239, 102, 38, 0.2) !important;
    transition: background-color 0.2s ease !important;
}

.acf-form-actions .acf-button:hover,
.acf-form-actions input[type="submit"]:hover {
    background: var(--primary-dark) !important;
}

/* Responsiviteit voor mobiel (Omschakelen naar 1 kolom voor de tab layouts) */
@media (max-width: 768px) {
    .acf-fields.-left {
        padding-left: 0 !important;
    }
    .acf-fields.-left > .acf-tab-wrap {
        position: relative !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 10px !important;
    }
    .acf-fields.-left .acf-tab-group {
        flex-direction: row !important;
        overflow-x: auto !important;
    }
}

/* ==========================================================================
   18. SINGLE ANIMAL SPECIFICATIONS & PASSPORT TABS
   ========================================================================== */
.animal-specs-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--shadow);
}

.animal-specs-wrapper h3 {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Tab-navigatie balk op desktop */
.specs-tabs-nav {
    display: flex;
    gap: 10px;
    list-style: none;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0px;
    margin-bottom: 2rem;
}

.specs-tab-trigger {
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Valt over de rand van de nav balk */
    transition: all 0.2s ease;
}

.specs-tab-trigger:hover {
    color: var(--primary);
}

.specs-tab-trigger.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Groepen Content */
.specs-tab-content {
    display: none; /* Standaard verborgen op desktop */
}

.specs-tab-content.active {
    display: block; /* Alleen de actieve tonen op desktop */
}

.specs-tab-content h4 {
    display: none; /* Verberg de subtitels op desktop, want de tab-knop zegt al wat het is */
}

/* De Grid met de eigenschappen erin */
.specs-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.spec-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.spec-list-item label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-list-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/*
 * RESPONSIVE BREAKPOINT: Transformatie naar lijst onder elkaar op mobiel
 */
@media (max-width: 768px) {
    .specs-tabs-nav {
        display: none !important; /* Sloop de tab knoppen op mobiel */
    }

    .specs-tab-content {
        display: block !important; /* Toon ALLE groepen onder elkaar */
        margin-bottom: 2.5rem;
    }

    .specs-tab-content:last-child {
        margin-bottom: 0;
    }

    .specs-tab-content h4 {
        display: flex !important; /* Toon nu de groepstitels wél als afscheiding */
        align-items: center;
        gap: 8px;
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 1rem;
    }

    .specs-list-grid {
        grid-template-columns: 1fr; /* Knal de eigenschappen naar 1 brede kolom */
        gap: 1rem;
    }



}

/* Zorg dat deze selectors exact zo in je style.css staan */

.specs-tab-content {
    display: none; /* Standaard verborgen op desktop */
}

/* Zorg dat de .active klasse direct aan de content-sectie plakt */
.specs-tab-content.active {
    display: block !important; /* Toon alleen de actieve groep op desktop */
}

/* Op mobiel blijft de automatische lijst-lay-out feilloos intact */
@media (max-width: 768px) {
    .specs-tabs-nav {
        display: none !important;
    }
    .specs-tab-content {
        display: block !important; /* Forceer alles onder elkaar op mobiel */
        margin-bottom: 2.5rem;
    }
}


/* ==========================================================================
   19. DASHBOARD TABEL AFBEELDINGEN & ACTIEKNOPPEN
   ========================================================================== */

/* Container voor de ronde miniatuurafbeelding */
.table-animal-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-site);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-animal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zorgt dat de foto mooi vult zonder te rekken */
}

/* Fallback-icoon als er geen foto is */
.table-animal-thumb .thumb-fallback {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Knoppencontainer uitlijning */
.table-actions {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Universele stijl voor de icon-knoppen */
.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

/* Edit specifieke styling */
.edit-btn {
    background: var(--bg-site);
    color: var(--text-muted);
}
.edit-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Delete specifieke styling */
.delete-btn {
    background: var(--bg-site);
    color: var(--text-muted);
}
.delete-btn:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fca5a5;
}

.data-table td i {
    font-size: 0.85rem;
    vertical-align: middle;
}


/* ==========================================================================
   20. CUSTOM FRONTEND DUAL-RANGE AGE SLIDER
   ========================================================================== */
.age-slider-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.slider-values-display {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.dual-range-slider-container {
    position: relative;
    width: 100%;
    height: 6px;
    margin-top: 10px;
}

/* De achtergrondlijn */
.slider-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--border);
    border-radius: 3px;
    top: 0;
    bottom: 0;
    z-index: 1;
}

/* Forceer beide sliders over elkaar heen */
.dual-range-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    pointer-events: none; /* Kliks gaan door de balk heen naar de knop */
    -webkit-appearance: none;
    appearance: none;
    top: 0;
    left: 0;
    z-index: 2;
    margin: 0;
}

/* Stylen van de schuifknoppen (Thumbs) voor Webkit (Chrome, Safari, Edge) */
.dual-range-slider-container input[type="range"]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
    cursor: pointer;
    pointer-events: auto; /* Activeer kliks/drags enkel op de knop zelf */
    -webkit-appearance: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.1s;
}
.dual-range-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Stylen voor Firefox */
.dual-range-slider-container input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* ==========================================================================
   21. SKELETON LAAD-ANIMATIE VOOR AJAX GRID
   ========================================================================== */
.animal-card-skeleton {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Voorkom klikken tijdens het laden */
}

/* De pulserende animatie */
@keyframes skeleton-glow {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.skeleton-blur {
    background-color: var(--border, #e2e8f0);
    border-radius: 6px;
    animation: skeleton-glow 1.5s ease-in-out infinite;
}

/* Specifieke elementen binnen de kaart */
.animal-card-skeleton .skeleton-image {
    width: 100%;
    aspect-ratio: 4/3; /* Match dit met de beeldverhouding van je echte foto's */
    border-radius: 8px;
}

.animal-card-skeleton .skeleton-title {
    width: 60%;
    height: 20px;
    margin-top: 4px;
}

.animal-card-skeleton .skeleton-meta {
    width: 40%;
    height: 14px;
}

.animal-card-skeleton .skeleton-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.animal-card-skeleton .skeleton-tag {
    width: 70px;
    height: 24px;
    border-radius: 12px;
}

/* ==========================================================================
   22. COMPACT ICON-ONLY DEELKNOPPEN (STYLING)
   ========================================================================== */
.animal-share-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%; /* Zorgt dat het component niet onnodig breed wordt */
}

.animal-share-compact .share-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.share-icons-row {
    display: flex;
    gap: 8px;
}

.share-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%; /* Maakt de knoppen perfect rond */
    font-size: 16px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.share-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Officiële Merk-Achtergrondkleuren */
.btn-whatsapp {
    background-color: #25D366;
}
.btn-whatsapp:hover {
    background-color: #20ba5a;
}

.btn-signal {
    background-color: #3a76f0; /* Officiële Signal blauw */
}
.btn-signal:hover {
    background-color: #2c62d7;
}

.btn-bluesky {
    background-color: #0085ff; /* Bluesky vlinder cyaan/blauw */
}
.btn-bluesky:hover {
    background-color: #0073dd;
}

.btn-facebook {
    background-color: #1877F2;
}
.btn-facebook:hover {
    background-color: #1464cd;
}

.btn-email {
    background-color: var(--text-muted, #64748b);
}
.btn-email:hover {
    background-color: var(--text, #1e293b);
}


/* Basis styling voor de status badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Groen: Beschikbaar / Publish */
.status-badge.badge-publish {
    background-color: #e6f4ea;
    color: #137333;
}

/* Oranje: Gereserveerd */
.status-badge.badge-reserved {
    background-color: #fef7e0;
    color: #b06000;
}

/* Blauw/Grijs: Geadopteerd (Succes!) */
.status-badge.badge-adopted {
    background-color: #e8f0fe;
    color: #1a73e8;
}

/* Donkergrijs: Concept / Draft */
.status-badge.badge-draft {
    background-color: #f1f3f4;
    color: #5f6368;
}


/* Styling voor de interactieve dropdowns */
.status-select-ajax {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

/* Kleurwissels op basis van actieve select-class */
.status-select-ajax.select-publish  { background-color: #e6f4ea; color: #137333; }
.status-select-ajax.select-reserved { background-color: #fef7e0; color: #b06000; }
.status-select-ajax.select-adopted  { background-color: #e8f0fe; color: #1a73e8; }
.status-select-ajax.select-draft    { background-color: #f1f3f4; color: #5f6368; }

.status-select-ajax:focus {
    border-color: var(--text-muted, #64748b);
}


.reclblok { }
@media screen and (max-width: 768px) {
  .reclblok { flex-direction: column; }
}
