/* Style for disabled buttons */
.btn-ticket:disabled {
    opacity: 0.7; /* Make it slightly transparent */
    background-color: #b53c4a; /* Slightly lighter than active pink-dark */
    cursor: not-allowed;
    color: white;
}

/* Specific style for "Sold Out" buttons */
.btn-ticket.sold-out {
    opacity: 0.5; /* Even more transparent */
    background-color: #9c343e; /* Even lighter */
    color: white;
}

/* Feedback Modal Styles */
.modal-content {
    background-color: #f6c1ba; /* Цвет фона модального окна */
    border: none;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-title {
    color: var(--text-dark);
}

.modal-body .form-label {
    color: var(--text-dark);
}

.modal-body .btn-primary {
    background: var(--pink-dark);
    color: #fff;
    border-radius: 40px;
    padding: 14px 25px;
    font-weight: 600;
    border: none;
}

.modal-body .btn-primary:hover {
    background: #b53c4a;
    color: #fff;
}


/* Lazyload Placeholder Styles */
.lazyload-placeholder {
    background-color: #f0f0f0; /* Светло-серый фон */
    display: block;
    position: relative;
    overflow: hidden;
}

/* Анимация градиента для 'shimmer' эффекта */
.lazyload-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 150%;
    background: linear-gradient(to right, transparent 0%, #e8e8e8 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}


/* Remove placeholder background after image is loaded */
img.lazyloaded {
    background-color: transparent !important;
}


/* Preloader Styles - Reveal Effect */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f6c1ba;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader-text-container {
    text-align: center;
}

.preloader-text {
    font-family: 'Ponter', sans-serif;
    font-size: 10vw;
    font-weight: 800;
    line-height: 1.1;
    color: white; /* Текст теперь белый */
    position: relative; /* Для позиционирования маски */
    overflow: hidden; /* Скрываем все, что выходит за пределы */
}

/* Маска, которая будет сдвигаться */
.preloader-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f6c1ba; /* Тот же розовый фон */
    animation: reveal-text 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* Задержка анимации для второй строки */
.preloader-text:last-child::after {
    animation-delay: 0.2s;
}

@keyframes reveal-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(101%); /* Сдвигаем полностью вправо */
    }
}

/* Скрытие прелоадера */
#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.navbar-nav .nav-item {
    position: relative; /* To contain the absolutely positioned language switcher */
}

/* Language Switcher Styles */
.language-switcher-expandable {
    position: relative; /* Positioning context for absolute children */
    display: inline-block;
    background: transparent; /* Background for the button part */
    color: #fff;
    border-radius: 40px;
    font-weight: 600;
    /* overflow: hidden; Removed, as list will be absolute */
    /* max-height: 50px; Removed, as list will be absolute */
    transition: all 0.3s ease-out; /* For background, border-radius changes */
    z-index: 10;
    cursor: pointer;
    border: 2px solid #fff;
    margin-right: 10px;
}

.language-switcher-expandable.expanded {
    border-radius: 20px 20px 0 0; /* Adjust if you want it to look more "expanded" */
    overflow: visible; /* Allow the absolute list to show */
    border-bottom: 0px;
    background: #f6c1ba;
}

.language-switcher-expandable .btn-lang {
    background: transparent;
    color: #fff;
    border: none;
    padding: 10px 21px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    cursor: pointer;
    display: block;
}

.language-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    position: absolute; /* Take out of document flow */
    top: 100%; /* Position below the button */
    left: 0;
    border: 2px solid #fff;
    border-top: none;
    background: transparent; /* Background for the dropdown list */
    z-index: 1000; /* Ensure it's above other content */
    border-radius: 0 0 20px 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px); /* Start slightly above */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    width: 69px;
    margin-left: -2px;
    background: #f6c1ba;
}

.language-switcher-expandable.expanded .language-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.language-list li {
    padding: 0;
    text-align: center;
}

.language-list .lang-link {
    display: block;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
}

.language-list .lang-link:hover {
    background-color: var(--pink-light);
    color: var(--text-dark);
}

.language-list .lang-link.active {
    font-weight: bold;
    cursor: default;
}

/* Desktop specific positioning for the language switcher */
@media (min-width: 992px) {
    .navbar-nav .nav-item:nth-last-child(2) {
        /* This adds space for the absolutely positioned desktop switcher */
        margin-right: 85px;
    }

    .navbar-nav .nav-item > .language-switcher-expandable {
        position: absolute;
        top: 0;
        right: 0;
    }
}

/* --- Mobile Offcanvas Menu --- */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000; /* Below the menu, above the content */
}

.offcanvas-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: 70vw;
        height: 100%;
        background-color: #f6c1ba;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1050; /* Above the overlay */
        display: block !important;
    }

    .navbar .navbar-collapse.show {
        transform: translateX(0);
        box-shadow: -5px 0px 15px rgba(0,0,0,0.2);
    }

    /* Override Bootstrap's collapsing styles */
    .navbar .navbar-collapse.collapsing {
        height: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    /* Adjust layout of items inside the offcanvas menu */
    .navbar .navbar-collapse .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .navbar .navbar-collapse .navbar-nav .nav-item {
        margin-bottom: 1rem;
        width: 100%;
    }

    .navbar .navbar-collapse .navbar-nav .language-switcher-expandable {
        position: static; /* Override desktop absolute positioning */
        display: block;
        width: 100%;
        text-align: left;
    }

    .navbar .navbar-collapse .navbar-nav .language-switcher-expandable .btn-lang {
        text-align: left;
    }

    .navbar .navbar-collapse .navbar-nav .nav-link {
        color: #ab4247;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .navbar .navbar-collapse .navbar-nav .nav-link:hover {
        color: var(--text-dark);
    }
}

/* --- Social Icon Labels --- */
.social-icon {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.social-icon span {
    margin-left: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.social-icon:hover span {
    color: var(--pink-dark);
}

/* --- Footer Contact Links --- */
.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.contact-us-heading {
    font-family: 'Russo One', sans-serif;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--pink-dark); /* Icon color */
    /* border: 2px solid var(--pink-dark); */ /* Border color */
    border-radius: 50%; /* Make it circular */
    width: 60px; /* Adjust size for larger icon */
    height: 60px; /* Adjust size for larger icon */
    font-size: 45px; /* Icon size */
    transition: all 0.2s ease-in-out;
}

.btn-whatsapp:hover {
    /* background: var(--pink-dark); */
    /* color: white; */ /* Icon color on hover */
}


/* --- Cookie Consent Banner --- */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f6c1ba;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 1100; /* High z-index to be on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#cookie-consent-banner p {
    margin: 0;
    color: #5c2023; /* Dark text for contrast on pink background */
    font-size: 0.9rem;
}

#cookie-consent-button {
    background-color: #ab4247;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    flex-shrink: 0; /* Prevent button from shrinking */
}

@media (max-width: 767.98px) {
    #cookie-consent-banner {
        flex-direction: column;
        text-align: center;
    }
}