/* BASE */
body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    overflow: hidden;
}

#map { position: absolute; top: 0; bottom: 0; width: 100%; z-index: 1; }

/* BOUTON HOME */
#btn-home {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    color: #444;
    transition: 0.3s;
}
#btn-home:hover { color: #4285F4; }

/* PANNEAU INFOS */
.info-panel {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%; 
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10; 
    max-height: 100px; 
    transition: max-height 0.4s ease;
    overflow: hidden;
}

.info-panel.expanded { max-height: 850px; }

#close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 20; 
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    display: none;
}
.info-panel.expanded #close-btn { display: block; }

#shop-img { width: 100%; height: 120px; object-fit: cover; display: none; }
.info-panel.expanded #shop-img { display: block; }

.info-content { padding: 15px; }

/* --- AJOUT : Conteneur pour aligner Titre + Level --- */
.shop-header {
    display: flex;
    justify-content: space-between; /* Pousse le titre à gauche et le tag à droite */
    align-items: center;            /* Aligne verticalement au centre */
    margin-bottom: 5px;
}

.level-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;             /* Ajusté légèrement */
    border-radius: 10px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;           /* Empêche le texte de revenir à la ligne */
}

h3 { margin: 0; font-size: 20px; color: #222; } /* Taille légèrement réduite pour laisser de la place */

#shop-description {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin: 5px 0;
}

#distance { font-weight: 600; color: #4285F4; margin: 10px 0; }

.btn-link {
    width: 100%;
    border: none;
    background: #4285F4;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.info-panel.expanded .btn-link { display: block; }

/* LISTE ET NAV */
.list-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: white; z-index: 50; display: none; flex-direction: column; padding-bottom: 100px; }
.list-header { padding: 20px; border-bottom: 1px solid #eee; }
.list-scroll { flex: 1; overflow-y: auto; padding: 0 10px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px; background: #f8f9fa; }
td { padding: 10px; border-bottom: 1px solid #eee; }
.btn-see { background: #4285F4; color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; }

.footer-nav { position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 100; }
.nav-toggle { display: flex; gap: 12px; }
.nav-toggle button { flex: 1; border: none; padding: 16px 0; border-radius: 8px; cursor: pointer; background: white; color: #666; font-weight: 600; }
.nav-toggle button.active { background: #4285F4; color: white; }

@media (min-width: 600px) { 
    .info-panel { width: 350px; left: 20px; transform: none; } 
    #shop-img { height: 200px; }
    .footer-nav { left: 50%; right: auto; transform: translateX(-50%); width: 400px; }
}