.price-tag {
    display: none;
}

/* button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
}

button:hover {
    background-color: #45a049;
} */

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* z-index: 1000; */
    overflow: hidden;
}
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    z-index: 10;
}
.close-btn:hover {
    color: #000;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 5px;
}
.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Map container styles */
.map-container {
    position: relative;
    flex: 1;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    overflow: auto;
    background-color: #f9f9f9;
}

.seat {
    position: absolute;
    width: 23px;
    height: 26px;
    margin-left: -11.5px;
    margin-top: -13px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 500;
    filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.2));
    transform: scale(1.1);
}

.seat .base {
    position: absolute;
    width: 21px;
    height: 18px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 2.5px;
    bottom: 0;
    left: 1px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 1px 1px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.seat .base::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.seat .backrest {
    position: absolute;
    width: 21px;
    height: 17px;
    background: linear-gradient(135deg, #5a7bff, #3a5bd9);
    border-radius: 3px 3px 0 0;
    bottom: 9px;
    left: 1px;
    transform: perspective(120px) rotateX(12deg);
    box-shadow: 0 -1.5px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 1.5px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1.5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5px;
    font-weight: bold;
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.seat .backrest::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 3px 3px 0 0;
}

.seat .headrest {
    position: absolute;
    width: 14px;
    height: 3.5px;
    background: linear-gradient(to bottom, #333, #222);
    border-radius: 2px;
    bottom: 21px;
    left: 4.5px;
    box-shadow: 0 0.7px 1.2px rgba(0, 0, 0, 0.3),
        inset 0 0.7px 0.7px rgba(255, 255, 255, 0.1);
}

.seat .headrest::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    border-radius: 1px;
    top: 1px;
    left: 2px;
}

.seat .armrest-left,
.seat .armrest-right {
    position: absolute;
    width: 2px;
    height: 9px;
    background: linear-gradient(to right, #0a0a0a, #222);
    border-radius: 1.2px;
    bottom: 5.5px;
    box-shadow: 0 0.7px 1.2px rgba(0, 0, 0, 0.3);
}

.seat .armrest-left {
    left: 0;
}

.seat .armrest-right {
    right: 0;
}

.seat .controls {
    position: absolute;
    width: 12px;
    height: 3px;
    background: linear-gradient(to bottom, #333, #222);
    border-radius: 2px;
    bottom: 4.5px;
    left: 5.5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: inset 0 0.7px 1.2px rgba(0, 0, 0, 0.5),
        0 0.7px 0.7px rgba(255, 255, 255, 0.05);
}

.seat .control-btn {
    width: 1.4px;
    height: 1.4px;
    background: linear-gradient(to bottom, #555, #444);
    border-radius: 50%;
    box-shadow: inset 0 -0.5px 0.5px rgba(0, 0, 0, 0.5);
}

.seat .light {
    position: absolute;
    width: 16px;
    height: 2.5px;
    background: linear-gradient(to bottom, #222, #111);
    border-radius: 1px;
    top: 0.5px;
    left: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0.7px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.seat .light-bulb {
    width: 13px;
    height: 0.7px;
    background: linear-gradient(90deg,
            rgba(150, 150, 150, 0.3),
            rgba(220, 220, 220, 0.9),
            rgba(150, 150, 150, 0.3));
    border-radius: 0.5px;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.seat .reflection {
    position: absolute;
    width: 7px;
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    top: 3.5px;
    left: 6.5px;
    transform: rotate(45deg);
    filter: blur(0.8px);
}

.seat .cushion {
    position: absolute;
    width: 16px;
    height: 4px;
    background: linear-gradient(to bottom, #222, #1a1a1a);
    border-radius: 2px;
    bottom: 4px;
    left: 3.5px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5),
        0 0.5px 0 rgba(255, 255, 255, 0.05);
}

.seat .cushion::after {
    content: '';
    position: absolute;
    width: 11px;
    height: 2px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    border-radius: 1px;
    top: 1px;
    left: 2px;
}

.controlsleft {
    flex: 0 0 300px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.seat:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


.seat.unavailable {
    background-color: var(--danger-color);
}

.seat.reserved {
    background-color: var(--warning-color);
    color: #333;
}


@media (max-width: 991px) {
    .controls {
        flex: 1;
    }
}

.control-group {
    margin-bottom: 20px;
}

.control-group h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}



/* Legend styles */
.legend {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 5px;
}

.legend-available {
    background-color: #007bff;
}

.legend-reserved {
    background-color: purple;
}

.legend-unavailable {
    background-color: #F44336;
    opacity: 0.7;
}

.legend-selected {
    background-color: #E0B0FF;
}

.seat.selected .backrest {
    background: #E0B0FF !important;
}

.seat.reserved .backrest {
    background: var(--primary_color) !important;
}

.seat.sold .backrest {
    background: red !important;
}

.seat.unavailable .backrest {
    background: red !important;
}

.zoom-controls {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
    /* display: list-item; */
    gap: 5px;
    z-index: 5;
    /* bottom: 120px;
    right: 26px !important; */
}

.zoom-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.zoom-btn:hover {
    background-color: #f0f0f0;
}

#seating-map {
    position: relative;
    width: 100%;
    height: 100%;

    /* background: url("./plan11.jpg"); */
    background-size: cover !important;
    cursor: crosshair;
    overflow: visible;
    touch-action: manipulation;
    transform-origin: 0 0;
    transform: scale(1);
}


.seat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seat-header h3 {
    margin: 0;
    font-size: 18px;
}

.seat-body p {
    margin: 8px 0;
}

.close-seatinfo {
    cursor: pointer;
}

.btn-buy-seat {
    width: 100%;
    padding: 10px;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-buy-seat:hover {
    background-color: #16a085;
}

/* Seat info styles */
#seat-info {
    position: fixed;
    top: 20%;
    left: 50%;
    display: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999999999999;
    width: 300px;
    max-width: 90%;
    opacity: 1;
    transform: translate(-50%, 50%);
}

#seat-info.visible {
    opacity: 1;
    transform: translateX(-50%);
    pointer-events: auto;
    display: block;
}


#seat-info h3 {
    margin-top: 0;
    font-size: 22px;
    color: #333;
    text-align: center;
}

#seat-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

#seat-info strong {
    color: #000;
}

.close-seatinfo {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-seatinfo:hover {
    color: #333;
}


/* Loading indicator */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 20;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    z-index: 1100;
    display: none;
}

table.seat-details-horizontal {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Urbanist';
    margin-top: 10px;
}

table.seat-details-horizontal th {
    background-color: #000;
    color: #fff;
    padding: 10px;
    text-align: center;
    border: 1px solid #444;
}

table.seat-details-horizontal td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.cart-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 16px;
}

.cart-btn:hover {
    background: #218838;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.cart-item-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cart-item-price {
    font-weight: bold;
    color: #28a745;
    font-size: 18px;
}

.cart-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

.cart-item-remove:hover {
    background: #c82333;
}

.cart-summary {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 20px;
    color: #28a745;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* .btn-primary,
.btn-secondary,
.btn-success,
.btn-add-seat,
.btn-remove-seat,
.btn-close-info {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
} */

/* .btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
} */

.btn-add-seat {
    background: #28a745;
    color: white;
}

.btn-add-seat:hover {
    background: #218838;
}

.btn-remove-seat {
    background: #dc3545;
    color: white;
}

.btn-remove-seat:hover {
    background: #c82333;
}

.btn-close-info {
    background: #6c757d;
    color: white;
}

.btn-close-info:hover {
    background: #545b62;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* Style pour les sièges dans le panier */
.seat.in-cart {
    border: 3px solid #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5) !important;
}

.seat-footer {
    display: flex;
    justify-content: center;
}

.legend-in-cart {
    background: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column;
    }

    /* .btn-primary,
    .btn-secondary,
    .btn-success {
        min-width: auto;
    } */
}

/*  */

.seat-legend {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}
.seat-available {
    background: #007bff;
}
.seat-reserved {
    background: var(--primary_color);
}
.seat-selected {
    background: #E0B0FF;
}
