/* Gray Audio — interactieve audio-installatie */

.gx-map__head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px clamp(20px, 3vw, 40px);
    align-items: end;
    margin-bottom: clamp(40px, 5vw, 72px);
}

.gx-map__head .gx-heading em {
    color: #fff;
    background-image: linear-gradient(var(--gx-yellow), var(--gx-yellow));
    background-size: 100% 0.12em;
    background-position: 0 92%;
    background-repeat: no-repeat;
}

.gx-map__layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: 32px;
    align-items: start;
}

.gx-map__stage {
    grid-column: 1 / span 7;
    padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 44px) 20px;
    border-radius: 10px;
    /* Donkere studio-ondergrond: de auto en de gele onderdelen springen eruit. */
    background:
        radial-gradient(90% 80% at 50% 45%, #2a2c30 0%, #141516 62%, #0b0b0c 100%);
    border: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gx-map__canvas {
    position: relative;
    aspect-ratio: 900 / 420;
}

.gx-map__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.gx-map__wheels rect { fill: #050506; stroke: #2a2c30; stroke-width: 1; }
.gx-map__body { stroke: #5c6066; stroke-width: 1.5; }
.gx-map__mirror { fill: #2a2c30; stroke: #5c6066; stroke-width: 1.25; }
.gx-map__hood { opacity: 0.9; }
.gx-map__lines path { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.25; stroke-linecap: round; }
.gx-map__handles rect { fill: #6a6d72; }
.gx-map__tail { fill: #8d2a22; }
.gx-map__head-light { fill: #d9dce0; opacity: 0.8; }
.gx-map__grille { fill: none; stroke: #0b0b0c; stroke-width: 3; stroke-linecap: round; }
.gx-map__floor { fill: #202124; }
.gx-map__dash { fill: #111213; }
.gx-map__console { fill: #0f1011; stroke: #3a3d42; stroke-width: 1; }
.gx-map__seats > * { fill: #3d4044; stroke: #5c6066; stroke-width: 1.25; }
.gx-map__stitch path { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; stroke-dasharray: 2 3; }
.gx-map__glass { stroke: #000; stroke-width: 1.25; }
.gx-map__roof { stroke: none; }
.gx-map__frame { fill: none; stroke: #0b0b0c; stroke-width: 6; stroke-linecap: round; }
.gx-map__shine { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; stroke-linecap: round; }

.gx-map__part > * {
    fill: rgba(255, 255, 255, 0.1);
    stroke: rgba(255, 255, 255, 0.62);
    stroke-width: 1.5;
    transition: fill var(--gx-mid) var(--gx-ease), stroke var(--gx-mid) var(--gx-ease);
}

.gx-map__part.is-active > * {
    fill: rgba(0, 140, 180, 0.85);
    stroke: var(--gx-yellow-hi);
}

.gx-map__part.is-hover > * {
    fill: rgba(0, 140, 180, 0.4);
}

.gx-map__signal path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.25;
    stroke-dasharray: 3 6;
    opacity: 0.45;
}

.gx-map[data-active-part="amp"] .gx-map__signal path,
.gx-map[data-active-part="dsp"] .gx-map__signal path {
    stroke: var(--gx-yellow);
    opacity: 0.9;
    animation: gx-map-flow 1200ms linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .gx-map[data-active-part="amp"] .gx-map__signal path,
    .gx-map[data-active-part="dsp"] .gx-map__signal path {
        animation: none;
    }
}

@keyframes gx-map-flow {
    to { stroke-dashoffset: -18; }
}

.gx-map__hint {
    margin-top: 14px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--gx-slate-300);
    text-align: center;
}

/* ── Hotspots ───────────────────────────────────────────────────── */

.gx-map__spot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.gx-map__dot {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gx-yellow);
    box-shadow: 0 0 0 4px rgba(24, 25, 27, 0.9), 0 6px 14px rgba(24, 25, 27, 0.3);
    transition: transform var(--gx-fast) var(--gx-ease), box-shadow var(--gx-fast) var(--gx-ease);
}

.gx-map__dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--gx-yellow);
    opacity: 0;
}

.gx-motion .gx-map.is-pulsing .gx-map__dot::after {
    animation: gx-map-pulse 1800ms var(--gx-ease) calc(var(--i) * 160ms) 3;
}

@keyframes gx-map-pulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.4); opacity: 0; }
}

.gx-map__spot:hover .gx-map__dot,
.gx-map__spot:focus-visible .gx-map__dot {
    transform: scale(1.15);
}

.gx-map__spot[aria-pressed="true"] .gx-map__dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px var(--gx-navy-900), 0 0 0 10px rgba(0, 140, 180, 0.35);
}

.gx-map__spot:focus-visible {
    outline: 2px solid var(--gx-yellow);
    outline-offset: 0;
}

.gx-map__tip {
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    padding: 7px 12px;
    border-radius: 4px;
    background: var(--gx-white);
    color: var(--gx-navy-900);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity var(--gx-fast) var(--gx-ease), transform var(--gx-fast) var(--gx-ease);
}

.gx-map__spot:hover .gx-map__tip,
.gx-map__spot:focus-visible .gx-map__tip,
.gx-map__spot[aria-pressed="true"] .gx-map__tip {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ── Lijst & uitleg ─────────────────────────────────────────────── */

.gx-map__side {
    grid-column: 9 / span 4;
    display: grid;
    gap: 24px;
}

.gx-map__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gx-map__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 8px 12px;
    border: 1px solid var(--gx-line);
    border-radius: var(--gx-radius);
    background: var(--gx-white);
    color: var(--gx-navy);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--gx-fast) var(--gx-ease), border-color var(--gx-fast) var(--gx-ease), color var(--gx-fast) var(--gx-ease);
}

.gx-map__item-icon .gx-icon {
    width: 20px;
    height: 20px;
    color: var(--gx-slate);
    transition: color var(--gx-fast) var(--gx-ease);
}

.gx-map__item-label {
    flex: 1;
    line-height: 1.25;
}

.gx-map__item-num {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--gx-slate);
    font-variant-numeric: tabular-nums;
}

.gx-map__item:hover,
.gx-map__item.is-hover {
    border-color: var(--gx-navy);
}

.gx-map__item[aria-pressed="true"] {
    background: var(--gx-navy);
    border-color: var(--gx-navy);
    color: var(--gx-white);
}

.gx-map__item[aria-pressed="true"] .gx-icon {
    color: var(--gx-yellow);
}

.gx-map__item[aria-pressed="true"] .gx-map__item-num {
    color: var(--gx-slate-300);
}

.gx-map__detail {
    display: grid;
    padding: 28px 28px 30px;
    border-radius: var(--gx-radius);
    background: var(--gx-mist);
    border-left: 3px solid var(--gx-yellow);
}

.gx-map__entry {
    display: grid;
    align-content: start;
    gap: 12px;
    color: var(--gx-ink-soft);
}

/* Met JS: alle uitleg in één cel gestapeld → vaste hoogte, geen sprongen. */
.gx-map.is-ready .gx-map__entry {
    grid-area: 1 / 1;
    transition: opacity var(--gx-mid) var(--gx-ease), transform var(--gx-mid) var(--gx-ease), visibility 0s linear var(--gx-mid);
}

.gx-map.is-ready .gx-map__entry:not(.is-active) {
    visibility: hidden;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
}

.gx-map.is-ready .gx-map__entry.is-active {
    transition-delay: 0s;
}

/* Zonder JS: uitleg als lijst onder elkaar. */
.gx-map:not(.is-ready) .gx-map__entry + .gx-map__entry {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--gx-line);
}

.gx-map:not(.is-ready) .gx-map__close {
    display: none;
}

.gx-map__entry-num {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--gx-slate);
}

.gx-map__entry-title {
    font-family: var(--gx-font-display);
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--gx-navy);
}

.gx-map__entry .gx-btn {
    justify-self: start;
    margin-top: 8px;
}

.gx-map__close {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 4px;
    padding: 0 16px 0 12px;
    border: 1px solid rgba(24, 25, 27, 0.2);
    border-radius: 999px;
    background: transparent;
    color: var(--gx-navy);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--gx-fast) var(--gx-ease), background-color var(--gx-fast) var(--gx-ease);
}

.gx-map__close:hover {
    border-color: var(--gx-navy);
    background: var(--gx-white);
}

.gx-map__close .gx-icon {
    width: 16px;
    height: 16px;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1023px) {
    .gx-map__head {
        grid-template-columns: 1fr;
    }

    .gx-map__stage,
    .gx-map__side {
        grid-column: 1 / -1;
    }

    .gx-map__side {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 767px) {
    .gx-map__side {
        grid-template-columns: 1fr;
    }

    .gx-map__stage {
        padding: 28px 10px 14px;
    }

    .gx-map__dot {
        width: 16px;
        height: 16px;
        box-shadow: 0 0 0 3px rgba(24, 25, 27, 0.9), 0 4px 10px rgba(24, 25, 27, 0.3);
    }

    /* Op een smal scherm staat de naam al in de lijst eronder. */
    .gx-map__tip {
        display: none;
    }

    .gx-map__detail {
        padding: 22px 20px 24px;
    }
}
