/**
 * Styles pour le plugin Buro Localisation
 * Rouge principal: #D70108
 */

/* === CONTENEUR PRINCIPAL === */
.buro-localisation-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* === NAVIGATION DES CONTINENTS === */
.buro-continents-nav {
    display: flex;
    align-items: center;
    gap: 5px;
  margin: 75px 0;
}

.buro-continents-nav .title {
    font-weight: 500;
  font-size: 24px;
}

.buro-continents {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.buro-continent-btn {
    padding: 8px 16px;
    border: 1px solid #DEDEDE;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: normal;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.buro-continent-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color:#D70108
}

.buro-continent-btn.active {
    background: #D70108;
    color: white;
    border-color: #D70108;
}

/* === LOADER === */
.buro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.buro-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #D70108;
    border-radius: 50%;
    animation: buro-spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* === HEADER CONTINENT === */
.buro-continent-header {
    display: none; /* Masquer comme dans votre design */
}

/* === LAYOUT AVEC CARTE === */
.buro-content-layout {
    display: grid;
    gap: 20px;
    align-items: start;
    margin: 0;
    min-height: 600px;
}

.buro-content-layout.with-map {
    grid-template-columns: 50% 50%;
}

.buro-content-layout.full-width {
    grid-template-columns: 1fr;
}

/* === GRILLE DES PAYS === */
.buro-localisation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    background: white;
}

.buro-localisation-item {
    background: white;
    overflow: hidden;
    transition: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.buro-localisation-item:hover {
    transform: none;
    box-shadow: none;
}

.buro-localisation-img {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.buro-localisation-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    border-radius: 5px;
}

.buro-localisation-item:hover .buro-localisation-img img {
    transform: none;
}

.buro-country-overlay {
    display: none; /* Masquer comme dans votre design */
}

.buro-country-info {
    padding: 15px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.buro-country-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.buro-country-info h4 a{
    color: #333;
    text-decoration: none;
}
.buro-country-description {
    display: none; /* Masquer comme dans votre design */
}

/* === BOUTONS === */
.buro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: #D70108;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: normal;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 17px;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: auto;
     font-weight: 400;
}

.buro-btn:hover {
    background: #ffffff;
    transform: none;
    box-shadow: none;
    color: #D70108;
   
}

.buro-btn-primary {
    background: #D70108;
    border: 1px solid #D70108;
}

.buro-btn-icon {
    display: none; /* Masquer la flèche comme dans votre design */
}

/* === CARTE === */
.buro-localisation-map {
    position: sticky;
    top: 0;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    height: 100vh;
}

.buro-map-header {
    display: none; /* Masquer le header comme dans votre design */
}

#buro-map {
    height: 100vh;
    position: relative;
}

.buro-map-loading,
.buro-map-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #666;
}

/* === CARTE PLEIN ÉCRAN === */
.buro-map-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

.buro-map-fullscreen #buro-map {
    height: 100vh;
}

/* === MARQUEURS DE CARTE === */
.buro-advanced-marker {
    position: relative;
    cursor: pointer;
}

.buro-marker-content {
    background: #D70108;
    border: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.buro-advanced-marker:hover .buro-marker-content {
    transform: scale(1.2);
}

/* === INFO WINDOW === */
.buro-info-window {
    max-width: 280px;
   padding-top: 20px;
}



.buro-info-content h4 {
    margin: 0 0 0px 0;
    color: #333;
    font-size: 1em;
    font-weight: bold;
}

.buro-info-category {
       font-weight: bold;
    padding: 5px 0;
    font-size: 0.8em;
    display: block;
}

.buro-info-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 8px;
}

.buro-info-location {
    color: #666;
    margin: 0 0 8px 0;
    font-size: 0.85em;
}

.buro-info-excerpt {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    line-height: 1.3;
    color: #333;
}

.buro-info-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #D70108;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-size: 0.85em;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
        border-radius: 10px;
}

.buro-info-btn:hover {
    background: #b8010a;
     color: white;
}

/* === MESSAGES D'ERREUR === */
.buro-error {
    text-align: center;
    padding: 40px;
    color: #D70108;
    background: #fef7f7;
    border: 1px solid #f5c6cb;
}

.buro-no-countries {
    text-align: center;
    padding: 40px;
    color: #666;

}
.buro-bureaux-count{
    font-size: 12px;
    color:#ccc;
}
.gm-style-iw-chr{
position: absolute;
    right: 0;
    top: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .buro-content-layout.with-map {
        grid-template-columns: 1fr;
    }
    
    .buro-localisation-map {
        position: relative;
        top: 0;
        order: 2;
        height: 400px;
        border:0

    }
    
    #buro-map {
        height: 400px;
    }
    
    .buro-localisation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .buro-continents {
        flex-direction: column;
        align-items: stretch;
    }
    
    .buro-continent-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .buro-localisation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
   
    
    .buro-localisation-img {
        height: 120px;
    }
    
    .buro-country-info {
        padding: 12px;
        min-height: 100px;
    }
    
    .buro-localisation-map {
        height: 300px;
    }
    
    #buro-map {
        height: 300px;
    }
    .grillealaune .e-loop-item:nth-of-type(2){
        width: auto;
    grid-area: auto !important;
    }
    .grillealaune .e-loop-item:nth-of-type(1) {
    grid-area: auto;
    max-width: 585px;
}
}

@media (max-width: 480px) {
      .buro-continents-nav {
        padding: 15px;
        flex-wrap: wrap;
        margin-bottom: 15px;
        margin-top: 0;
        text-align: center;
    }
    .buro-continents-nav .title{
        width: 100%;
    }
    .buro-continent-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
        .buro-continents {
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .buro-continent-btn {
    width: 45%;
}
       .buro-country-info {
        padding: 10px 0;
        min-height: 90px;
    }
    
    .buro-country-info h4 {
        font-size: 1em;
    }
    
    .buro-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    #buro-map {
        height: 250px;
    }
    
    .buro-localisation-map {
        height: 250px;
    }
}
