:root {
    /* Primary “blue” (used for backgrounds, hover states, etc.) */
    --color-blue: #1c398e;
    /* medium‑blue */

    /* Darker shade of the primary blue (sidebar, nav, table headers) */
    --color-dark-blue: #18327f;
    /* you can also use a hex if you prefer */
    --color-darker-blue: #192e81;

    /* Accent “yellow” (buttons, hover borders, etc.) */
    --color-yellow: #FFC52C;

    --color-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Klima', sans-serif;
    background: var(--color-blue);
    color: var(--color-white);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky top controls */
.top-controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    /* Menu left, language right */
    align-items: center;
    /* Vertical alignment fixed */
    padding: 12px 0 12px 0;
    z-index: 998;
    /* Higher than content but lower than sidebar */
    /* background: var(--color-dark-blue); */
    /* backdrop-filter: blur(10px); */
    border-bottom: none;
}

/* Inner container to align with content */
.top-controls-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

.site-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: var(--color-yellow);
    padding-top: 0px;
    font-size: 1.4em;
    text-decoration: none;
    line-height: 1;
    text-align: center;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: var(--color-white);
}

.site-title span {
    display: none;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -360px;
    bottom: 0;
    width: 360px;
    max-width: calc(100vw - 20px);
    height: 100vh;
    background: var(--color-darker-blue);
    backdrop-filter: blur(20px);
    color: var(--color-white);
    padding: 80px 40px 40px 40px;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0;
    margin-left: 0;
    border: none;
}

.sidebar h3 {
    margin-bottom: 30px;
    line-height: 1.2;
    font-size: 1.4em;
    font-weight: bold;
}

.sidebar.open {
    left: 0;
}

/* Close button */
.close-button {
    display: none;
    /* hidden by default */
    position: absolute;
    /* relative to sidebar */
    top: 14px;
    right: 20px;
    font-size: 2em;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    z-index: 10;
    /* above sidebar content */
}

#sidebarMenu h3 {
    font-size: 1.6em;
}

/* Show only when menu is open */
.sidebar.open+.close-button,
.sidebar.open .close-button {
    display: block;
    /* <-- visible only when menu open */
}

/* Menu links */
.menu-links a {
    display: block;
    font-size: 1.4em;
    color: var(--color-yellow);
    text-decoration: none;
    line-height: 1.4;
    margin: 0px 0px 5px 0px;
    padding: 8px 14px 8px 0px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-family: 'Folsom', sans-serif;
}

.menu-links a:hover {
    color: var(--color-white);
    background: transparent;
    border-color: transparent;
    transform: translateX(8px);
    padding-right: 0px;
}

/* Contact section */
.menu-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid var(--color-white);
}

.menu-contact h3 {
    color: var(--color-white);
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 500;
    /* Adjusted for Klima's typical weight */
    font-family: 'Klima', sans-serif;
    line-height: 1.2;
}

.contact-intro {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    margin-bottom: 16px;
    line-height: 1.4;
    font-size: 1em;

}

.contact-email {
    display: inline-block;
    color: var(--color-yellow);
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--color-white);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    font-weight: normal;
    padding: 4px 0;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--color-white);
    text-decoration-color: var(--color-yellow);
    transform: translateX(4px);
}

.menu-info h2 {
    margin-top: 40px;
    font-size: 1.2em;
    color: var(--color-white);
}

.menu-info p {
    margin-top: 15px;
    line-height: 1.6;
    color: var(--color-white);
}


@font-face {
    font-family: 'Folsom';
    src: url('../media/fonts/folsom-black-web.woff2') format('woff2'),
        url('../media/fonts/folsom-black-web.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Klima';
    src: url('../media/fonts/klima-bold-web.woff2') format('woff2'),
        url('../media/fonts/klima-bold-web.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Klima';
    src: url('../media/fonts/klima-regular-web.woff2') format('woff2'),
        url('../media/fonts/klima-regular-web.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

h1,
h2,
h3,
.site-title {
    font-family: 'Folsom', sans-serif;
    letter-spacing: 1px;
    /* Adjust this value as needed */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 40px 100px;
    position: relative;
    flex: 1;
}


.menu-button:hover {
    background: var(--color-dark-blue);
    color: var(--color-yellow);
    cursor: pointer;
    border-color: var(--color-yellow);
}

/* Language selector — remove absolute + normalize look */
.language-selector {
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 1px;
}

.lang-wrapper {
    position: relative;
    display: inline-block;
}

.menu-button,
.language-selector select {
    background: var(--color-yellow);
    color: var(--color-blue);
    border: 1px solid transparent;
    padding: 8px 8px 8px 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 1px;
    line-height: 1.2;
    height: 38px;
    /* ✅ force same height for both (adjust if needed) */
    box-sizing: border-box;
    /* Ensure consistent box model */
    font-family: 'Klima', sans-serif;
    border-radius: 12px;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.language-selector select {
    width: fit-content;
    max-width: 200px;
}

.menu-button {
    padding: 8px 12px;
}

.language-selector select:hover+.language-chevron {
    color: var(--color-yellow);
}

.language-chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    stroke: var(--color-blue);
    fill: none;
    color: var(--color-blue);
}

.sort-chevron {
    stroke: currentColor;
    fill: none;
}

.language-selector select option {
    font-family: 'Klima', sans-serif;
    font-size: 100px;
    color: #1a2456;
    background-color: var(--color-blue);
    padding: 3px;
}

.lang-wrapper:hover::after {
    border-top-color: var(--color-blue);
}

.language-selector select:hover {
    background: var(--color-dark-blue);
    color: var(--color-yellow);
    border-color: var(--color-yellow);
    cursor: pointer;
}

.language-selector select:focus {
    outline: none;
}

/* Ensure dropdown arrow doesn't add extra space on Safari */
.language-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-position: right 10px center;
}

header {
    padding: 35px 0 10px;
    /* border-bottom: 8px solid var(--color-dark-blue); */
    position: relative;
}

/* header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30%;
    height: 8px;
    background: var(--color-yellow);
} */

h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 40px;
    line-height: 1.1;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.subtitle-animated {
    font-size: 2.4em;
    line-height: 1;
    color: var(--color-yellow);
    /* This was previously var(--color-yellow), keeping it */
    font-weight: 700;
    min-height: 80px;
    margin-top: 20px;
    position: relative;
    font-family: 'Klima', sans-serif;
    text-align: center;
}

.subtitle-animated span {
    display: none;
}

@keyframes subtitleFade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.subtitle {
    font-size: 1.1em;
    color: #4a5568;
    margin: 8px 0;
    font-weight: 400;
    position: absolute;
    opacity: 0;
}

.save-date {
    position: absolute;
    top: 40px;
    right: 0;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-dark-blue);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: none;
}

.cta-button {
    display: inline-block;
    background: var(--color-yellow);
    color: var(--color-blue);
    padding: 14px 32px;
    margin-top: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 1px solid var(--color-yellow);
    border-radius: 12px;
}

.cta-button:hover {
    background: transparent;
    color: var(--color-yellow);
    border-color: var(--color-yellow);
}

.date {
    margin: 0 0 50px;
}

header .date {
    margin-bottom: 0;
}

.date p {
    font-family: 'Klima', sans-serif;
    font-size: 1.6em;
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.5;
}

.date-pages p {
    color: var(--color-yellow);
}

.date-pages .intro a {
    color: var(--color-yellow);
    text-decoration: none;
    border-bottom: 2.5px solid var(--color-white);
    transition: all 0.3s ease;
    font-weight: 700;
}

.date-pages .intro a:hover {
    color: var(--color-white);
    border-bottom-color: var(--color-yellow);
}


.organizer {
    font-size: 0.95em;
    color: #6c757d;
    margin-top: 20px;
}

section {
    margin: 20px 0;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin: 80px 0;
}

@media (max-width: 1024px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

.two-columns section {
    margin: 0;
    background: var(--color-dark-blue);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

h2 {
    font-size: 2em;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.when {
    font-size: 1em;
    color: var(--color-yellow);
    margin-bottom: 0.6em;
    text-transform: uppercase;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}

.section-header h2 {
    margin-bottom: 0;
    margin-top: 12px;
}

.icon-building {
    width: 3rem;
    height: 3rem;
    color: var(--color-yellow);
    stroke-width: 1.5;
    /* background: var(--color-dark-blue);
    border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
}

p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--color-white)
}

.participate {
    background: var(--color-dark-blue);
    color: white;
    padding: 30px;
    margin: 20px 0;
    position: relative;
    border-radius: 12px;
    border: 1px solid transparent;
}

.participate h2 {
    color: white;
    margin-bottom: 30px;
}

.participate p {
    color: var(--color-white);
}

ul {
    margin-bottom: 30px;
}

li {
    margin-left: 40px;
    margin-top: 7px;
}

.participate ul {
    list-style: none;
    margin: 20px 0;
}

.participate li {
    padding: 10px 0 10px 30px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05em;
    position: relative;
}

li:last-child {
    border-bottom: none;
}

h4 {
    font-size: 1.2em;
    margin-bottom: 0.6em;
}

.contact {
    margin-top: 100px;
    text-align: center;
}

.contact p {
    font-size: 1.1em;
    color: var(--color-white);
    font-size: 1.3em;

}

a {
    color: var(--color-yellow);
}

.contact a {
    color: var(--color-yellow);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 4px solid var(--color-white);
    padding-bottom: 4px;
    transition: border-color 0.3s;
}

.contact a:hover {
    border-color: var(--color-yellow);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .container {
        padding: 70px 24px 80px;
    }

    header {
        padding: 40px 0 10px;
    }

    h1 {
        font-size: 2em;
    }

    .save-date {
        position: static;
        display: inline-block;
        margin-bottom: 30px;
        font-size: 0.75em;
    }

    @media (max-width: 400px) {
        h1 {
            font-size: 1.5em;
        }

        .subtitle-animated {
            font-size: 1.4em;
            min-height: 50px;
        }
    }

    h2 {
        font-size: 1.5em;
        line-height: 1.2;
    }

    .date p {
        font-size: 1.1em;
        text-align: center;
    }

    .participate {
        margin: 80px 0;
        padding: 40px 24px;
        border-radius: 12px;
    }

    .important {
        padding: 20px;
        font-size: 1em;
    }
}

/* Map page styles */
.map-table-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
    min-height: 100vh;
}

.map-section {
    flex: 3;
    /* Map takes 3/5 of the space */
    height: auto;
}

.table-section {
    flex: 2;
    /* Table takes 2/5 of the space */
    height: 100%;
    margin-top: 3rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    /* Ensures borders are clean */
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 197, 44, 0.15);
    vertical-align: top;
    /* Adds lines between rows */
}

.data-table th {
    font-weight: bold;
    /* Makes header text bold */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Set column widths for better consistency */
.data-table th,
.data-table td {
    width: 20%;
}

/* Sticky Headers */
.municipality-table-container {
    overflow-y: auto;
    max-height: 100%;
    /* Ensure it takes height from parent */
    position: relative;
    /* Context for sticky */
}

.data-table thead th {
    position: sticky;
    top: 0;
    background: var(--color-dark-blue);
    /* Match header bg */
    z-index: 10;
    /* Ensure it stays on top */
    /* Optional shadow for separation */
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(255, 197, 44, 0.3);
}

.data-table th.sortable:hover {
    color: var(--color-yellow);
    cursor: pointer;
}

/* Add to /css/style.css (and remove the old searchable-select styles) */

/* --- Searchable Language Selector --- */
.searchable-select-container {
    position: relative;
    /* This is the anchor for the absolute positioned options */
}

.searchable-select-container .lang-wrapper {
    position: relative;
}

/* Style the input to look like the select */
#language-search {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    cursor: inherit;
    line-height: inherit;
    outline: none;
}

/* Style the options container */
.searchable-options {
    display: none;
    position: absolute;
    top: 100%;
    /* Position it right below the input */
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    /* Ensure it's on top of other elements */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.searchable-options .option {
    padding: 8px 12px;
    cursor: pointer;
}

.searchable-options .option:hover {
    background-color: var(--color-dark-blue);
}


.table-title {
    margin-bottom: 1rem;
}

.municipality-table-container {
    overflow-y: auto;
}

@media (min-width: 768px) {
    .map-table-wrapper {
        display: flex;
        align-items: flex-start;
        /* Align items to the top */
        gap: 1rem;
    }
}


@media (max-width: 1024px) {
    .map-table-wrapper {
        flex-direction: column;
        gap: 0px;
    }

    .map-section,
    .table-section {
        flex: none;
        width: 100%;
    }
}

.map-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}

.map-container {
    /* Reduce space between header and map */
    position: relative;
    margin-bottom: 20px;
}

.map-legend {
    font-size: 0.9em;
    min-width: 140px;
}

.legend-scale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-separator {
    color: var(--color-white);
    font-weight: 300;
    font-size: 1.1em;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    border: 1px solid rgba(255, 197, 44, 0.3);
}

.legend-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.map-wrapper svg {
    border: none;
    /* Remove border from map */
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .map-wrapper svg {
        margin-bottom: 0px;
        margin-top: 0px;
    }
}

.map-wrapper svg path {
    cursor: pointer;
}

.municipality-table-container {
    overflow-x: auto;
    height: 100%;
    overflow-y: auto;
    margin-top: 20px;
}

#municipality-table {
    width: 100%;
    border-collapse: collapse;
}

#municipality-table th,
#municipality-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 197, 44, 0.15);
}

#municipality-table th {
    font-weight: 600;
    color: var(--color-yellow);
    position: sticky;
    top: 0;
    background: var(--color-dark-blue);
    border-bottom: 1px solid rgba(255, 197, 44, 0.3);
}

#municipality-table td:first-child {
    font-weight: 500;
}

#municipality-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Styles */
.site-footer {
    padding: 20px 0;
    margin-top: auto;
    position: relative;
    width: 100%;
    background-color: var(--color-dark-blue);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-content a {
    color: var(--color-yellow);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.homepage-date-above-title {
    color: var(--color-yellow);
    /* Yellow color */
    font-size: 1.5em;
    /* Adjust as needed */
    margin-bottom: 0px;
    /* Space between date and title */
    text-align: center;
    /* Center the text */
    font-weight: 500;
    /* Bold weight */
    font-family: 'Klima', sans-serif;
    /* Use Klima font */
    text-transform: uppercase;
}

/* Mobile full-screen menu */
@media (max-width: 768px) {
    .top-controls {
        padding: 12px 24px;
    }

    .top-controls-inner {
        padding: 0;
    }

    .container {
        padding: 70px 24px 80px;
    }

    .sidebar {
        width: 100%;
        max-width: 100%;
        top: 0;
        bottom: 0;
        height: 100vh;
        background: var(--color-darker-blue);
        backdrop-filter: blur(10px);
        border-radius: 0;
        margin-left: 0;
        border: none;
        left: -100%;
        border-right: none;
        /* Start from top */
        padding: 80px 24px 24px;
        /* leave space for sticky top-controls and reduce horizontal padding on mobile */
        z-index: 1000;
    }

    .site-title {
        display: none;
        /* Hide on mobile */
    }

    .homepage-date-above-title {
        font-size: 1em;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 60px 0;
    }

    .two-columns section {
        padding: 24px;
        border-radius: 12px;
    }

    .language-selector {
        top: 19px;
        right: 0px;
    }

    .subtitle-animated {
        font-size: 1.5em;
        min-height: 50px;

    }

}

/* Section Headers */
.section-header {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 30px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 1.5em;
    color: var(--color-white);
    margin-bottom: 10px;
    text-align: center;
}

.section-header .section-description {
    color: var(--color-white);
    font-size: 1em;
    line-height: 1.5;
    text-align: center;
    max-width: 800px;
}



/* Disable sticky on mobile */
@media (max-width: 768px) {
    .data-table thead th {
        position: static;
        box-shadow: none;
    }
}

/* Disable sticky for comparison table on desktop */
@media (min-width: 769px) {
    #comparison-table thead th {
        position: static;
        box-shadow: none;
    }
}

/* Ensure table container handles scroll for sticky header */
.municipality-table-container {
    overflow-y: auto;
    /* max-height: 600px;  Removed max-height constraint to allow full expansion */
}

/* Small maps section */
.small-maps-section {
    max-width: 100%;
    margin: 40px 0 60px;
    padding: 0;
}

.small-maps-section h2 {
    text-align: center;
    margin-bottom: 10px;
}

.small-maps-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1em;
    padding: 0 40px;
}

.small-maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.small-map-item {
    background: var(--color-dark-blue);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-map-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}



.small-map-label {
    font-weight: 600;
    color: var(--color-yellow);
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.9em;
}

.small-map-svg {
    width: 100%;
    height: auto;
}

.small-map-svg svg {
    width: 100%;
    height: auto;
    max-height: 150px;
}

@media (max-width: 768px) {
    .sort-indicator {
        display: none;
    }

    .small-maps-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        overflow-x: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .small-map-item {
        min-width: 0;
        /* Override previous min-width */
        scroll-snap-align: none;
    }
}

.small-maps-show-all {
    text-align: center;
    margin-top: 15px;
}

.small-maps-show-all button,
.show-all-button {
    background: var(--color-yellow);
    border: 1px solid transparent;
    color: var(--color-blue);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.7em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.small-maps-show-all button:hover,
.show-all-button:hover {
    background: var(--color-blue);
    color: var(--color-yellow);
    border-color: var(--color-yellow);
}

/* Show all button */
.show-all-container {
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .small-maps-section {
        padding: 0;
        margin: 30px 0 40px;
    }

    .small-maps-section h2 {
        padding: 30px 24px 0;
    }

    .small-maps-description {
        padding: 0 24px;
    }

    .small-map-item {
        flex: 0 0 180px;
        scroll-snap-align: start;
        padding: 10px;
    }

    .small-map-svg svg {
        max-height: 120px;
    }
}

/* Inline Selectors in Titles */
.inline-selector-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
}

.inline-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--color-yellow);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: var(--color-white);
    padding: 0 30px 0 4px;
    margin: 0;
    cursor: pointer;
    line-height: inherit;
    border-radius: 0;
    text-align: center;
    max-width: 100%;
}

.inline-select option {
    font-size: 1rem;
    font-weight: normal;
    color: #0a0f1e;
    background: white;
}

.inline-select:hover {
    color: var(--color-yellow);
    border-bottom-color: var(--color-white);
}

/* Hover state for the wrapper triggers hover style on chevron */
.inline-selector-wrapper:hover .inline-chevron {
    stroke: var(--color-yellow);
}

.inline-select:focus {
    outline: none;
}

/* SVG Chevron styling */
.inline-chevron {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    stroke: var(--color-white);
    fill: none;
    transition: stroke 0.3s ease;
}

/* Adjust for mobile to prevent overflow */
@media (max-width: 768px) {
    .inline-select {
        max-width: 80vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: bottom;
    }
}

/* Shared styles for Agenda and Activities (Cards & Filters) */
.filters-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    gap: 30px;
    margin-top: 0px;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1em;
    font-family: 'Klima', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-yellow);
    background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Klima', sans-serif;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-yellow);
    color: var(--color-blue);
    border-color: var(--color-yellow);
}

.date-group {
    margin-bottom: 60px;
}

.date-header-toggle {
    background: none;
    border: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    text-align: left;
    color: var(--color-yellow);
    transition: margin-bottom 0.3s ease, border-color 0.3s ease;
}

.date-header-toggle:hover {
    border-color: var(--color-yellow);
}

.date-header-toggle[aria-expanded="false"] {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.date-header-text {
    font-size: 2em;
    margin: 0;
    font-weight: 800;
    color: inherit;
    font-family: 'Folsom', sans-serif;
    text-transform: uppercase;
}

.chevron-icon {
    transition: transform 0.3s ease;
    min-width: 24px;
}

.date-header-toggle[aria-expanded="false"] .chevron-icon {
    transform: rotate(-90deg);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.events-grid.collapsed {
    display: none !important;
}

.event-card {
    background: var(--color-dark-blue);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    /* Needed for transform and stretched link */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-card:hover {
    /* border-color: rgba(255, 255, 255, 0.2); */
}

.event-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-category-tag {
    display: inline-block;
    color: var(--color-yellow);
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.event-title {
    color: var(--color-white);
    font-size: 1.6em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.event-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    width: 18px;
    height: 18px;
}

.event-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

/* Mobile: right-align register button */
@media (max-width: 768px) {
    .event-footer {
        justify-content: space-between;
    }
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-yellow);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
    border-bottom: none;
    padding-bottom: 0;
    text-decoration: none;
}

/* Stretched link to make the whole card clickable */
.event-link::after {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
    /* Disable stretched link */
}

/* Utility to disable the stretched link */
.event-link.no-stretch::after {
    content: none;
    display: none;
}

/* Disable stretched link for closing day events */
#closing-day-section .event-link::after {
    content: none;
    display: none;
}

.event-link:hover {
    color: var(--color-white);
}

.link-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
        margin-bottom: 30px;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    @media (max-width: 400px) {
        h1 {
            font-size: 1.8em;
        }
    }

    .subtitle-animated {
        font-size: 1.4em;
        min-height: 40px;
    }

    .intro {
        font-size: 1.1em;
        line-height: 1.5;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 60px 20px 60px;
    }

    .date-header-text {
        font-size: 1.5em;
    }

    .event-title {
        font-size: 1.4em;
    }

    .event-content {
        padding: 24px;
    }

    .event-description,
    .activity-description {
        font-size: 1em;
    }
}

/* Closing Day Grid - Horizontal Layout */
.closing-day-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.closing-day-grid .event-card {
    min-height: auto;
}

/* Event Header Row - Time and Category on same line */
.event-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-header-row .event-category-tag {
    margin-bottom: 0;
}

/* Event Header Row - Updated for Left Alignment */
.event-header-row {
    justify-content: flex-start !important;
    gap: 15px !important;
}

/* Category Meta - Yellow & Caps */
.category-meta {
    color: var(--color-yellow) !important;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.time-meta {
    font-weight: 700;
    color: var(--color-white);
}

.closing-day-grid.collapsed {
    display: none !important;
}