/* ============================================================
   trips.leerogers.com -- site.css (Kinetic Blue design system)
   ============================================================ */

:root {
    --primary:          #003d9b;
    --primary-hover:    #002d75;
    --primary-light:    rgba(0, 61, 155, 0.10);
    --primary-xlight:   rgba(0, 61, 155, 0.05);
    --surface:          #f9f9fc;
    --surface-card:     #ffffff;
    --on-surface:       #3d4149;
    --text-muted:       #6b7280;
    --border-subtle:    rgba(0, 61, 155, 0.08);
    --border-muted:     #e4e4ec;
    --danger:           #ba1a1a;
    --success:          #1a6b3c;
    --warning:          #92550a;
}

/* Base */
body {
    font-family: 'Inter', sans-serif;
    background: var(--surface);
    color: var(--on-surface);
    --bs-body-color: var(--on-surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.fw-bold, .fw-semibold,
.trip-name, .tl-title, .tl-date-header {
    font-family: 'Manrope', sans-serif;
}

/* ============ Navbar ============ */
.navbar.bg-primary {
    background: var(--primary) !important;
}

.navbar-brand {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.26rem;
    letter-spacing: -0.02em;
}

/* ============ Section labels ============ */
.section-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ============ Trip header banner ============ */
.trip-banner {
    background: var(--primary);
    color: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.trip-banner::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.trip-banner h5 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.50rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    color: #fff;
}

.trip-banner .trip-dates {
    font-size: 0.96rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.badge-confirmed,
.badge-planning,
.badge-cancelled {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
}

.badge-confirmed {
    background: #ffffff;
    color: #003d9b;
}

.badge-planning {
    background: #ffd600;
    color: #5a3a00;
}

.badge-cancelled {
    background: #ff5449;
    color: #ffffff;
}

/* ============ Traveler chips ============ */
.traveler-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--primary-xlight);
    border: 1px solid var(--border-subtle);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
}

.traveler-chip .material-symbols-outlined {
    font-size: 17px;
}

/* ============ ICS button ============ */
.btn-ics {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    transition: background 0.12s;
}

.btn-ics:hover {
    background: var(--primary-xlight);
}

.btn-ics .material-symbols-outlined {
    font-size: 18px;
}

/* ============ Accordion / Info panels ============ */
.accordion-item {
    border: 1px solid var(--border-muted) !important;
    border-radius: 0.85rem !important;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: var(--surface-card);
}

.accordion-button {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.06rem;
    color: var(--primary);
    background: var(--surface-card);
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-xlight);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    font-size: 1.06rem;
    padding: 0.75rem 1.25rem 1.25rem;
}

.accordion-body ul,
.accordion-body ol {
    padding-left: 1.2rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* ============ Timeline ============ */
.timeline {
    position: relative;
    padding-left: 3.25rem;
}

/* Line position calculated by JS and set via CSS variables */
.timeline::before {
    content: '';
    position: absolute;
    left: calc(3.25rem - 2.5rem + 21px);
    top: var(--tl-line-top, 9999px);
    bottom: var(--tl-line-bottom, 0);
    width: 2px;
    background: rgba(0, 61, 155, 0.15);
    border-radius: 1px;
    z-index: 0;
}

/* Date header */
.tl-date-header {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.25rem 0 0.5rem;
    margin-bottom: 0.25rem;
}

/* Timeline item */
.tl-item {
    position: relative;
    padding-bottom: 1.75rem;
    padding-left: 1.75rem;
}

/* Dot - sits on the left border line */
.tl-dot {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 2px rgba(0,61,155,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.tl-dot .material-symbols-outlined {
    font-size: 22px;
    color: #fff;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 600;
}

/* Dot color variants */
.tl-dot-flight      { background: #003d9b; }
.tl-dot-hotel       { background: #5b21b6; }
.tl-dot-cruise      { background: #0e7490; }
.tl-dot-activity    { background: #b45309; }
.tl-dot-tour        { background: #065f46; }
.tl-dot-rail        { background: #374151; }
.tl-dot-restaurant  { background: #991b1b; }
.tl-dot-car         { background: #92400e; }

/* Clickable row */
.tl-row {
    cursor: pointer;
    user-select: none;
    padding: 0.1rem 0;
}

.tl-row:active {
    opacity: 0.8;
}

/* Non-expandable row (e.g. synthetic checkout) */
.tl-row-static {
    padding: 0.1rem 0;
}

/* Time label (above title) */
.tl-time-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.1rem;
    opacity: 0.85;
}

/* Segment title */
.tl-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--on-surface);
}

/* Confirmation line */
.tl-conf {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Expand chevron */
.tl-chevron {
    font-size: 22px;
    color: var(--text-muted);
    opacity: 0.6;
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

/* Rotate chevron when open */
.tl-row[aria-expanded="true"] .tl-chevron,
.collapse.show + .tl-row .tl-chevron {
    transform: rotate(180deg);
}

/* Detail panel */
.tl-detail {
    font-size: 1.00rem;
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    margin-top: 0.35rem;
    color: var(--on-surface);
}

/* Layover annotation */
.tl-layover {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.90rem;
    font-style: italic;
    padding: 0.15rem 0 0.4rem;
    margin-top: -1.25rem;
    margin-bottom: 0.25rem;
}

.tl-layover::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ced4da;
    flex-shrink: 0;
    margin-left: 0.15rem;
}

/* Port call indent */
.tl-port-call {
    margin-left: 1.25rem;
}

/* Status badges in timeline */
.tl-badge-tentative {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(146, 85, 10, 0.12);
    color: var(--warning);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    vertical-align: middle;
    margin-left: 0.3rem;
}

.tl-badge-cancelled {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(186, 26, 26, 0.10);
    color: var(--danger);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    vertical-align: middle;
    margin-left: 0.3rem;
}

/* ============ Trip list cards ============ */
.trip-card {
    border-radius: 1.1rem;
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s, transform 0.15s;
    overflow: hidden;
    cursor: pointer;
}

.trip-card:hover {
    box-shadow: 0 6px 20px rgba(0, 61, 155, 0.10);
    transform: translateY(-1px);
}

.trip-card .card-body {
    padding: 1.1rem 1.4rem;
}

.trip-card .trip-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.14rem;
    color: var(--on-surface);
    line-height: 1.3;
}

.trip-card .trip-meta {
    font-size: 0.90rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.trip-card .trip-cities {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.trip-status-confirmed {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: rgba(26, 107, 60, 0.12);
    color: var(--success);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

.trip-status-planning {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: rgba(146, 85, 10, 0.12);
    color: var(--warning);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

.trip-status-cancelled {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: rgba(186, 26, 26, 0.10);
    color: var(--danger);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

/* ============ Responsive container ============ */
@media (min-width: 768px) {
    .container-trips {
        max-width: 680px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .tl-time-label { font-size: 0.70rem; }
    .tl-title      { font-size: 1.05rem; }
    .trip-banner h5 { font-size: 1.32rem; }
}
