/* css/layout.css — page shell: container, sidebar, canvas, responsive breakpoint */

.container {
    display: flex;
    height: 100vh;      /* fallback for browsers without dvh */
    height: 100dvh;
    overflow: hidden;
}

/* --- Sidebar --- */

#control-panel {
    width: 340px;
    flex-shrink: 0;
    padding: 18px;
    overflow-y: auto;
    background: #fffdf7;
    border-right: 1px solid #e2dbc9;
}

#control-panel h2 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: #7a4a3a;
}

#control-panel h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b6045;
    margin-bottom: 8px;
}

/* Seated / total / unseated tallies under the "Hostia" heading. */
#guest-counts {
    font-size: 0.8rem;
    color: #8a7f66;
    margin: -4px 0 8px;
}

#control-panel section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ece5d3;
}

#control-panel section:last-child {
    border-bottom: none;
}

/* --- Canvas --- */

#canvas-wrap {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

#seating-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    background: #f6f2ea;
    touch-action: none;          /* we handle pan and zoom ourselves */
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Floats over the canvas; stays below #seat-popup (z-index 50). */
#zoom-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 40;
}

#zoom-controls button {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    background: #fffdf7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* --- Responsive --- */

@media (max-width: 720px) {
    .container {
        flex-direction: column;
    }

    #control-panel {
        width: 100%;
        max-height: 45vh;
        border-right: none;
        border-bottom: 1px solid #e2dbc9;
    }

    #canvas-wrap {
        flex-grow: 1;
        min-height: 40vh;
    }
}
