.map-question-layout {
    --map-workspace-height: clamp(430px, calc(100dvh - 280px), 700px);
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    height: var(--map-workspace-height);
    min-height: 430px;
    margin-top: 18px;
    scroll-margin-top: 74px;
    overflow: clip;
    overscroll-behavior: auto;
}

.map-resize-pane {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 56%;
    min-width: 300px;
    max-width: 76%;
    height: 100%;
    min-height: 0;
    padding: 14px;
    overflow: clip;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.map-resize-pane .map-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: clip;
    border: 0;
    background: transparent;
}

.listening-map-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 7px;
}

.map-answer-pane {
    flex: 1 1 0;
    min-width: 250px;
    min-height: 0;
    height: 100%;
    padding: 4px 10px 12px 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
}

.map-answer-pane .dnd-split-container {
    display: block;
    margin: 0;
}

.map-answer-pane .dnd-questions-col,
.map-answer-pane .dnd-options-col {
    width: 100%;
    max-width: none;
}

.map-answer-pane .dnd-options-col {
    position: static;
    margin-top: 14px;
}

.map-letter-input {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    text-align: center !important;
    text-transform: uppercase;
}

@media (max-width: 860px) {
    .map-question-layout {
        --map-workspace-height: clamp(450px, calc(100dvh - 250px), 620px);
        flex-direction: column;
        gap: 14px;
        height: var(--map-workspace-height);
        min-height: 450px;
    }

    .map-resize-pane {
        width: 100% !important;
        min-width: 0;
        max-width: none;
        height: 52%;
        min-height: 190px;
        max-height: 72%;
        padding: 10px;
    }

    .map-answer-pane {
        width: 100%;
        min-width: 0;
        min-height: 150px;
        padding: 2px 4px 10px;
    }
}

@media (max-width: 520px) {
    .map-question-layout {
        --map-workspace-height: clamp(420px, calc(100dvh - 210px), 590px);
        min-height: 420px;
    }

    .map-resize-pane {
        min-height: 170px;
    }

    .map-answer-pane {
        min-height: 140px;
    }
}
