:root {
    --c-primary: #E31837;
    --c-secondary: #1A2B49;
    --c-yellow: #FFD200;
    --c-bg: #FFFFFF;
    --c-bg-alt: #F8FAFC;
    --c-text: #334155;
    --c-text-light: #64748B;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --font: 'Plus Jakarta Sans', sans-serif;
}
#header, #footer{
    display: none;
}
#page hr {
    display: none;
}
body { font-family: var(--font); color: var(--c-text); background: var(--c-bg); margin: 0; padding: 0; line-height: 1.6; }
h1, h2, h3 { color: var(--c-secondary); font-weight: 800; line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn-main { background: var(--c-primary); color: #fff; padding: 14px 28px; border-radius: 12px; font-weight: 700; text-decoration: none; display: inline-block; transition: all 0.2s; border: none; cursor: pointer; text-align: center; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(227, 24, 55, 0.3); color: #fff; }

/* --- SPLIT SCREEN HERO --- */
.hero {
    position: relative;
    padding: 0;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.hero-split-container {
    display: flex;
    width: 100%;
    min-height: 520px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
}
.hero-split-side {
    flex: 1;
    position: relative;
    padding: 120px 40px 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: transform 0.5s ease;
    box-sizing: border-box;
}
.hero-split-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(26, 43, 73, 0.55), rgba(26, 43, 73, 0.75));
    z-index: 1;
}
.hero-split-side:hover {
    transform: scale(1.01);
}
/* Hero background video on hover */
.hero-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.hero-split-side:hover .hero-bg-video {
    opacity: 1;
}
.hero-split-side .hero-play-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s;
    pointer-events: none;
}
.hero-split-side:hover .hero-play-hint {
    opacity: 0;
}
.hero-split-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}
.hero-split-side h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-split-side p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    color: #fff;
    line-height: 1.4;
}
.hero-split-badge {
    display: inline-block;
    background: var(--c-yellow);
    color: var(--c-secondary);
    font-weight: 850;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* Backgrounds */
.hero-split-left {
    background: url('https://warsaw.city-sightseeing.pl/wp-content/uploads/2022/06/20220515_163633-scaled.jpg') center/cover no-repeat;
}

/* --- QUICK BOOK WIDGET WITH TABS --- */
.hero-widget-wrapper {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    z-index: 1500;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-radius: 24px;
    pointer-events: auto;
}
.widget-tabs {
    display: flex;
    background: #E2E8F0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}
.widget-tab {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #64748B;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.widget-tab.active {
    background: #fff;
    color: var(--c-primary);
}
.widget-tab i {
    font-size: 1.15rem;
}
.hero-widget {
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}
.widget-tab-content {
    display: none;
}
.widget-tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1fr;
    gap: 15px;
    align-items: flex-end;
    width: 100%;
    box-sizing: border-box;
}
.widget-field { text-align: left; position: relative; }
.widget-field label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; color: var(--c-text-light); text-transform: uppercase; }
.widget-field input, .widget-field .selector-trigger { width: 100%; padding: 12px; border: 1.5px solid #E2E8F0; border-radius: 10px; font-family: var(--font); font-weight: 600; font-size: 0.95rem; background: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; color: black; height: 50px; }

.participants-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    border: 1px solid #E2E8F0;
}
.participants-popover.active { display: flex; }
.popover-row { display: flex; justify-content: space-between; align-items: center; }
.popover-label { display: flex; flex-direction: column; }
.popover-label strong { font-size: 0.9rem; color: var(--c-secondary); text-align: left; }
.popover-label span { font-size: 0.75rem; color: var(--c-text-light); text-align: left; }
.popover-counter { display: flex; align-items: center; gap: 15px; }
.counter-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #E2E8F0; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all 0.2s; }
.counter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.counter-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.count { font-weight: 700; min-width: 20px; text-align: center; color: var(--c-secondary); }

/* --- USP BAR --- */
.usp-bar { padding: 120px 0 60px; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp-item { text-align: center; }
.usp-item i { font-size: 1.8rem; color: var(--c-primary); margin-bottom: 15px; }
.usp-item span { display: block; font-weight: 700; font-size: 0.9rem; }

/* --- TICKETS --- */
.section-tickets { background: var(--c-bg-alt); padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 10px; }

.tickets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ticket-card { background: #fff; border-radius: 24px; padding: 30px; border: 1px solid #E2E8F0; transition: all 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.ticket-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow); }
.ticket-badge { position: absolute; top: 20px; right: -30px; background: var(--c-yellow); color: var(--c-secondary); padding: 5px 40px; transform: rotate(45deg); font-weight: 800; font-size: 0.75rem; }
.ticket-card h3 { margin-top: 0; font-size: 1.4rem; }
.ticket-price { margin: 20px 0; margin-top: auto; }
.ticket-price .from { font-size: 0.9rem; color: var(--c-text-light); }
.ticket-price .amount { font-size: 2.5rem; font-weight: 800; color: var(--c-primary); }
.ticket-features { list-style: none; padding: 0; margin: 0 0 30px 0; }
.ticket-features li { margin-bottom: 10px; font-size: 0.9rem; display: flex; align-items: center; }
.ticket-features i { color: #10B981; margin-right: 10px; }

/* --- TICKET TYPE SELECTOR (SEGMENTED CONTROL) --- */
.ticket-type-selector {
    background: var(--c-bg-alt);
    padding: 4px;
    border-radius: 12px;
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #E2E8F0;
}
.type-btn {
    flex: 1;
    padding: 8px 5px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--c-text-light);
}
.type-btn.active {
    background: #fff;
    color: var(--c-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* --- SIDE CART & FLOATING CART BUTTON — loaded from side-cart.php --- */

/* --- MAP SECTION --- */
.map-section { padding: 80px 0; background: var(--c-bg-alt); }
#live-map { height: 500px; border-radius: 30px; box-shadow: var(--shadow); border: 4px solid #fff; z-index: 10; position: relative; }
.map-info-card { background: #fff; padding: 20px; border-radius: 20px; box-shadow: var(--shadow); margin-top: -40px; position: relative; z-index: 20; max-width: 400px; margin-left: 40px; }
.map-legend { display: flex; gap: 15px; margin-top: 15px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: var(--c-primary); }
.dot.blue { background: #1976D2; }

/* --- FAQ --- */
.faq-section { padding: 80px 0; background: #fff; }
.faq-grid { max-width: 800px; margin: 0 auto; }
details { margin-bottom: 15px; border: 1.5px solid #E2E8F0; border-radius: 12px; overflow: hidden; transition: all 0.2s; }
details[open] { border-color: var(--c-primary); }
summary { padding: 20px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '\2b'; font-family: "Font Awesome 6 Free"; font-weight: 900; }
details[open] summary::after { content: '\f068'; }
.faq-content { padding: 0 20px 20px; color: var(--c-text-light); }

/* --- MOBILE STICKY BAR --- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 15px 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 1000; border-top-left-radius: 20px; border-top-right-radius: 20px; }

/* --- RESPONSIVENESS --- */
@media (max-width: 991px) {
    .hero-split-container {
        flex-direction: column;
        min-height: auto;
    }
    .hero-split-side {
        padding: 80px 20px 100px;
    }
    .hero-split-side h2 {
        font-size: 1.8rem;
    }
    .hero-widget-wrapper {
        position: static;
        transform: none;
        margin: 30px auto;
    }
    .widget-tab-content.active {
        grid-template-columns: 1fr;
    }
    .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .tickets-grid {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        gap: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .ticket-card {
        flex: none !important;
        width: 100% !important;
    }
    .section-tickets { padding: 50px 0 !important; }
    .section-header h2 { font-size: 1.6rem; }
    .ticket-price .amount { font-size: 2rem; }
    .hero-play-hint { display: none; }
    .hero-section-wrapper { margin-bottom: 20px !important; }
    .usp-bar { padding: 40px 0 40px !important; }
    .map-info-card { margin-left: 20px; margin-right: 20px; max-width: none; }
    .floating-cart-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}
#scrollUp {
    display: none!important;
    opacity: 0!important;
}
.grecaptcha-badge {
    display: none !important;
    visibility: hidden !important;
}

/* --- CLIENT-SIDE VERSION SWITCHING STYLE SYSTEM --- */
.section-tickets { display: none; }
.page-wrapper.view-hoho #hoho-tickets { display: block; }
.page-wrapper.view-chopin #chopin-tickets { display: block; }
.page-wrapper.view-hoho .map-section { display: block; }
.page-wrapper.view-chopin .map-section { display: none; }

.page-wrapper.view-hoho #faq-hoho { display: block; }
.page-wrapper.view-hoho #faq-chopin { display: none; }
.page-wrapper.view-chopin #faq-chopin { display: block; }
.page-wrapper.view-chopin #faq-hoho { display: none; }

.page-wrapper.view-hoho #hero-side-hoho { opacity: 1; }
.page-wrapper.view-hoho #hero-side-chopin { opacity: 0.55; }
.page-wrapper.view-chopin #hero-side-chopin { opacity: 1; }
.page-wrapper.view-chopin #hero-side-hoho { opacity: 0.55; }

@media (min-width: 992px) {
    .hero-split-side {
        transition: flex 0.5s ease, opacity 0.5s ease !important;
    }
    .page-wrapper.view-hoho #hero-side-hoho { flex: 1.3; }
    .page-wrapper.view-hoho #hero-side-chopin { flex: 0.7; }
    .page-wrapper.view-chopin #hero-side-chopin { flex: 1.3; }
    .page-wrapper.view-chopin #hero-side-hoho { flex: 0.7; }
    
    .page-wrapper.view-hoho #hero-side-chopin:hover,
    .page-wrapper.view-chopin #hero-side-hoho:hover {
        opacity: 0.85;
        flex: 0.9;
    }
    .page-wrapper.view-hoho #hero-side-hoho:hover,
    .page-wrapper.view-chopin #hero-side-chopin:hover {
        flex: 1.4;
    }
}
@media (max-width: 991px) {
    .page-wrapper.view-hoho #hero-side-hoho { opacity: 1; }
    .page-wrapper.view-hoho #hero-side-chopin { opacity: 0.6; }
    .page-wrapper.view-chopin #hero-side-chopin { opacity: 1; }
    .page-wrapper.view-chopin #hero-side-hoho { opacity: 0.6; }
}
