.map-wrapper {
    height: 400px;
    position: relative;
    transition: height 0.5s ease-in-out;
}

#map {
    width: 100%;
    height: 100%;
}

/* Hide the infowindow close button */
.gm-style-iw-chr {display: none;}

/* Add little triangle under infowindow */
.gm-style .gm-style-iw-tc::after {
    background: #fff;
    -webkit-clip-path: polygon(0 0, 50% 100%, 100% 0);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    content: "";
    height: 12px;
    left: 0;
    position: absolute;
    top: -1px;
    width: 25px;
}

/* Remove weird google maps styles */
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: 1000px !important;
}
.gm-style .gm-style-iw-c {
    padding: 0px !important;
}






/* Style for the tooltip container */
.event-tooltip {
    position: relative;
    width: 300px;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Style for the close button */
#close-tooltip {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background-color: #ff5c5c;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

/* Style for the event tooltip card */
.event-tooltip-card {
    width: 100%;
    padding: 12px;
}

/* Style for the event image */
.event-tooltip-image {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
    vertical-align: top;
}

/* Style for the tooltip information */
.event-tooltip-info {
    display: inline-block;
    width: 73%; /* The remaining width after the image */
    vertical-align: top;
}

/* Title styling */
.event-tooltip-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
    /* text-align:center; */
}

/* Date styling */
.event-tooltip-date {
    font-size: 14px;
    color: #777;
    margin: 0;
    /* text-align: right; */
}







/*

.event-tooltip {
    padding: 10px;
}
.event-tooltip-image {width: 50px; height: 50px;}
.event-tooltip-title {
    font-size: 18px;
}
.event-tooltip-date {}

*/






.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay color */
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    pointer-events: none; 
    z-index: 20;
}

.map-wrapper.shrink .map-overlay {
    opacity: 1;
}

.view-switcher {
    position: absolute;
    z-index: 30;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    top: 10px;
    right: 50%;
    transform: translateX(50%);
}

.view-switcher-btn {
    cursor: pointer;
}

.view-switcher-btn.active {
    background-color: #02A67F;
    color: #fff;
}

.view-switcher-left {
    padding: 10px;
}

.view-switcher-right {
    padding: 10px;
}

.events-wrapper {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.event-card {
 	flex: 1 1 300px;
    max-width: 400px; 
    height: auto; 
/*
    flex-basis: 300px;
    flex-grow: 1;
*/
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: 200px;
    background-color: #ccc;
    background-size: cover; /* Changed from contain to cover */
    background-position: center;
    background-repeat: no-repeat; /* No tiling */
}

.event-name {
    font-size: 20px;
}

.event-card-info {
    padding: 10px;
    margin-top: 10px;
    flex-grow: 1; 
}

#event-filter-form {
	display: flex;
    flex-direction: row;
    gap: 10px;
}

.list-view {
    padding: 30px 30px;
}

.filters { 
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#event-filter-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.form-check {
    width: auto; /* Default width */
    flex: 0 1 auto; /* Allow each item to grow but maintain its default width */
}

/*Group event css start*/
.group-events {
    overflow: auto;
    max-height: 215px;
    min-width: 220px;
}

.simplebar-content-wrapper:focus-visible {
    outline: none;
}
.custom-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 9999;       /* Very high to be on top */
    pointer-events: auto; /* Ensure it receives mouse events */
}

.marker-container {
    cursor: pointer;
    position: relative;
    width: 45px;
    height: 45px;
    background-image: url('/wp-content/uploads/2025/07/ic-group-location.png'); /* The background marker icon */
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-icon {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    left: 12px;
    top: 12px;
}

.marker-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #02A67F;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}
/*Group event css end*/

/* Make the form-check elements 100% width only after 768px */
@media (max-width: 768px) {
    .event-tooltip {
     width: unset !important;  
    }
    .form-check {
        width: 100%; /* Full width for form-check items after 768px */
    }

    #event-filter-form {
        flex-direction: column; /* Stack form-check items vertically */
    }
    
    .event-tooltip:focus-visible,.group-events:focus-visible, .simplebar-wrapper:focus-visible,.gm-style .gm-style-iw:focus-visible {
        outline: 0px;
    }

 
}

@media (max-width: 430px){
    .group-events {  
    min-width: 250px;
}
    .event-tooltip-info {   
    width: 65%; /* The remaining width after the image */   
}
}