/* --- STYLES FINAUX POUR LE TABLEAU DES BALS --- */
:root {
    --gbc-primary: #009879;
    --gbc-text: #333333;
    --gbc-border-light: #e8e8e8;
    --gbc-border-medium: #dddddd;
    --gbc-white: #ffffff;
    --gbc-stripe: #f5f5f5;
    /* Couleur pour les lignes paires (zebra) - Plus contrasté */
}

.tableau-bals-country {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 20px 0;
    margin-bottom: 50vh;
    /* Espace vide pour permettre de centrer le dernier bal */
    font-size: 1.05em;
    /* Augmenté pour lisibilité */
    font-family: sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    background-color: var(--gbc-white);
    color: var(--gbc-text);
}

.tableau-bals-country thead tr {
    background-color: var(--gbc-primary) !important;
    color: #ffffff;
    text-align: center;
    height: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Renforce le contraste */
}

.tableau-bals-country thead th {
    padding: 6px 10px;
    /* Revert padding */
    font-weight: bold;
    background-color: var(--gbc-primary) !important;
    border-right: none;
    /* Supprime les lignes verticales de l'en-tête */
    border-bottom: none;
    /* Supprime la ligne du bas de l'en-tête */
}

.tableau-bals-country th,
#gbc-bals-container .tableau-bals-country td {
    padding: 0px 0px;
    /* Revert padding */
    border-bottom: 1px solid var(--gbc-border-light);
    vertical-align: middle;
    text-align: center;
    overflow-wrap: break-word;
    position: relative;
    /* Nécessaire pour positionner le pseudo-élément */
}

/* Création du séparateur vertical personnalisé */
#gbc-bals-container .tableau-bals-country td:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    /* Marge en haut */
    bottom: 15%;
    /* Marge en bas */
    right: 0;
    width: 1px;
    background-color: #e8e8e8;
}

/* La hauteur fixe est supprimée pour un affichage plus flexible */
.tableau-bals-country tbody tr {
    height: 150px;
}

.tableau-bals-country tbody tr.gbc-info-toggle-row,
.tableau-bals-country tbody tr.gbc-info-content-row {
    height: auto;
    background-color: transparent !important;
}

.tableau-bals-country tbody tr:nth-of-type(even):not(.gbc-row-highlight),
.tableau-bals-country tbody tr.alt:not(.gbc-row-highlight),
.tableau-bals-country tbody tr.odd:not(.gbc-row-highlight) {
    background-color: transparent !important;
}

/* Zebra striping : une ligne sur deux a un fond légèrement plus foncé */
.tableau-bals-country tbody tr.gbc-row-even:not(.gbc-row-highlight) {
    background-color: var(--gbc-stripe) !important;
}



/* Bordure de séparation renforcée pour les bals */
.tableau-bals-country .gbc-main-row:not(.has-info-row) td {
    border-bottom: 1px solid #dddddd;
}

.tableau-bals-country th:nth-child(1),
.tableau-bals-country td:nth-child(1) {
    width: 11%;
}

.tableau-bals-country th:nth-child(2),
.tableau-bals-country td:nth-child(2) {
    width: 21%;
}

.tableau-bals-country th:nth-child(3),
.tableau-bals-country td:nth-child(3) {
    width: 16%;
    text-align: center;
}

.tableau-bals-country th:nth-child(4),
.tableau-bals-country td:nth-child(4) {
    width: 15%;
}

.tableau-bals-country th:nth-child(5),
.tableau-bals-country td:nth-child(5) {
    width: 10%;
}

.tableau-bals-country th:nth-child(6),
.tableau-bals-country td:nth-child(6) {
    width: 27%;
}

.preview-with-download-wrapper {
    display: grid;
    grid-template-rows: 1fr auto;
    /* Ligne 1 (image) prend l'espace, Ligne 2 (bouton) s'adapte */
    height: 100%;
    /* Prend toute la hauteur de la cellule */
    box-sizing: border-box;
    /* Inclut le padding dans la hauteur */
    padding: 3px 0;
    /* Ajoute un peu d'espace en haut et en bas */
    justify-items: center;
    /* Centre horizontalement les éléments (image, bouton) */
    align-content: center;
    /* Centre verticalement le bloc image+bouton */
}

.tableau-bals-country td:nth-child(6) .preview-with-download-wrapper {
    gap: 3px;
}

.tableau-bals-country td:nth-child(3) .preview-with-download-wrapper {
    max-width: 120px;
    margin: 0 auto;
}

.preview-with-download-wrapper .preview-link {
    display: flex;
    align-items: center;
    /* Centre verticalement l'image/icône dans son espace */
}

.tableau-bals-country td:nth-child(3) .apercu-affiche {
    max-width: 110px;
    width: auto;
    height: auto;
}

.preview-with-download-wrapper .apercu-affiche {
    display: block;
    max-width: 140px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.preview-with-download-wrapper .preview-link:hover .apercu-affiche {
    transform: scale(1.03);
    z-index: 10;
    position: relative;
}

.preview-with-download-wrapper .preview-icon {
    font-size: 2.5rem;
    text-decoration: none;
}

.preview-with-download-wrapper .download-button {
    display: block;
    font-size: 11px;
    color: #0073aa;
    text-decoration: none;
    padding: 0;
    line-height: 1.2;
    /* Réduit la hauteur de la ligne pour coller au texte */
    cursor: pointer;
    z-index: 1;
    position: relative;
}

.preview-with-download-wrapper .download-button:hover {
    text-decoration: underline;
}

.tableau-bals-country td:nth-child(6) .multiple-previews-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.tableau-bals-country td:nth-child(6) .multiple-previews-container .preview-with-download-wrapper {
    flex: 1;
    min-width: 0; /* Permet aux éléments de rétrécir */
    max-width: 110px; /* Garde une taille max raisonnable s'il y en a peu */
}

.tableau-bals-country td:nth-child(6) .multiple-previews-container .apercu-affiche {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tableau-bals-country td:nth-child(6) .multiple-previews-container .preview-link:hover .apercu-affiche {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.tableau-bals-country td:nth-child(6) .download-button {
    font-size: 11px;
    padding: 4px 0 0 0;
    white-space: normal;
    word-break: break-word;
}

/* On ajuste la taille de l'icône s'il n'y a pas d'image (PDF générique) */
.tableau-bals-country td:nth-child(6) .multiple-previews-container .preview-icon {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

@media screen and (max-width: 768px) {
    .tableau-bals-country thead {
        display: none;
    }

    .tableau-bals-country tr {
        display: block;
        border-bottom: 3px solid var(--gbc-primary);
        padding-bottom: 10px;
    }

    .tableau-bals-country tbody tr {
        height: auto;
    }

    .tableau-bals-country td {
        padding-left: 50%;
        position: relative;
        border-bottom: 1px dotted #ccc;
        box-sizing: border-box;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-height: 40px;
        padding-right: 15px !important;
    }

    .tableau-bals-country td:last-child {
        border-bottom: none;
    }

    .tableau-bals-country td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
    }

    .tableau-bals-country td[data-label=\"Club\"] strong {
        font-size: 1.3em;
        line-height: 1.2;
    }

    /* Réduit le padding-left pour laisser plus d'espace au nom du club */
    .tableau-bals-country td[data-label="Club"] {
        padding-left: 15% !important;
        /* Au lieu de 50% */
        text-align: right;
        min-width: 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Le nom du club revient à la ligne si nécessaire */
    .tableau-bals-country td[data-label="Club"] strong {
        font-size: 1.1em !important;
        /* Garde la taille normale */
        line-height: 1.3;
        /* Meilleur espacement entre les lignes */
        flex-basis: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal !important;
        /* Permet le retour à la ligne */
        max-width: 100%;
        display: inline-block;
    }

    .tableau-bals-country .col-club-mobile-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .tableau-bals-country th:nth-child(n),
    .tableau-bals-country td:nth-child(n) {
        width: 100% !important;
    }

    .tableau-bals-country td:nth-child(3) .preview-with-download-wrapper,
    .tableau-bals-country td:nth-child(6) .multiple-previews-container {
        margin: 10px 0;
        /* Supprime le centrage automatique horizontal (auto) */
        max-width: 250px;
    }

    .tableau-bals-country td:nth-child(6) .multiple-previews-container {
        padding-bottom: 10px;
        display: grid;
        grid-template-columns: repeat(2, 65px); /* Force exactement 2 colonnes fixes */
        justify-content: end; /* Aligne la grille entière à droite */
        gap: 10px;
        width: 100%;
        margin: 0;
    }

    .tableau-bals-country td:nth-child(6) .multiple-previews-container .preview-with-download-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .tableau-bals-country td:nth-child(6) .multiple-previews-container .preview-with-download-wrapper:only-child {
        grid-column: 1 / -1; /* Étend la cellule unique sur les 2 colonnes */
        justify-self: end; /* Aligne l'élément unique à droite */
        width: 110px; /* Taille normale */
        max-width: 110px;
    }

    .tableau-bals-country td:nth-child(3) .preview-with-download-wrapper {
        max-width: 140px; /* Évite que l'affiche ne devienne énorme sur mobile */
    }

    .tableau-bals-country td[data-label="Affiche"],
    .tableau-bals-country td[data-label="Infos / Playlist(s)"] {
        /* On aligne le contenu à droite pour laisser de la place au label à gauche */
        justify-content: flex-end !important;
        padding-top: 15px;
        /* Ajoute un peu d'espace en haut pour ne pas coller le label */
    }

    /* Correction pour la ligne "+ d'infos" en vue mobile */
    .gbc-info-row td {
        display: block !important;
        /* Force l'affichage en bloc pour éviter le flex vertical */
        text-align: left !important;
        /* Garantit l'alignement à gauche */
        padding: 8px 15px !important;
        /* Applique un padding uniforme, sans le décalage de 50% */
        min-height: auto !important;
        /* La hauteur s'adapte au contenu */
    }

    .gbc-info-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px 16px 15px !important;
        margin-top: -8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
    }

    .gbc-info-text-wrapper {
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100%;
    }

    .gbc-info-text {
        line-height: 1.5 !important;
    }

    /* Bordure de séparation après le bloc + d'infos en mobile */
    .gbc-info-row td {
        border-bottom: 3px solid var(--gbc-primary) !important;
        padding-bottom: 15px !important;
    }

    /* Rétablir les bordures entre les attributs pour les bals avec + d'infos en mobile */
    #gbc-bals-container .tableau-bals-country .gbc-main-row.has-info-row td {
        border-bottom: 1px solid #e8e8e8 !important;
    }

    /* Seulement la dernière cellule du bal principal n'a pas de bordure (avant le + d'infos) */
    #gbc-bals-container .tableau-bals-country .gbc-main-row.has-info-row td:last-child {
        border-bottom: none !important;
    }

    span.gbc-end-date-label {
        padding: 0px 2% 0px 2% !important;
    }
}

/* On cache le bouton de fermeture par défaut de Fancybox pour utiliser le nôtre (synchronisé) */
.f-button.is-close-btn,
.fancybox__toolbar .f-button[data-fancybox-close] {
    display: none !important;
}

.fancybox__container:not(.is-compact) .fancybox__slide.has-close-btn {
    padding-top: 0px;
}

.fancybox__container {
    /* On s'assure que FancyBox se place bien par-dessus la barre d'admin */
    padding-top: 0px;
    z-index: 9999 !important;
    --fancybox-bg: rgba(24, 24, 27, 0.95) !important;
}

/* Force la barre d'outils à être au-dessus de l'iframe (PDF) */
.fancybox__toolbar {
    z-index: 10000 !important;
    background: transparent !important;
    /* On retire le dégradé global */
    padding-top: 10px;
    padding-bottom: 20px;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* On stylise les boutons de la toolbar pour qu'ils soient visibles sur tout fond (blanc PDF ou noir image) */
.fancybox__toolbar .f-button {
    background: rgba(0, 0, 0, 0.6);
    /* Fond sombre semi-transparent pour le bouton */
    color: #fff;
    border-radius: 50%;
    /* Boutons ronds */
    margin: 0 4px;
    width: 40px;
    height: 40px;
    display: flex;
    /* Assure que le contenu est centré */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fancybox__toolbar .f-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.fancybox__toolbar .f-button svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}


.fancybox__content {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

/* Dans public/public-styles.css */
.gbc-month-title {
    margin-top: 40px;
    margin-bottom: 10px;
    color: white;
    /* Ou la couleur de votre thème */
}

/* Correction du padding pour les iframes dans Fancybox */
/* Force l'apparence d'une page A4 centrée */
body .fancybox__container .fancybox__slide.is-iframe .fancybox__content,
body .fancybox__container .fancybox__slide.has-iframe .fancybox__content,
body .fancybox__container .fancybox__slide.has-pdf .fancybox__content {
    padding: 0;
    margin: 0 auto;

    /* Ratio A4 Portrait (210/297) */
    aspect-ratio: 210/297;

    /* Dimensions calculées pour tenir dans l'écran tout en gardant le ratio */
    /* On prend le MINIMUM entre :
           1. 95% de la hauteur d'écran (pour ne pas toucher les bords verticaux)
           2. La largeur correspondante si on était limité par la largeur (95vw)
         */
    height: min(100vh, 95vw * 1.414) !important;
    width: min(95vw, 95vh * 0.707) !important;

    max-width: 1200px;
    background: #fff;
    /* Fond blanc pour faire "papier" */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* Ombre pour l'effet "feuille volante" */
}

/* Styles pour les boutons PDF injectés manuellement */
/* Styles pour les boutons personnalisés (PDF et Images) injectés manuellement */
.gbc-custom-actions {
    position: fixed !important;
    /* Fixe par rapport à l'écran */
    top: 10px;
    right: 10px;
    /* On remet à droite car on intègre la croix dedans */
    display: flex;
    gap: 8px;
    z-index: 99999;
    align-items: center;
    /* Assure l'alignement vertical */
}

.gbc-custom-actions .f-button {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    /* Taille augmentée pour s'approcher du standard Fancybox */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
}

.gbc-custom-actions .f-button:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.gbc-custom-actions .f-button svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* FIX : Reset de la hauteur pour les images pour permettre le clic en dehors (sur le slide) */
.fancybox__slide.has-image .fancybox__content {
    height: auto !important;
}

/* --- Animation de fondu pour les images --- */
.apercu-affiche {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.2s;
    /* Ajout de transition sur transform */
}

.apercu-affiche.is-visible {
    opacity: 1;
}

.gbc-end-date-label {
    font-size: 0.9em;
    color: #555;
}

.gbc-cp-prefix {
    font-weight: bold;
}

/* Couleurs spécifiques pour chaque département des Pays de la Loire */
.gbc-cp-prefix-44 {
    color: #0077B6;
}

/* Loire-Atlantique - Bleu */
.gbc-cp-prefix-49 {
    color: #D9534F;
}

/* Maine-et-Loire - Rouge */
.gbc-cp-prefix-53 {
    color: #5CB85C;
}

/* Mayenne - Vert */
.gbc-cp-prefix-72 {
    color: #F0AD4E;
}

/* Sarthe - Orange */
.gbc-cp-prefix-85 {
    color: #6f42c1;
}

/* Vendée - Violet */

/* --- Styles pour la ligne "Plus d'infos" --- */
/* Supprime la bordure entre le bal et sa ligne d'info */
#gbc-bals-container .tableau-bals-country .gbc-main-row.has-info-row td {
    border-bottom: none;
}

.tableau-bals-country .gbc-info-row {
    height: auto !important;
    /* Annule la hauteur fixe de 150px héritée */
    position: relative;
    z-index: 100;
    background-color: transparent !important;
}

#gbc-bals-container .tableau-bals-country tr.gbc-info-row>td {
    padding: 0 !important;
    /* On force la suppression du padding de la cellule elle-même */
    height: auto;
    text-align: left !important;
    /* Annule le centrage hérité du thème */
    border-bottom: 1px solid #dddddd !important;
    /* Bordure harmonisée pour séparer du bal suivant */
    border-right: none;
    /* S'assure qu'il n'y a pas de bordure verticale */
}

#gbc-bals-container .tableau-bals-country tr.gbc-info-row:not(.gbc-row-highlight)>td {
    background-color: transparent !important;
    /* Fond transparent par défaut pour hériter du zèbre/theme */
}

.gbc-info-content-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 20px 12px 3%;
    margin-top: -3px;
    background: linear-gradient(135deg, #e3f2fd 0%, #d4e8ed 100%);
    border-left: 4px solid var(--gbc-primary);
    border-radius: 7px 7px 7px 7px;
    margin-left: 4%;
    margin-right: 3%;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 100, 110, 0.12);
    min-height: 68px;
    /* Assure une hauteur minimale cohérente même sans boutons */
    box-sizing: border-box;
}

/* Conteneur du texte d'info (prefix + texte) */
.gbc-info-content-wrapper>.gbc-info-prefix,
.gbc-info-content-wrapper>.gbc-info-text {
    display: inline;
}

/* Wrapper pour le texte d'info - prend l'espace disponible */
.gbc-info-content-wrapper::before {
    content: none;
}

/* Conteneur pour le texte d'info - permet le flex et le passage sur 2 lignes */
.gbc-info-text-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1.6;
}

.gbc-info-prefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: var(--gbc-primary);
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 8px;
    line-height: 1.6;
}

.gbc-info-prefix .dashicons {
    font-size: 22px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    color: var(--gbc-primary);
}

.gbc-info-text {
    flex: 1;
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    /* Pas d'italique global - le formatage est personnalisable */
}

/* Support du gras dans le texte */
.gbc-info-text strong,
.gbc-info-text b {
    font-weight: bold;
    color: #1a1a1a;
}

/* Support de l'italique dans le texte */
.gbc-info-text em,
.gbc-info-text i {
    font-style: italic;
}

/* Style des liens dans le texte */
.gbc-info-text a {
    color: #0077B6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.gbc-info-text a:hover {
    color: #005a8c;
    text-decoration: none;
}

/* Support du souligné dans le texte */
.gbc-info-text u {
    text-decoration: underline;
}

/* --- Conteneur des boutons --- */
.gbc-btns-wrapper {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

/* --- Styles communs aux boutons --- */
.gbc-btn-inscription,
.gbc-btn-reservation,
.gbc-btn-siteweb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none !important;
    border-radius: 25px;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    /* Fix pour éviter le dépassement en largeur */
}

/* --- Bouton Inscription (bleu) --- */
.gbc-btn-inscription {
    background: linear-gradient(135deg, #5c9ece 0%, #3a7ca5 100%);
    box-shadow: 0 2px 8px rgba(58, 124, 165, 0.35);
}

.gbc-btn-inscription:hover {
    background: linear-gradient(135deg, #7ab5dc 0%, #5c9ece 100%);
    box-shadow: 0 4px 12px rgba(58, 124, 165, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* --- Bouton Réservation (vert) --- */
.gbc-btn-reservation {
    background: linear-gradient(135deg, #4caf78 0%, #388e5c 100%);
    box-shadow: 0 2px 8px rgba(56, 142, 92, 0.35);
}

.gbc-btn-reservation:hover {
    background: linear-gradient(135deg, #6bc28e 0%, #4caf78 100%);
    box-shadow: 0 4px 12px rgba(56, 142, 92, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* --- Bouton Site Web (ambre/orange) --- */
.gbc-btn-siteweb {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.gbc-btn-siteweb:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* --- Icônes dans les boutons --- */
.gbc-btn-inscription .dashicons,
.gbc-btn-reservation .dashicons,
.gbc-btn-siteweb .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

/* Responsive pour les boutons */
@media screen and (max-width: 768px) {
    .gbc-btns-wrapper {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }

    .gbc-btn-inscription,
    .gbc-btn-reservation,
    .gbc-btn-siteweb {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1.05em;
    }

    /* Masquer les tooltips sur mobile (tactile) */
    .gbc-tooltip-preview,
    .gbc-tooltip-text {
        display: none !important;
    }
}

/* --- Styles pour les tooltips des boutons --- */
.gbc-has-tooltip {
    position: relative;
}

/* Tooltip texte */
.gbc-tooltip-text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(33, 33, 33, 0.95);
    color: #ffffff;
    font-size: 0.85em;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 99999;
}

/* Flèche du tooltip texte */
.gbc-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(33, 33, 33, 0.95);
}

/* Tooltip aperçu (image) */
.gbc-tooltip-preview {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 99999;
}

.gbc-tooltip-preview img {
    display: block;
    max-width: 180px;
    max-height: 220px;
    width: auto;
    height: auto;
    border-radius: 4px;
}

/* Flèche du tooltip aperçu */
.gbc-tooltip-preview::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ffffff;
}

/* Affichage au survol */
.gbc-has-tooltip:hover .gbc-tooltip-text,
.gbc-has-tooltip:hover .gbc-tooltip-preview {
    opacity: 1;
    visibility: visible;
}

/* Animation d'entrée */
.gbc-has-tooltip:hover .gbc-tooltip-text {
    transform: translateX(-50%) translateY(-4px);
}


.gbc-has-tooltip:hover .gbc-tooltip-preview {
    transform: translateX(-50%) translateY(-6px);
}


/* --- ANCRES ET SCROLLING --- */
/* Décalage pour compenser les en-têtes fixes lors du scroll vers une ancre */
tr[id^="bal-"] {
    scroll-margin-top: 150px;
    /* Ajustez selon hauteur du header */
}

/* --- BADGES DE TYPE D'ÉVÉNEMENT --- */
.gbc-event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
    justify-content: center;
}

.gbc-event-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.72em;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.gbc-badge-bal {
    background: #e8f0fe;
    color: #1a56db;
}

.gbc-badge-concert {
    background: #f3e8ff;
    color: #7c3aed;
}

.gbc-badge-stage {
    background: #fff3e0;
    color: #c77b1a;
}

.gbc-badge-festival {
    background: #fce4ec;
    color: #c62828;
}

.gbc-badge-anniversaire {
    background: #fff8e1;
    color: #a67c00;
}

/* Mobile : badges plus petits */
@media screen and (max-width: 768px) {
    .gbc-event-badges {
        justify-content: flex-end;
        margin-top: 3px;
    }

    .gbc-event-badge {
        font-size: 0.65em;
        padding: 1px 5px;
    }
}

/* ==========================================================================
   INTERACTIVE MAP & MODAL POPUP MODULE (LEAFLET.JS)
   ========================================================================== */

/* Triggers & Headers styling */
.gbc-btn-map-trigger:hover {
    background: rgba(192, 122, 42, 0.35) !important;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(192, 122, 42, 0.4);
}

body.gbc-modal-open {
    overflow: hidden !important;
}

/* Ensure Fancybox opens on top of the map modal */
.fancybox-container,
.fancybox__container {
    z-index: 1000000000 !important;
}

/* Modal Window Overlay */
.gbc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gbc-modal-overlay.gbc-active {
    opacity: 1;
}

/* Modal Inner Container */
.gbc-modal-box {
    width: 95%;
    max-width: 1600px;
    height: 90vh;
    background: rgba(26, 26, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gbc-modal-overlay.gbc-active .gbc-modal-box {
    transform: scale(1);
}

/* Close Button styling */
.gbc-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
    padding: 0;
}

/* When the close button is moved inline into the sidebar h3 */
.gbc-modal-close-btn.gbc-modal-close-btn-inline {
    position: static;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gbc-modal-close-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin: 0;
    display: block;
}

.gbc-modal-close-btn:hover {
    background: #c07a2a;
    color: #fff;
    border-color: transparent;
}

.gbc-modal-close-btn:hover .dashicons {
    transform: rotate(90deg);
}

/* Modal Body Grid */
.gbc-modal-body {
    display: flex;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

/* Sidebar Layout */
.gbc-map-sidebar {
    width: 300px;
    background: rgba(18, 18, 22, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    color: #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.gbc-map-sidebar h3 {
    margin: 0 0 5px 0;
    font-size: 1.25em;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid #c07a2a;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter Groups inside Sidebar */
.gbc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gbc-filter-group label {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

.gbc-filter-group input[type="search"] {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.92em;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-overflow: ellipsis;
}

.gbc-filter-group select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.92em;
    outline: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: none !important;
    /* Desactive la transition pour eviter le clignotement sous Chrome/Edge */
}

.gbc-filter-group select option {
    color: FieldText !important;
    background-color: revert !important;
}

.gbc-filter-group input[type="search"]:focus,
.gbc-filter-group select:focus {
    border-color: #c07a2a;
    box-shadow: 0 0 0 3px rgba(192, 122, 42, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* Checkbox Lists */
.gbc-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gbc-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
}

.gbc-checkbox-list input[type="checkbox"] {
    accent-color: #c07a2a;
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
}

/* Map Canvas Container & Standalone Wrapper */
.gbc-map-canvas-container {
    flex: 1;
    position: relative;
    height: 100%;
    background: #151518;
}

.gbc-map-canvas {
    width: 100%;
    height: 100%;
}

.gbc-map-standalone-wrapper {
    width: 100%;
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 600px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.gbc-map-standalone-wrapper .gbc-map-body {
    display: flex;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.gbc-map-standalone-wrapper .gbc-map-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e2e8f0;
    color: #334155;
}

.gbc-map-standalone-wrapper .gbc-map-sidebar h3 {
    color: #1e293b;
    border-bottom-color: #c07a2a;
}

.gbc-map-standalone-wrapper .gbc-filter-group label {
    color: #64748b;
}

.gbc-map-standalone-wrapper .gbc-filter-group input[type="search"] {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.gbc-map-standalone-wrapper .gbc-filter-group select {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    transition: none !important;
}

.gbc-map-standalone-wrapper .gbc-filter-group select option {
    color: FieldText !important;
    background-color: revert !important;
}

.gbc-map-standalone-wrapper .gbc-checkbox-list {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.gbc-map-standalone-wrapper .gbc-checkbox-list label {
    color: #334155;
}

/* Leaflet Overrides (Extremely Premium Design) */
.leaflet-container {
    font-family: inherit !important;
}

/* Custom styled Popups */
.leaflet-popup-content-wrapper {
    background: rgba(24, 24, 28, 0.96) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
    padding: 0 !important;
    overflow: hidden;
}

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

.leaflet-popup-tip {
    background: rgba(24, 24, 28, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.gbc-map-popup-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gbc-map-popup-img-link {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.gbc-map-popup-img-link .gbc-map-popup-img {
    transition: transform 0.3s ease;
}

.gbc-map-popup-img-link:hover .gbc-map-popup-img {
    transform: scale(1.05);
}

.gbc-zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
    pointer-events: none;
}

.gbc-map-popup-img-link:hover .gbc-zoom-icon {
    opacity: 1;
    background: #c07a2a;
}

.gbc-map-popup-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gbc-map-popup-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gbc-map-popup-date {
    font-size: 1.15em;
    /* Increased for better visibility */
    font-weight: 700;
    color: #c07a2a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gbc-map-popup-club {
    margin: 2px 0;
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.gbc-map-popup-adresse-block {
    margin-top: 6px;
    margin-bottom: 6px;
    border-left: 2px solid var(--gbc-primary, #009879);
    padding-left: 8px;
    font-size: 13px;
    text-align: left;
}

.gbc-map-popup-salle {
    font-weight: bold;
    color: #ffffff;
    line-height: 1.3;
}

.gbc-map-popup-rue {
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.gbc-map-popup-lieu {
    font-size: 1.15em !important;
    /* Make city larger to stand out */
    color: #ffffff !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 4px;
    text-align: left;
}

/* Buttons container for popup */
.gbc-map-popup-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.gbc-map-popup-btn {
    background: #c07a2a;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 0.8em;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.gbc-map-popup-btn:hover {
    background: #a2641f;
    transform: translateY(-1px);
}

.gbc-map-popup-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.gbc-map-popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.gbc-map-popup-btn-maps {
    background: #4285f4 !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gbc-map-popup-btn-maps:hover {
    background: #2b75e2 !important;
}

.gbc-map-popup-btn-playlist {
    background: #009879 !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gbc-map-popup-btn-playlist:hover {
    background: #008066 !important;
}

.gbc-table-cp-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    display: inline-block !important;
    width: auto !important;
    max-width: max-content !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.15s ease, border-color 0.15s ease;
    border-bottom: 1px dashed transparent;
}

.gbc-table-cp-link:hover {
    transform: scale(1.05);
    border-bottom-color: currentColor;
    text-decoration: none !important;
}

/* Luminescence highlight animation for standard rows (top and bottom horizontal glow) */
@keyframes gbcGlowPulse {
    0% {
        background-color: rgba(192, 122, 42, 0.06);
        box-shadow: inset 0 1px 0 rgba(192, 122, 42, 0.4), inset 0 -1px 0 rgba(192, 122, 42, 0.4);
    }

    30% {
        background-color: rgba(192, 122, 42, 0.18);
        box-shadow: inset 0 2px 0 rgba(192, 122, 42, 0.9), inset 0 -2px 0 rgba(192, 122, 42, 0.9);
    }

    100% {
        background-color: transparent;
        box-shadow: inset 0 0 0 rgba(192, 122, 42, 0), inset 0 0 0 rgba(192, 122, 42, 0);
    }
}

/* Luminescence highlight animation for rows with info details beneath (top horizontal glow only) */
@keyframes gbcGlowPulseTop {
    0% {
        background-color: rgba(192, 122, 42, 0.06);
        box-shadow: inset 0 1px 0 rgba(192, 122, 42, 0.4);
    }

    30% {
        background-color: rgba(192, 122, 42, 0.18);
        box-shadow: inset 0 2px 0 rgba(192, 122, 42, 0.9);
    }

    100% {
        background-color: transparent;
        box-shadow: inset 0 0 0 rgba(192, 122, 42, 0);
    }
}

/* Highlight main rows without details */
.gbc-main-row.gbc-row-highlight:not(.has-info-row) td {
    animation: gbcGlowPulse 2.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    position: relative;
    z-index: 5;
}

/* Highlight main rows with details (no bottom glowing line to avoid separating it from details card) */
.gbc-main-row.gbc-row-highlight.has-info-row td {
    animation: gbcGlowPulseTop 2.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    position: relative;
    z-index: 5;
}

/* Animation specifically for the info content wrapper (no background-color changes, just outer shadow glow and border-left color) */
/* Luminescence highlight animation for details rows (bottom horizontal glow only) */
@keyframes gbcGlowPulseBottom {
    0% {
        background-color: rgba(192, 122, 42, 0.06);
        box-shadow: inset 0 -1px 0 rgba(192, 122, 42, 0.4);
    }

    30% {
        background-color: rgba(192, 122, 42, 0.18);
        box-shadow: inset 0 -2px 0 rgba(192, 122, 42, 0.9);
    }

    100% {
        background-color: transparent;
        box-shadow: inset 0 0 0 rgba(192, 122, 42, 0);
    }
}

/* Highlight details rows cells (glowing bottom only) */
.tableau-bals-country tbody tr.gbc-info-row.gbc-row-highlight>td {
    animation: gbcGlowPulseBottom 2.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    position: relative;
    z-index: 5;
}

/* Ensure highlighted rows have a clean background base to prevent theme default overlays */
.tableau-bals-country tbody tr.gbc-row-highlight {
    background-color: var(--gbc-white) !important;
}

/* Zoom controls customization */
.leaflet-bar {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-bar a {
    background-color: #212124 !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: background 0.2s;
}

.leaflet-bar a:hover {
    background-color: #c07a2a !important;
}

.gbc-first-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 20px auto 25px auto;
    gap: 15px;
    clear: both;
}

.gbc-first-month-header>.gbc-month-title {
    flex: 1;
    text-align: left;
    margin: 0 !important;
}

.gbc-first-month-header>.gbc-btn-map-trigger {
    flex-shrink: 0;
    margin: 0 !important;
}

.gbc-first-month-header>.gbc-last-updated-text,
.gbc-first-month-header>.gbc-last-updated-spacer {
    flex: 1;
    text-align: right;
    margin: 0 !important;
}

.gbc-btn-map-trigger {
    background: #c07a2a !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-size: 1.05em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(192, 122, 42, 0.25) !important;
}

.gbc-btn-map-trigger .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.gbc-btn-map-trigger:hover {
    background: #a2641f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(192, 122, 42, 0.4) !important;
}

.gbc-btn-map-trigger:active {
    transform: translateY(0);
}

.gbc-last-updated-text {
    font-size: 0.95em;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-style: italic;
    display: inline-block;
    padding-top: 2px;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR SIDEBAR / MAP CANVAS
   ========================================================================== */
@media screen and (max-width: 768px) {
    .gbc-first-month-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 15px auto 10px auto !important;
    }

    .gbc-first-month-header>.gbc-month-title {
        order: 3 !important;
        align-self: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        margin-top: 15px !important;
    }

    .gbc-first-month-header>.gbc-btn-map-trigger {
        order: 1 !important;
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .gbc-first-month-header>.gbc-last-updated-text,
    .gbc-first-month-header>.gbc-last-updated-spacer {
        order: 2 !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Modal layout stacked */
    .gbc-modal-body,
    .gbc-map-standalone-wrapper .gbc-map-body {
        flex-direction: column !important;
    }

    .gbc-modal-overlay {
        height: 100vh !important;
        height: 100dvh !important;
    }

    .gbc-modal-box {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: none;
        max-width: 100%;
    }

    /* Sidebar transforms to interactive header */
    .gbc-map-sidebar {
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 12px 16px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .gbc-map-standalone-wrapper .gbc-map-sidebar {
        border-bottom: 1px solid #cbd5e1 !important;
    }

    .gbc-map-sidebar h3 {
        grid-column: span 2;
        margin-bottom: 2px;
        font-size: 1.05em;
    }

    .gbc-map-sidebar .gbc-filter-group {
        gap: 4px;
    }

    .gbc-map-sidebar .gbc-filter-group:nth-of-type(4) {
        grid-column: span 2;
    }

    .gbc-checkbox-list {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    .gbc-checkbox-list label {
        font-size: 0.8em;
    }

    /* Canvas fills remaining height */
    .gbc-map-canvas-container {
        flex: 1;
        min-height: 250px;
    }
}

/* Custom Pin Marker Style */
.gbc-custom-pin-wrapper {
    position: relative;
}

.gbc-pin-marker {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #c07a2a;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gbc-pin-emoji {
    font-size: 13px;
    line-height: 1;
    transform: rotate(45deg);
    display: inline-block;
    pointer-events: none;
    user-select: none;
}

@keyframes gbcPinPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
        transform: rotate(-45deg) scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        transform: rotate(-45deg) scale(1.15);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        transform: rotate(-45deg) scale(1);
    }
}

.gbc-pin-marker:hover {
    animation: gbcPinPulse 1.5s infinite;
    z-index: 9999;
}

/* Leaflet Popup Scale Animation */
@keyframes gbcPopupScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.leaflet-popup-content-wrapper {
    animation: gbcPopupScaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom center;
}

/* Popup Improvements */
.gbc-popup-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.gbc-popup-time-badge {
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
}

.gbc-popup-time-badge.future {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.gbc-popup-time-badge.past {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.gbc-map-popup-card.gbc-past-event {
    opacity: 0.75;
}

.gbc-popup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0;
}

.gbc-popup-badge {
    font-size: 0.68em;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.3;
}

.gbc-popup-badge-bal {
    background: #e8f0fe;
    color: #1a56db;
}

.gbc-popup-badge-concert {
    background: #f3e8ff;
    color: #7c3aed;
}

.gbc-popup-badge-stage {
    background: #fff3e0;
    color: #c77b1a;
}

.gbc-popup-badge-festival {
    background: #fce4ec;
    color: #c62828;
}

.gbc-popup-badge-anniversaire {
    background: #fff8e1;
    color: #a67c00;
}

.gbc-map-popup-desc {
    font-size: 1.0em;
    color: rgba(255, 255, 255, 0.7);
    margin: 6px 0;
    line-height: 1.4;
    border-left: 2px solid #c07a2a;
    padding-left: 6px;
}

/* Type Pills Filter styling */
.gbc-type-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gbc-type-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.gbc-type-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.gbc-type-pill.active {
    color: #fff;
    border-color: transparent;
}

.gbc-type-pill-bal.active {
    background: #1E88E5 !important;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.35);
}

.gbc-type-pill-stage.active {
    background: #8E24AA !important;
    box-shadow: 0 2px 8px rgba(142, 36, 170, 0.35);
}

.gbc-type-pill-concert.active {
    background: #43A047 !important;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.35);
}

.gbc-type-pill-festival.active {
    background: #E53935 !important;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.35);
}

.gbc-type-pill-anniversaire.active {
    background: #AFB42B !important;
    box-shadow: 0 2px 8px rgba(175, 180, 43, 0.35);
}

/* Standalone Light Version Pill compatibility */
.gbc-map-standalone-wrapper .gbc-type-pills-list {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.gbc-map-standalone-wrapper .gbc-type-pill {
    background: #fff;
    border-color: #cbd5e1;
    color: #64748b;
}

.gbc-map-standalone-wrapper .gbc-type-pill:hover {
    background: #f8fafc;
    color: #1e293b;
}

.gbc-map-standalone-wrapper .gbc-type-pill.active {
    color: #fff;
}

/* Results Status Line */
.gbc-filter-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.gbc-map-standalone-wrapper .gbc-filter-status {
    border-top-color: #cbd5e1;
}

.gbc-results-counter {
    font-size: 0.85em;
    font-weight: 700;
    color: #10b981;
}

@keyframes gbcCounterPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
        color: #34d399;
    }

    100% {
        transform: scale(1);
    }
}

.gbc-results-counter.gbc-pulse {
    animation: gbcCounterPulse 0.4s ease;
}

.gbc-reset-filters-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.gbc-reset-filters-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* List View component */
.gbc-map-list-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    overflow: hidden;
}

.gbc-map-standalone-wrapper .gbc-map-list-section {
    border-top-color: #cbd5e1;
}

.gbc-map-list-section h4 {
    margin: 0 0 8px 0;
    font-size: 0.82em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.gbc-map-standalone-wrapper .gbc-map-list-section h4 {
    color: #64748b;
}

.gbc-map-list-container {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.gbc-map-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gbc-map-list-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.gbc-map-standalone-wrapper .gbc-map-list-item {
    background: #fff;
    border-color: #cbd5e1;
}

.gbc-map-standalone-wrapper .gbc-map-list-item:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.gbc-map-list-item-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 44px;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.gbc-badge-day {
    font-size: 0.9em;
}

.gbc-badge-month {
    font-size: 0.58em;
    text-transform: uppercase;
}

.gbc-badge-year {
    font-size: 0.55em;
    opacity: 0.85;
    margin-top: 1px;
}

.gbc-map-list-item-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    position: relative;
}

.gbc-map-list-item-emoji {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    font-size: 14px;
}

.gbc-map-list-item-title {
    font-size: 0.85em;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 18px;
}

.gbc-map-standalone-wrapper .gbc-map-list-item-title {
    color: #1e293b;
}

.gbc-map-list-item-salle {
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.3;
    margin-top: 2px;
}

.gbc-map-list-item-rue {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1px;
}

.gbc-map-list-item-lieu {
    font-size: 13px !important;
    /* Larger city text in list */
    font-weight: bold !important;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.gbc-map-standalone-wrapper .gbc-map-list-item-salle {
    color: #111111 !important;
}

.gbc-map-standalone-wrapper .gbc-map-list-item-rue {
    color: #666666 !important;
}

.gbc-map-standalone-wrapper .gbc-map-list-item-lieu {
    color: #1d2327 !important;
}

.gbc-map-list-empty {
    font-size: 0.82em;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 15px 0;
}

/* Collapsible Legend */
.gbc-map-legend {
    background: rgba(24, 24, 28, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    color: #fff !important;
    max-width: 210px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    font-family: inherit !important;
}

.gbc-map-standalone-wrapper .gbc-map-legend {
    background: #fff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.gbc-legend-toggle-btn {
    background: transparent;
    border: none;
    color: #c07a2a;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3px 0;
    outline: none;
}

.gbc-legend-content {
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 6px;
    transition: max-height 0.25s ease-out, opacity 0.25s ease-out;
    max-height: 450px;
    opacity: 1;
    overflow: hidden;
}

.gbc-map-standalone-wrapper .gbc-legend-content {
    border-top-color: #e2e8f0;
}

.gbc-legend-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.gbc-legend-content h5 {
    margin: 6px 0 4px 0;
    font-size: 0.85em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    font-weight: 700;
}

.gbc-map-standalone-wrapper .gbc-legend-content h5 {
    color: #64748b;
}

.gbc-legend-months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.gbc-legend-months span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.gbc-legend-types {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gbc-legend-types li {
    font-size: 0.82em;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (min-width: 769px) {
    .gbc-legend-types li {
        font-size: 0.95em;
    }
    .gbc-legend-content h5 {
        font-size: 0.9em;
    }
    .gbc-legend-toggle-btn {
        font-size: 1.05em;
    }
}

.gbc-legend-types li span {
    font-size: 1.25em;
}

/* Sidebar Toggle button for mobile drawer style */
.gbc-sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
    padding: 0;
    margin-left: auto;
}

.gbc-map-standalone-wrapper .gbc-sidebar-toggle-btn {
    color: #1e293b;
}

.gbc-sidebar-toggle-btn span {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.3s ease;
}

.gbc-map-sidebar.collapsed .gbc-sidebar-toggle-btn span {
    transform: rotate(180deg);
}

/* Mobile bottom sheet popup */
.gbc-mobile-bottom-sheet {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    max-height: 55%;
    overflow-y: auto;
    background: rgba(24, 24, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateY(calc(100% + 30px));
    transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
    padding: 14px;
    box-sizing: border-box;
}

.gbc-mobile-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin: -4px auto 12px auto;
    cursor: grab;
}

.gbc-map-standalone-wrapper .gbc-mobile-sheet-drag-handle {
    background: rgba(0, 0, 0, 0.15);
}

.gbc-map-standalone-wrapper .gbc-mobile-bottom-sheet {
    background: #fff;
    border: 1px solid #cbd5e1;
}

.gbc-map-standalone-wrapper .gbc-mobile-bottom-sheet .gbc-map-popup-salle {
    color: #222222;
}

.gbc-map-standalone-wrapper .gbc-mobile-bottom-sheet .gbc-map-popup-rue {
    color: #555555;
}

.gbc-map-standalone-wrapper .gbc-mobile-bottom-sheet .gbc-map-popup-lieu {
    color: #1d2327 !important;
}

.gbc-mobile-bottom-sheet.gbc-active {
    transform: translateY(0);
}

.gbc-mobile-sheet-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.gbc-map-standalone-wrapper .gbc-mobile-sheet-close {
    background: #f1f5f9;
    color: #475569;
}

.gbc-mobile-sheet-content {
    width: 100%;
}

.gbc-mobile-sheet-content .gbc-map-popup-card {
    opacity: 1 !important;
}

.gbc-mobile-sheet-content .gbc-map-popup-img {
    height: 100px;
    border-radius: 8px;
}

.gbc-mobile-sheet-content .gbc-map-popup-info {
    padding: 10px 0 0 0;
}

/* Responsive updates for mobile layouts */
@media screen and (max-width: 768px) {
    .gbc-sidebar-toggle-btn {
        display: inline-block !important;
    }

    .gbc-map-sidebar {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 8px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        overflow-y: auto !important;
        transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .gbc-map-sidebar.collapsed {
        max-height: 48px !important;
        overflow: hidden !important;
        padding-bottom: 10px !important;
    }

    .gbc-map-sidebar.collapsed>*:not(h3) {
        display: none !important;
    }

    .gbc-map-sidebar h3 {
        display: flex !important;
        align-items: center;
        width: 100%;
        margin: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        font-size: 0.95em;
        cursor: pointer;
    }

    .gbc-map-sidebar .gbc-filter-group {
        gap: 3px;
    }

    .gbc-map-sidebar .gbc-filter-group label {
        font-size: 0.7em;
        margin: 0;
    }

    .gbc-map-sidebar .gbc-filter-group input[type="search"],
    .gbc-map-sidebar .gbc-filter-group select {
        padding: 6px 10px !important;
        font-size: 0.85em !important;
        border-radius: 6px;
    }

    .gbc-map-sidebar .gbc-type-pills-list {
        gap: 4px !important;
    }

    .gbc-map-sidebar .gbc-type-pill {
        padding: 4px 8px !important;
        font-size: 0.78em !important;
    }

    .gbc-map-list-section {
        max-height: 120px !important;
    }

    .gbc-map-list-container {
        max-height: 100px !important;
    }

    .gbc-map-canvas-container {
        flex: 1 !important;
        min-height: 200px;
    }

    /* Make Leaflet controls fit nice */
    .leaflet-bottom {
        bottom: 15px !important;
    }

    .leaflet-right {
        right: 10px !important;
    }
}

/* --- Styles pour l'affichage de l'adresse et de la salle dans la colonne Ville --- */
.gbc-table-ville-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 12px;
}

#gbc-bals-container .tableau-bals-country td.col-ville .gbc-table-ville-wrapper {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gbc-table-salle {
    font-weight: bold;
    color: #1d2327;
    font-size: 1.05em;
    line-height: 1.25;
    margin-bottom: 3px;
}

.gbc-table-rue {
    font-size: 11px;
    color: #646970;
    margin-bottom: 2px;
    line-height: 1.2;
}

.gbc-table-ville {
    font-size: 1.1em;
    font-weight: bold;
    color: #1d2327;
    margin-top: 4px;
    line-height: 1.25;
}

/* Alignement en responsive mobile */
@media screen and (max-width: 768px) {
    #gbc-bals-container .tableau-bals-country td.col-ville {
        height: auto !important;
        min-height: 48px;
    }

    #gbc-bals-container .tableau-bals-country td.col-ville .gbc-table-ville-wrapper {
        align-items: flex-end !important;
        text-align: right !important;
        padding: 4px 0;
    }
}

/* --- Correctif d'affichage de la surbrillance (highlight) sur mobile --- */
@media screen and (max-width: 768px) {

    /* 1. Désactiver les animations et ombres de surbrillance sur les cellules individuelles (td) sur mobile */
    .gbc-main-row.gbc-row-highlight td,
    .tableau-bals-country tbody tr.gbc-row-highlight td,
    .tableau-bals-country tbody tr.gbc-info-row.gbc-row-highlight>td {
        animation: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }

    /* 2. Appliquer l'animation de surbrillance sur le conteneur TR entier (la ligne complète) */
    .tableau-bals-country tbody tr.gbc-row-highlight {
        animation: gbcGlowPulseMobile 2.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
        position: relative;
        z-index: 100 !important;
    }

    /* 3. Ajustements de la légende sur mobile pour la garder compacte */
    .gbc-legend-toggle-btn {
        font-size: 0.8em !important;
    }

    .gbc-legend-content h5 {
        font-size: 0.75em !important;
    }

    .gbc-legend-months {
        gap: 3px !important;
        margin-bottom: 6px !important;
    }

    .gbc-legend-months span {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.65em !important;
    }

    .gbc-legend-types {
        gap: 3px !important;
    }

    .gbc-legend-types li {
        font-size: 0.72em !important;
    }

    .gbc-legend-types li span {
        font-size: 1.1em !important;
    }
}

/* 3. Animation spécifique de surbrillance pour le TR complet sur mobile */
@keyframes gbcGlowPulseMobile {
    0% {
        box-shadow: 0 0 0 2px rgba(192, 122, 42, 0.4);
        background-color: rgba(192, 122, 42, 0.05);
    }

    30% {
        box-shadow: 0 0 0 4px rgba(192, 122, 42, 0.8), 0 4px 15px rgba(192, 122, 42, 0.3);
        background-color: rgba(192, 122, 42, 0.12);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(192, 122, 42, 0);
        background-color: transparent;
    }
}

/* --- Styles pour les info-bulles (tooltips) de la carte au survol --- */
.gbc-map-tooltip {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-family: sans-serif;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    padding: 5px 9px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap;
}

/* Personnalisation de la flèche du tooltip */
.leaflet-tooltip-top.gbc-map-tooltip::before {
    border-top-color: rgba(33, 37, 41, 0.95) !important;
}

/* --- Bouton d'action flottant (FAB) pour ouvrir la carte interactive --- */
.gbc-floating-map-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c07a2a 0%, #a25c14 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.gbc-floating-map-btn.gbc-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.gbc-floating-map-btn:hover {
    background: linear-gradient(135deg, #d88e3c 0%, #b86e1e 100%);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.gbc-floating-map-btn .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    color: #ffffff !important;
}

@media screen and (max-width: 768px) {
    .gbc-floating-map-btn {
        bottom: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }
    
    .gbc-floating-map-btn .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
        line-height: 22px;
    }
}