/* ==============================================
   PAKKETUR (Multi-Match) Accordion Styles
   ============================================== */

/* ---- Accordion Container ---- */
.pakketur-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* ---- Section ---- */
.pkt-section {
    border-radius: 10px;
    background: transparent;
    border: none;
    overflow: visible;
}

/* completed state - no extra styling needed */

/* ---- Header (always visible, clickable) ---- */
.pkt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.pkt-header:hover {
    border-color: rgba(8, 96, 95, 0.3);
    background: #fafffe;
}

.pkt-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pkt-match-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #08605F;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.pkt-section.pkt-completed .pkt-match-number {
    background: #08605F;
}

.pkt-match-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pkt-match-name {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #091924;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pkt-match-meta {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
}

.pkt-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ---- Status indicators ---- */
.pkt-status {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
}

.pkt-status-pending {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.pkt-status-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #08605F;
    font-weight: 600;
}

.pkt-selected-name {
    color: #091924;
    font-size: 13px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkt-selected-price {
    color: #08605F;
    font-size: 13px;
    font-weight: 700;
}

/* ---- Chevron ---- */
.pkt-chevron {
    color: rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pkt-section[data-state="open"] .pkt-chevron {
    transform: rotate(180deg);
}

.pkt-section[data-state="open"] .pkt-header {
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.pkt-section[data-state="open"] .ticket-option:first-child {
    border-radius: 0 !important;
    border-top: none !important;
}

/* ---- Collapsible Body ---- */
.pkt-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pkt-section[data-state="open"] .pkt-body {
    overflow: visible;
    /* max-height set dynamically by JS */
}

.pkt-body-inner {
    padding: 0;
}

/* ---- Ticket cards inside accordion (use base ticket-selection.css styles) ---- */
.pakketur-accordion .ticket-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    padding: 0;
}

.pakketur-accordion .ticket-option {
    margin-bottom: 0;
}

.pakketur-accordion .ticket-option:last-child {
    border-radius: 0 0 10px 10px !important;
}


/* ---- Progress Summary ---- */
.pkt-progress-summary {
    text-align: center;
    padding: 12px 0;
    margin-top: 4px;
}

.pkt-progress-text {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
}

.pkt-progress-count {
    font-weight: 700;
    color: #08605F;
}

/* ---- Match items in package description (Step 1) ---- */
.pakketur-match-item {
    font-family: 'Barlow' !important;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .pkt-header {
        padding: 12px 14px;
    }

    .pkt-match-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .pkt-match-name {
        font-size: 13px;
    }

    .pkt-match-meta {
        font-size: 11px;
    }

    .pkt-selected-name {
        max-width: 100px;
    }

    .pkt-body-inner {
        padding: 0;
    }
}
