﻿/* ======================================================
   Tickets Live UI – SHOP
   STATUS: FINAL / SAFE
   VISUAL: 1:1 WITH WORKING VERSION
====================================================== */


/* ======================================================
   TOKENS / VARIABLES
====================================================== */

:root {
    --primary: #0056A3;
    --secondary: #C8102E;
    --black: #22201B;
    --gray-900: #21201F;
    --gray-700: #62605E;
    --gray-600: #878480;
    --gray-300: #F1F0F0;
    --white: #FFFFFF;
    --radius-card: 6px;
    --radius-button: 4px;
}


/* ======================================================
   BASE + GLOBAL LAYOUT (STICKY FOOTER – SAFE)
====================================================== */

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #F6F7F8;
    color: var(--gray-900);
    display: flex;
    flex-direction: column;
}

.tls-main-wrapper {
    flex: 1;
    background: #F6F7F8;
}


/* ======================================================
   NAVIGATION
====================================================== */

.tls-nav {
    background: #fff;
    border-bottom: 1px solid #E6E6E6;
}

.tls-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tls-logo img {
    height: 60px;
}

.tls-cart i {
    font-size: 30px;
}

.tls-cart-badge {
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
}


/* ======================================================
   HERO – BLUE
====================================================== */

.hero-blue {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 72px 24px;
}

    .hero-blue h1 {
        margin: 0 0 6px;
        font-size: 40px;
        font-weight: 700;
    }

    .hero-blue p {
        margin: 0;
        font-size: 14px;
        opacity: .95;
    }


/* ======================================================
   ORGANISER SELECTION
====================================================== */

.organiser-section {
    padding: 48px 16px 80px;
}

.organiser-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
    gap: 32px;
}

.event-card {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--gray-300);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.event-card-image {
    height: 180px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--gray-300);
}

    .event-card-image img {
        max-width: 80%;
        max-height: 80%;
        object-fit: contain;
    }

.event-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.organiser-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.event-footer {
    margin-top: auto;
    padding-top: 16px;
}


/* ======================================================
   GLOBAL CTA BUTTONS
====================================================== */

.event-cta,
.eventpage-cta {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-button);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.event-cta {
    width: 100%;
}


/* ======================================================
   TRUST (LANDING)
====================================================== */

.trust-section {
    background: #fff;
    padding: 72px 20px;
}

.trust-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 40px;
    text-align: center;
}

.trust-item i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.trust-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.trust-item p {
    font-size: 14px;
    color: var(--gray-600);
}


/* ======================================================
   EVENT LIST PAGE (/shop/events)
====================================================== */

.eventpage-wrapper {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

.eventpage-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    margin-bottom: 32px;
    cursor: pointer;
}

.eventpage-image {
    width: 100%;
    height: 360px;
}

    .eventpage-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.eventpage-body {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
}

.eventpage-title {
    font-size: 22px;
    font-weight: 700;
}

.eventpage-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}


/* ======================================================
   EVENT HERO (MAP PAGE)
====================================================== */

.event-hero {
    position: relative;
}

.event-hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 32px 80px;
}

.selling-fast-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #ff3b30;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 16px;
    z-index: 5;
}


/* ======================================================
   SEAT MAP + LEGEND
====================================================== */

.map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.seat-legend-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.seat-legend {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 14px;
    font-weight: 500;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    border-radius: 50%;
    background: #ccc;
}

    .legend-dot.available {
        background-color: #44bb44;
    }

    .legend-dot.reserved {
        background-color: #ff9900;
    }

    .legend-dot.sold {
        background-color: #cc0000;
    }

    .legend-dot.selected {
        background-color: #007bff;
    }


/* ======================================================
   GOOGLE MAP – FIXED (CRITICAL)
====================================================== */

.eventpage-map {
    max-width: 1200px;
    margin: 56px auto;
    padding: 0 16px;
}

.eventpage-map-frame {
    width: 100%;
    height: 420px;
    min-height: 420px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    background: #eee;
}

    .eventpage-map-frame iframe {
        width: 100%;
        height: 100%;
        min-height: 420px;
        border: 0;
        display: block;
    }

@media (max-width: 768px) {
    .eventpage-map-frame {
        height: 260px;
        min-height: 260px;
    }
}


/* ======================================================
   EVENT TRUST + SECURE
====================================================== */

.eventpage-trusted,
.eventpage-secure {
    padding: 72px 20px;
    text-align: center;
}

.eventpage-secure {
    background: #F6F7F8;
}

.eventpage-secure-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 40px;
}

.eventpage-secure-item i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}


/* ======================================================
   FAQ
====================================================== */

.faq-section {
    background: #F6F7F8;
    padding: 72px 16px 88px;
}

.faq-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
}

.faq-section details {
    max-width: 900px;
    margin: 0 auto 12px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.faq-section summary {
    list-style: none;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

    .faq-section summary::after {
        content: "›";
        font-size: 22px;
        color: var(--primary);
        transition: transform .2s ease;
    }

.faq-section details[open] summary::after {
    transform: rotate(90deg);
}

.faq-section details p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    padding: 0 24px 20px;
    margin: 0;
}


/* ======================================================
   FOOTER
====================================================== */

.footer {
    background: #1c1c1c;
    color: #fff;
    text-align: center;
    padding: 72px 20px 48px;
}

.footer-logo img {
    height: 96px;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 13px;
    opacity: .85;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 20px 0;
}

    .socials i {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,.08);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }


/* ======================================================
   MAP PAGE – PAGE SCOPE
====================================================== */

.tls-map-page .eventpage-wrapper {
    background: transparent;
}

.tls-map-page .map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}


/* ======================================================
   MAP PAGE – GENERAL ADMISSION CARD (FINAL)
====================================================== */

.tls-map-page .ga-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .tls-map-page .ga-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--primary), #2f80ed);
    }

.tls-map-page .ga-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tls-map-page .ga-description {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.tls-map-page .ga-meta-line,
.tls-map-page .ga-action-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tls-map-page .ga-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}


/* ======================================================
   SEAT MAP – SVG SECTOR STYLING (FIX BLACK BUTTONS)
====================================================== */

.svg-sectors svg path,
.svg-sectors svg g {
    fill: transparent;
    cursor: pointer;
    transition: fill .15s ease, stroke .15s ease;
}

    .svg-sectors svg path:hover,
    .svg-sectors svg g:hover {
        fill: rgba(255,255,255,0.25);
    }

    .svg-sectors svg path.active,
    .svg-sectors svg g.active {
        fill: rgba(0,120,255,0.35);
    }

.svg-sectors svg path,
.svg-sectors svg g {
    stroke: rgba(255,255,255,0.35);
    stroke-width: 1;
}


/* ======================================================
   MAP PAGE – HERO TITLE CENTER
====================================================== */

.tls-hero {
    text-align: center;
}

.tls-hero-title {
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

.tls-hero-subtitle {
    text-align: center;
    margin: 0;
    padding-bottom: 24px;
}


/* ===============================
   SEAT LEGEND – VISUAL FIX
================================ */

.seat-legend {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 14px;
    font-weight: 500;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 🔥 KLUCZOWE */
.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    border-radius: 50%;
    background: #ccc;
}

    .legend-dot.available {
        background-color: #44bb44;
    }

    .legend-dot.reserved {
        background-color: #ff9900;
    }

    .legend-dot.sold {
        background-color: #cc0000;
    }

    .legend-dot.selected {
        background-color: #007bff;
    }


/* ===============================
   CHECKOUT – FLOATING CENTERED
================================ */

.checkout-bottom {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    justify-content: center;
}

    .checkout-bottom .checkout-cta {
        padding: 16px 34px;
        font-size: 16px;
        font-weight: 700;
        border-radius: var(--radius-button);
        box-shadow: 0 12px 32px rgba(0,0,0,0.28);
    }


/* ======================================================
   TICKET CATEGORY MODAL – FORCE TLS STYLE
====================================================== */

.modal-backdrop.show {
    opacity: 0.6;
}

.tls-modal {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.25) !important;
    overflow: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

    .tls-modal .modal-header {
        background: #fff;
        padding: 20px 24px;
        border-bottom: 1px solid var(--gray-300);
    }

    .tls-modal .modal-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--gray-900);
    }

    .tls-modal .modal-body {
        background: #fff;
        padding: 20px 24px 24px;
    }

    .tls-modal .btn-outline-primary {
        background: #fff !important;
        border: 1px solid var(--gray-300) !important;
        border-radius: 8px !important;
        padding: 14px 16px !important;
        transition: all .15s ease;
    }

        .tls-modal .btn-outline-primary:hover,
        .tls-modal .btn-outline-primary:focus {
            background: #f5f9ff !important;
            border-color: var(--primary) !important;
        }

        .tls-modal .btn-outline-primary.active {
            background: #eef5ff !important;
            border-color: var(--primary) !important;
        }

        .tls-modal .btn-outline-primary span:first-child {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-900);
        }

        .tls-modal .btn-outline-primary strong {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
        }

        .tls-modal .btn-outline-primary small {
            font-size: 12px;
            color: var(--gray-600);
        }

    .tls-modal .modal-footer {
        background: #fff;
        border-top: 1px solid var(--gray-300);
        padding: 14px 24px;
    }

    .tls-modal .btn-secondary {
        background: #f1f0f0 !important;
        border: none !important;
        color: var(--gray-900);
        font-weight: 600;
        border-radius: 6px;
        padding: 10px 16px;
    }

        .tls-modal .btn-secondary:hover {
            background: #e6e5e5 !important;
        }

/* ======================================================
   CHECKOUT – LAYOUT & CARDS (RESTORED)
====================================================== */

.checkout-wrapper {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.checkout-left,
.checkout-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-full {
    grid-column: 1 / -1;
}

/* ======================================================
   CHECKOUT – CARD
====================================================== */

.checkout-card {
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid var(--gray-300);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ======================================================
   CHECKOUT – FORM
====================================================== */

.checkout-card .form-control {
    height: 44px;
    border-radius: var(--radius-button);
    font-size: 14px;
}

/* ======================================================
   CHECKOUT – STRIPE
====================================================== */

.stripe-card-element {
    padding: 12px 14px;
    border-radius: var(--radius-button);
    border: 1px solid #ced4da;
    background: #fff;
}

/* ======================================================
   CHECKOUT – PRIMARY PAY BUTTON
====================================================== */

.checkout-right .eventpage-cta {
    margin-top: 12px;
}

/* ======================================================
   CHECKOUT – mPAiSA BUTTON (FIXED)
====================================================== */

.mpaisa-cta {
    margin-top: 16px;
    background: #0b5aa6;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 88px;
}

    .mpaisa-cta:hover {
        background: #094b8d;
    }

.mpaisa-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.mpaisa-cta img {
    background: transparent;
}

/* ======================================================
   ORDER SUMMARY
====================================================== */

.order-summary-card {
    padding: 24px;
}

.order-summary-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
}

.order-summary-image img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.order-summary-info {
    display: flex;
    flex-direction: column;
}

.order-summary-event-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.order-summary-event-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 6px;
}

.order-summary-price {
    text-align: right;
    white-space: nowrap;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--gray-300);
}

/* ======================================================
   CHECKOUT – RESPONSIVE
====================================================== */

@media (max-width: 992px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }

    .order-summary-row {
        grid-template-columns: 1fr;
    }

    .order-summary-image img {
        width: 100%;
        height: 180px;
    }

    .order-summary-price {
        text-align: left;
        margin-top: 8px;
    }
}
/* ======================================================
   THANK YOU PAGE
====================================================== */

.tls-hero-success {
    background: linear-gradient( 135deg, var(--primary), #2f80ed );
    color: #fff;
    padding: 96px 24px;
}

    .tls-hero-success .tls-hero-title {
        font-size: 42px;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .tls-hero-success .tls-hero-subtitle {
        font-size: 16px;
        opacity: 0.95;
    }

/* WRAPPER */

.thankyou-wrapper {
    max-width: 600px;
    margin: -72px auto 96px;
    padding: 0 16px;
}

/* CARD */

.thankyou-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

/* ICON */

.thankyou-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    background: #e9f7ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .thankyou-icon i {
        font-size: 48px;
        color: #28a745;
    }

/* TEXT */

.thankyou-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.thankyou-card p {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 28px;
}

/* ======================================================
   ERROR PAGE (THANK YOU VARIANT)
====================================================== */

.tls-hero-error {
    background: linear-gradient( 135deg, #b31217, #e52d27 );
    color: #fff;
    padding: 96px 24px;
}

/* card variant */
.error-card {
    border-top: 6px solid #e52d27;
}

/* icon */
.error-icon {
    background: #fdecea;
}

    .error-icon i {
        color: #e52d27;
    }

/* actions */
.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* secondary CTA */
.eventpage-cta.secondary {
    background: #f1f0f0;
    color: var(--gray-900);
}

    .eventpage-cta.secondary:hover {
        background: #e6e5e5;
    }


.svg-seats {
    opacity: 0;
    pointer-events: none;
}

    .svg-seats.is-ready {
        opacity: 1;
        pointer-events: auto;
        transition: opacity .15s ease;
    }

