:root {
    --primary-color: #990000;
}

/* header stuff */
.main-header {
    background-color: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.main-header h1 a {
    text-decoration: none; 
    color: #333;
    font-weight: 600;
}

/* algemene body stijl */
body {
    font-family: system-ui, sans-serif;
    margin: 0;
    background-color: #F4F4F4;
}

/* layout */
.container {
    display: flex;
    flex-wrap: wrap; 
    max-width: 1400px;
    margin: 0 auto;
}

.content-wrapper {
    flex: 3;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

/* sidebar rechts */
.sidebar-rss {
    flex: 1; 
    min-width: 280px;
    padding: 1rem;
    background-color: #FFFFFF;
    border-left: 1px solid #DDD;
}

/* kaart */
.map-container {
    width: 100%;
    height: 500px;
    background-color: #E0E0E0;
    flex-shrink: 0;
}

.map-container .ol-viewport {
    width: 100%;
    height: 100%;
}

.ol-feature {
    cursor: pointer;
}

/* popup op de kaart */
.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    min-width: 280px;
    transform: translateX(-50%);
}
.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 50%;
    margin-left: -10px;
}
.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 50%;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
    font-size: 1.5rem;
    color: #555;
}
.ol-popup-closer:hover {
    color: #000;
}

/* lijst van events */
.list-container {
    max-height: 400px;
    overflow-y: auto;
}

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

.event-list-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.event-list-content {
    display: flex;
    flex-direction: column; 
    gap: 0.25rem; 
}

.event-list-content strong {
    font-size: 1.1rem;
    color: #333;
}

/* Stijl filterbalk*/
.filter-controls {
    background-color: #fff;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.filter-group select,
.filter-group input[type="date"],
.filter-button {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.filter-button {
    background-color: var(--primary-color, #E60000);
    color: white;
    cursor: pointer;
    border: none;
}

.filter-button.reset {
    background-color: #666;
}

.filter-button:hover {
    opacity: 0.8;
}

/* cluster stijl */
.ol-feature {
    color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.ol-feature::before {
    content: '';
    display: block;
    
    width: 30px;
    height: 30px;
    
    margin-top: -15px; 
    margin-left: -15px;

    border-radius: 50%;
    background: var(--primary-color, #E60000);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    
    will-change: transform;
}

/* RSS Feed Style */
.sidebar-rss {
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

#rss-feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rss-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.rss-item:last-child {
    border-bottom: none;
}

.rss-title {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.rss-title:hover {
    color: var(--primary-color, #E60000);
}

.rss-description {
    font-size: 0.85rem;
    color: #555;
    margin: 0.25rem 0 0 0;
}

/* toon op kaart knop */

.event-list-content span {
    font-size: 0.9rem;
    color: #555;
}

.event-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.event-list-actions a {
    font-size: 0.875rem;
}

.map-focus-button {
    background: none;
    border: 1px solid var(--primary-color, #E60000);
    color: var(--primary-color, #E60000);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.map-focus-button:hover,
.map-focus-button:focus {
    background-color: var(--primary-color, #E60000);
    color: white;
    outline: 2px solid var(--primary-color, #E60000);
    outline-offset: 1px;
}
    
.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}