/* Storia Patria — cookie consent banner + embed placeholders */

.sp-consent {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 9999;
    width: min(440px, calc(100vw - 2rem));
    padding: 1.75rem 1.75rem 1.5rem;
    background: #0d0d0d;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sp-consent.is-visible {
    opacity: 1;
    transform: none;
}

.sp-consent__title {
    margin: 0 0 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: #fff;
}

.sp-consent__desc {
    margin: 0 0 1.25rem;
}

.sp-consent__desc a {
    color: #d4af37;
    text-decoration: underline;
}

.sp-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Same size, weight and contrast for both choices (no dark patterns) */
.sp-consent__btn {
    padding: 0.8rem 1rem;
    border: 1px solid #d4af37;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.sp-consent__btn:hover,
.sp-consent__btn:focus-visible {
    background: #d4af37;
    color: #060606;
}

.sp-consent__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.sp-consent__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sp-consent :focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .sp-consent {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        padding: 1.5rem 1.25rem 1.25rem;
    }
}

/* ── Placeholder for blocked embeds ── */
.map-wrapper {
    position: relative;
}

.sp-consent-ph {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
    background: #f5f3f0;
    border: 1px dashed rgba(6, 6, 6, 0.2);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #444;
}

.sp-consent-ph p {
    max-width: 44ch;
    margin: 0 0 0.25rem;
}

.sp-consent-ph__btn {
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: #060606;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.sp-consent-ph__btn:hover {
    background: #d4af37;
    color: #060606;
}

.sp-consent-ph__all {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.8125rem;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .sp-consent { transition: none; }
}
