/**
 * Map with Two-Click Consent
 * Da Vinci Brautmoden
 * Loaded: Contact page only
 */

.map-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.map-consent-overlay {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-gray-light);
}

.map-preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(3px) brightness(0.9);
    opacity: 0.5;
}

.map-consent-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-consent-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-headings);
    font-weight: 400;
}

.map-consent-content p {
    margin-bottom: 1.5rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
}

.map-consent-btn {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.map-consent-btn:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.map-consent-note {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--color-gray);
}

.map-consent-note a {
    color: var(--color-black);
    text-decoration: underline;
}

.map-preview-attribution {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 1;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    color: var(--color-gray-dark);
}

.map-preview-attribution a {
    color: var(--color-black);
    text-decoration: none;
}

.map-preview-attribution a:hover {
    text-decoration: underline;
}

#mapCanvas {
    width: 100%;
    height: 400px;
}

/* Mobile */
@media (max-width: 767px) {
    .map-wrapper {
        margin-top: 0;
        margin-bottom: 2rem;
        min-height: 360px;
    }

    .map-consent-overlay {
        height: 360px;
    }

    .map-consent-content {
        padding: 1rem;
        max-width: 90%;
    }

    .map-consent-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .map-consent-content p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .map-consent-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
        min-height: 48px;
    }

    .map-consent-note {
        margin-top: 0.75rem;
        font-size: 0.75rem;
    }

    .map-preview-attribution {
        font-size: 10px;
        padding: 3px 6px;
    }

    #mapCanvas {
        height: 360px;
    }
}