:root {
    --primary-color: #133b32;
    --primary-dark: #1e5348;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Trebuchet MS, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header>* {
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    margin: 0 !important;
}

header img#logo {
    margin: 0 0 0.5rem 0;
    width: 180px;
    height: 180px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
    max-width: 1200px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.language-switcher a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1rem;
    font-weight: 700;
}

.language-switcher a:hover {
    color: white;
}

.language-switcher .lang-current {
    color: white;
    font-weight: 700;
}

.language-switcher .lang-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs {
    font-size: 1rem;
    font-weight: 700;
}

.breadcrumbs ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumbs li::after {
    content: " /";
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.5rem;
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: white;
}

main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

main h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

main h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

/* Filters */
.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.filters-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.filters-controls {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.filters-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.filter-label-text {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.filter-checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkbox-label span {
    line-height: 1.4;
}

.filters select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    min-width: 150px;
}

.filters select:hover {
    border-color: var(--primary-color);
}

.filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-row {
    margin-bottom: 1.5rem;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    width: 100%;
    max-width: 400px;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:hover {
    border-color: var(--primary-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(19, 59, 50, 0.1);
}

/* Map */
#map {
    width: 100%;
    height: 500px;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Listings */
main>h2+ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

main>h2+ul li {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

main>h2+ul li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

main>h2+ul a {
    display: block;
    padding: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    font-size: 1.1rem;
}

main>h2+ul a:hover {
    color: var(--primary-dark);
}

footer {
    background: var(--bg-gray);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

footer p {
    margin: 0;
}

/* Venue detail page layout */
.venue-detail {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.venue-content {
    flex: 1;
    min-width: 0;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.venue-content h1 {
    color: var(--primary-color);
    margin-top: 0;
}

.venue-content p {
    color: var(--text-light);
}

.venue-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.venue-content a:hover {
    text-decoration: underline;
}

.events-section,
.regular-program-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.events-section h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.event-item:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
    border-color: var(--primary-light);
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.event-details {
    display: grid;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.event-details p {
    margin: 0;
    color: var(--text-dark);
}

.event-details strong {
    color: var(--text-dark);
    font-weight: 600;
}

.event-details a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.event-details a:hover {
    background: var(--primary-dark);
}

.regular-program-section {
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    border: 2px solid var(--primary-dark);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.venue-content .info-message {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.venue-map-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: 6rem;
}

.venue-map {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Button Styles */
.website-cta {
    margin: 1.5rem 0;
}

.venue-info-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 6px rgba(19, 59, 50, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    color: #f4ecdf !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #f4ecdf !important;
    box-shadow: 0 4px 12px rgba(19, 59, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(19, 59, 50, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(19, 59, 50, 0.15);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 59, 50, 0.25);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-contribute-filter {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #f4ecdf !important;
    box-shadow: 0 4px 12px rgba(19, 59, 50, 0.3);
}

.btn-contribute-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(19, 59, 50, 0.4);
}

.btn-contribute-filter:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .btn-contribute-filter {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        align-self: stretch;
        text-align: center;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-controls {
        flex-direction: column;
    }
}

.website-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    main h1 {
        font-size: 1.75rem;
    }

    .filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filters label {
        width: 100%;
    }

    .filters select {
        width: 100%;
    }

    .venue-detail {
        flex-direction: column;
    }

    .venue-map-sidebar {
        flex: 1;
        position: static;
        width: 100%;
    }

    .venue-map {
        height: 400px;
    }

    main>h2+ul {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
.contribution-form {
    max-width: 700px;
    margin: 2rem 0;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(19, 59, 50, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary-color);
    width: 1.1rem;
    height: 1.1rem;
}

.form-group label:has(input[type="radio"]) {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

#form-status {
    font-weight: 500;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

#location-map {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: crosshair;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#edit-location-map {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: crosshair;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#location-map .leaflet-popup {
    font-size: 0.875rem;
}

#edit-location-map .leaflet-popup {
    font-size: 0.875rem;
}

.form-group input[readonly],
.form-group textarea[readonly] {
    background-color: var(--bg-gray);
    cursor: not-allowed;
}

.form-group input[type="text"][readonly] {
    background-color: var(--bg-gray);
    cursor: not-allowed;
}

.form-group input[type="text"][readonly].monospace {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

.form-group small {
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

#form-status {
    font-weight: 500;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    background: #f0fdf4;
}

#form-status p {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

#form-status p.form-status-success {
    color: #10b981;
}

#form-status p.form-status-error {
    color: #ef4444;
    background: #fef2f2;
}

.venue-current-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.venue-current-info h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.venue-current-info p {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.venue-current-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.venue-current-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contribution-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 1.25rem;
    }
}
