/* Tours page sticky ticket bar - unique */
.tour-sticky-ticket-bar {
    display: none !important;
}

@media (max-width: 1024px) {
    body {
        padding-bottom: 190px !important;
    }

    .tour-sticky-ticket-bar {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 50 !important;
        background: #ffffff !important;
        border-top: 1px solid rgba(0,0,0,0.08) !important;
        box-shadow: 0 -8px 25px rgba(0,0,0,0.12) !important;
        padding: 14px !important;
    }

    .tour-sticky-purchase-inner {
        max-width: 660px;
        margin: 0 auto;
    }

    .tour-sticky-ticket-list {
        display: grid;
        gap: 8px;
        margin-bottom: 10px;
    }

    .tour-sticky-ticket-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .tour-sticky-ticket-name {
        font-weight: 700;
        font-size: 14px;
        color: #1f2937;
    }

    .tour-sticky-ticket-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .tour-sticky-qty-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid rgba(0,0,0,0.15);
        background: #f8f9fa;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tour-sticky-qty-value {
        min-width: 22px;
        text-align: center;
        font-weight: 700;
    }

    .tour-sticky-purchase-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid rgba(0,0,0,0.08);
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .tour-sticky-purchase-label {
        font-size: 12px;
        color: #6b7280;
    }

    .tour-sticky-purchase-value {
        font-size: 18px;
        font-weight: 800;
        color: #1f2937;
    }

    .tour-sticky-purchase-action {
        flex: 1;
        max-width: 150px;
    }

    .tour-sticky-purchase-btn {
        width: 100%;
        margin: 0;
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (min-width: 1025px) {
    body {
        padding-bottom: 0 !important;
    }

    .tour-sticky-ticket-bar {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .tour-sticky-purchase-btn {
        margin-left: -50px !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .tour-sticky-purchase-btn {
        margin-left: -10px !important;
    }
}

@media (min-width: 992px) and (max-width: 1024px) {
    .tour-sticky-purchase-btn {
        margin-left: 48px !important;
    }
}

/* ==========================================
   TOUR VENUES - VIEW SWITCHER
========================================== */

.tour-view-toolbar {
    display: flex;
    justify-content: flex-end;
}

.tour-view-switcher .tour-view-btn {
    width: 40px;
    height: 38px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
}

.tour-view-switcher .tour-view-btn.active {
    background: #263b55;
    border-color: #263b55;
    color: #fff;
}

/* Gallery View - existing three-column layout */

.tour-venue-view-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* List View - horizontal venue rows */

.tour-venue-view-list {
    grid-template-columns: minmax(0, 1fr);
}

.tour-venue-view-list .tour-venue-compact-card {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tour-venue-view-list .tour-venue-compact-main {
    flex: 1;
    min-width: 0;
    align-items: center;
}

.tour-venue-view-list .tour-venue-thumb {
    width: 110px;
    height: 90px;
    min-width: 110px;
}

.tour-venue-view-list .tour-venue-compact-bottom {
    margin-top: 0;
    flex-shrink: 0;
    align-items: center;
}

/* Compact View - smaller venue rows */

.tour-venue-view-compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.tour-venue-view-compact .tour-venue-compact-card {
    min-height: 0;
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tour-venue-view-compact .tour-venue-compact-main {
    flex: 1;
    min-width: 0;
    align-items: center;
}

.tour-venue-view-compact .tour-venue-thumb {
    width: 55px;
    height: 55px;
    min-width: 55px;
}

.tour-venue-view-compact .tour-venue-compact-bottom {
    margin-top: 0;
    flex-shrink: 0;
    align-items: center;
}

.tour-venue-view-compact .tour-venue-compact-detail {
    font-size: 12px;
}

.tour-venue-view-compact .title-h5 {
    font-size: 15px;
    margin-bottom: 3px !important;
}

/* ==========================================
   TABLET & MOBILE
========================================== */

@media (max-width: 991px) {

    .tour-venue-view-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .tour-venue-view-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .tour-venue-view-list .tour-venue-compact-card,
    .tour-venue-view-compact .tour-venue-compact-card {
        flex-direction: column;
        align-items: stretch;
    }

    .tour-venue-view-list .tour-venue-compact-bottom,
    .tour-venue-view-compact .tour-venue-compact-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .tour-venue-view-list .tour-venue-thumb {
        width: 85px;
        height: 85px;
        min-width: 85px;
    }

    .tour-venue-view-compact .tour-venue-thumb {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .tour-view-toolbar {
        justify-content: flex-start;
    }
}

/* ==========================================
   FIX TOUR VENUE VIEW LAYOUTS
========================================== */

/* List View - full width rows */
.tour-venue-grid.tour-venue-view-list {
    grid-template-columns: minmax(0, 1fr) !important;
}

/* Compact View - full width rows */
.tour-venue-grid.tour-venue-view-compact {
    grid-template-columns: minmax(0, 1fr) !important;
}

/* Gallery View - retain original columns */
.tour-venue-grid.tour-venue-view-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .tour-venue-grid.tour-venue-view-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tour-venue-grid.tour-venue-view-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}