* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f3f3;
    color: #111;
}

.page {
    width: 100%;
    padding: 28px;
}

.booking-card {
    max-width: 1640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

h1 {
    margin: 0 0 22px;
    font-size: 30px;
}

.legend {
    display: flex;
    gap: 42px;
    align-items: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.legend-box {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    vertical-align: middle;
    margin-right: 10px;
}

.available { background: linear-gradient(180deg, #62b344, #3f962d); }
.selected { background: linear-gradient(180deg, #e01919, #b90000) !important; }
.occupied { background: linear-gradient(180deg, #aaa, #888); cursor: not-allowed; }

/* EZ A LÉNYEG:
   A teljes nézőtérnek van egy fix középtengelye.
   A sorszámok abszolút pozícióban vannak, ezért nem tolják el a székeket. */
.theater-map {
    width: 760px;
    margin: 0 auto;
    position: relative;
}

.stage {
    width: 760px;
    margin: 0 auto 34px;
    background: linear-gradient(180deg, #181818, #090909);
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
}

#seat-map {
    width: 760px;
}

.seat-row {
    position: relative;
    width: 760px;
    margin-bottom: 14px;
}

.row-label {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 105px;
    text-align: left;
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
}

.seats {
    width: 760px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.elevated-row {
    margin-top: 24px;
}

.elevated-row + .elevated-row {
    margin-top: 0;
}

.seat {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.panel {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.panel h2 {
    margin: 0;
    padding: 18px 22px;
    background: linear-gradient(180deg, #1c1c1c, #080808);
    color: #fff;
    font-size: 18px;
}

.panel-body {
    padding: 22px;
}

.panel-body h3 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 28px;
}

.panel-body p {
    line-height: 1.5;
}

#selected-seats {
    list-style: none;
    padding: 18px 22px;
    margin: 0;
    min-height: 86px;
}

#selected-seats li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

#selected-seats .empty {
    color: #666;
    font-weight: normal;
    border-bottom: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
    font-size: 17px;
}

.summary-row.total {
    font-size: 20px;
}

#ticket-count {
    color: #49a234;
}

#continue-btn {
    width: calc(100% - 44px);
    margin: 22px;
    padding: 18px;
    background: #d40000;
    color: #fff;
    border: 0;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

#continue-btn:hover {
    background: #b80000;
}

@media (max-width: 1300px) {
    .booking-card {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 1000px) {
    .theater-map,
    .stage,
    #seat-map,
    .seat-row,
    .seats {
        width: 620px;
    }

    .seat {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .seats {
        gap: 7px;
    }
}

@media (max-width: 760px) {
    .page { padding: 12px; }
    .booking-card { padding: 18px; overflow-x: auto; }
}

.event-selector {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 28px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.event-selector label {
    font-weight: 800;
}

.event-selector select {
    flex: 1;
    padding: 12px;
    font-size: 16px;
}


.event-poster-box {
    max-width: 760px;
    margin: 0 auto 28px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.event-poster-box h2 {
    margin: 0 0 14px 0;
    font-size: 18px;
}

.event-poster-box img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

/* Mobilbarát nézőtér: lehessen oldalra húzni és két ujjal zoomolni */
.seat-area {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.theater-map {
    min-width: 760px;
}

@media (max-width: 900px) {
    .booking-card {
        display: block;
        overflow-x: visible;
    }

    .seat-area {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .sidebar {
        margin-top: 24px;
    }

    .event-selector {
        display: block;
    }

    .event-selector select {
        width: 100%;
        margin-top: 10px;
    }

    h1 {
        font-size: 22px;
    }
}


.finalize-btn {
    width: 100%;
    margin-top: 28px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #e00000, #9f0000);
    color: white;
    padding: 22px;
    cursor: pointer;
    transition: all .22s ease;
    box-shadow:
        0 12px 28px rgba(180,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.2);
}

.finalize-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #ff1f1f, #b30000);
    box-shadow:
        0 18px 38px rgba(180,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.25);
}

.finalize-btn:active {
    transform: scale(.99);
}

.finalize-btn .btn-main {
    display: block;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .5px;
}

.finalize-btn .btn-sub {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    opacity: .92;
    font-weight: 500;
}

@media (max-width: 900px) {
    .finalize-btn {
        padding: 18px;
    }

    .finalize-btn .btn-main {
        font-size: 18px;
    }

    .finalize-btn .btn-sub {
        font-size: 12px;
    }
}

.finalize-btn {
    width: 100%;
    margin-top: 28px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #e00000, #9f0000);
    color: white;
    padding: 22px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(180,0,0,.28);
}

.finalize-btn .btn-main {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.finalize-btn .btn-sub {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

/* BoldogON arculati igazítás */
body {
    background:
        radial-gradient(circle at top left, rgba(180,0,0,.18), transparent 35%),
        linear-gradient(135deg, #130606 0%, #21100f 45%, #090909 100%) !important;
    color: #1a1a1a;
}

.booking-card {
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 20px 60px rgba(0,0,0,.35) !important;
}

h1 {
    color: #2b0b0b;
    letter-spacing: .5px;
}

.panel h2,
.stage {
    background: linear-gradient(180deg, #320606, #090909) !important;
}

#continue-btn,
.finalize-btn {
    background: linear-gradient(180deg, #d7a037, #a60000) !important;
    box-shadow: 0 12px 30px rgba(120,0,0,.28) !important;
}

.event-selector {
    background: #fff8ec !important;
    border: 1px solid #d7a037 !important;
}

.seat.selected {
    background: linear-gradient(180deg, #d7a037, #b00000) !important;
}

.event-poster-box {
    border: 1px solid #d7a037 !important;
    background: #fffaf0 !important;
}

.top-nav{
    position:sticky;
    top:0;
    z-index:99999;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:28px;
    padding:18px 24px;
    background:linear-gradient(180deg,#1b2836 0%,#324759 100%);
    box-shadow:0 6px 18px rgba(0,0,0,.25);
}

.top-nav a{
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:16px;
}

.top-nav a:hover{
    color:#d7a037;
}

@media(max-width:768px){
    .top-nav{
        flex-wrap:wrap;
        gap:14px;
        padding:14px;
    }
    .top-nav a{
        font-size:14px;
    }
}

/* FOGLALÁSI ADATOK RENDEZÉSE */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.booking-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.booking-form input,
.booking-form select {
    display: block;
    width: 100%;
    max-width: 600px;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.booking-form button,
.booking-form .finalize-btn {
    margin-top: 16px;
}
