body.guest-location-prompt-open {
    overflow: hidden;
}

/* Prompt posizione ospite — stessa “mano” del welcome tour (feed-tour).
   Condiviso tra map.php e feed.php. */

.guest-location-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    background: var(--mc-bg-overlay, rgba(0, 0, 0, 0.78));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: guestLocationFadeIn 0.28s ease;
}

.guest-location-prompt-overlay.is-visible {
    display: flex;
}

.guest-location-prompt-overlay.is-closing {
    animation: guestLocationFadeOut 0.24s ease forwards;
}

@keyframes guestLocationFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes guestLocationFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.guest-location-prompt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    background: var(--mc-bg-elevated, #141414);
    border: 1px solid var(--mc-border, rgba(255, 255, 255, 0.12));
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--mc-shadow-md, 0 20px 60px rgba(0, 0, 0, 0.45));
    color: var(--mc-text, #fff);
    text-align: left;
    pointer-events: auto;
    animation: guestLocationCardIn 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes guestLocationCardIn {
    from { transform: translateY(22px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.guest-location-prompt-accent {
    height: 3px;
    width: 100%;
    background: #FF7601;
    flex-shrink: 0;
}

.guest-location-prompt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 10px;
    flex-shrink: 0;
}

.guest-location-prompt-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #FF7601;
    line-height: 1;
}

.guest-location-prompt-badge i {
    font-size: 11px;
}

.guest-location-prompt-close {
    background: var(--mc-overlay-08, rgba(255, 255, 255, 0.08));
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.72));
    border: 1px solid var(--mc-border, rgba(255, 255, 255, 0.12));
    border-radius: var(--mc-radius-pill, 999px);
    width: auto;
    min-width: 32px;
    height: auto;
    padding: 6px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background var(--mc-transition-fast, 0.15s ease), color var(--mc-transition-fast, 0.15s ease);
}

.guest-location-prompt-close:hover {
    color: var(--mc-text, #fff);
    background: var(--mc-overlay-12, rgba(255, 255, 255, 0.12));
}

.guest-location-prompt-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--mc-overlay-06, rgba(255, 255, 255, 0.06));
    overflow: hidden;
    flex-shrink: 0;
}

.guest-location-prompt-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28%;
    background: linear-gradient(to top, var(--mc-bg-elevated, #141414), transparent);
    pointer-events: none;
}

.guest-location-prompt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.guest-location-prompt-body {
    padding: 6px 22px 20px;
}

.guest-location-prompt-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--mc-font-display, 'Agrandir Grand Heavy', sans-serif);
    color: var(--mc-text, #fff);
}

.guest-location-prompt-card p {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.72));
}

.guest-location-prompt-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.guest-location-prompt-actions .mc-cta {
    flex: 1;
    justify-content: center;
    text-align: center;
}

@media (max-width: 400px) {
    .guest-location-prompt-card h3 {
        font-size: 19px;
    }
    .guest-location-prompt-body {
        padding: 4px 16px 18px;
    }
    .guest-location-prompt-actions {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guest-location-prompt-overlay,
    .guest-location-prompt-card,
    .guest-location-prompt-overlay.is-closing {
        animation: none !important;
    }
}
