.adeas-location-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin: .65rem 0;
}

.adeas-event-location {
    overflow-wrap: anywhere;
}

.adeas-event-location .adeas-location-trigger {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    max-width: 100%;
    min-height: 24px;
    padding: .125rem 0;
    color: #626e80;
    font-size: .8rem;
    line-height: 1.45;
    text-decoration: none;
}

.adeas-location-trigger .fa-location-dot {
    flex-shrink: 0;
    color: #1b499b;
    font-size: .75rem;
}

.adeas-event-location .adeas-location-trigger:hover {
    color: #1b499b;
}

.adeas-location-trigger:hover span {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.adeas-event-location .adeas-location-actions a,
.adeas-event-location .adeas-location-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 42px;
    padding: .65rem 1rem;
    border: 1px solid #dce3ed;
    border-radius: .8rem;
    background: #fff;
    color: #1b499b;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 2px 4px rgb(27 73 155 / 4%);
    cursor: pointer;
    transition: background .18s, border-color .18s, box-shadow .18s;
}

.adeas-event-location .adeas-location-actions a:hover,
.adeas-event-location .adeas-location-actions button:hover {
    background: #FFF2EB;
    border-color: #FF5D0E;
    color: #FF5D0E;
    box-shadow: 0 4px 10px rgb(255 93 14 / 12%);
}

.adeas-event-location .adeas-location-actions [data-primary-gps] {
    color: #fff;
    border-color: #1b499b;
    background: linear-gradient(135deg, #1b499b, #123572);
    box-shadow: 0 4px 12px rgb(27 73 155 / 20%);
}

.adeas-event-location .adeas-location-actions [data-primary-gps]:hover {
    background: #FF5D0E;
    /* Le survol générique passe le texte en orange ; sur ce fond orange, le
       libellé doit rester blanc. */
    color: #fff;
    box-shadow: 0 5px 15px rgb(255 93 14 / 28%);
}

.adeas-location-actions .fa-waze {
    color: #1593af;
    font-size: 1.15rem;
}

.adeas-location-actions .fa-google {
    color: #4285f4;
}

.adeas-event-location a:focus-visible,
.adeas-event-location button:focus-visible,
.adeas-address-field input:focus-visible {
    outline: 3px solid #e95b0c;
    outline-offset: 3px;
}

.adeas-map-dialog {
    box-sizing: border-box;
    width: min(52rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    background: #fff;
    color: #262626;
    overflow: auto;
    text-align: left;
    box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
}

.adeas-map-dialog:not([open]),
.adeas-map-dialog [hidden],
.adeas-address-field [hidden] {
    display: none;
}

.adeas-map-dialog::backdrop {
    background: rgb(0 0 0 / 65%);
}

.adeas-map-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e8edf4;
    background: #f8fafc;
}

.adeas-map-heading > div {
    min-width: 0;
}

.adeas-map-heading .adeas-map-eyebrow {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .5rem;
    color: #1b499b;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.adeas-map-heading h3 {
    margin: 0;
    color: #173969;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}

.adeas-map-heading .adeas-map-address {
    margin: .4rem 0 0;
    color: #626e80;
    font-size: .875rem;
}

.adeas-map-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #687588;
    cursor: pointer;
    transition: color .18s, background .18s;
}

.adeas-map-close:hover {
    color: #FF5D0E;
    background: #FFF2EB;
}

.adeas-map-dialog iframe {
    width: 100%;
    height: min(45vh, 24rem);
    min-height: 12rem;
    border: 0;
    display: block;
    background: #f0f3f7;
}

.adeas-map-dialog [data-map-status] {
    margin: 0;
    padding: .75rem 1.5rem;
    font-size: .875rem;
    color: #626e80;
}

.adeas-map-dialog [data-map-status]:empty {
    padding: 0;
}

.adeas-map-dialog .adeas-map-actions {
    margin: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e8edf4;
    background: #f8fafc;
}

.adeas-map-actions [data-copy-address] {
    margin-right: auto;
}

@media (max-width: 600px) {
    .adeas-map-heading,
    .adeas-map-dialog .adeas-map-actions {
        padding: 1rem;
    }

    .adeas-map-heading h3 {
        font-size: 1.1rem;
    }

    .adeas-map-actions [data-primary-gps] {
        order: -1;
        width: 100%;
    }

    .adeas-map-actions > a,
    .adeas-map-actions > button {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adeas-event-location .adeas-location-actions a,
    .adeas-event-location .adeas-location-actions button,
    .adeas-map-close {
        transition: none;
    }
}

.adeas-address-field {
    margin: 1rem 0;
}

.adeas-address-field .widefat {
    flex: 1;
    width: auto;
    min-width: 12rem;
}

.adeas-address-results {
    max-height: 15rem;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    border: 1px solid #8c8f94;
    background: #fff;
    list-style: none;
}

.adeas-address-results [role="option"] {
    padding: .65rem;
    margin: 0;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.adeas-address-results [aria-selected="true"],
.adeas-address-results [role="option"]:hover {
    color: #fff;
    background: #1b499b;
}
