/**
Theme Name: Sprong Prevent®
Author: Webpuccino®
Author URI: https://webpuccino.com
Description: Sprong Prevent® theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sprongprevent
Template: astra
*/

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */
/*
   1. CSS Custom Properties (Variables)
   2. Global Theme Overrides
   3. Projects Filter Component
   4. Projects & Events Grid & Loading States
   5. Partners Grid & Loading States
   6. Project Items Layout & Consistency
   7. Shortcode Components
   8. Locations Accordion
   9. Animations
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    --LICHTBLAUW: rgb(209, 236, 247);
    --KONINGSBLAUW: rgb(38, 42, 130);
    --DAWN: rgb(252, 221, 200);
    --ORANGE: rgb(234, 61, 4);
    --BRIGHT_RED: rgb(160, 44, 96);
    --SAND: rgb(246, 164, 123);
    --SOFT_WHITE: rgba(252, 221, 200, 0.5);
    --GREY: rgb(0, 0, 0);
    --ZALM: rgb(251, 226, 236);
    --AUBERGINE: rgb(234, 212, 219);
    --ACTIVE_BLUE: rgb(1, 154, 212);
}

/* ==========================================================================
   GLOBAL THEME OVERRIDES
   ========================================================================== */

/* Navigation Menu Styling */
.ast-desktop .ast-menu-hover-style-underline > .menu-item:hover > .menu-link:before,
.ast-desktop .ast-menu-hover-style-overline > .menu-item:hover > .menu-link:before,
.ast-desktop .ast-menu-hover-style-underline > .current-menu-item > .menu-link:before,
.ast-desktop .ast-menu-hover-style-overline > .current-menu-item > .menu-link:before {
    width: calc(100% - 2em);
    background-color: var(--ORANGE);
    transform: scale(1, 2) translate(50%, 0);
}

.site-navigation .ast-arrow-svg {
    fill: var(--ORANGE);
}

/* Elementor Button Adjustments */
.elementor-button .elementor-button-content-wrapper {
    justify-content: space-between;
}

/* Mobile menu toggle size */
body [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
    height: 30px;
    width: 30px;
}

/* ==========================================================================
   PROJECTS FILTER COMPONENT
   ========================================================================== */

/* Hide default form elements */
.sp-posts-filter .elementor-field-label,
.sp-posts-filter .elementor-button {
    display: none !important;
}

/* Form Layout */
.sp-posts-filter .elementor-form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sp-posts-filter .elementor-field-group {
    flex: 1;
    min-width: 200px;
}

.sp-posts-filter .elementor-col-100 {
    width: auto !important;
    flex: 1;
}

/* Filter Label */
.sp-posts-filter .elementor-form-fields-wrapper::before {
    content: 'Filter op';
    color: var(--KONINGSBLAUW);
    font-size: 18px;
    font-weight: 600;
    margin-right: 15px;
    margin-top: -10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Select Styling */
.sp-posts-filter .elementor-select-wrapper {
    position: relative;
    border: none !important;
    box-shadow: none !important;
    background: white;
    border-radius: 25px;
    overflow: hidden;
}

.sp-posts-filter select {
    font-weight: bold;
    padding: 12px 50px 12px 20px !important;
    background: white !important;
    border: none !important;
    border-radius: 25px !important;
    height: 50px !important;
    font-size: 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Custom Dropdown Arrow */
.sp-posts-filter .select-caret-down-wrapper {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcgMTBMMTIgMTVMMTcgMTAiIHN0cm9rZT0iI0VBM0QwNCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+') center center no-repeat !important;
    background-size: 20px 20px !important;
    height: 25px !important;
    right: 15px !important;
    width: 25px !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
}

.sp-posts-filter .select-caret-down-wrapper svg {
    display: none !important;
}

/* Reset Filter Button */
.sp-reset-filter-button {
    background-color: var(--BRIGHT_RED);
    color: white;
    border: none;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    white-space: nowrap;
}

.sp-reset-filter-button:hover {
    background-color: var(--ORANGE);
    transform: translateY(-1px);
}

.sp-reset-filter-button:active {
    transform: translateY(0);
}

/* Filter Responsive Design */
@media (max-width: 768px) {
    .sp-posts-filter .elementor-form-fields-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-posts-filter .elementor-form-fields-wrapper::before {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .sp-posts-filter .elementor-field-group {
        min-width: 100%;
    }
}

/* ==========================================================================
   PROJECTS & EVENTS GRID & LOADING STATES
   ========================================================================== */

/* Projects Loading States - Scoped to projects grid */
#sp-projects-grid.loading {
    min-height: 300px;
    position: relative;
}

#sp-projects-grid.loading .elementor-loop-container {
    opacity: 0.3;
}

#sp-projects-grid.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--ORANGE);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Loading & Error Messages - Scoped to projects */
.sp-posts .loading-message,
.sp-posts .error-message,
#sp-projects-grid .loading-message,
#sp-projects-grid .error-message {
    font-weight: 600;
    font-size: 16px;
}

/* Infinite Scroll Loader - Scoped to projects */
#sp-projects-grid #sp-infinite-scroll-loader {
    margin: 20px 0;
}

/* Add placeholder image when the container doesn't have a featured image widget */
#sp-projects-grid .elementor-widget-wrap:not(:has(.sp-project-image))::before {
    content: '';
    display: block;
    width: 100%;
    padding-bottom: 66.67%; /* Same 3:2 aspect ratio as images */
    background: #f5f5f5 url('/wp-content/themes/sprongprevent/img/image-placeholder.jpg') center center/cover no-repeat;
    border-radius: 10px 10px 0px 0px; /* Match image border radius */
    margin-bottom: 20px; /* Space before the next element */
}

/* Events Loading States - Scoped to events grid */
#sp-events-grid.loading,
.sp-events.loading {
    min-height: 300px;
    position: relative;
}

#sp-events-grid.loading .elementor-loop-container,
.sp-events.loading .elementor-loop-container {
    opacity: 0.3;
}

#sp-events-grid.loading::before,
.sp-events.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--ORANGE);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Loading & Error Messages - Scoped to events */
#sp-events-grid .loading-message,
#sp-events-grid .error-message,
.sp-events .loading-message,
.sp-events .error-message {
    font-weight: 600;
    font-size: 16px;
}

/* Infinite Scroll Loader - Scoped to events */
#sp-events-grid #sp-infinite-scroll-loader,
.sp-events #sp-infinite-scroll-loader {
    margin: 20px 0;
}

/* Posts Loading States - Scoped to posts grid */
#sp-posts-grid.loading {
    min-height: 300px;
    position: relative;
}

#sp-posts-grid.loading .elementor-loop-container {
    opacity: 0.3;
}

#sp-posts-grid.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--ORANGE);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Loading & Error Messages - Scoped to posts */
#sp-posts-grid .loading-message,
#sp-posts-grid .error-message {
    font-weight: 600;
    font-size: 16px;
}

/* Infinite Scroll Loader - Scoped to posts */
#sp-posts-grid #sp-infinite-scroll-loader {
    margin: 20px 0;
}

/* ==========================================================================
   PARTNERS GRID & LOADING STATES
   ========================================================================== */

/* Loading States - Scoped to partners grid */
#sp-partners-grid.loading {
    min-height: 300px;
    position: relative;
}

#sp-partners-grid.loading .elementor-loop-container {
    opacity: 0.3;
}

#sp-partners-grid.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--ORANGE);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Loading & Error Messages - Scoped to partners */
#sp-partners-grid .loading-message,
#sp-partners-grid .error-message {
    font-weight: 600;
    font-size: 16px;
}

/* Infinite Scroll Loader - Scoped to partners */
#sp-partners-grid #sp-infinite-scroll-loader {
    margin: 20px 0;
}

/* ==========================================================================
   PROJECT ITEMS LAYOUT & CONSISTENCY
   ========================================================================== */

/* Base Project Item Layout - Properly scoped to projects only */
.sp-posts .e-loop-item {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.sp-posts .e-loop-item .elementor-widget-wrap {
    background-color: var(--e-global-color-07ce01b);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive image cropping - Scoped to projects only */
.sp-posts .elementor-widget-theme-post-featured-image {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 10px 10px 0px 0px;
}

/* Handle both direct images and images wrapped in links - Scoped to projects */
.sp-posts .elementor-widget-theme-post-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Make sure links inside the image container fill the space - Scoped to projects */
.sp-posts .elementor-widget-theme-post-featured-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Remove background when image is present - Scoped to projects */
.sp-posts .elementor-widget-theme-post-featured-image:has(img) {
    background-color: transparent;
}

/* Missing Featured Image Fallback - Scoped to projects only */
.sp-posts .elementor-widget-wrap:has(.elementor-widget-post-info:first-child)::before {
    content: '';
    display: block;
    width: 100%;
    padding-bottom: 66.67%; /* Same aspect ratio as images */
    background-color: #f5f5f5;
    border-radius: 10px 10px 0px 0px;
    margin-bottom: 20px;
}

.sp-posts .elementor-widget-wrap .elementor-widget-post-info:first-child {
    margin-top: 0;
}

/* Project Title Styling - Scoped to projects only */
.sp-posts .elementor-widget-theme-post-title {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    min-height: 72px;
}

.sp-posts .elementor-widget-theme-post-title a {
    text-decoration: none;
}

/* Category Pills Styling - Matches Elementor's design */
.sp-posts .elementor-post-info__terms-list-item {
    background: #C45372;
    color: #fff !important;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 40px;
    text-decoration: none !important;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.sp-posts .elementor-post-info__terms-list-item:hover {
    background: var(--ORANGE);
    color: #fff !important;
}

/* Category container styling */
.sp-posts .elementor-widget-post-info .elementor-widget-container {
    margin: 0px 20px 0px 20px;
}

.sp-posts .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item {
    margin-right: calc(10px / 2);
    margin-left: calc(10px / 2);
}

.sp-posts .elementor-icon-list-items.elementor-inline-items {
    margin-right: calc(-10px / 2);
    margin-left: calc(-10px / 2);
}

/* Responsive breakpoints - Scoped to projects only */
@media (max-width: 768px) {
    .sp-posts .elementor-widget-theme-post-featured-image {
        padding-bottom: 60%; /* Slightly different ratio on mobile */
    }

    .sp-posts .elementor-widget-wrap:has(.elementor-widget-post-info:first-child)::before {
        padding-bottom: 60%; /* Match the image ratio */
    }
}

/* ==========================================================================
   POSTS ITEMS LAYOUT ADJUSTMENTS (Give latest post extra focus)
   ========================================================================== */

/* Featured post styling - only when NOT filtered */
.sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type {
    border-radius: 10px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type {
        grid-column: span 2; /* Make first item twice as wide and some more styles */
    }
}

.sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type .elementor-widget-wrap {
    background-color: #000 !important;
}

/* Crop the image to 360px height */
.sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type .sp-project-image {
    border-radius: 10px;
    height: 425px;
    margin-bottom: -125px;
    overflow: hidden;
    padding-bottom: 0 !important; /* Override the 66.67% padding */
    position: relative;
}

.sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type .sp-project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none; /* Allows clicks to pass through to the link */
    z-index: 1;
}

.sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type .sp-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image to fit container */
}

/* Overlay the text content */
.sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type .sp-project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    margin: 0; /* Remove any negative margin you had */
}

.sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type .sp-project-title,
.sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type .sp-project-label {
    z-index: 10;
}

.sp-posts-news:not(.sp-posts-filtered) .e-loop-item:first-of-type .sp-project-title a {
    color: #fff;
}

@media (max-width: 768px) {
    .sp-posts-news .elementor-grid {
        grid-template-columns: 1fr; /* Single column = 100% width */
    }
}

/* ==========================================================================
   SHORTCODE COMPONENTS
   ========================================================================== */

/* Region and Thema Lists */
.sp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-regios,
.sp-personen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 1-6 columns depending on space */
    gap: 24px; /* works perfectly with grid */
    margin: 24px 0;
}

.sp-personen {
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

.sp-regio,
.sp-persoon {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-sizing: border-box;
    color: var(--KONINGSBLAUW) !important;
    min-height: 130px;
    padding: 24px;
    text-decoration: none !important;
}

.sp-regio:hover {
    background-color: #FFF;
}

.sp-regio .sp-regio-title {
    color: var(--KONINGSBLAUW);
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .sp-regio-subsections .elementor-icon-list-item:not(:last-child) {
        margin-bottom: 30px;
    }
}

.sp-regio-title::after {
    background: url(img/sp-icon-arrow-rigth.svg) center center no-repeat;
    background-size: contain;
    content: '';
    display: block;
    height: 30px;
    margin-top: 20px;
    width: 30px
}

.sp-persoon {
    align-items: center;
    background: #fff;
    display: flex;
    min-height: 100px;
    padding: 18px;
}

.sp-persoon-profielfoto {
    border-radius: 100%;
    margin-right: 24px;
    overflow: hidden;
    height: 80px;
    width: 80px;
}

.sp-persoon-info {
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.entry-content .sp-persoon-title {
    font-size: 20px;
    margin-bottom: 0;
}

.sp-persoon-functie {
    font-size: 15px;
}

/* Square partners */
/* Make partner logos appear in square containers */
.elementor-element.sp-partner-logo .elementor-widget-container {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-element.sp-partner-logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Subpartners styling */
.sp-subpartners {
    font-size: 14px;
    margin-top: -2.5em;
    text-align: center;
}

.sp-subpartners-count {
    cursor: pointer;
    text-decoration: underline;
}

.sp-subpartners ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Modal styling */
.sp-subpartners-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sp-subpartners-modal.show {
    opacity: 1;
    visibility: visible;
}

.sp-subpartners-modal-content {
    background: white;
    border-radius: 10px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.sp-subpartners-modal.show .sp-subpartners-modal-content {
    transform: scale(1);
}

.sp-subpartners-modal-close {
    align-items: center;
    background: #F2F2F7 url(img/sp-icon-close.svg) center center no-repeat;
    background-size: 16px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    font-size: 0;
    height: 46px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: all 0.2s ease;
    width: 46px;
}

.sp-subpartners-modal-close:hover {
    background-color: #e9ecef;
    transform: scale(1.05);
}

.sp-subpartners-modal-close:active {
    transform: scale(0.95);
}

.sp-subpartners-modal-title {
    margin: 0 0 20px 0;
    color: var(--KONINGSBLAUW);
    font-size: 29px;
    text-align: left;
    padding-right: 40px; /* Space for close button */
}

.sp-subpartners-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-subpartners-modal-list li {
    margin-bottom: 10px;
}

.sp-subpartners-modal-list a {
    text-decoration: none;
    color: var(--ORANGE);
    display: block;
    font-weight: 500;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sp-subpartners-modal-content {
        padding: 20px;
        margin: 20px;
    }

    .sp-subpartners-modal-title {
        font-size: 20px;
        padding-right: 30px;
    }
}

/* ==========================================================================
   LOCATIONS ACCORDION
   ========================================================================== */

/* Locations Accordion Container */
.sp-locaties-accordion {
    margin: 20px 0;
}

/* Individual Location Item */
.sp-locatie-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

/* Location Header */
.sp-locatie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.sp-locatie-header:hover {
    background: #f8f9fa;
}

.sp-locatie-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-locatie-title {
    color: var(--KONINGSBLAUW);
    font-weight: 600;
    font-size: 16px;
}

.sp-locatie-diagonal-icon {
    width: 14px;
    height: 14px;
    background: url('img/sp-icon-arrow-diagonal.svg') center center no-repeat;
    background-size: contain;
}

.sp-locatie-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    min-width: 380px;
}

.sp-locatie-content-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
}

.sp-locatie-type {
    color: var(--BRIGHT_RED);
    font-weight: 600;
    font-size: 14px;
    width: 100px;
    text-align: left;
    flex-shrink: 0;
    display: inline-block;
}

.sp-locatie-pin-icon {
    width: 16px;
    height: 16px;
    background: url('img/sp-icon-map-pin.svg') center center no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.sp-locatie-link {
    color: var(--KONINGSBLAUW);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sp-locatie-link:hover {
    color: var(--KONINGSBLAUW);
    text-decoration: none;
}

.sp-locatie-no-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-locatie-name {
    color: var(--KONINGSBLAUW);
    font-weight: 600;
}

.sp-locatie-toggle-icon {
    width: 16px;
    height: 16px;
    background: url('img/sp-icon-toggle-down.svg') center center no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.sp-locatie-item.expanded .sp-locatie-toggle-icon {
    background-image: url('img/sp-icon-toggle-up.svg');
}

/* Location Content */
.sp-locatie-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fafbfc;
}

.sp-locatie-item.expanded .sp-locatie-content {
    max-height: 2000px;
}

.sp-locatie-content-inner {
    color: var(--KONINGSBLAUW);
    line-height: 1.6;
    padding: 0 25px;
    transition: padding 0.4s ease;
}

.sp-locatie-item.expanded .sp-locatie-content-inner {
    padding: 25px;
}

.sp-locatie-content-inner h1,
.sp-locatie-content-inner h2,
.sp-locatie-content-inner h3,
.sp-locatie-content-inner h4,
.sp-locatie-content-inner h5,
.sp-locatie-content-inner h6 {
    color: var(--KONINGSBLAUW);
    margin-top: 0;
    margin-bottom: 15px;
}

.sp-locatie-content-inner ul,
.sp-locatie-content-inner ol {
    margin: 15px 0;
    padding-left: 25px;
}

.sp-locatie-content-inner li {
    margin-bottom: 8px;
    color: var(--KONINGSBLAUW);
}

.sp-locatie-content-inner p {
    margin-bottom: 15px;
}

.sp-locatie-content-inner a {
    color: var(--ORANGE);
    text-decoration: underline;
}

.sp-locatie-content-inner a:hover {
    color: var(--BRIGHT_RED);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sp-locatie-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 18px 20px;
    }

    .sp-locatie-header-left,
    .sp-locatie-header-right {
        width: 100%;
    }

    .sp-locatie-header-right {
        min-width: auto;
        justify-content: space-between;
    }

    .sp-locatie-content-inner {
        padding: 0 20px;
    }

    .sp-locatie-item.expanded .sp-locatie-content-inner {
        padding: 20px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}