/* =========================================
   QR VENDOR PAGE
========================================= */

[hidden] {
    display: none !important;
}

/* Vendor hero and details */

.vendor-hero {
    width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.vendor-info {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 22px 24px;
    background: #fff;
}

.vendor-avatar {
    width: 58px;
    height: 58px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #4c1d95;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.vendor-details {
    flex: 1;
    min-width: 0;
}

.vendor-info h1 {
    margin: 0 0 4px;
    color: #6d28d9;
    font-size: 24px;
    letter-spacing: -.7px;
}

.vendor-info p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.vendor-back-button {
    flex-shrink: 0;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--deep);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.vendor-back-button:hover {
    background: var(--light);
}

.vendor-cover {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #ddd;
}

.vendor-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Listing content */

.listing-section {
    max-width: 1160px;
    margin: 34px auto 0;
    padding: 0 0 110px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.section-heading h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -.6px;
}

.item-count {
    color: var(--muted);
    font-size: 12px;
}

/* Filters */

.filter-row {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.filter {
    padding: 9px 17px;
    border: 1px solid #ddd4ef;
    border-radius: 30px;
    background: #fff;
    color: var(--deep);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.filter.active {
    border-color: var(--deep);
    background: var(--deep);
    color: #fff;
}

/* Activity and pass cards */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.experience-card {
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(49, 26, 89, .045);
    cursor: pointer;
    transition: .18s;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.experience-card.selected {
    border-color: var(--purple);
    background: #fcfaff;
}

.card-image {
    position: relative;
    height: 150px;
    background: #ede9fe;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff;
    color: var(--deep);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.selected-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-weight: 800;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.card-description {
    min-height: 36px;
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.price-row {
    display: flex;
    gap: 14px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
}

.price {
    color: var(--muted);
    font-size: 12px;
}

.price strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 14px;
}

/* Fixed cart bar */

.cart-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    padding: 12px 24px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -8px 28px rgba(49, 26, 89, .08);
}

.cart-bar-inner {
    max-width: 1112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
}

.cart-bar-inner p {
    margin: 3px 0 0;
    color: var(--deep);
    font-weight: 800;
}

.cart-count {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--light);
    color: var(--deep);
    font-size: 12px;
    font-weight: 800;
}

/* Cart backdrop */

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 19;
    background: #1c1234a6;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}

.sheet-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Cart bottom sheet */

.cart-sheet {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    max-height: 82vh;
    overflow: auto;
    padding: 12px max(22px, calc((100% - 650px) / 2)) 24px;
    border-radius: 22px 22px 0 0;
    background: #fff;
    transform: translateY(105%);
    transition: .25s;
}

.cart-sheet.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 18px;
    border-radius: 5px;
    background: #d9d2e4;
}

.sheet-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-heading h2 {
    margin: 0;
    font-size: 22px;
}

.cart-items {
    margin: 16px 0;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.cart-line strong {
    font-size: 13px;
}

.cart-line small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.remove-link {
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 12px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 18px;
    font-size: 14px;
}

.cart-total strong {
    color: var(--deep);
    font-size: 19px;
}

/* Pass activities */

.pass-activities {
    margin: 12px 0;
}

.pass-activities-title {
    margin-bottom: 8px;
    color: #4c1d95;
    font-size: 12px;
    font-weight: 600;
}

.pass-activities-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pass-activity {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 6px;
    background: #f5f3ff;
    color: #4c1d95;
    font-size: 11px;
    font-weight: 500;
}

.pass-more-trigger {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #ddd4ef;
    border-radius: 6px;
    background: #fff;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.pass-more-trigger:hover {
    border-color: #b99ae8;
    background: #f5f3ff;
}

/* Pass activities popup */

.pass-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(28, 18, 52, .60);
    animation: passPopupFadeIn .2s ease;
}

.pass-popup {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(28, 18, 52, .22);
    animation: passPopupSlideIn .2s ease;
}

.pass-popup-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 22px 17px;
    border-bottom: 1px solid #eee8f5;
}

.pass-popup-header h3 {
    margin: 0;
    color: #291b3e;
    font-size: 18px;
    font-weight: 800;
}

.pass-popup-header p {
    margin: 6px 0 0;
    color: #81798d;
    font-size: 12px;
    line-height: 1.5;
}

.pass-popup-close {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5f3f8;
    color: #625a70;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.pass-popup-close:hover {
    background: #eee5fa;
    color: #6d28d9;
}

.pass-popup-body {
    padding: 12px 22px 22px;
    overflow-y: auto;
}

.pass-popup-list {
    display: flex;
    flex-direction: column;
}

.pass-popup-activity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #f0ebf5;
}

.pass-popup-activity:last-child {
    border-bottom: 0;
}

.pass-popup-number {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 700;
}

.pass-popup-activity-name {
    color: #332444;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

@keyframes passPopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes passPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Activity rating */

.experience-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin: 10px 0 12px;
}

.experience-rating-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #625a70;
    font-size: 12px;
    font-weight: 600;
}

.experience-rating-item .rating-icon {
    font-size: 14px;
    line-height: 1;
}

.experience-rating-item.positive .rating-icon {
    color: #16a34a;
}

.experience-rating-item.negative .rating-icon {
    color: #dc6262;
}

.experience-rating-item .rating-count {
    color: #332444;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Pass rating */

.pass-rating {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 10px 0 12px;
    padding: 10px 11px;
    border: 1px solid #e8f3ea;
    border-radius: 9px;
    background: #f7fcf8;
}

.pass-rating-main {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #16803d;
    font-size: 13px;
    font-weight: 800;
}

.pass-rating-main .rating-icon {
    font-size: 15px;
}

.pass-rating-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #81798d;
    font-size: 11px;
}

.pass-rating-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pass-rating-details .positive {
    color: #16803d;
}

.pass-rating-details .negative {
    color: #c65353;
}

/* QR listing footer */

.site-footer {
    width: 100%;
    margin: 0;
    padding: 22px 16px;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer strong {
    color: var(--deep);
    font-weight: 800;
}

/* Vendor unavailable page */

.vendor-unavailable {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #241b35;
}

.vendor-unavailable-content {
    flex: 1;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 90px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vendor-unavailable-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    border-radius: 50%;
    background: #f4edff;
    color: #7c3aed;
    font-size: 38px;
    font-weight: 800;
}

.vendor-unavailable-content h1 {
    margin: 0 0 14px;
    color: #281d3b;
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 850;
    letter-spacing: -1px;
    line-height: 1.25;
}

.vendor-unavailable-content p {
    max-width: 460px;
    margin: 0;
    color: #81798d;
    font-size: 15px;
    line-height: 1.8;
}

.vendor-unavailable-home-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: #7c3aed;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.vendor-unavailable-home-btn:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

.vendor-unavailable-home-btn span {
    font-size: 19px;
}

.vendor-unavailable-footer {
    padding: 25px 20px;
    border-top: 1px solid #eee9f4;
    color: #82788f;
    font-size: 12px;
    text-align: center;
}

.vendor-unavailable-footer strong {
    color: #6d28d9;
    font-weight: 900;
}

/* Hidden page sections */

#vendorUnavailable[hidden],
#vendorHero[hidden],
.page-shell[hidden],
#cartBar[hidden],
.site-footer[hidden],
#sheetBackdrop[hidden] {
    display: none !important;
}

/* Responsive */

@media (max-width: 850px) {
    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .vendor-info {
        padding: 14px 16px;
        gap: 12px;
    }

    .vendor-avatar {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 20px;
    }

    .vendor-info h1 {
        font-size: 19px;
    }

    .vendor-cover {
        height: 160px;
    }

    .listing-section {
        margin-top: 25px;
        padding: 0 0 100px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .listing-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .experience-card {
        display: grid;
        grid-template-columns: 118px 1fr;
    }

    .card-image {
        height: 100%;
        min-height: 150px;
    }

    .card-body {
        padding: 12px;
    }

    .card-description {
        min-height: 0;
        margin-bottom: 9px;
    }

    .price-row {
        gap: 12px;
    }

    .cart-bar {
        padding: 10px 16px;
    }

    .cart-bar .btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .cart-sheet {
        padding-right: 18px;
        padding-left: 18px;
    }

    .pass-popup-overlay {
        padding: 16px;
    }

    .pass-popup {
        max-height: 82vh;
        border-radius: 14px;
    }

    .pass-popup-header {
        padding: 18px 17px 14px;
    }

    .pass-popup-header h3 {
        font-size: 16px;
    }

    .pass-popup-body {
        padding: 10px 17px 17px;
    }

    .experience-rating {
        gap: 10px;
        margin: 8px 0 10px;
    }

    .experience-rating-item {
        font-size: 11px;
    }

    .pass-rating {
        margin: 8px 0 10px;
        padding: 8px;
    }

    .pass-rating-main {
        font-size: 12px;
    }

    .vendor-unavailable-content {
        padding: 65px 22px;
    }

    .vendor-unavailable-icon {
        width: 68px;
        height: 68px;
        font-size: 34px;
    }

    .vendor-unavailable-content p {
        font-size: 14px;
    }

    .vendor-unavailable-home-btn {
        width: 100%;
        max-width: 280px;
    }
}