/* Formula VR — interactive seating map + cart */

/* Single-file subset (incl. Ə/ş/ğ) — avoids SVG unicode-range fallback bug. */
@font-face {
    font-family: 'FvrMapSans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/manrope-map.woff2') format('woff2');
}
@font-face {
    font-family: 'FvrMapSans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/manrope-map.woff2') format('woff2');
}
@font-face {
    font-family: 'FvrMapSans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/manrope-map.woff2') format('woff2');
}

.fvr-seating {
    padding: 72px 0 80px;
    background: linear-gradient(180deg, rgba(8, 8, 16, 0.2) 0%, rgba(8, 8, 16, 0.55) 100%);
}

.fvr-seating__intro {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.fvr-seating__panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(251, 184, 0, 0.18);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.fvr-seating__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fvr-seating__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #e8e8e8;
}

.fvr-seating__legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.fvr-seating__legend-dot.is-taken {
    opacity: 0.85;
}

.fvr-seating__legend-ring {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}

.fvr-seating__legend-ring.is-single {
    border: 2px dashed #22c55e;
}

.fvr-seating__legend-ring.is-table {
    border: 2px solid #2563eb;
}

.fvr-seating__map-wrap {
    position: relative;
    overflow: hidden;
    width: calc(100% - 36px);
    max-width: 1160px;
    margin: 0 auto;
    padding: 0;
    min-height: 0;
    background: #f7f7f7;
    border-radius: 14px;
}

.fvr-seating__map-viewport {
    position: relative;
    width: 100%;
    height: min(68vh, 640px);
    min-height: 360px;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    background: #f7f7f7;
    border-radius: 14px;
}

.fvr-seating__map-viewport.is-panning {
    cursor: grabbing;
}

.fvr-seating__map-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Map labels: Noto Sans for AZ glyphs at small sizes; FvrMapSans keeps SVG subset fallback. */
.fvr-seating__map {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    shape-rendering: geometricPrecision;
    text-rendering: optimizeLegibility;
    font-family: "Noto Sans", "FvrMapSans", "Segoe UI", Arial, sans-serif;
}

.fvr-seating__map text {
    font-family: "Noto Sans", "FvrMapSans", "Segoe UI", Arial, sans-serif;
    pointer-events: none;
}

.fvr-seating__map .zone-neck-label {
    pointer-events: none;
}

.fvr-seating__zoom {
    position: absolute;
    z-index: 5;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fvr-seating__zoom-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #fbb800;
    border-radius: 10px;
    background: #fbb800;
    color: #111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.fvr-seating__zoom-btn:hover,
.fvr-seating__zoom-btn:focus-visible {
    background: #ffc933;
    border-color: #ffc933;
    color: #111;
    outline: none;
}

@media (max-width: 767px) {
    .fvr-seating__map-wrap {
        width: 100%;
    }

    .fvr-seating__map-viewport {
        height: min(62vh, 520px);
        min-height: 320px;
    }
    .fvr-seating__zoom-btn {
        width: 44px;
        height: 44px;
    }
}

.fvr-seating__map .seat-dot {
    cursor: pointer;
    transition: filter 0.12s ease, stroke-width 0.12s ease;
}

.fvr-seating__map .seat-dot:hover {
    filter: brightness(1.2);
    stroke: #111;
    stroke-width: 2;
}

.fvr-seating__map .seat-dot.is-cart {
    stroke: #fff;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px #fff);
}

.fvr-seating__map .seat-dot.is-invite {
    cursor: help;
    opacity: 0.92;
}

.fvr-seating__map .seat-dot.is-taken {
    cursor: not-allowed;
    opacity: 0.72;
    filter: grayscale(0.35);
}

.fvr-seating__map .seat-dot.is-taken:hover {
    filter: grayscale(0.2) brightness(1.05);
    stroke: #64748b;
    stroke-width: 2;
}

.fvr-seat-map-tip {
    position: fixed;
    z-index: 13000;
    pointer-events: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(15, 18, 28, 0.94);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.fvr-seat-map-tip.is-invite {
    color: #fbb800;
}

.fvr-seat-map-tip.is-taken {
    color: #cbd5e1;
}

.fvr-seat-map-tip.is-seat {
    color: #fff;
}

.fvr-seat-map-tip.is-invite {
    border: 1px solid rgba(251, 184, 0, 0.45);
    color: #fbb800;
}

.fvr-seat-map-tip.is-seat {
    border: 1px solid rgba(59, 130, 246, 0.55);
    color: #93c5fd;
}

.fvr-seating__map .zone-hit {
    cursor: pointer;
    fill: transparent;
}

.fvr-seating__map .zone-shape {
    pointer-events: none;
}

.fvr-seating__map .zone-group:hover .zone-shape {
    filter: brightness(1.08);
}

.fvr-seating__map .zone-neck-frame,
.fvr-seating__map .zone-neck-label {
    pointer-events: none;
}

.fvr-seating__map .invite-frame,
.fvr-seating__map .blue-tables-frame {
    pointer-events: none;
}

.fvr-seating__map .table-shape {
    pointer-events: auto;
}

.fvr-seating__map .table-label {
    font-size: 11px;
    font-weight: 800;
    font-family: "Noto Sans", "FvrMapSans", "Segoe UI", Arial, sans-serif;
    fill: #111;
    pointer-events: none;
}

.fvr-seating__map .table-label.is-invite-label {
    font-size: 9px;
    font-weight: 800;
    fill: #64748b;
}

.fvr-seating__hint {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.fvr-seating__hint i {
    color: #fbb800;
    margin-right: 6px;
}

.fvr-seat-cart-fab {
    position: fixed;
    right: 22px;
    bottom: 96px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 22px;
    border: 1px solid #363636;
    border-radius: 40px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.fvr-seat-cart-fab .fvr-seat-cart-fab__label,
.fvr-seat-cart-fab .fvr-seat-cart-fab__total {
    color: #fff;
    font-weight: 700;
    transition: none;
}

.fvr-seat-cart-fab[hidden] {
    display: none !important;
}

button.fvr-seat-cart-fab:hover,
button.fvr-seat-cart-fab:focus-visible {
    background: #fbb800;
    border-color: #fbb800;
    color: #111;
    transform: translateY(-1px);
}

button.fvr-seat-cart-fab:hover .fvr-seat-cart-fab__label,
button.fvr-seat-cart-fab:hover .fvr-seat-cart-fab__total,
button.fvr-seat-cart-fab:focus-visible .fvr-seat-cart-fab__label,
button.fvr-seat-cart-fab:focus-visible .fvr-seat-cart-fab__total {
    color: #111;
}

button.fvr-seat-cart-fab:hover .fvr-seat-cart-fab__count,
button.fvr-seat-cart-fab:focus-visible .fvr-seat-cart-fab__count {
    background: #111;
    color: #fbb800;
}

.fvr-seat-cart-fab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
}

.fvr-seat-pick-modal,
.fvr-seat-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.fvr-seat-pick-modal[hidden],
.fvr-seat-cart-modal[hidden] {
    display: none !important;
}

.fvr-seat-pick-modal__backdrop,
.fvr-seat-cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.fvr-seat-pick-modal__panel,
.fvr-seat-cart-modal__panel {
    position: relative;
    width: min(100%, 480px);
    max-height: min(92vh, 720px);
    overflow: auto;
    background: #12121a;
    border: 1px solid rgba(251, 184, 0, 0.25);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.fvr-seat-cart-modal__panel {
    width: min(100%, 560px);
}

.fvr-seat-pick-modal__head,
.fvr-seat-cart-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.fvr-seat-pick-modal__head h3,
.fvr-seat-cart-modal__head h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.fvr-seat-pick-modal__head p,
.fvr-seat-cart-modal__head p {
    margin: 0;
    font-size: 13px;
    color: #9a9a9a;
}

.fvr-seat-pick-modal__price {
    font-size: 22px;
    font-weight: 800;
    color: #fbb800;
    margin: 8px 0 16px;
}

.fvr-seat-pick-modal__note {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(251, 184, 0, 0.35);
    background: rgba(251, 184, 0, 0.1);
    color: #f5e6b8;
    font-size: 14px;
    line-height: 1.55;
}

.fvr-seat-pick-modal__note[hidden] {
    display: none !important;
}

.fvr-seat-pick-modal__note strong {
    color: #fbb800;
    font-weight: 800;
}

.fvr-seat-pick-modal__note-title {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 800;
    color: #ffe08a;
}

.fvr-seat-pick-modal__close,
.fvr-seat-cart-modal__close {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.fvr-seat-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.fvr-seat-qty__btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(251, 184, 0, 0.35);
    background: rgba(251, 184, 0, 0.1);
    color: #fbb800;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.fvr-seat-qty__val {
    min-width: 36px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.fvr-seat-pick-modal__actions,
.fvr-seat-cart-modal__foot {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.fvr-seat-btn {
    flex: 1;
    min-height: 46px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.fvr-seat-btn--primary {
    background: #fbb800;
    color: #111;
}

.fvr-seat-btn--primary:hover,
.fvr-seat-btn--primary:focus-visible {
    background: #ffc933;
    color: #111;
}

.fvr-seat-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fvr-seat-btn--ghost:hover,
.fvr-seat-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.fvr-seat-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
}

.fvr-seat-cart-modal.is-checkout .fvr-seat-cart-list {
    max-height: 140px;
}

.fvr-seat-cart-review-actions,
.fvr-seat-cart-modal__foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.fvr-seat-cart-review-actions[hidden],
.fvr-seat-checkout-form[hidden] {
    display: none !important;
}

.fvr-seat-checkout-back {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fbb800;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.fvr-seat-checkout-back:hover {
    text-decoration: underline;
}

.fvr-seat-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #e8e8e8;
}

.fvr-seat-cart-item__price {
    font-weight: 800;
    color: #fbb800;
    white-space: nowrap;
}

.fvr-seat-cart-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fvr-seat-cart-item__remove:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.fvr-seat-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.fvr-seat-cart-total strong {
    color: #fbb800;
    font-size: 20px;
}

.fvr-seat-checkout-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fvr-seat-checkout-form .fvr-form-field {
    margin-bottom: 12px;
}

.fvr-seat-checkout-form .fvr-form-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #c8c8c8;
}

.fvr-seat-checkout-form .fvr-form-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.fvr-seat-form-status {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13px;
    color: #9a9a9a;
}

.fvr-seat-form-status.is-error { color: #ff6b7a; }
.fvr-seat-form-status.is-ok { color: #4ade80; }

body.fvr-seat-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .fvr-seating { padding: 48px 0 64px; }
    .fvr-seat-cart-fab { right: 14px; bottom: 72px; font-size: 13px; }
}
