/* ============================
   GLOBAL STYLES (Shared for all)
============================ */
body {
    font-family: 'Karla', sans-serif;
}


/* ==========================================================================================================================================
                                                         RESTAURANTS STYLES
============================================================================================================================================= */

/* ============================
   Search & Filter Container 
============================ */
.restaurant-search-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
    background: linear-gradient(90deg, #4A6426 0%, #6D8E35 100%);
    height: 70px; /* Keeping the original height */
    border-radius: 20px;
    position: relative;
    box-shadow: 0 5px 8px rgba(74, 100, 38, 0.7);
}

/* ============================
   Search Input 
============================ */
.search-container {
    flex: 1;
    position: relative;
}

#restaurant-search-input {
    width: 100%;
    padding: 8px 40px 8px 15px; /* Adjusted padding */
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    height: 30px; /* Reduced height */
    outline: none;
    font-family: 'Karla', sans-serif;
    box-shadow: 0 -4px 4px rgba(74, 100, 38, 0.9);
    transition: box-shadow 0.3s ease, transform 0.2s ease-in-out;
}

#restaurant-search-input::placeholder {
    color: #999;
    font-style: italic;
    font-family: 'Karla', sans-serif;
}

/* Hover Effects */
#restaurant-search-input:hover{
    box-shadow: 0 -4px 6px rgba(74, 100, 38, 0.4);
    transform: scale(1.01);
}

/* ============================
   Filter Dropdown 
============================ */
.filter-container {
    flex: 0 0 200px;
    position: relative;
}

#restaurant-category {
    width: 100%;
    height: 30px; /* Reduced height */
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Karla', sans-serif;
    background-color: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease-in-out;
    
    /* Modern dropdown arrow */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236D8E35"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px; /* Smaller arrow */

    /* Added Dropdown Styling */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Hover & Focus Effects */
#restaurant-category:hover{
    box-shadow: 0 -4px 6px rgba(74, 100, 38, 0.4);
    transform: scale(1.02);
}

/* ============================
   Dropdown List Styling 
============================ */
#restaurant-category option {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    padding: 10px;
    background: #fff;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hover effect for options */
#restaurant-category option:hover {
    background: #6D8E35;
    color: #fff;
}

/* ============================
   Scrollbar Styling 
============================ */
#restaurant-category::-webkit-scrollbar {
    width: 8px;
}

#restaurant-category::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#restaurant-category::-webkit-scrollbar-thumb {
    background: #4A6426;
    border-radius: 4px;
}

#restaurant-category::-webkit-scrollbar-thumb:hover {
    background: #6D8E35;
}

/* ============================
   Restaurant Grid Layout
============================ */
#restaurant-grid {
    background: #9DCC2D; /* Green background */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding-top: 70px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    justify-content: center; /* Keeps grid centered */
    align-items: start;
    width: 100vw; /* Full viewport width */
    max-width: 100%;
    margin-top: -35px;
    
}

/* ============================
   Restaurant Card
============================ */
.restaurant-card {
    flex: 0 0 220px; 
    margin-bottom: 20px;
    background: #fff;
    border-radius: 55px;
    box-shadow: 0 9px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    cursor: pointer;
}

/* Hover Effect */
.restaurant-card:hover {
    transform: scale(1.03);
    box-shadow: 0 9px 6px rgba(0, 0, 0, 0.6);
}

/* ============================
   Thumbnail Container
============================ */
.restaurant-card img {
    
    width: 150px; /* Adjust the width as needed */
    height: 150px; /* Adjust the height as needed */
    object-fit: contain; /* Ensures the image covers the area without distortion */
    border-radius: 10px; /* Rounded corners */
    transition: transform 0.3s ease; /* Smooth hover effect */
    
}

/* ============================
   Title Styling
============================ */
.restaurant-card h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 5px;
    color: #333;
}


/* Load More Button Container */
.load-more-container {
    background: #9DCC2D; /* Green background */
    text-align: center;
    padding-bottom: 50px;
}

/* Button Base Styles */
#load-more-restaurants {
    padding: 12px 30px;
    background-color: #4A6426; /* Primary color */
    color: #FFFFFF; /* White text */
    border: none;
    border-radius: 25px; /* Rounded corners */
    font-size: 16px;
    font-family: "Karla", Sans-serif;
    font-weight: 600; /* Semi-bold text */
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transitions */
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
#load-more-restaurants:hover {
    background-color: #6D8E35; /* Secondary color */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 15px rgba(74, 100, 38, 0.3); /* Subtle shadow */
}

/* Active (Click) Effect */
#load-more-restaurants:active {
    transform: translateY(0); /* Reset lift */
    box-shadow: 0 2px 10px rgba(74, 100, 38, 0.3); /* Smaller shadow */
}

/* Loading State */
#load-more-restaurants.loading {
    background-color: #6D8E35; /* Secondary color */
    cursor: not-allowed; /* Disable cursor */
}

/* Disabled State */
#load-more-restaurants:disabled {
    background-color: #CCCCCC; /* Grayed out */
    cursor: not-allowed; /* Disable cursor */
}

/* Optional: Add a subtle gradient for a modern look */
#load-more-restaurants {
    background: linear-gradient(90deg, #4A6426 0%, #6D8E35 100%);
}

/* Optional: Add an icon (e.g., arrow or plus) */
#load-more-restaurants::after {
    content: '→'; /* Arrow icon */
    margin-left: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

#load-more-restaurants:hover::after {
    transform: translateX(5px); /* Move arrow on hover */
}

/* ============================
   No Restaurant Text Styling
============================ */
.no-restaurants {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #4A6426; /* Match theme color */
    margin-top: 50px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sad-emoji {
    font-size: 50px;
    margin-bottom: 10px;
}

/* ============================
   Pop-up Styling
============================ */
#restaurant-popup {
    transform: scale(0.7);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out, visibility 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

}

#restaurant-popup.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

#restaurant-popup.bounce-out {
    transform: scale(0.7);
    opacity: 0;
    visibility: hidden;
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 750px;
    height: 70vh;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

/* Background Image */
.popup-background {
    width: 100%;
    height: 400px !important;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay on the background */
.popup-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

/* Content Styling */
.popup-content {
    background: linear-gradient(247deg, #9DCC2D 0%, #4A6426 100%);
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Logo Styling */
#popup-logo {
    width: 80px;
    height:80px;
    border-radius: 20px;
    /*border: 3px solid #4A6426;*/
    position: absolute;
    top: -40px; 
    left: 20px;
    background: white;
    padding: 5px;
    margin-bottom: 20px !important;
}

/* Description */
#popup-description {
    text-align: justify;
    margin-top: 40px;
    font-size: 16px;
    font-family: "Karla", Sans-serif;
    color: #fff;
    line-height: 1.5;
}

/* Social Media Links */
.popup-socials {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.popup-socials a {
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.popup-socials a:hover {
    transform: scale(1.2);
    color: #fff;
}

/* Close Button */
#popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#popup-close:hover {
    transform: rotate(90deg);
}




/* ============================
   Responsive Design 
============================ */
/*@media (max-width: 1024px) {*/
/*    #restaurant-grid {*/
/*        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));*/
/*    }*/
/*}*/

/*@media (max-width: 768px) {*/
/*     #restaurant-grid {*/
/*        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));*/
/*    }*/
/*    .restaurant-search-filter {*/
/*        flex-direction: column;*/
/*        height: auto;*/
/*        padding: 10px;*/
/*        gap: 10px;*/
/*    }*/

/*    .search-container,*/
/*    .filter-container {*/
/*        width: 100%;*/
/*    }*/

/*    #restaurant-category,*/
/*    #restaurant-search-input {*/
/*        text-align: center;*/
/*    }*/

/*    .search-container button {*/
/*        position: static;*/
/*        width: 100%;*/
/*        margin-top: 10px;*/
/*    }*/
/*}*/



/* ==========================================================================================================================================
                                                         BOUTIQUE STYLES
============================================================================================================================================= */

/* ============================
   Search & Filter Container 
============================ */
.boutique-search-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
    background: linear-gradient(90deg, #822E31 0%, #D42027 100%);
    height: 70px; /* Keeping the original height */
    border-radius: 20px;
    position: relative;
    box-shadow: 0 5px 8px rgba(130, 46, 49, 0.8);
}


/* ============================
   Search Input 
============================ */

#boutique-search-input {
    width: 100%;
    padding: 8px 40px 8px 15px; /* Adjusted padding */
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    height: 30px; /* Reduced height */
    outline: none;
    font-family: 'Karla', sans-serif;
    box-shadow: 0 -4px 4px rgba(130, 46, 49, 0.9);
    transition: box-shadow 0.3s ease, transform 0.2s ease-in-out;
}

#boutique-search-input::placeholder {
    color: #999;
    font-style: italic;
    font-family: 'Karla', sans-serif;
}

/* Hover Effects */
#boutique-search-input:hover{
    box-shadow: 0 -4px 6px rgba(74, 100, 38, 0.4);
    transform: scale(1.01);
}

/* ============================
   Filter Dropdown 
============================ */
#boutique-category {
    width: 100%;
    height: 30px; /* Reduced height */
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Karla', sans-serif;
    background-color: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease-in-out;
    
    /* Modern dropdown arrow */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236D8E35"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px; /* Smaller arrow */

    /* Added Dropdown Styling */
    box-shadow: 0 -4px 4px rgba(130, 46, 49, 0.9);
}

/* Hover & Focus Effects */
#boutique-category:hover{
    box-shadow: 0 -4px 6px rgba(74, 100, 38, 0.4);
    transform: scale(1.02);
}

/* ============================
   Dropdown List Styling 
============================ */
#boutique-category option {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    padding: 10px;
    background: #fff;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hover effect for options */
#boutique-category option:hover {
    background: #6D8E35;
    color: #fff;
}

/* ============================
   Scrollbar Styling 
============================ */
#boutique-category::-webkit-scrollbar {
    width: 8px;
}

#boutique-category::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#boutique-category::-webkit-scrollbar-thumb {
    background: #4A6426;
    border-radius: 4px;
}

#boutique-category::-webkit-scrollbar-thumb:hover {
    background: #6D8E35;
}

/* ============================
   Boutique Grid Layout
============================ */
#boutique-grid {
    background: #ED1C24; /* Red background */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding-top: 70px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    justify-content: center; /* Keeps grid centered */
    align-items: start;
    width: 100vw; /* Full viewport width */
    max-width: 100%;
    margin-top: -35px;
    
}


/* ============================
   Boutique Card
============================ */
.boutique-card {
    flex: 0 0 220px; 
    margin-bottom: 20px;
    background: #fff;
    border-radius: 55px;
    box-shadow: 0 9px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    cursor: pointer;
}

/* Hover Effect */
.boutique-card:hover {
    transform: scale(1.03);
    box-shadow: 0 9px 6px rgba(0, 0, 0, 0.6);
}

/* ============================
   Thumbnail Container
============================ */
.boutique-card img {
    
    width: 150px; /* Adjust the width as needed */
    height: 150px; /* Adjust the height as needed */
    object-fit: contain; /* Ensures the image covers the area without distortion */
    border-radius: 10px; /* Rounded corners */
    transition: transform 0.3s ease; /* Smooth hover effect */
    
}



/* Load More Button Container */
.load-more-container-boutique {
    background: #ED1C24; /* red background */
    text-align: center;
    padding-bottom: 50px;
}

/* Button Base Styles */
#load-more-boutiques {
    padding: 12px 30px;
    background: linear-gradient(90deg, #822E31 0%, #D42027 100%);
    color: #FFFFFF; /* White text */
    border: none;
    border-radius: 25px; /* Rounded corners */
    font-size: 16px;
    font-family: "Karla", Sans-serif;
    font-weight: 600; /* Semi-bold text */
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transitions */
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
#load-more-boutiques:hover {
    background-color: #822E31; /* Secondary color */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 5px rgba(130, 46, 40, 0.9); /* Subtle shadow */
}

/* Active (Click) Effect */
#load-more-boutiques:active {
    transform: translateY(0); /* Reset lift */
    box-shadow: 0 2px 10px rgba(74, 100, 38, 0.3); /* Smaller shadow */
}

/* Loading State */
#load-more-boutiques.loading {
    background-color: #822E31; /* Secondary color */
    cursor: not-allowed; /* Disable cursor */
}

/* Disabled State */
#load-more-boutiques:disabled {
    background-color: #CCCCCC; /* Grayed out */
    cursor: not-allowed; /* Disable cursor */
}

/* Optional: Add an icon (e.g., arrow or plus) */
#load-more-boutiques::after {
    content: '→'; /* Arrow icon */
    margin-left: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

#load-more-boutiques:hover::after {
    transform: translateX(5px); /* Move arrow on hover */
}

/* ============================
   No Boutique Text Styling
============================ */
.no-boutiques {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #fff; /* Match theme color */
    margin-top: 50px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}


/* ============================
   Pop-up Styling
============================ */

#boutique-popup {
    transform: scale(0.7);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out, visibility 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

}

#boutique-popup.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

#boutique-popup.bounce-out {
    transform: scale(0.7);
    opacity: 0;
    visibility: hidden;
}


/* Content Styling */
.popup-content-boutique {
    background: linear-gradient(247deg, #822E31 0%, #ED1C24 100%);
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Logo Styling */
#popup-logo-boutique {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    /*border: 3px solid #4A6426;*/
    position: absolute;
    top: -40px; 
    left: 20px;
    background: white;
    padding: 5px;
}

/* Description */
#popup-description-boutique {
    text-align: justify;
    margin-top: 30px;
    font-size: 16px;
    font-family: "Karla", Sans-serif;
    color: #fff;
    line-height: 1.5;
}


/* Close Button */
#popup-close-boutique {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#popup-close-boutique:hover {
    transform: rotate(90deg);
}




/* ============================
   Responsive Design 
============================ */
/*@media (max-width: 1024px) {*/
/*    #boutique-grid {*/
/*        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));*/
/*    }*/
/*}*/

/*@media (max-width: 768px) {*/
/*     #boutique-grid {*/
/*        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));*/
/*    }*/
/*    .boutique-search-filter {*/
/*        flex-direction: column;*/
/*        height: auto;*/
/*        padding: 10px;*/
/*        gap: 10px;*/
/*    }*/

    

/*    #boutique-category,*/
/*    #boutique-search-input {*/
/*        text-align: center;*/
/*    }*/

/*}*/





/* ==========================================================================================================================================
                                                         LOISIR STYLES
============================================================================================================================================= */

/* ============================
   Search & Filter Container 
============================ */
.loisir-search-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
    background: linear-gradient(90deg, #DA4016 0%, #E1561A 100%);
    height: 70px; /* Keeping the original height */
    border-radius: 20px;
    position: relative;
    box-shadow: 0 5px 8px rgba(130, 46, 49, 0.8);
}


/* ============================
   Search Input 
============================ */

#loisir-search-input {
    width: 100%;
    padding: 8px 40px 8px 15px; /* Adjusted padding */
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    height: 30px; /* Reduced height */
    outline: none;
    font-family: 'Karla', sans-serif;
    box-shadow: 0 -4px 4px rgba(130, 46, 49, 0.9);
    transition: box-shadow 0.3s ease, transform 0.2s ease-in-out;
}

#loisir-search-input::placeholder {
    color: #999;
    font-style: italic;
    font-family: 'Karla', sans-serif;
}

/* Hover Effects */
#loisir-search-input:hover{
    box-shadow: 0 -4px 6px rgba(74, 100, 38, 0.4);
    transform: scale(1.01);
}

/* ============================
   Filter Dropdown 
============================ */
#loisir-category {
    width: 100%;
    height: 30px; /* Reduced height */
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Karla', sans-serif;
    background-color: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease-in-out;
    
    /* Modern dropdown arrow */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236D8E35"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px; /* Smaller arrow */

    /* Added Dropdown Styling */
    box-shadow: 0 -4px 4px rgba(130, 46, 49, 0.9);
}

/* Hover & Focus Effects */
#loisir-category:hover{
    box-shadow: 0 -4px 6px rgba(74, 100, 38, 0.4);
    transform: scale(1.02);
}

/* ============================
   Dropdown List Styling 
============================ */
#loisir-category option {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    padding: 10px;
    background: #fff;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hover effect for options */
#loisir-category option:hover {
    background: #6D8E35;
    color: #fff;
}

/* ============================
   Scrollbar Styling 
============================ */
#loisir-category::-webkit-scrollbar {
    width: 8px;
}

#loisir-category::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#loisir-category::-webkit-scrollbar-thumb {
    background: #4A6426;
    border-radius: 4px;
}

#loisir-category::-webkit-scrollbar-thumb:hover {
    background: #6D8E35;
}

/* ============================
   loisir Grid Layout
============================ */
#loisir-grid {
    background: #FA9A1F; /* Orange background */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding-top: 70px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    justify-content: center; /* Keeps grid centered */
    align-items: start;
    width: 100vw; /* Full viewport width */
    max-width: 100%;
    margin-top: -35px;
    
}


/* ============================
   loisir Card
============================ */
.loisir-card {
    flex: 0 0 220px; 
    margin-bottom: 20px;
    background: #fff;
    border-radius: 55px;
    box-shadow: 0 9px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    cursor: pointer;
}

/* Hover Effect */
.loisir-card:hover {
    transform: scale(1.03);
    box-shadow: 0 9px 6px rgba(0, 0, 0, 0.6);
}

/* ============================
   Thumbnail Container
============================ */
.loisir-card img {
    
    width: 150px; /* Adjust the width as needed */
    height: 150px; /* Adjust the height as needed */
    object-fit: contain; /* Ensures the image covers the area without distortion */
    border-radius: 10px; /* Rounded corners */
    transition: transform 0.3s ease; /* Smooth hover effect */
    
}



/* Load More Button Container */
.load-more-container-loisir {
    background: #FA9A1F; /* Orange background */
    text-align: center;
    padding-bottom: 50px;
}

/* Button Base Styles */
#load-more-loisirs {
    padding: 12px 30px;
    background: linear-gradient(90deg, #DA4016 0%, #E1561A 100%);
    color: #FFFFFF; /* White text */
    border: none;
    border-radius: 25px; /* Rounded corners */
    font-size: 16px;
    font-family: "Karla", Sans-serif;
    font-weight: 600; /* Semi-bold text */
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transitions */
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
#load-more-loisirs:hover {
    background-color: #DA4016; /* Secondary color */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 5px rgba(130, 46, 40, 0.9); /* Subtle shadow */
}

/* Active (Click) Effect */
#load-more-loisirs:active {
    transform: translateY(0); /* Reset lift */
    box-shadow: 0 2px 10px rgba(74, 100, 38, 0.3); /* Smaller shadow */
}

/* Loading State */
#load-more-loisirs.loading {
    background-color: #DA4016; /* Secondary color */
    cursor: not-allowed; /* Disable cursor */
}

/* Disabled State */
#load-more-loisirs:disabled {
    background-color: #CCCCCC; /* Grayed out */
    cursor: not-allowed; /* Disable cursor */
}

/* Optional: Add an icon (e.g., arrow or plus) */
#load-more-loisirs::after {
    content: '→'; /* Arrow icon */
    margin-left: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

#load-more-loisirs:hover::after {
    transform: translateX(5px); /* Move arrow on hover */
}

/* ============================
   No loisir Text Styling
============================ */
.no-loisir {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #fff; /* Match theme color */
    margin-top: 50px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}


/* ============================
   Pop-up Styling
============================ */

#loisir-popup {
    transform: scale(0.7);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out, visibility 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

}

#loisir-popup.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

#loisir-popup.bounce-out {
    transform: scale(0.7);
    opacity: 0;
    visibility: hidden;
}


/* Content Styling */
.popup-content-loisir {
    background: linear-gradient(247deg, #FA9A1F 0%, #DA4016 100%);
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Logo Styling */
#popup-logo-loisir {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    /*border: 3px solid #4A6426;*/
    position: absolute;
    top: -40px; 
    left: 20px;
    background: white;
    padding: 5px;
}

/* Description */
#popup-description-loisir {
    text-align: justify;
    margin-top: 30px;
    font-size: 16px;
    font-family: "Karla", Sans-serif;
    color: #fff;
    line-height: 1.5;
}


/* Close Button */
#popup-close-loisir {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#popup-close-loisir:hover {
    transform: rotate(90deg);
}




/* ============================
   Responsive Design 
============================ */
/*@media (max-width: 1024px) {*/
/*    #loisir-grid {*/
/*        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));*/
/*    }*/
/*}*/

/*@media (max-width: 768px) {*/
/*     #loisir-grid {*/
/*        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));*/
/*    }*/
/*    .loisir-search-filter {*/
/*        flex-direction: column;*/
/*        height: auto;*/
/*        padding: 10px;*/
/*        gap: 10px;*/
/*    }*/

    

/*    #loisir-category,*/
/*    #loisir-search-input {*/
/*        text-align: center;*/
/*    }*/

/*}*/

/* ============================
   Improved Mobile Responsiveness
============================ */


/* Better handling of the search filter container on small screens */
@media (max-width: 768px) {
    .restaurant-search-filter,
    .boutique-search-filter,
    .loisir-search-filter {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
        margin: 0 15px;
        width: calc(100% - 30px);
        max-width: none;
    }

    .search-container,
    .filter-container {
        width: 100%;
        flex: none;
    }

    /* Better spacing for the grid */
    #restaurant-grid,
    #boutique-grid,
    #loisir-grid {
        margin-top: -50px;
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
        gap: 15px;
    }

    /* Make cards more appropriate for mobile screens */
    .restaurant-card,
    .boutique-card,
    .loisir-card {
        flex: 0 0 calc(50% - 15px);
        padding: 10px;
        border-radius: 40px;
    }

    /* Adjust image size for smaller cards */
    .restaurant-card img,
    .boutique-card img,
    .loisir-card img {
        width: 120px;
        height: 120px;
    }

    /* Adjust popup for mobile */
    .popup-container {
        width: 95%;
        height: 80vh;
    }

    #popup-description,
    #popup-description-boutique,
    #popup-description-loisir {
        margin-top: 50px;
        font-size: 14px;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    .restaurant-card,
    .boutique-card,
    .loisir-card {
        flex: 0 0 100%;
        max-width: 220px;
    }

    /* Return to original image size on very small screens */
    .restaurant-card img,
    .boutique-card img,
    .loisir-card img {
        width: 150px;
        height: 150px;
    }

    /* Make popup more mobile friendly */
    .popup-background {
        height: 300px !important;
    }
}

/* Better transitions & touch device handling */
@media (hover: none) {
    /* Adjust hover effects for touch devices */
    .restaurant-card:hover,
    .boutique-card:hover,
    .loisir-card:hover {
        transform: none;
        box-shadow: 0 9px 8px rgba(0, 0, 0, 0.3);
    }
    
    /* Alternative touch-friendly effect */
    .restaurant-card:active,
    .boutique-card:active,
    .loisir-card:active {
        transform: scale(0.98);
    }
}

/* Fix for search input and dropdown alignment */
#restaurant-search-input,
#boutique-search-input,
#loisir-search-input,
#restaurant-category,
#boutique-category,
#loisir-category {
    width: 100%;
    box-sizing: border-box;
}

/* Improve popup scrolling */
.popup-container {
    overflow-y: auto;
    max-height: 85vh;
}

/* Improve load more button positioning */
.load-more-container,
.load-more-container-boutique,
.load-more-container-loisir {
    padding: 20px 0 50px;
    width: 100%;
}








































































































































