/* Cookie consent — Landstra de Groot Online Media */

.cookie-consent {
    --cookie-consent-z-banner: 1050;
    --cookie-consent-z-modal: 1060;
    --cookie-consent-z-fab: 950;
}

.cookie-consent__banner {
    position: fixed;
    left: calc(24px + env(safe-area-inset-left, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: var(--cookie-consent-z-banner);
    width: min(420px, calc(100vw - 48px));
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
}

.cookie-consent__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ink);
}

.cookie-consent__desc,
.cookie-consent__modal-intro {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.cookie-consent__legal {
    margin: 0 0 16px;
    font-size: 13px;
}

.cookie-consent__legal a {
    color: var(--color-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__legal a:hover {
    color: var(--color-accent);
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-consent__actions--modal {
    margin-top: 20px;
}

.cookie-consent__btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
    color: var(--color-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus-visible {
    background: var(--color-bg-muted);
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.cookie-consent__btn:active {
    transform: translateY(1px);
}

.cookie-consent__modal {
    position: fixed;
    inset: 0;
    z-index: var(--cookie-consent-z-modal);
    display: grid;
    place-items: center;
    padding: 24px;
}

.cookie-consent__modal[hidden] {
    display: none;
}

.cookie-consent__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 37, 48, 0.72);
    backdrop-filter: blur(4px);
}

.cookie-consent__modal-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
}

.cookie-consent__modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.cookie-consent__modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-ink);
}

.cookie-consent__modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.cookie-consent__modal-close:hover,
.cookie-consent__modal-close:focus-visible {
    background: var(--color-bg-muted);
    color: var(--color-ink);
}

.cookie-consent__categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cookie-consent__category {
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
}

.cookie-consent__category:first-child {
    border-top: none;
}

.cookie-consent__category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.cookie-consent__category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
}

.cookie-consent__category-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-muted);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.cookie-consent__category-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.cookie-consent__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    cursor: pointer;
}

.cookie-consent__toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cookie-consent__toggle-track {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: var(--color-border);
    transition: background var(--transition);
}

.cookie-consent__toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform var(--transition);
}

.cookie-consent__toggle-input:checked + .cookie-consent__toggle-track {
    background: var(--color-brand);
}

.cookie-consent__toggle-input:checked + .cookie-consent__toggle-track::after {
    transform: translateX(20px);
}

.cookie-consent__toggle-input:focus-visible + .cookie-consent__toggle-track {
    outline: 2px solid var(--color-accent-bright);
    outline-offset: 2px;
}

.cookie-consent__fab {
    position: fixed;
    left: calc(24px + env(safe-area-inset-left, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: var(--cookie-consent-z-fab);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-primary-dark);
    color: var(--color-white);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background var(--transition), transform var(--transition);
}

.cookie-consent__fab:hover,
.cookie-consent__fab:focus-visible {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.cookie-consent__fab[hidden] {
    display: none;
}

.cookie-consent__fab-icon {
    display: block;
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

/* Maps placeholder (contact page) */
.contact-map__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 300px;
    padding: 32px 24px;
    background: var(--color-bg-light);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
}

.contact-map__placeholder-text {
    margin: 0;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.contact-map__placeholder-btn {
    min-height: 44px;
    padding: 12px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.contact-map__placeholder-btn:hover,
.contact-map__placeholder-btn:focus-visible {
    background: var(--color-bg-muted);
    border-color: var(--color-brand);
    color: var(--color-brand);
}

@media (max-width: 640px) {
    .cookie-consent__banner {
        left: calc(16px + env(safe-area-inset-left, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: auto;
    }

    .cookie-consent__fab {
        left: calc(16px + env(safe-area-inset-left, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__btn {
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__btn,
    .cookie-consent__fab,
    .cookie-consent__toggle-track,
    .cookie-consent__toggle-track::after {
        transition: none;
    }
}
