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

body {
    font-family: 'Klima', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: rgba(47, 62, 139, 0.9);
    line-height: 1.7;
    min-height: 100vh;
}

/* 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: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 87, 153, 0.1);
}

/* 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: #FFC52C;
    padding-top: 0px;
    font-size: 1.4em;
    text-decoration: none;
    line-height: 1;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: rgba(47, 62, 139, 0.9);
}

.site-title span {
    display: none;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 12px;
    left: -492px;
    bottom: 12px;
    width: 470px;
    max-width: 80%;
    height: auto;
    background: rgba(47, 62, 139, 0.9);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 50px 50px 40px 40px;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 16px;
    margin-left: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.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: #ffffff;
    cursor: pointer;
    z-index: 10;
    /* above sidebar content */
}

/* 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: 1em;
    color: #FFC52C;
    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;
}

.menu-links a:hover {
    color: #ffffff;
    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 #ffffff;
}

.menu-contact h3 {
    color: #ffffff;
    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;
}

.contact-email {
    display: inline-block;
    color: #FFC52C;
    background: transparent;
    text-decoration: underline;
    text-decoration-color: #ffffff;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    font-weight: normal;
    font-size: 1em;
    padding: 4px 0;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #ffffff;
    text-decoration-color: #FFC52C;
    transform: translateX(4px);
}

.menu-info h2 {
    margin-top: 40px;
    font-size: 1.2em;
    color: #ffffff;
}

.menu-info p {
    margin-top: 15px;
    line-height: 1.6;
    color: #ffffff;
}


@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;
}


.menu-button:hover {
    background: #FFC52C;
    color: #2F3E8B;
    cursor: pointer;
}

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

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

.menu-button,
.language-selector select {
    background: white;
    color: #2F3E8B;
    border: 1px solid #FFC52C;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    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;
}

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

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

.language-selector select option {
    font-family: 'Klima', sans-serif;
    font-size: 100px;
    color: #666;
    background-color: #f9f9f9;
    padding: 3px;
}

.lang-wrapper:hover::after {
    border-top-color: white;
}

.language-selector select:hover {
    background: #FFC52C;
    color: #2F3E8B;
    border-color: #FFC52C;
    cursor: pointer;
}

.language-selector select:focus {
    outline: none;
    border-color: #FFC52C;
}

/* 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: 60px 0 30px;
    /* border-bottom: 8px solid #2F3E8B; */
    position: relative;
}

/* header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30%;
    height: 8px;
    background: #FFC52C;
} */

h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: #2F3E8B;
    margin-bottom: 24px;
    line-height: 1.1;
    text-align: center;
}

.subtitle-animated {
    font-size: 2.4em;
    line-height: 1;
    color: #FFC52C;
    /* This was previously #FFC52C, 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: #2F3E8B;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: none;
}

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

.cta-button:hover {
    background: #2F3E8B;
    color: #FFC52C;
}

.date {
    margin: 0 0 50px;
}

.date p {
    font-family: 'Klima', sans-serif;
    font-size: 1.6em;
    color: #2F3E8B;
    font-weight: 700;
    line-height: 1.5;
}

.date-pages p {
    color: #FFC52C;
}


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

section {
    margin: 20px 0;
}

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

.two-columns section {
    margin: 0;
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #FFC52C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.two-columns section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2em;
    color: #2F3E8B;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.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: #FFC52C;
    stroke-width: 1.5;
    /* background: #2F3E8B;
    border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
}

p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: rgba(47, 62, 139, 0.9);
}

.participate {
    background: #2F3E8B;
    color: white;
    padding: 30px;
    margin: 20px 0;
    position: relative;
    border-radius: 12px;
    border-left: 6px solid #FFC52C;
    box-shadow: 0 4px 20px rgba(30, 87, 153, 0.2);
}

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

.participate p {
    color: #ffffff;
}

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:before {
    content: '•';
    position: absolute;
    left: 0;
    top: 10px;
    color: #FFC52C;
    font-size: 1.5em;
    line-height: 1;
}

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


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

.contact p {
    font-size: 1.1em;
    color: rgba(47, 62, 139, 0.9);
}

a {
    color: #2F3E8B;
}

.contact a {
    color: #2F3E8B;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3em;
    border-bottom: 4px solid #FFC52C;
    padding-bottom: 4px;
    transition: border-color 0.3s;
}

.contact a:hover {
    border-color: #2F3E8B;
}

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

    header {
        padding: 60px 0 35px;
    }

    h1 {
        font-size: 2em;
    }

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

    h2 {
        font-size: 1.8em;
    }

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

    .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: 20px;
    height: 100vh;
}

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

.table-section {
    flex: 1;
    /* Table takes 1/3 of the space */
    height: 100%;
}

@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: 20px;
}

.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: #666;
    font-weight: 300;
    font-size: 1.1em;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    border: 1px solid #e2e8f0;
}

.legend-label {
    font-size: 0.85em;
    color: #4a5568;
    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;
    font-size: 0.8em;
}

#municipality-table th,
#municipality-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

#municipality-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2F3E8B;
    position: sticky;
    top: 0;
}

#municipality-table th:last-child {
    text-align: right;
}

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

#municipality-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #4a5568;
}

/* Footer Styles */
.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    padding: 20px 0;
    margin-top: 40px;
    position: relative;
    width: 100%;
}

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

.footer-content a {
    color: #1e5799;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: #0d3a66;
    text-decoration: underline;
}

.homepage-date-above-title {
    color: #FFC52C;
    /* Yellow color */
    font-size: 1.7em;
    /* Adjust as needed */
    margin-bottom: 0px;
    /* Space between date and title */
    text-align: center;
    /* Center the text */
    font-weight: 700;
    /* 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: calc(100% - 20px);
        max-width: calc(100% - 20px);
        top: 10px;
        bottom: 10px;
        height: auto;
        background: rgba(47, 62, 139, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        margin-left: 10px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        left: -100%;
        border-right: none;
        /* Start from top */
        padding: 60px 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;

    }

}