/* Farava – responsive hall map (fit-to-width + zoom). Shared by all hall maps. */

.fmf-viewport {
    direction: ltr;
    position: relative;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;      /* pinch is handled by map-fit.js */
    max-height: 78vh;
    max-height: 78svh;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.fmf-sizer {
    position: relative;
    margin: 0 auto;
    max-width: none;
}
.fmf-inner {
    position: absolute !important;
    top: 0;
    left: 0;
    right: auto;
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    display: block !important;
    box-sizing: border-box;
    transform-origin: 0 0;
    padding: 34px 16px 16px !important;   /* top room for the seat price popup */
    direction: ltr;
    text-align: center;
    will-change: transform;
}
.fmf-inner .seat,
.fmf-inner .farava-att-seat,
.fmf-inner .fa-seat,
.fmf-inner .seat-space,
.fmf-inner .farava-att-space,
.fmf-inner .fa-space,
.fmf-inner .seat-row-label,
.fmf-inner .farava-att-row-label,
.fmf-inner .fa-row-label {
    flex-shrink: 0;
}
.fmf-inner .seat-row,
.fmf-inner .farava-att-row,
.fmf-inner .fa-row {
    width: 100%;
}

/* ---------- Toolbar ---------- */
.fmf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 8px;
    direction: ltr;
    font-family: inherit;
}
.fmf-btn {
    appearance: none;
    -webkit-appearance: none;
    min-width: 38px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d5d7da;
    border-radius: 10px;
    background: #fff;
    color: #252525;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    transition: background .15s, border-color .15s;
    touch-action: manipulation;
}
.fmf-btn:hover { border-color: #d9a928; background: #fffaf0; }
.fmf-btn:active { background: #f7e8b8; }
.fmf-btn-fit { font-size: 12.5px; font-weight: 600; }
.fmf-zoom {
    min-width: 46px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
}
.fmf-hint {
    display: none;
    flex-basis: 100%;
    text-align: center;
    direction: rtl;
    font-size: 11.5px;
    color: #94a3b8;
}
@media (pointer: coarse) {
    .fmf-hint { display: block; }
    .fmf-btn { height: 40px; min-width: 42px; }
}
@media (max-width: 480px) {
    .fmf-viewport { max-height: 70vh; max-height: 70svh; }
    .fmf-btn-fit { font-size: 12px; padding: 0 10px; }
}
@media (max-height: 480px) and (orientation: landscape) {
    .fmf-viewport { max-height: 85vh; max-height: 85svh; }
}
