



/* ── Table layout ── */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    table-layout: auto;
}
.compare-table thead th {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 8px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 3px solid #667eea;
    white-space: nowrap;
    min-width: 140px;
}
.compare-table tbody tr {
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    transition: background .15s;
    min-width: 140px;
}
.compare-table tbody tr:hover { background: #f7f8ff; }
.compare-table tbody td {
    padding: 8px;
    overflow: hidden;
}

/* ── Ticket name ── */
.ticket-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.ticket-stats { display: flex; gap: 4px; flex-wrap: wrap; }
.stat-reviews, .stat-sold {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    white-space: nowrap;
}
.stat-reviews { background: #fff8e1; color: #f57f17; }
.stat-sold    { background: #e8f5e9; color: #2e7d32; }

/* ── Price ── */
.price {
    font-size: 16px;
    font-weight: 800;
    color: #667eea;
    white-space: nowrap;
}

/* ── Type & Duration — everything inline, wraps naturally ── */
.type-duration-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}
.tour-type {
    font-weight: 700;
    color: #333;
    font-size: 11px;
    white-space: nowrap;
}
.sep { color: #ccc; font-size: 10px; }
.guide-line {
    font-size: 10px;
    color: #555;
    white-space: nowrap;
}
.duration {
    font-size: 10px;
    color: #555;
    white-space: nowrap;
}
.days-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    width: 100%;
    margin-top: 3px;
}
.day-badge, .day-normal, .day-peak {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 6px;
    font-weight: 600;
    cursor: default;
    white-space: nowrap;
}
.day-badge  { background: #f3e5f5; color: #6a1b9a; }
.day-normal { background: #e3f2fd; color: #1565c0; }
.day-peak   { background: #fce4ec; color: #c62828; }

/* ── Badges — inline wrap ── */
.badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin: 2px 2px 0 0;
    white-space: nowrap;
}
.destination-badge { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.feature-badge     { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* ── Highlights — inline chips, wrap up to ~2 rows ── */
.highlight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}
.highlight-chip {
    display: inline-block;
    font-size: 10px;
    color: #555;
    background: #f5f5f5;
    border-left: 2px solid #667eea;
    padding: 2px 6px;
    border-radius: 0 5px 5px 0;
    cursor: default;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.highlight-chip:hover { background: #ede7ff; color: #333; }

/* ── Important Info — compact inline pill per item ── */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.info-list li {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: #fff8e1;
    border-left: 2px solid #ff9800;
    padding: 2px 6px;
    border-radius: 0 4px 4px 0;
    max-width: 100%;
    overflow: hidden;
}
.info-title {
    font-weight: 700;
    font-size: 10px;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}
.info-sep { color: #bbb; font-size: 10px; flex-shrink: 0; }
.info-desc {
    font-size: 10px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
}

.empty { color: #bbb; font-size: 11px; }

/* ── Loading / Error ── */
.loading { text-align: center; padding: 40px; }
.spinner {
    width: 36px; height: 36px; margin: 0 auto 12px;
    border: 3px solid #eee; border-top-color: #667eea;
    border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-message { padding: 16px; background: #ffebee; color: #c62828; border-radius: 6px; text-align: center; }


