#rdd{
    display: flex;
    align-items: stretch;
    height: 570px;
}
#rdd-left{
    display: flex;
    flex-direction: column;
    width: 50%;
}
#rdd-right{
    width: 50%;
}
#rdd-events-map{
    width: 100%;
    height: 100%;
}

#rdd-events-filters{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    z-index: 1;
}

#rdd-events-filters .filter-group {
    width: 100%;
    flex: 1;
    min-width: 150px;
}

.filter-group:last-child {
    margin-top: 30px;
}


@media (max-width: 1100px) {
	.filter-group:last-child {
		margin-top: 5px;
	}
}

@media (max-width: 768px) {
    #rdd {
        flex-direction: column-reverse;
        height: auto;
    }
    #rdd-left,
    #rdd-right {
        width: 100%;
    }
	
    #rdd-right {
        height: 400px;
    }

    #rdd-events-map {
        height: 100%;
        min-height: 400px;
    }

    #rdd-events-filters {
        flex-direction: column;
        flex: 1;
        gap: 15px;
    }
}


#rdd-events-filters label {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 5px;
}

#rdd-events-filters select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Event List */
#rdd-events-list{
    flex: 1;
    overflow-y: auto;
    height: auto;
}

.event-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.event-item:nth-child(even) {
    background: #f5f5f5;
}
.event-item .event-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}
.event-item .event-title:hover {
    color: #E03D8C;
}
.event-item .event-location {
    font-size: 14px;
    color: #666;
}
.event-item .event-description {
    font-size: 14px;
    margin-top: 10px;
}

.event-item.selected{
    background: #E03D8C;
    border-left: 2px solid #E03D8C;
}

.event-item.selected .event-title,
.event-item.selected .event-description,
.event-item.selected .event-location,
.event-item.selected a{
    color: #fff!important;
}

.event-image{
    width: 100px;
    height: 100px;
    margin-right: 15px;
    flex-shrink: 0;
    outline: 1px solid #eee;
    background: #fff;
    background-size: cover;
    background-position: center center;
}

@media (max-width: 768px) {
    .event-item {
        display: block;
    }
    .event-image{
        width: 150px;
        height: 150px;
        margin-right: 0px;
        margin-bottom: 15px;
    }
}


/* Loading */
.loading-message{
    font-size: 16px;
    color: #000;
    text-align: center;
    margin-top: 20px;
}


select{
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;

}
select:hover{
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}


#show-past-events {
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    vertical-align: middle;
    margin-right: 10px;
}
#show-past-events:hover {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    width: 30px;
    height: 30px;
    border: 0.15em solid currentColor;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
  
    display: grid;
    place-content: center;
}
input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
    /* Windows High Contrast Mode */
    background-color: #333;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}
input[type="checkbox"]:checked:after {
    content: none!important;
}