/* GoPetranelle Maps v1.4.2 */

.gp-map-block {
    --gp-accent: #1a2e44;
    --gp-bg: #FAFAF8;
    --gp-border: #E8E4DC;

    font-family: 'Roboto', sans-serif;
    background: var(--gp-bg);
    border: 1px solid var(--gp-border);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: var(--wp--style--global--content-size, 780px);
    margin: 1rem auto;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.gp-map-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid var(--gp-border);
}

.gp-map-block__eyebrow {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9C8F7E;
}

.gp-map-block__title {
    margin: 2px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gp-accent);
    line-height: 1.2;
}

.gp-map-block__subtitle {
    font-size: 12px;
    color: #7A6E64;
    margin: 2px 0 0;
}

.gp-map-block__badge {
    font-size: 10.5px;
    background: #EDE8DF;
    color: #6B5C4E;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid #DDD5C8;
    flex-shrink: 0;
}

/* ── Map area ────────────────────────────────────────────────────────────── */

.gp-map-block__preview {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    outline: none;
}

.gp-map-block__preview:focus-visible {
    outline: 2px solid var(--gp-accent);
    outline-offset: -2px;
}

.gp-map-block__preview iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */

.gp-map-block__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;        /* anchor to bottom so it doesn't fight the map UI */
    justify-content: center;
    padding-bottom: 1.5rem;
    background: transparent;      /* no dimming — map stays fully visible */
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* On desktop, overlay only appears when NOT yet hovered — JS handles hide-on-hover.
   On touch, overlay is always visible until tapped. */
.gp-map-block__prompt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--gp-accent);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px 8px 12px;
    border-radius: 100px;
    border: 1px solid color-mix(in srgb, var(--gp-accent) 15%, transparent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    pointer-events: none;
    user-select: none;
}

.gp-map-block__prompt-icon {
    flex-shrink: 0;
    color: var(--gp-accent);
}

/* Desktop: hide the overlay pill (hover activates silently) */
@media (hover: hover) and (pointer: fine) {
    .gp-map-block__overlay {
        display: none;
    }
}

/* ── Bottom bar ──────────────────────────────────────────────────────────── */

.gp-map-block__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.2rem;
    border-top: 1px solid var(--gp-border);
    gap: 1rem;
}

.gp-map-block__hints {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.gp-map-block__hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #9C8F7E;
}

.gp-map-block__link {
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--gp-accent);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.gp-map-block__link:hover {
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .gp-map-block__hints { display: none; }
}
