/* ==========================================================================
   JS VISION 3PS² — MAP CONSENT PLACEHOLDER + FOOTER LEGAL LINKS
   Loaded on every page. Self-contained; depends only on style.css tokens.
   ========================================================================== */

/* ==========================================================================
   MAP PLACEHOLDER — shown until the visitor accepts
   ========================================================================== */
.jsv-map-holder {
    position: relative;
    width: 100%;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 26px 22px;
    box-sizing: border-box;

    background: #edf2f7;
    border: 1px dashed #a0aec0;
    border-radius: var(--radius, 8px);
}

.jsv-map-holder i {
    font-size: 24px;
    color: var(--primary-light, #2b6cb0);
}

.jsv-map-holder p {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
    max-width: 340px;
    margin: 0;
}

.jsv-map-btn {
    padding: 11px 24px;
    background: var(--primary, #1a365d);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    margin-top: 4px;
}

.jsv-map-btn:hover {
    background: var(--primary-light, #2b6cb0);
    transform: translateY(-2px);
}

.jsv-map-holder iframe {
    border: 0;
    width: 100%;
    height: 210px;
    display: block;
}

/* Once the map loads, the holder becomes a plain frame */
.jsv-map-holder.is-loaded {
    display: block;
    padding: 0;
    min-height: 0;
    border: none;
    background: transparent;
    overflow: hidden;
}

/* --- Footer legal links (shared across all pages) --- */
.footer-legal-links {
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-legal-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-sep {
    color: #4a5568;
    margin: 0 8px;
}

/* ==========================================================================
   TOAST — confirms that map permission was withdrawn
   ========================================================================== */
.jsv-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 9999;
    transform: translate(-50%, 20px);

    max-width: 440px;
    padding: 14px 22px;
    box-sizing: border-box;

    background: #1a202c;
    color: #edf2f7;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    text-align: center;
    border-left: 3px solid var(--accent, #2039dd);
    border-radius: 6px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.jsv-toast.is-open {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .jsv-toast {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
        transform: translateY(20px);
    }

    .jsv-toast.is-open {
        transform: translateY(0);
    }
}

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

    .jsv-map-btn:hover {
        transform: none;
    }
}
