.main-content {
    /* padding: 20px; */
    overflow: hidden;
    height: 100%;
    /* min-height: 759px; */


    /* Timer Styles */
    .timer-banner {
        position: absolute;
        top: 25px;
        right: 30px;
        /* width: 100%; */
        z-index: 5;
        background: linear-gradient(135deg, var(--purple-100), var(--purple-200));
        border-radius: 10px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 7px;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    
        .timer-label {
            display: flex;
            align-items: center;
            gap: 8px;
        }
    
        .timer-label-text {
            font-size: 16px;
            font-weight: 700;
            color: var(--purple-800);
            margin-right: 5px;
        }
    
        .timer-display {
            display: flex;
            align-items: center;
            gap: 5px;
            font-family: var(--font-heading);
            animation: pulse 1s ease-in-out 0s infinite forwards;
        }
    
        .timer-digit {
            background: var(--purple-600);
            color: white;
            border-radius: 6px;
            padding: 2px 8px 5px;
            font-size: 18px;
            font-weight: 700;
            min-width: 36px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
    
        .timer-colon {
            color: var(--purple-900);
            font-weight: 700;
            font-size: 18px;
        }
    }
    




    .map_container {
        position: relative;
        /* border: 1px solid black; */
        /* border: 1px solid var(--neutral-500); */
        /* border-radius: 10px; */
        /* flex: 1; */
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 100%;

        
        .legend-container {
            position: absolute;
            top: 25px;
            left: 20px;
            background: var(--neutral-50);
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            max-width: 400px;
            /* margin: 40px auto; */
            padding: 10px;
            z-index: 500;

            &.hidden {
                display: none !important;
            }
            
            .legend-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                /* padding: 24px 32px; */
                font-size: 14px;
                font-weight: bold;
                color: #2a2a2a;
                cursor: pointer;
                user-select: none;
                margin-bottom: 5px;

                .header-text {
                    margin-right: 15px;
                    flex: 1;
                }
            }

            &.legend-collapsed {
                cursor: pointer;
            }

            &.legend-collapsed .legend-header {
                margin-bottom: 0;
            }

            .legend-chevron {
                transition: transform 0.3s cubic-bezier(.4,2,.6,1);
                font-size: 13px;
                color: #7b3ff0;
            }

            &.legend-collapsed .legend-chevron {
                transform: rotate(-90deg) translateX(0px);
            }

            &.legend-expanded .legend-chevron {
                transform: rotate(90deg) translate(1px, 1px);
            }

            .legend-list {
                display: none;
            }

            &.legend-expanded .legend-list {
                display: block;
            }

            .legend-item {
                display: flex;
                align-items: center;
                justify-content: space-between;
                /* margin-bottom: 14px; */
                transition: all 300ms ease;
                padding: 5px 10px;
                border-radius: 5px;
                cursor: default;

                /* &:last-of-type {
                    margin-bottom: 0;
                } */

                &:not([disabled]) {
                    cursor: pointer;
                    justify-content: unset;
    
                    &:hover {
                        transform: translateY(-1px);
                        box-shadow: 0 1px 3px rgba(0,0,0,0.07);
                        background: linear-gradient(white, var(--purple-100));
                        /* background: linear-gradient(white, var(--purple-50)); */
                    }
    
                    &.selected {
                        box-shadow: 0 1px 3px rgba(0,0,0,0.07);
                        background: linear-gradient(var(--neutral-50), var(--purple-100));
                    }

                    .legend-label {
                        margin-right: 25px;
                    }
                }
            }

            .legend-circle {
                --circle-color: lightgray;
                background-color: var(--circle-color);

                width: 14px;
                height: 14px;
                border-radius: 50%;
                margin-right: 8px;
                flex-shrink: 0;
                box-shadow: 0 1px 3px rgba(0,0,0,0.07);
                border: 1px solid slategray;
            }

            .legend-label {
                /* display:none; */
                flex: 1;
                font-size: 13px;
                color: #333;
            }

            .legend-price {
                font-size: 13px;
                font-weight: bold;
                color: #7b3ff0;
            }

            /* Example color palette */
            .circle-green { background: #4caf50; }
            .circle-yellow { background: #ffeb3b; }
            .circle-orange { background: #ff9800; }
            .circle-red { background: #f44336; }
            .circle-purple { background: #7b3ff0; }
        }
    
        .svg_map_container {
            flex: 1;
        }

        .seat-tooltip-content {
            text-align: left;
            
        }
    
        .svg_map_loader {
            position: absolute;
            width:100%;
            height:100%;
            /* text-align: center;
            box-sizing: border-box;
            padding-top:240px;
            font-size:16px;
            font-weight: 300; */
            /* display: none; */
            background-color:#fff;
            background-position: center center;
            background-repeat: no-repeat;
    
            /* &.show {
                display: block;
            } */
        }
    
        #svg_map {
            --padding: 0px;
    
            position: absolute;
            top: var(--padding);
            left: var(--padding);
            width: calc(100% - 2 * var(--padding));
            height: calc(100% - 2* var(--padding));
            /* display:block; */
            /* width:80%; */
            cursor:move;
    
            &.hidden {
                display: none;
            }
        }
    
    
        .elem, .elem_text {
            transition: 0.3s;
            cursor:pointer;
        }
    
        .hover_group {
            stroke: black;
            stroke-width: 0.3px;
    
            &.selected {
                fill: #3DFF0C !important;
            }

            &.outfilter {
                fill: #dbdbdb;
            }
        }
    
        .hover_group:hover .elem {
            stroke:#333;
            stroke-width:5px;
            stroke-opacity:0.8;
        }
    
        .go-to-main-hall-btn {
            position: absolute;
            bottom: 20px;
            left: 20px;
        }
    
        .show_hall_id{
            fill: #ff5454;
    
            polygon, rect, circle {
                stroke: #999999;
                stroke-width: 2px;
            }
            
            text {
                fill: white;
                font-family: "Poppins", sans-serif;
                font-weight: 400;
                font-style: normal;
            }
    
            &:hover {
                fill: #bd1313;
                
                /* text {
                    fill: white;
                } */
            }
        }
    }
                
    .mobile-cart-overlay {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #0009;
        z-index: 1000;
        align-items: center;
        justify-content: center;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: all 150ms ease;
            
        &.visible {
            opacity: 1;
            pointer-events: all;

            .mobile-cart-popup {
                translate: 0 0;
                /* opacity: 1; */
                pointer-events: all;
            }
        }
    
        .mobile-cart-popup {
            position: fixed;
            bottom: 0;
            top: 0;
            right: 0;
            background-color: #fff;
            border-radius: 20px 0 0 20px;
            box-shadow: 0 -4px 20px #00000026;
            overflow-y: auto;
            z-index: 1001;
            padding: 20px;
            cursor: initial;
            transition: all 300ms ease-out;

            display: flex;
            flex-direction: column;

            translate: 100% 0;
            /* opacity: 0.8; */
            pointer-events: none;
        
            .mobile-cart-header {
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                margin-bottom: 15px;
                padding-bottom: 10px;
                border-bottom: 1px solid var(--purple-100);
            
                .cart-title {
                    font-size: 18px;
                    font-weight: 700;
                    color: var(--neutral-800);
                    margin: 0
                }
                
                .cart-item-count-badge {
                    margin-left: 8px;
                    background-color: #ff5757;
                    color: white;
                    border-radius: 50%;
                    width: 24px;
                    height: 24px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 14px;
                    font-weight: 700;
                }
        
                .cart-overlay-close-button {
                    position: absolute;
                    right: -10px;
                    background: transparent;
                    border: none;
                    font-size: 24px;
                    color: var(--neutral-700);
                    cursor: pointer;
                    z-index: 1010;
                    width: 40px;
                    height: 40px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 50%;
                    
                    &:hover {
                        background-color: var(--purple-50)
                    }
                }
            }
            
            /* Cart styles */
            .cart-container {
                border-radius: 0 0 16px 16px;
                box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
                background: white;
                border: 1px solid var(--purple-100);
                padding: 20px;
                flex: 1;
                display: flex;
                flex-direction: column;
                overflow: auto;
                
                .cart-details-container {
                    min-height: 340px;
                    display: flex;
                    flex-direction: column;
                    flex: 1;
                    overflow: hidden;
                    
                    .cart-items {
                        min-height: 243px;
                        overflow-y: auto;
                        margin-bottom: 20px;
                        flex: 1;
                        
                        .cart-item {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            padding: 15px 0;
                            border-bottom: 1px solid var(--purple-100);
                            gap: 10px;
                            
                            .cart-item-info {
                                flex: 1;
                                
                                .cart-item-name {
                                    font-size: 14px;
                                    font-weight: 600;
                                    color: var(--neutral-800);
                                }
                                
                                .cart-item-price-container {
                                    display: flex;
                                    align-items: center;
                                    gap: 5px;
                                    margin-top: 4px;
                                    
                                    .cart-item-price {
                                        font-size: 14px;
                                        color: var(--neutral-600);
                                    }
                                    
                                    .cart-item-quantity {
                                        color: var(--primary);
                                        font-weight: 600;
                                    }
                                }
                            }
                            
                            .remove-button {
                                background-color: transparent;
                                border: none;
                                color: var(--neutral-400);
                                font-size: 18px;
                                cursor: pointer;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                width: 30px;
                                height: 30px;
                                border-radius: 50%;
                                transition: all 0.2s ease;
                                
                                &:hover {
                                    background-color: var(--purple-100);
                                    color: var(--primary);
                                }
                            }
                        }
                    }
                    
                    .cart-summary-row {
                        display: flex;
                        justify-content: space-between;
                        margin-bottom: 10px;
                        font-size: 14px;
                        color: var(--neutral-600);
                    }
                    
                    .cart-total-row {
                        display: flex;
                        justify-content: space-between;
                        margin-bottom: 10px;
                        padding-top: 10px;
                        border-top: 1px solid var(--purple-100);
                        
                        .cart-total-label,
                        .cart-total-amount {
                            font-weight: 700;
                            font-size: 16px;
                            color: var(--neutral-800);
                        }
                    }
                }
                
                /* Promo Code Section */
                .promo-code-container {
                    margin-top: 15px;
                    
                    .promo-code-form {
                        display: flex;
                        align-items: center;
                        gap: 10px;
                        margin-bottom: 5px;
                        
                        .promo-code-input {
                            flex: 1;
                            padding: 10px 15px;
                            border-radius: 8px;
                            border: 1px solid var(--purple-100);
                            font-size: 14px;
                            outline: none;
                            transition: all 0.2s ease;
                            
                            &:focus {
                                border-color: var(--primary);
                                box-shadow: 0 0 0 2px var(--purple-100);
                            }
                        }
                    }
                    
                    .promo-message {
                        display: none;
                        font-size: 12px;
                        margin-top: 5px;
                        text-align: center;
                    
                        &.show {
                            display: block !important;
                        }
                        
                        &.error-message {
                            color:  #FF0056;
                            font-size: 12px;
                            margin-top: 5px;
                        }
                        
                        &.success-message {
                            color: #22c55e;
                            font-size: 12px;
                            margin-top: 5px;
                        }
                    }
                }
                
                .checkout-button {
                    width: 100%;
                    padding: 14px;
                    background-color: #ff5757;
                    color: white;
                    border: none;
                    border-radius: 10px;
                    font-size: 16px;
                    font-weight: 600;
                    cursor: pointer;
                    margin-top: 15px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 10px;
                    transition: all 0.2s ease;
                    
                    &:hover {
                        background-color: #e04949;
                        transform: translateY(-2px);
                    }
                }
                
                .cart-empty {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    padding: 30px;
                    margin-bottom: 30px;
                    color: var(--neutral-500);
                    
                    .cart-empty-icon {
                        color: var(--neutral-300);
                        margin-bottom: 15px;
                        font-size: 125px;
                    }
                    
                    .cart-empty-title {
                        font-size: 16px;
                        font-weight: 600;
                        margin-bottom: 5px;
                    }
                    
                    .cart-empty-text {
                        font-size: 14px;
                        text-align: center;
                        max-width: 200px;
                    }
                }
            }
        }
    }

    
        
    .cart-toggle-button {
        position: fixed;
        bottom: 25px;
        right: 35px;
        width: 120px;
        height: 55px;
        border-radius: 30px;
        background-color: var(--purple-600);
        color: #fff;
        border: none;
        box-shadow: 0 4px 15px #6f44ff4d;
        /* display: none; */
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 100;
        transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;

        padding: 0 10px;
        font-size: 20px;
        
        &:hover {
            background-color: var(--purple-700);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px #6f44ff66
        }

        .cart-icon {
            stroke-width: 2;
        }
        
        .cart-item-count {
            font-family: var(--font-primary);
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #ff5757;
            color: #fff;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            /* font-weight: 700; */
            border: 2px solid white
        }

        .cart-button-text {
            letter-spacing: 1px;
            font-weight: bold;
            margin-left: 2px;
        }
    }
}


/* Animation for timer */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive styles */
@media (max-width: 767px) {
    .main-content {
        min-height: 530px;

        

        .timer-banner {
            padding: 10px;
            gap: 5px;

            .timer-label {
                display: none;
            }

            .timer-label-text {
                font-size: 14px;
            }

            .timer-digit {
                font-size: 15px;
                padding: 2px 3px 3px;
            }
        }

        .mobile-cart-overlay .mobile-cart-popup {
            top: unset;
            left: 0;
            border-radius: 20px 20px 0 0;
            max-height: 80dvh;
            display: block;

            translate: 0 100%;

            .cart-container {
                /* display: block;
                overflow: hidden; */

                .cart-details-container {
                    /* height: 340px; */
                    /* overflow: unset; */
                    /* flex: unset; */
                    min-height: unset;

                    .cart-items {
                        max-height: 235px;
                        min-height: unset;
                    }
                }

                .cart-empty {
                    padding: 30px 0;
                    margin-bottom: 0;
                }
            }
        }
        
        .cart-toggle-button {
            width: 60px;
            height: 60px;
            font-size: 16px;
            bottom: 20px;
            right: 20px;

            .cart-icon {
                stroke-width: 2;
            }

            .cart-button-text {
                display: none;
            }
        }
    }
}