/* Wymuszenie czerwonego, nietransparentnego nagłówka na tej stronie biletów */
header.banner:not(.headhesive--clone),
.elementor-location-header,
.hfe-header,
.hfe-sticky-container {
    position: relative !important;
    background: #e21316 !important;
}

/* Ukrycie sklonowanego nagłówka Headhesive, aby nie tworzył pustej przestrzeni */
header.banner.headhesive--clone,
.headhesive--clone {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Usunięcie marginesów i paddingów górnych body/page na tej stronie (nagłówek jest relative) */
body, 
body.detect-header-padding,
#page, 
#content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.csw-breadcrumb-wrapper {
    margin-top: 0 !important;
}

/* Reset bazowy nadpisywania by nie zepsuć reszty motywu WP */
.csw-pdp-container {
    font-family: 'Poppins', sans-serif;
    color: #1a2b49;
}

.csw-breadcrumb-wrapper {
    background-color: transparent;
    border-bottom: none;
    padding: 16px 0 0px 0;
    font-size: 0.8rem;
    margin-top: 0 !important;
}

.csw-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-weight: 400;
}

.csw-breadcrumbs a {
    color: #718096;
    text-decoration: none;
    transition: color 0.2s ease;
}

.csw-breadcrumbs a:hover {
    color: #e31837;
    text-decoration: none;
}

.csw-breadcrumbs .sep {
    color: #a0aec0;
    font-size: 0.75rem;
    margin: 0 2px;
}

.csw-breadcrumbs span {
    color: #1a2b49;
    font-weight: 500;
}

/* Wymuszenie stylów dla zakładek czasu trwania (ochrona przed motywem WP) */
.csw-duration-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.csw-duration-btn {
    flex: 1 1 0% !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

#header {
    display: none !important;
}

#footer {
    display: none !important;
}

.csw-duration-tabs {
    display: flex;
    gap: 8px
}

.csw-duration-btn {
    flex: 1;
    padding: .75rem 0;
    border: 1px solid #cbd5e0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #4a5568 !important;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    outline: none
}

.csw-duration-btn:hover {
    border-color: #e31837 !important;
    color: #e31837 !important;
    background: #fde8eb !important
}

.csw-duration-btn.active {
    border-color: #e31837 !important;
    background: #e31837 !important;
    color: #fff !important
}

.bg-csw {
    background-color: #fff;
    font-family: "Poppins", sans-serif;
    color: #1a2b49
}



.csw-pdp-container {
    max-width: 1140px;
    margin: 2rem auto;
    padding: 0 15px
}

.csw-pdp-header {
    margin-bottom: 1.5rem
}

.csw-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2b49;
    margin-bottom: .8rem;
    line-height: 1.25
}

.csw-rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .95rem;
    color: #4a5568
}

.csw-stars {
    color: #ffb800;
    letter-spacing: 2px
}

.csw-rating-score {
    font-weight: 700;
    color: #1a2b49
}

.csw-reviews-count {
    color: #718096
}

.csw-separator {
    color: #cbd5e0
}

.csw-provider a {
    color: #e31837;
    text-decoration: none;
    font-weight: 500
}

.csw-provider a:hover {
    text-decoration: underline
}

.csw-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 1.5rem
}

.csw-content {
    flex: 0 0 calc(62% - 2rem);
    min-width: 0
}

.csw-sidebar-widget-wrapper {
    flex: 0 0 calc(38% - 2rem);
    position: sticky;
    top: 100px
}

.csw-gallery {
    position: relative;
    display: flex;
    gap: 8px;
    height: 400px;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0)
}

.csw-gallery-main {
    flex: 3;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    transition: filter .3s ease
}

.csw-gallery-side {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px
}

.csw-gallery-item {
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    transition: filter .3s ease
}

.csw-gallery:hover .csw-gallery-main,
.csw-gallery:hover .csw-gallery-item {
    filter: brightness(0.65)
}

.csw-gallery:hover .csw-gallery-main:hover,
.csw-gallery:hover .csw-gallery-item:hover {
    filter: brightness(1.05)
}

.csw-gallery-all-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    color: #1a2b49;
    border: none;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: .95rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    transition: background-color .2s, transform .2s;
    z-index: 10
}

.csw-gallery-all-btn:hover {
    background: #f1f2f4;
    transform: scale(1.03)
}

.csw-mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 12px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .1);
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e1e4e8
}

.csw-mobile-sticky-price {
    display: flex;
    flex-direction: column
}

.csw-mobile-sticky-price .csw-price-label {
    font-size: .75rem;
    color: #4a5568
}

.csw-mobile-sticky-price .csw-price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2b49
}

.csw-mobile-cta {
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 24px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    background: linear-gradient(135deg, #e31837 0%, #b80d10 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
}

.csw-mobile-cta:hover {
    background: linear-gradient(135deg, #f02847 0%, #d81d20 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(227, 24, 55, 0.4);
}

.csw-mobile-cta:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(227, 24, 55, 0.2);
}

@media(max-width: 768px) {
    .csw-mobile-sticky-bar {
        display: flex
    }

    body {
        padding-bottom: 80px
    }
}

.csw-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity .3s ease
}

.csw-lightbox.active {
    display: flex;
    opacity: 1
}

.csw-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    object-fit: contain
}

.csw-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color .2s;
    user-select: none
}

.csw-lightbox-close:hover {
    color: #fff;
    transform: scale(1.1)
}

.csw-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center
}

.csw-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: hsla(0, 0%, 100%, .1);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    z-index: 100000
}

.csw-lightbox-nav:hover {
    background: hsla(0, 0%, 100%, .25);
    transform: translateY(-50%) scale(1.1)
}

.csw-lightbox-nav.prev {
    left: 40px
}

.csw-lightbox-nav.next {
    right: 40px
}

.csw-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, .5);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px)
}

@media(max-width: 768px) {
    .csw-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 18px
    }

    .csw-lightbox-nav.prev {
        left: 10px
    }

    .csw-lightbox-nav.next {
        right: 10px
    }
}

.csw-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.csw-features-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start
}

.csw-features-list .icon {
    font-size: 1.5rem;
    margin-top: -2px
}

.csw-features-list div {
    flex: 1
}

.csw-features-list strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: .25rem;
    color: #1a2b49
}

.csw-features-list p {
    margin: 0;
    font-size: .95rem;
    color: #4a5568;
    line-height: 1.5
}

.csw-section {
    padding: 2.5rem 0;
    border-top: 1px solid #e1e4e8
}

.csw-section h2 {
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a2b49;
    margin-bottom: 1.5rem
}

.csw-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.csw-highlights li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.6
}

.csw-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #00a698;
    font-weight: 800;
    font-size: 1.2rem
}

.csw-description p {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.25rem
}

.csw-booking-widget {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08)
}

.csw-price-banner {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1.5rem
}

.csw-price-label {
    font-size: 1rem;
    color: #4a5568
}

.csw-price-amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a2b49;
    line-height: 1
}

.csw-price-unit {
    font-size: .95rem;
    color: #718096
}

.csw-widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a2b49
}

.csw-input-group {
    margin-bottom: 1rem
}

.csw-input-group label {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: .4rem
}

.csw-widget-select,
.csw-widget-input {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: #1a2b49
}

.csw-widget-select:focus,
.csw-widget-input:focus {
    outline: none;
    border-color: #e31837;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, .1)
}

.csw-participants-wrapper {
    position: relative;
    width: 100%
}

.csw-participants-selector {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    user-select: none;
    box-sizing: border-box;
    min-height: 48px;
    font-size: 1rem
}

.csw-participants-selector:hover {
    border-color: #a0aec0
}

.csw-participants-popover {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 280px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
    z-index: 100;
    box-sizing: border-box
}

.popover-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem
}

@media(max-width: 768px) {
    .csw-booking-widget {
        box-shadow: none;
        border: 1px solid #e1e4e8;
        border-radius: 12px
    }
}

.popover-label strong {
    display: block;
    font-size: .95rem;
    color: #1a2b49
}

.popover-label span {
    font-size: .8rem;
    color: #718096
}

.popover-counter {
    display: flex;
    align-items: center;
    gap: 12px
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e31837;
    background: #fff;
    color: #e31837;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    line-height: 0;
    padding: 0
}

.counter-btn:hover:not(:disabled) {
    background: #fde8eb
}

.counter-btn:disabled {
    border-color: #e2e8f0;
    color: #cbd5e0;
    cursor: not-allowed
}

.popover-counter .count {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: #1a2b49;
    font-size: 1rem
}

.csw-popover-done {
    width: 100%;
    padding: 10px;
    font-size: .9rem;
    margin-top: .5rem;
    border-radius: 8px;
    cursor: pointer
}

.csw-action-btn {
    display: block;
    width: 100%;
    background-color: #e31837;
    color: #fff;
    text-align: center;
    padding: 1.1rem;
    border-radius: 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
    box-shadow: 0 4px 12px rgba(0, 86, 179, .25)
}

.csw-action-btn:hover {
    background-color: #c1152e;
    transform: translateY(-2px);
    color: #fff
}

.btn-gradient.csw-action-btn {
    background: #e31837
}

.csw-trust-badges {
    margin-top: 1.5rem;
    border-top: 1px solid #e1e4e8;
    padding-top: 1rem
}

.csw-trust-badges p {
    font-size: .85rem;
    color: #4a5568;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: 6px
}

@media(max-width: 900px) {
    .csw-layout {
        flex-direction: column
    }

    .csw-content {
        flex: none;
        width: 100%
    }

    .csw-sidebar-widget-wrapper {
        flex: none;
        width: 100%;
        position: static;
        margin-top: 2rem
    }

    .csw-gallery {
        height: 320px
    }

    .csw-title {
        font-size: 1.8rem
    }
}

@media(max-width: 768px) {
    /* Reset phantom paddings and margins at the top of the page on mobile */
    body, #page, #content, .site-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Ukrycie okruszków na urządzeniach mobilnych */
    .csw-breadcrumb-wrapper {
        display: none !important;
    }

    /* Convert PDP container to a grid layout to reorder children without changing PHP */
    .csw-pdp-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        row-gap: 1.25rem !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    /* Break the content wrappers visually for grid reordering */
    .csw-layout,
    .csw-content {
        display: contents !important;
    }

    .csw-gallery {
        order: 1 !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        flex-direction: column;
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        margin-top: 0 !important;
        width: calc(100% + 30px);
    }

    .csw-gallery-main {
        width: 100%;
        height: 100%;
        border-radius: 0
    }

    .csw-gallery-side {
        display: none
    }

    .csw-gallery-all-btn {
        bottom: 16px;
        right: 16px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        color: #1a2b49;
        padding: 6px 14px;
        font-size: .8rem;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
        border: 1px solid rgba(225, 228, 232, 0.5)
    }

    .csw-gallery-all-btn i {
        display: none
    }

    /* Title is ordered below the gallery */
    .csw-pdp-header {
        order: 2 !important;
        margin-bottom: 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box;
    }

    .csw-features-list {
        order: 3 !important;
        padding: 0 15px !important;
        box-sizing: border-box;
    }

    .csw-section {
        order: 4 !important;
        padding: 1.5rem 15px !important;
        box-sizing: border-box;
    }

    /* Adjust font sizes on mobile to look cleaner and more premium */
    .csw-title {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }

    .csw-section h2 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .csw-features-list {
        gap: 1rem !important;
    }

    .csw-features-list strong {
        font-size: 0.95rem !important;
    }

    .csw-features-list p {
        font-size: 0.85rem !important;
    }

    .csw-description p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    .csw-highlights li {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
}

.csw-mobile-panel-overlay {
    display: none
}

.csw-mobile-panel {
    display: none
}

@media(max-width: 768px) {
    .csw-sidebar-widget-wrapper {
        display: none !important
    }

    .csw-mobile-panel-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility 0s linear .3s;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
    }

    .csw-mobile-panel-overlay.active {
        opacity: 1;
        visibility: visible;
        transition: opacity .3s ease, visibility 0s linear 0s
    }

    .csw-mobile-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 90dvh;
        background: #fff;
        border-radius: 1.25rem 1.25rem 0 0;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, .15);
        z-index: 10001;
        transform: translateY(100%);
        transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden
    }

    .csw-mobile-panel.active {
        transform: translateY(0)
    }

    .csw-mobile-panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #e1e4e8;
        flex-shrink: 0
    }

    .csw-mobile-panel-header h3 {
        font-family: "Poppins", sans-serif;
        font-size: 1.15rem;
        font-weight: 600;
        color: #1a2b49;
        margin: 0
    }

    .csw-mobile-panel-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: #f7f7f8;
        border-radius: 50%;
        cursor: pointer;
        color: #4a5568;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        transition: background .15s
    }

    .csw-mobile-panel-close:hover {
        background: #edf2f7
    }

    .csw-mobile-panel-body {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 1.25rem
    }

    .csw-mp-participants {
        background: #f9fafb;
        border: 1px solid #e1e4e8;
        border-radius: .75rem;
        overflow: hidden
    }

    .csw-mp-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #e1e4e8
    }

    .csw-mp-row:last-child {
        border-bottom: none
    }

    .csw-mp-row-label strong {
        display: block;
        font-size: .95rem;
        color: #1a2b49
    }

    .csw-mp-row-label span {
        font-size: .8rem;
        color: #718096
    }

    .csw-mobile-panel-footer {
        flex-shrink: 0;
        padding: 1rem 1.25rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        border-top: 1px solid #e1e4e8;
        background: #fff
    }

    .csw-mobile-panel-footer .csw-action-btn {
        margin-top: 0
    }

    body.mobile-panel-open .csw-mobile-sticky-bar {
        transform: translateY(100%)
    }

    .csw-mobile-sticky-bar {
        transition: transform .3s ease
    }

    .csw-mobile-cta {
        border: none;
        cursor: pointer;
        font-family: "Poppins", sans-serif
    }

    @media(min-width: 769px) {

        .csw-mobile-panel,
        .csw-mobile-panel-overlay {
            display: none !important
        }
    }
}