/* ===============================
   ROOT LAYOUT
================================ */
.seat-map-frontend__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: clamp(10px, 6vw, 100px);
}

.seat-map-frontend__body {
    display: grid;
    grid-template-columns: 1fr clamp(280px, 28vw, 360px);
    gap: clamp(30px, 6vw, 100px);
    align-items: flex-start;
}

/* ===============================
   TABS
================================ */
.seat-map-tabs {
}

/* ===============================
   CANVAS WRAPPER
================================ */
.seat-map-canvas {
    width: 100%;
}

/* ===============================
   STAGE (PREVIEW + ACTIVE)
================================ */
/* STAGE */
.seat-map-stage {
    display: flex;
    gap: clamp(24px, 6vw, 80px);
    align-items: flex-end;
}

.seat-floor {
    transition: transform .35s ease, opacity .35s ease;
}

/* PREVIEW luôn ở cột 1 */
.seat-floor.is-preview {
    order: 1;
    opacity: 0.85;
    flex: 1;
    cursor: pointer;
}

.seat-floor.is-preview:hover {
    opacity: 1;
}

/* ACTIVE luôn ở cột 2 */
.seat-floor.is-active {
    order: 2;
    flex: 2;
    opacity: 1;
}

/* ===============================
   IMAGE + SEAT OVERLAY
================================ */
.floor-canvas {
    position: relative; /* 🔥 MỐC CHUẨN */
    width: 100%;
}

/* ảnh */
.floor-canvas img {
    width: 100%;
    height: auto;
    display: block;
}

.seat-dot {
    position: absolute;
    height: 3.2%;
    aspect-ratio: 1/1;
    max-width: 24px;
    max-height: 24px;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translate(-50%, -50%);
    color: #fff;
    background: transparent;

    cursor: pointer;
    overflow: hidden;
}

/* hover + active background */
.seat-dot:hover,
.seat-dot.active {
    background: color-mix(in srgb, var(--seat-color) 18%, transparent);
}

.seat-dot:hover .l1 {
    left: 100%;
    transition: 1s;
}

.seat-dot:hover .l2 {
    top: 100%;
    transition: 1s .25s;
}

.seat-dot:hover .l3 {
    right: 100%;
    transition: 1s .5s;
}

.seat-dot:hover .l4 {
    bottom: 100%;
    transition: 1s .75s;
}

.seat-dot.active .l1{
    animation:seat-run-1 2.5s linear infinite;
}

.seat-dot.active .l2{
    animation:seat-run-2 2.5s linear infinite;
}

.seat-dot.active .l3{
    animation:seat-run-3 2.5s linear infinite;
}

.seat-dot.active .l4{
    animation:seat-run-4 2.5s linear infinite;
}

.seat-line {
    position: absolute;
    display: block;
}

/* TOP */
.seat-line.l1 {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--seat-color));
}

/* RIGHT */
.seat-line.l2 {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--seat-color));
}

/* BOTTOM */
.seat-line.l3 {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, var(--seat-color));
}

/* LEFT */

.seat-line.l4 {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--seat-color));
}
@keyframes seat-run-1{

    0%{ left:-100% }
    25%{ left:100% }

    25.01%,100%{ left:-100% }

}

@keyframes seat-run-2{

    0%,25%{ top:-100% }

    25%{ top:-100% }
    50%{ top:100% }

    50.01%,100%{ top:-100% }

}

@keyframes seat-run-3{

    0%,50%{ right:-100% }

    50%{ right:-100% }
    75%{ right:100% }

    75.01%,100%{ right:-100% }

}

@keyframes seat-run-4{

    0%,75%{ bottom:-100% }

    75%{ bottom:-100% }
    100%{ bottom:100% }

}
/* seat number */
.seat-dot .seat-number {
    opacity: 0;
}

/* ===============================
   INFO PANEL
================================ */
.seat-map-right {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 5vw, 50px);
}

.seat-types {
    display: flex;
    gap: clamp(8px, 2vw, 24px);
    justify-content: flex-end;
}

.seat-type-btn {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.seat-type-btn .icon {
    width: clamp(40px, 5.5vw, 65px);
    height: clamp(40px, 5.5vw, 65px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #223642;
    backdrop-filter: blur(12px);
    border-radius: 50%;
    border-top: 1px solid var(--color-white-20, #FFFFFF33);
    padding: clamp(10px, 2vw, 20px) clamp(4px, 1vw, 7px);
    overflow: hidden;
}

.seat-type-btn .icon img {
    width: 100%;
    height: auto;
}

.seat-type-btn .label {
    font-weight: 500;
    font-size: clamp(10px, 1.2vw, 13.3px);
    line-height: 1.5;
    text-align: center;
    color: var(--color-white);
}

.seat-type-btn.active .icon {
    background: #FBBB1280;
}

.seat-type-btn.active .label {
    font-weight: 700;
    color: var(--color-primary);
}

.seat-info {
    display: flex;
    flex-direction: column;
}

.seat-popup__content .label,
.seat-info .label {
    font-weight: 700;
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 10px;
}

.seat-info-card {
    background: rgba(255, 255, 255, .03);
    border-radius: clamp(16px, 2vw, 24px);
    margin-bottom: clamp(16px, 3vw, 30px);
    overflow: hidden;
}

.seat-info-card .seat-image {
    width: 100%;
}

.seat-info-card__content {
    padding: clamp(14px, 2vw, 20px);
    display: flex;
    flex-direction: column;
}

.seat-info-card .desc {
    font-size: clamp(12px, 1.2vw, 13.3px);
    color: var(--color-white-90);
}

.seat-info-card .desc p {
    margin-top: 0;
}

.seat-info-card__content .btn-link {
    margin-right: 0;
    margin-left: auto;
    font-size: 13.3px;
}

.gift-box {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    padding: clamp(10px, 1.5vw, 12px);
    border-radius: clamp(10px, 1.5vw, 14px);
    border: 1px solid #FBBB124D;
    background: #D4AF370D;

}

.gift-image {
    width: clamp(40px, 5vw, 48px);
    height: clamp(40px, 5vw, 48px);
    border-radius: 8px;
    overflow: hidden;
}

.gift-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.gift-content {
    flex: 1;
}

.gift-name {
    font-weight: 700;
    font-size: clamp(11px, 1vw, 12px);
    line-height: 16px;

}

.gift-desc {
    font-weight: 400;
    font-size: clamp(9px, .8vw, 10px);
    color: var(--color-gray-chateau);
}

.gift-desc p {
    margin: 0;
}
.seat-popup{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
}

.seat-popup.active{
    display:block;
}
@media (max-width: 1024px) {
    .seat-map-frontend__body {
        grid-template-columns: 1fr;
        gap: clamp(30px, 5vw, 50px);
    }
}

/* MOBILE: chỉ hiển thị floor active */
@media (max-width: 768px) {

    .seat-map-stage {
        justify-content: center;
    }

    .seat-floor.is-preview {
        display: none;
    }

    .seat-floor.is-active {
        flex: 1;
        max-width: 80%;
    }

    .seat-popup__overlay{
        position:absolute;
        inset:0;
        background:rgba(0,0,0,.5);
    }

    .seat-popup__box{
        position:absolute;
        top: 50%;
        left:50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-height:80vh;
        overflow:hidden;
    }

    .seat-popup__close{
        position:absolute;
        top:0;
        right:0;
        background:none;
        border:0;
        cursor:pointer;
        color: var(--color-white)
    }
    .seat-info-card{
        background: var(--color-dark-deep);
    }
    .gift-box{
        background: var(--color-dark-deep);
    }
}

@media (max-width: 640px) {
    .seat-map-frontend__body {
        gap: clamp(24px, 6vw, 36px);
    }
}