/*
 * Page d'un lieu Events Manager (single-location.php).
 * Reprend la mise en page de la page évènement : colonne centrale de 80 %, image + texte,
 * puis « Où » / « Prochains évènements » sur deux colonnes, puis la carte.
 * Sur smartphone, tout passe sur une colonne.
 *
 * Les titres ont aussi un sélecteur « body #content … » : le gestionnaire de polices de Visual Composer
 * impose ses tailles avec « .vcwb.vcwb-font-manager #content h2 », plus spécifique qu'une simple classe.
 */

/* Pas de barre latérale sur ces pages : le contenu prend toute la largeur (le thème réserve sinon ~350px à droite) */
body.single-location #primary {
    float: none;
    width: 100%;
    margin: 0;
}

body.single-location #main {
    margin: 0;
    padding: 0;
}

.cggt-location__layout {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto 3em;
}

/* Ligne 1 : image (1/3) + nom et description (2/3), comme la page évènement */
.cggt-location__intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
    align-items: start;
}

.cggt-location__intro--no-image {
    grid-template-columns: 1fr;
}

.cggt-location__image img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
}

body .cggt-location h1.cggt-location__title,

body #content .cggt-location h1.cggt-location__title {
    margin: 0 0 20px;
    font-family: "Crimson Text", var(--titre, "CrimsonText-SemiBold"), Georgia, serif;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.2;
    color: #d8846e;
}

.cggt-location .cggt-location__subtitle {
    margin: 0 0 20px;
    font-family: "Crimson Text", var(--titre, "CrimsonText-SemiBold"), Georgia, serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #555;
}

.cggt-location__notes {
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

/* Ligne 2 : « Où » + « Prochains évènements » */
.cggt-location__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

body .cggt-location h2.cggt-location__heading,

body #content .cggt-location h2.cggt-location__heading {
    margin: 0 0 20px;
    font-family: "Crimson Text", var(--titre, "CrimsonText-SemiBold"), Georgia, serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
    color: #d8846e;
    text-transform: none;
}

.cggt-location .em-item-meta-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 10px;
    font-family: "Poppins", var(--contenu, "Poppins-Regular"), Arial, sans-serif;
    font-size: 16px;
    color: #666;
}

.cggt-location .em-item-meta-line .em-icon {
    flex: 0 0 auto;
    margin-top: 3px;
}

/* Liste des évènements générée par Events Manager */
.cggt-location__events ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cggt-location__events li {
    margin: 0 0 8px;
}

.cggt-location__events a,
.cggt-location__route a {
    color: #d8846e;
    font-weight: 600;
}

.cggt-location__route {
    margin: 0 0 0 26px;
}

/* Carte */
.cggt-location__map {
    margin-top: 30px;
}

.cggt-location__map .em-location-map-container {
    height: 300px !important;
}

/* Tablette et smartphone : une seule colonne, marges réduites */
@media screen and (max-width: 767px) {
    .cggt-location__layout {
        width: auto;
        margin: 0 16px 2em;
    }

    .cggt-location__intro,
    .cggt-location__meta {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cggt-location__image img {
        max-width: 100%;
    }

    body .cggt-location h1.cggt-location__title,

    body #content .cggt-location h1.cggt-location__title {
        font-size: 32px;
    }

    body .cggt-location h2.cggt-location__heading,

    body #content .cggt-location h2.cggt-location__heading {
        font-size: 28px;
    }

    .cggt-location__map .em-location-map-container {
        height: 220px !important;
    }
}
