
/* //////////////// LOCATIONS GRID /////////////////// */

#locations-grid .locations-grid-inner { 
    width: 85%; 
    margin: 40px auto; 
    position: relative;
}

#locations-grid .boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 5px;
    padding: 20px 0;
    clear: both;
}

#locations-grid .box {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Makes the box square */
    background-size: cover;
    background-position: center;
    background-color: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s;
    text-decoration: none; /* Ensure links have no text decoration */
    color: inherit; /* Ensure text color inherits from parent */
    display: none; /* Initially hide all boxes */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#locations-grid .box.visible {
    display: flex; /* Show boxes in flex layout */
    opacity: 1;
}

#locations-grid .location-name {
    color: #FFF;
    font-size: 16px;
    line-height: 20px;
    font-weight: bold;
    width: 100%;
    padding: 50px 0 15px 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0.6586835417760855) 0%, rgba(102,102,102,0) 100%);
}

#locations-grid .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0daab2; 
    opacity: 0;
    display: flex;
    justify-content: flex-start; 
    align-items: flex-start;
    transition: opacity 0.3s;
    padding: 15px;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
}

#locations-grid .box:hover .overlay {
    opacity: 1;
}

#locations-grid .description {
    color: #FFF;
    font-size: 12px;
    line-height: 16px;
    text-align: left; 
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
}

/* Load More Button */

#load-more {
    display: block;
    margin: 20px auto 60px auto;
    padding: 10px 20px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
    background: rgb(44,173,194) !important;
    background: linear-gradient(90deg, rgba(44,173,194,1) 0%, rgba(52,178,126,1) 100%) !important; 
    border-radius: 100px; -webkit-border-radius: 100px;
    transition: all 0.3s ease;
}

#load-more i { margin-left: 10px; }

#load-more:hover { padding: 10px 40px; }


/* Media Queries for responsive grid */
@media (max-width: 599px) {
    #locations-grid .boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 799px) {
    #locations-grid .boxes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 800px) and (max-width: 999px) {
    #locations-grid .boxes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1000px) and (max-width: 1799px) {
    #locations-grid .boxes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1800px) {
    #locations-grid .boxes-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Grid Filter Buttons */

.show-filters-btn { 
    display: inline-block;
    margin: 0 20px 10px 0;
    padding: 10px 15px; 
    color: #FFF !important;
    border-radius: 100px; 
    text-align: left; 
    padding-right: 50px; 
    background: url('../img/icons-misc/icon-filter.png') no-repeat right 15px center; 
    background-size: 25px; 
    background-color: #0daab2;
    transition: background 0.3s;
}
.show-filters-btn:hover { background-color: #31b099; color: #FFF !important; }
.show-filters-btn.active { color: #FFF !important; background: url('../img/icon-close.png') no-repeat right 15px center; background-size: 20px; background-color: #31b099;  }
.show-filters-btn.active:hover { background-color: #0daab2; color: #FFF !important; }

.grid-filters { 
    display: none; 
    text-align: left; 
    margin-bottom: 20px; 
    padding: 15px; 
    border-radius: 15px; 
    background-color: #EEE; 
}

.filter-button { 
    display: inline-block; 
    padding: 5px 15px; 
    margin: 0 2px 4px 0; 
    background: #999; 
    color: white; 
    border: none; 
    border-radius: 100px; 
    cursor: pointer; 
    transition: background 0.3s; 
    min-width: 60px;
    filter: none; 
    width: auto;
}

.filter-button:hover { background: #777; color: #FFF; }
.filter-button.active { background: #222; color: #FFF; }

/* Grid Map Switch */

.grid-map-switch { 
    height: 48px; 
    display: flex; 
    float: right; 
    text-align: right; 
    overflow: hidden; 
    border: 2px solid #222; 
    border-radius: 100px; 
    overflow: hidden; 
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    font-size: 0;
    margin-top: -1px;
}
.grid-map-switch a { height: 100%; width: 50px; display: inline-block; background-size: 20px !important; }

.grid-map-switch a.grid-view { background: url('../img/icons-misc/icon-grid-grey.png') no-repeat center;  }
.grid-map-switch a.map-view { background: url('../img/icons-misc/icon-map-grey.png') no-repeat center; }
.grid-map-switch a.grid-view.active { background: url('../img/icons-misc/icon-grid-white.png') no-repeat center; background-color: #222; }
.grid-map-switch a.map-view.active { background: url('../img/icons-misc/icon-map-white.png') no-repeat center; background-color: #222; }

#map-view { width: 100%; height: 500px; margin-bottom: 40px; margin-top: 20px; }
#map-view .category-map { width: 100%; height: 500px; display: block; background: #EEE; border-radius: 10px; -webkit-border-radius: 10px; }
#map-view .category-map iframe + div { border:none !important; }


/* ////////////////////////////////////////////////////////////////////////////////////////////////// */
/* /////////////////////////////////////// RESPONSIVE STYLING /////////////////////////////////////// */
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */


/* //////////////////////////////// LARGE MOBILE //////////////////////////////// */  

@media screen and (min-width: 480px) {

    .grid-filters { width: auto; }


}

/* //////////////////////////////// LARGE MOBILE //////////////////////////////// */  

@media screen and (min-width: 600px) {

.filter-button { padding: 10px 20px; }

}

/* //////////////////////////////// IPAD PORTRAIT //////////////////////////////// */  

@media screen and (min-width: 800px) {

    #locations-grid .boxes-grid { gap: 10px; }

    #locations-grid .description { font-size: 14px; line-height: 18px; }

    .show-filters-btn { display: none; }
    .grid-filters { display: inline-block; padding: 0; background-color: transparent; position: relative; filter: none; }

    .grid-map-switch { height: 50px; }
    .grid-map-switch a { width: 50px; background-size: 25px !important; }

    #map-view { margin-bottom: 60px; }


}

/* //////////////////////////////// LAPTOP //////////////////////////////// */  

@media screen and (min-width: 960px) {


}

/* //////////////////////////////// DESKTOP //////////////////////////////// */  

@media screen and (min-width: 1026px) {


}

/* //////////////////////////////// LARGE SCREEN //////////////////////////////// */  

@media screen and (min-width: 1250px) {


}

/* //////////////////////////////// LARGE SCREEN //////////////////////////////// */  

@media screen and (min-width: 1450px) {

    #locations-grid .location-name { font-size: 20px; line-height: 30px; }
    #locations-grid .description { font-size: 16px; line-height: 25px; }


}

/* //////////////////////////////// EXTRA LARGE SCREEN //////////////////////////////// */  

@media screen and (min-width: 1800px) {


}

/* //////////////////////////////// HIGH RES SCREEN //////////////////////////////// */  

@media screen and (min-width: 2000px) {


}







