/* Kamp ve Etkinlik — sahne / masa oturma planı (ekleme ekranı) */
.ssp {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-height: 520px;
}

.ssp-panel {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 1rem;
    position: sticky;
    top: 0.75rem;
}

.ssp-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--gray-900, #111827);
}

.ssp-panel h4 {
    margin: 1rem 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--gray-700, #374151);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ssp-hint {
    margin: 0 0 0.85rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--gray-500, #6b7280);
}

.ssp-field {
    margin-bottom: 0.65rem;
}

.ssp-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600, #4b5563);
    margin-bottom: 0.25rem;
}

.ssp-field input,
.ssp-field select {
    width: 100%;
    height: 36px;
    padding: 0 0.6rem;
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 6px;
    font-size: 0.8125rem;
    background: #fff;
}

.ssp-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700, #374151);
    cursor: pointer;
    line-height: 1.3;
}

.ssp-field--check .ssp-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    padding: 0;
    flex: 0 0 16px;
    border-radius: 3px;
}

.ssp-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.ssp-row .ssp-field {
    flex: 1;
    margin-bottom: 0;
}

.ssp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.ssp-actions .btn {
    height: 34px;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
}

.ssp-inspector {
    border-top: 1px solid var(--gray-200, #e5e7eb);
    margin-top: 1rem;
    padding-top: 0.85rem;
}

.ssp-inspector.is-empty .ssp-inspector-fields,
.ssp-inspector.is-empty [data-ssp-inspector-actions] {
    display: none;
}

.ssp-inspector:not(.is-empty) .ssp-inspector-empty {
    display: none;
}

.ssp-inspector-empty {
    font-size: 0.75rem;
    color: var(--gray-500, #6b7280);
    margin: 0;
}

.ssp-stage-wrap {
    background: #f3f4f6;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 0.75rem;
    overflow: auto;
}

.ssp-canvas {
    position: relative;
    width: 100%;
    min-width: 640px;
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    background-color: #e8eaed;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.ssp-fixture {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #374151;
    background: #fff;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
}

.ssp-fixture--stage {
    left: 28%;
    top: 2%;
    width: 44%;
    height: 10%;
}

.ssp-fixture--entrance {
    left: 36%;
    bottom: 2%;
    width: 28%;
    height: 7%;
    font-size: 0.65rem;
}

.ssp-aisle {
    position: absolute;
    left: 46%;
    top: 14%;
    width: 8%;
    height: 72%;
    background: rgba(255, 255, 255, 0.35);
    border-left: 1px dashed rgba(107, 114, 128, 0.45);
    border-right: 1px dashed rgba(107, 114, 128, 0.45);
    pointer-events: none;
}

.ssp-table,
.ssp-pillar {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: grab;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.12s ease, border-color 0.12s ease;
    z-index: 2;
    touch-action: none;
    user-select: none;
    padding: 0;
}

.ssp-table {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.ssp-pillar {
    background: #111827;
    border-color: #030712;
    z-index: 1;
}

.ssp-table:hover,
.ssp-pillar:hover {
    z-index: 3;
}

.ssp-table.is-selected,
.ssp-pillar.is-selected {
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45);
    z-index: 4;
}

.ssp-table.is-bucket:not(.is-selected) {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.85);
    z-index: 3;
}

.ssp-table.is-out-of-bucket {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(0.7);
}

.ssp-table.is-dragging,
.ssp-pillar.is-dragging {
    cursor: grabbing;
    opacity: 0.92;
    z-index: 5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.ssp-table--yakin { background: #16a34a; }
.ssp-table--orta { background: #dc2626; }
.ssp-table--uzak { background: #92400e; }
.ssp-table--mavi { background: #2563eb; }

.ssp-table--wide {
    border-radius: 4px;
}

.ssp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--gray-700, #374151);
}

.ssp-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ssp-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.ssp-swatch--yakin { background: #16a34a; }
.ssp-swatch--orta { background: #dc2626; }
.ssp-swatch--uzak { background: #92400e; }
.ssp-swatch--mavi { background: #2563eb; }
.ssp-swatch--kolon { background: #111827; }

.ssp-empty-canvas {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    pointer-events: none;
}

.ssp-stats {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500, #6b7280);
}

@media (max-width: 960px) {
    .ssp {
        grid-template-columns: 1fr;
    }

    .ssp-panel {
        position: static;
    }
}

/* Rezervasyon sihirbazı — masa seçimi (sürükleme yok) */
.ssp--booking {
    margin: 1rem 0 0.5rem;
}

.ssp--storefront {
    display: block;
    min-height: 0;
    margin: 0.75rem 0 1rem;
}

.ssp--storefront .ssp-panel {
    position: static;
    margin-bottom: 0.75rem;
}

.ssp--storefront .ssp-canvas {
    min-width: 0;
}

.ssp-page-card {
    margin-top: 1rem;
    scroll-margin-top: 5.5rem;
}

.ssp--page {
    display: block;
    min-height: 0;
}

.ssp--page .ssp-canvas {
    min-width: 0;
    min-height: 520px;
    aspect-ratio: 16 / 10;
}

.ssp--page .ssp-table {
    font-size: 0.8rem;
}

.ssp--booking .ssp-table {
    cursor: pointer;
}

.ssp--booking .ssp-pillar {
    cursor: default;
    pointer-events: none;
}

.ssp-table.is-occupied {
    background: #9ca3af !important;
    opacity: 0.75;
    cursor: not-allowed;
    text-decoration: line-through;
}

.ssp-table.is-occupied.is-selected {
    border-color: #6b7280;
}

.ssp-booking-banner {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 0.8125rem;
    color: #1e3a8a;
}

.ssp-booking-selected {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #065f46;
}

.ssp--storefront > .ssp-booking-selected {
    display: none;
}

.ssp-filters {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
}

.ssp-filter-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.ssp-filter-label {
    flex: 0 0 auto;
    min-width: 4.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.ssp-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ssp-chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}

.ssp-chip.is-on {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.ssp-chip--yakin.is-on { background: #16a34a; border-color: #16a34a; }
.ssp-chip--orta.is-on { background: #dc2626; border-color: #dc2626; }
.ssp-chip--mavi.is-on { background: #2563eb; border-color: #2563eb; }
.ssp-chip--uzak.is-on { background: #92400e; border-color: #92400e; }

.ssp--storefront [data-bsp-info]:empty {
    display: none;
}

.ssp-pick-card {
    margin: 0 0 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.ssp-pick-card.is-selected {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.28);
}

.ssp-pick-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.ssp-pick-num,
.ssp-pick-kicker {
    font-size: 1.05rem;
    font-weight: 750;
    color: #111827;
}

.ssp-pick-price {
    font-size: 1.2rem;
    font-weight: 750;
    color: #111827;
    white-space: nowrap;
}

.ssp-pick-price small {
    font-size: 0.72rem;
    font-weight: 650;
    color: #6b7280;
}

.ssp-pick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.ssp-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 650;
}

.ssp-tag--yakin { background: #dcfce7; color: #166534; }
.ssp-tag--orta { background: #fee2e2; color: #991b1b; }
.ssp-tag--mavi { background: #dbeafe; color: #1e40af; }
.ssp-tag--uzak { background: #fef3c7; color: #92400e; }

.ssp-pick-note {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.ssp-zone-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.ssp-zone-stat {
    padding: 0.5rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.ssp-zone-stat span,
.ssp-zone-stat em {
    display: block;
    font-style: normal;
    font-size: 0.72rem;
    color: #6b7280;
}

.ssp-zone-stat strong {
    display: block;
    margin: 0.1rem 0;
    font-size: 0.95rem;
    color: #111827;
}
