/* Version 1.1 - Cache Buster */
/* General layout for the gym locator container */
.gym-locator-container {
    display: flex;
    height: 85vh; 
    overflow: hidden; 
    margin: 0 auto;
}

.e-con.e-flex>.e-con-inner {
    max-width: 100vw !important;
}

/* Sidebar styling */
.gym-locator-sidebar {
    width: 40%;
    background-color: #f8f8f8;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    max-width: 500px; 
	overflow-y: scroll;
}

/* Search bar styling */
.gym-locator-sidebar input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Search button styling */
.gym-locator-sidebar button {
    width: 100%;
    padding: 10px;
    background-color: #d0222b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.gym-locator-sidebar button:hover {
    background-color: #b71c1c;
}

/* Gym list container */
#gym-list {
    margin-top: 20px;
}

/* Individual gym item in the list */
.gym-item {
    padding: 10px;
    background-color: #ffffff;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gym-item h4 {
    margin: 20px 0px;
    font-size: 15px !important;
    font-family: "Flower Kingdom", Sans-serif !important;
    color: #000;
}

.gym-item p {
   margin: 5px 0 10px;
    font-family: "Baloo Tamma 2", Sans-serif;
    font-size: 17px;
    color: #000;
}

.gym-item p a{color: #000;}
.gym-item p a:hover{color: #EAB53D !important;}

/* Buttons inside each gym item */
.gym-buttons {
    display: inline-flex;
    justify-content: space-between;
    margin-top: 10px;
    margin-left: -10px;
}

.view-gym-btn, .get-directions-btn {
    width: 100%;
    padding: 10px;
    background-color: #EAB53D;
    color: black !important;
    border-radius: 5px;
    font-size: 16px;
    margin: 0px 10px !important;
}

.view-gym-btn:hover, .get-directions-btn:hover {
    background-color: #EAB53D;
    color: #fff !important;
}

/* Active gym item (highlighted) */
.gym-item.active {
    border: 2px solid #EAB53D !important;
}

/* Map container */
.gym-locator-map {
    flex-grow: 1;  
    height: 100vh; 
    width: 100%; 
    position: relative;
	z-index:1 !important;
}

/* Custom marker icon */
.gym-marker {
    background-color: #EAB53D;
    border-radius: 50%;
    color: black !important;
    text-align: center;
    line-height: 40px;
    width: 50px !important;
    height: 50px !important;
    border: 5px solid white;
    font-size: 24px !important;
}

/* Responsive adjustments */

/* For tablets and smaller screens (max-width: 1024px) */
@media (max-width: 1024px) {
    .gym-locator-container {
        flex-direction: column-reverse; 
        height: auto; 
    }

    .gym-locator-sidebar {
        width: 100%;
        height: 100% !important; 
    }

    .gym-locator-map {
        width: 100%; 
        height: 60vh; 
    }
}

/* For mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .gym-locator-container {
        flex-direction: column-reverse;
        height: auto; 
    }

    .gym-locator-sidebar {
        width: 100vw;
		max-width:96vw;
        height: 40vh;
    }

    .gym-locator-map {
        width: 100%; /* Full width for the map */
        height: 50vh;
    }
	.gym-locator-container{overflow:hidden !important;}
}

/* For small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
	.gym-locator-container{overflow:hidden !important;}
    .gym-locator-container {
        flex-direction: column-reverse; 
    }

    .gym-locator-sidebar {
        width: 100%;
        height: 40vh;
    }

    .gym-locator-map {
        width: 100%;
        height: 40vh; 
    }
}

.sidebar-marker-number {
	display:none;}

.gym-marker .marker-number {
    color: white;
    font-weight: bold;
}