/**
 * Module Montagut Stores CSS - Version optimisée
 *
 * @author    Evol.digital
 * @copyright 2025 Montagut
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

/* Styling for the entire module */
.montagut-stores {
    margin-bottom: 60px;
    color: #333;
    font-family: 'Gotham', sans-serif;
}

.montagut-stores h1 {
    font-size: 28px;
    margin: 40px 0;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.montagut-stores h1:after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #000;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.montagut-stores h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.montagut-stores h2:after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: #000;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.montagut-stores .subtitle {
    font-size: 16px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Featured Stores Styling - Version améliorée et optimisée */
.featured-stores {
    margin: 50px 0;
}

.store-item {
    margin-bottom: 40px;
}

.store-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.store-card-link:hover,
.store-card-link:focus {
    text-decoration: none;
    color: inherit;
}

.store-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: #fff;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}



.store-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.store-card:hover .store-image img {
    transform: scale(1.05);
}

/* Nom du magasin en overlay sur l'image */
.store-name-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%);
    padding: 20px 15px;
    color: #fff;
    text-align: center;
}

.store-name-overlay h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Bouton découvrir en overlay */
.store-button {
    position: absolute;
    bottom: 0;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.8);
}

.store-page-button {
    left: 0;
    right: 0;
    width: 100%;
    background-color: #000;
}

.store-button:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

.store-page-button:hover {
    background-color: #000;
    color: #fff;
}

/* Lien pour voir sur la carte en bas de la card */
.store-map-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.map-link-button {
    display: inline-block;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.map-link-button:hover,
.map-link-button:focus {
    color: #000;
    text-decoration: none;
    transform: translateY(-2px);
}

.map-link-button i {
    margin-right: 5px;
    color: #000;
}

.store-info {
    padding: 20px;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.store-info-address {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.store-info-contact {
    margin-top: auto;
    font-size: 13px;
}

.store-info p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.store-info p i {
    margin-right: 8px;
    width: 16px;
    color: #777;
}

.store-info a {
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.store-info a:hover {
    color: #777;
    text-decoration: underline;
}

.store-info .store-email {
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
}

/* Store Search Styling - Version améliorée */
.store-search {
    margin: 50px 0;
}

.search-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-form select,
.search-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-form select:focus,
.search-form input:focus {

}

.search-form button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-form button:hover {
    background-color: #333;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 1);
    transform: translateY(-2px);
}

.search-form button i {
    margin-right: 8px;
    font-size: 16px;
}

.search-form .form-group {
    position: relative;
}

.search-form .form-group.focused:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    animation: focusAnim 0.3s ease;
}

@keyframes focusAnim {
    from { width: 0; left: 50%; }
    to { width: 100%; left: 0; }
}

/* Store Map Styling - Version améliorée et stylisée */
.store-map {
    margin: 50px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.store-map:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #000, #333);
    z-index: 1;
}

#map {
    height: 600px;
    width: 100%;
    z-index: 0;
}

/* Leaflet Map Customization - Version élégante */
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    width: 320px !important;
    padding: 0;
}

.store-popup {
    background: #fff;
}

/* Ajout pour l'image dans le popup */
.store-popup-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.store-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.store-popup-image:hover img {
    transform: scale(1.05);
}

.store-popup-header {
    background: linear-gradient(to right, #f8f8f8, #fff);
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.store-popup-header h4 {
    font-size: 18px;
    margin: 0 0 5px;
    font-weight: 600;
    color: #000;
}

.store-popup-header p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #777;
}

.store-popup-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.store-popup-content {
    padding: 20px;
}

.store-popup-info {
    margin-bottom: 20px;
}

.store-popup-info p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.store-popup-info p i {
    margin-right: 8px;
    margin-top: 3px;
    width: 16px;
    color: #777;
}

.store-popup-info a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.store-popup-info a:hover {
    color: #777;
    text-decoration: underline;
}

.store-popup-hours {
    background: linear-gradient(to right, #f9f9f9, #f3f3f3);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 3px solid #000;
}

.store-popup-hours h5 {
    font-size: 14px;
    margin: 0 0 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.store-popup-hours h5 i {
    margin-right: 8px;
    color: #777;
}

.store-popup-hours p {
    margin: 5px 0;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.store-popup-hours p span:first-child {
    font-weight: 500;
}

.store-popup-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.store-popup-links a {
    text-align: center;
    padding: 12px 20px;
    background: #f0f0f0;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.store-popup-links a i {
    margin-right: 6px;
}

.store-popup-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #e6e6e6;
    text-decoration: none;
}

.leaflet-marker-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.leaflet-marker-icon:hover {
    transform: scale(1.2) translateY(-5px);
}

/* Amélioration des clusters */
.marker-cluster {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    margin-left: -20px !important;
    margin-top: -20px !important;
    text-align: center;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.marker-cluster:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.marker-cluster div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
}

.marker-cluster-small {
    background-color: rgba(0, 0, 0, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(0, 0, 0, 0.7);
}

.marker-cluster-large {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Click & Collect Styling - Version améliorée */
.click-collect {
    margin: 60px 0;
    background: #f9f9f9;
    padding: 60px 30px;
    border-radius: 0;
    position: relative;
    border: 1px solid #e0e0e0;
}

.click-collect:before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 5px;
    background: linear-gradient(90deg, #000, #333);
}

.click-collect h2 {
    margin-bottom: 40px;
}

.click-collect-step {
    background: #fff;
    padding: 40px 25px;
    border-radius: 0;
   height: 530px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}


.click-collect-step:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -15px;
    width: 1px;
    background: #e0e0e0;
}

.col-md-3:last-child .click-collect-step:after {
    display: none;
}

.step-icon {
   width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    display: flex
;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}


.step-icon img {
    max-width: 95%;
    height: auto;
    transition: all 0.3s ease;
}



.click-collect-step h3 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
    text-align: center;
    transition: all 0.3s ease;
}



.click-collect-step h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 15px;
}

.click-collect-step h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: #000;
    transition: all 0.3s ease;
}



.click-collect-step p {
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
    color: #555;
}

/* Montagut World Styling - Version optimisée pour 4 colonnes */
.montagut-world {
    margin: 60px 0;
}

.world-regions {
    margin-top: 30px;
}

.region-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 25px 20px;
    margin-bottom: 30px;
    border-radius: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}



.region-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #000, #333);
    opacity: 0.1;
    transition: all 0.3s ease;
}


.region-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
}

.region-box h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #000, #333);
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: all 0.3s ease;
}



.region-box p {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

/* Loader Animation */
.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #000;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message de la carte */
.map-message {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.map-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.map-message-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.map-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loader overlay de la carte */
.map-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.map-loader-overlay p {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Styles pour l'image dans la fiche magasin - Admin */
.store-image-preview {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: #fff;
}

.store-image-actions {
    margin-top: 10px;
}

.store-image-delete {
    color: #dc3545;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
}

.store-image-delete i {
    margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .click-collect-step h4 {
        min-height: 60px;
    }
    
    .click-collect-step:after {
        display: none;
    }
}

@media (max-width: 991px) {
    .montagut-stores h1 {
        font-size: 24px;
    }
    
    .montagut-stores h2 {
        font-size: 20px;
    }
    
    .click-collect-step {
        margin-bottom: 30px;
    }
    
    .click-collect-step h4 {
        min-height: auto;
    }
    
    #map {
        height: 450px;
    }
    
    .region-box p {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .montagut-stores h1 {
        font-size: 22px;
    }
    
    .montagut-stores h2 {
        font-size: 18px;
    }
    
    .store-image {
        height: 180px;
    }
    
    .search-form {
        padding: 25px;
    }
    
    .store-button {
        font-size: 11px;
    }
    
    .click-collect {
        padding: 40px 20px;
    }
    
    .click-collect-step h3 {
        font-size: 32px;
    }
    
    .click-collect-step h4 {
        font-size: 16px;
    }
    
    #map {
        height: 350px;
    }
    
    .store-popup-links {
        flex-direction: column;
    }
    
    .store-popup-links a {
        margin: 5px 0;
    }
}

@media (max-width: 575px) {
    .montagut-stores h1 {
        font-size: 20px;
    }
    
    .search-form button {
        width: 100%;
    }
    
    #map {
        height: 300px;
    }
    
    .region-box {
        padding: 20px;
    }
    
    .leaflet-popup-content {
        width: 260px !important;
    }
    
    .store-popup-header,
    .store-popup-content {
        padding: 15px;
    }
    
    .store-button {
        padding: 10px 0;
        font-size: 10px;
    }
}

/* Rich Snippets and SEO Improvements */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.schema-org-data {
    display: none;
}

#store-country{
    height: 50px!important;
}
/* Styles modernes pour les cartes des magasins */

/* Redéfinition du style de base pour le conteneur de la carte */
.modern-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 360px; /* Hauteur fixe pour une meilleure uniformité */
    margin-bottom: 30px;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Style pour l'image de fond qui couvre tout le conteneur */
.store-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gestion de l'erreur de chargement des images */
.store-image-bg.error {
    background-image: attr(data-default);
}

/* Overlay sombre pour améliorer la lisibilité du texte */
.store-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.4) 40%, 
        rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    color: #fff;
    opacity: 1;
    transition: all 0.5s ease;
}

.modern-card:hover .store-overlay {
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.6) 40%, 
        rgba(0, 0, 0, 0.8) 100%);
}

.modern-card:hover .store-image-bg {
    transform: scale(1.1);
}

/* Style du contenu du magasin */
.store-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.store-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
}

.store-location {
    font-size: 16px;
    font-weight: 300;
    margin: 0 0 15px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

/* Informations du magasin avec style moderne */
.store-info-modern {
    margin-top: auto;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
}

.modern-card:hover .store-info-modern {
    opacity: 1!important;
}

.store-info-modern p {
    margin: 3px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.store-info-modern a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.store-info-modern a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 1);
}

/* Badge "Officiel" repositionné */
.store-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Actions en bas de la carte */
.store-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.map-link-button-modern {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.2);
}

.map-link-button-modern:hover {
    background-color: rgba(0, 0, 0, 1);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
}

.map-link-button-modern i {
    margin-right: 8px;
}

.divider {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.store-discover {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.modern-card:hover .store-discover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .modern-card {
        height: 320px;
    }
    
    .store-content h3 {
        font-size: 20px;
    }
    
    .store-location {
        font-size: 14px;
    }
    
    .store-info-modern {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .modern-card {
        height: 280px;
    }
    
    .store-overlay {
        padding: 20px;
    }
    
    .store-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .modern-card {
        height: 250px;
    }
    
    .store-badge {
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .map-link-button-modern, .store-discover {
        font-size: 12px;
    }
}

/* Styles pour les popups en format paysage */
.landscape-popup .leaflet-popup-content {
    width: 480px !important;
    padding: 0;
    margin: 0;
    max-height: 475px;
    overflow-y: auto;
}

.store-popup.landscape {
    display: flex;
    flex-direction: column;
    background: #fff;
    width: 100%;
}

.store-popup.landscape .popup-row {
    display: flex;
    flex-direction: row;
}

.store-popup.landscape .store-popup-image {
    width: 180px;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.store-popup.landscape .store-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-popup.landscape .popup-content {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.store-popup.landscape .store-popup-header {
    padding: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.store-popup.landscape .store-popup-header h4 {
    font-size: 18px;
    margin: 0 0 5px;
    font-weight: 600;
}

.store-popup.landscape .store-popup-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.store-popup.landscape .store-popup-info {
    margin-bottom: 15px;
}

.store-popup.landscape .store-popup-hours {
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.store-popup.landscape .store-popup-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
}

.store-popup.landscape .store-popup-links a {
    margin: 5px 5px 5px 0;
}

/* Style pour les heures d'ouverture */
.store-popup-hours p {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 12px;
}

.store-popup-hours p span:first-child {
    font-weight: 500;
    margin-right: 10px;
}

/* Styles pour les popups en format paysage avec zone horaires agrandie */
.landscape-popup .leaflet-popup-content {
    width: 520px !important;
    padding: 0;
    margin: 0;
    max-height: 475px;
    overflow-y: auto;
}

.store-popup.landscape {
    display: flex;
    flex-direction: column;
    background: #fff;
    width: 100%;
}

.store-popup.landscape .popup-row {
    display: flex;
    flex-direction: row;
}

.store-popup.landscape .store-popup-image {
    width: 180px;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.store-popup.landscape .store-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-popup.landscape .popup-content {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.store-popup.landscape .store-popup-header {
    padding: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.store-popup.landscape .store-popup-header h4 {
    font-size: 18px;
    margin: 0 0 5px;
    font-weight: 600;
}

.store-popup.landscape .store-popup-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.store-popup.landscape .store-popup-info {
    margin-bottom: 15px;
}

/* Styles améliorés pour les heures d'ouverture */
.store-popup.landscape .store-popup-hours {
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    max-height: 200px; /* Augmentation de la hauteur maximale */
    overflow-y: auto;
    width: 100%;
}

.store-popup-hours h5 {
    font-size: 14px;
    margin: 0 0 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.store-popup-hours h5 i {
    margin-right: 8px;
    color: #777;
}

/* Style pour les heures d'ouverture - amélioration de l'espacement */
.store-popup-hours p {
    display: flex;
    justify-content: space-between;
    margin: 8px 0; /* Augmentation de la marge */
    font-size: 13px; /* Légère augmentation de la taille */
    line-height: 1.4;
}

.store-popup-hours p span:first-child {
    font-weight: 500;
    margin-right: 15px;
    min-width: 80px; /* Garantit que les jours ont suffisamment d'espace */
}

.store-popup-hours p span:last-child {
    flex: 1;
    text-align: right;
}

.store-popup.landscape .store-popup-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
}

.store-popup.landscape .store-popup-links a {
    margin: 5px 5px 5px 0;
}

/* Correction du positionnement du popup par rapport au marker */
.leaflet-popup {
    margin-bottom: 50px; /* Décale le popup vers le haut par rapport au marker */
}

/* Garantir que le popup reste dans les limites de la carte */
.leaflet-popup-content-wrapper {
    max-height: 475px;
    overflow-y: auto;
}

/* Responsive pour petits écrans */
@media (max-width: 575px) {
    .landscape-popup .leaflet-popup-content {
        width: 300px !important;
    }
    
    .store-popup.landscape .popup-row {
        flex-direction: column;
    }
    
    .store-popup.landscape .store-popup-image {
        width: 100%;
        height: 150px;
    }
}
