/* =====================================================
   TIMETABLE PAGE
===================================================== */
.tt-sec{padding:60px 0 80px;background:#fff;font-family:'Figtree',sans-serif}

/* Route selector tabs */
.tt-route-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:36px}
.tt-rtab{font-family:'Figtree',sans-serif;font-size:13px;font-weight:600;padding:10px 22px;border-radius:6px;border:1.5px solid #dde0e8;background:#fff;color:#0D0E48;cursor:pointer;transition:all .25s}
.tt-rtab:hover{border-color:#0D0E48}
.tt-rtab.active{background:#0D0E48;border-color:#0D0E48;color:#fff}

/* Route panels */
.tt-route{display:none}
.tt-route.active{display:block}

/* Header row */
.tt-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px;flex-wrap:wrap}
.tt-route-title h2{font-family:'Nexa Demo',sans-serif;font-size:clamp(1.3rem,2.2vw,1.75rem);font-weight:700;color:#0D0E48;line-height:1.25;letter-spacing:-.02em}
.tt-route-title h2 span{color:#CD202C}
.tt-route-title p{font-size:12.5px;color:#6b7280;margin-top:4px;font-family:'Figtree',sans-serif}

/* Day tabs */
.tt-day-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tt-tab{font-family:'Figtree',sans-serif;font-size:13px;font-weight:600;padding:9px 20px;border-radius:6px;border:1.5px solid #dde0e8;background:#fff;color:#0D0E48;cursor:pointer;transition:all .25s}
.tt-tab:hover{border-color:#0D0E48}
.tt-tab.active{background:#CD202C;border-color:#CD202C;color:#fff}

/* Day panels */
.tt-day{display:none}
.tt-day.active{display:block}

/* Direction toggle */
.tt-direction-toggle{display:flex;gap:0;margin:20px 0 16px;border-radius:8px;overflow:hidden;border:1.5px solid #dde0e8;width:fit-content;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.tt-dir-btn{font-family:'Figtree',sans-serif;font-size:13px;font-weight:600;padding:11px 28px;border:none;background:#fff;color:#0D0E48;cursor:pointer;transition:all .25s;display:flex;align-items:center;gap:8px;white-space:nowrap}
.tt-dir-btn:first-child{border-right:1.5px solid #dde0e8}
.tt-dir-btn.active{background:#0D0E48;color:#fff}
.tt-dir-btn.inbound.active{background:#CD202C;border-color:#CD202C}
.tt-dir-btn i{font-size:11px;opacity:.8}

/* Direction panels */
.tt-dir-panel{display:none}
.tt-dir-panel.active{display:block}

/* Direction labels — used as toggle button text source, hidden after JS runs */
.tt-direction-label{font-family:'Nexa Demo',sans-serif;font-size:12px;font-weight:700;color:#fff;background:#0D0E48;padding:8px 16px;border-radius:6px 6px 0 0;display:inline-block;margin-bottom:0;letter-spacing:.3px;text-transform:uppercase}
.tt-direction-label.tt-inbound{background:#CD202C}

/* Note */
.tt-note{font-family:'Figtree',sans-serif;font-size:13.5px;color:#6b7280;background:#f5f6fa;border-radius:8px;padding:20px 24px;line-height:1.75;margin-top:16px}

/* Table wrapper */
.tt-table-wrap{border-radius:10px;overflow:hidden;border:1px solid #e8eaf0;margin-bottom:8px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.tt-table-wrap{overflow-x:auto}

/* Table */
.tt-table{width:100%;border-collapse:collapse;font-size:13px;min-width:600px}
.tt-table thead tr{background:linear-gradient(90deg,#0D0E48 0%,#1a1b6e 100%)}
.tt-table thead th{color:#fff;font-family:'Nexa Demo',sans-serif;font-weight:700;font-size:12px;padding:14px 16px;text-align:left;white-space:nowrap;letter-spacing:.3px}
.tt-table thead th:first-child{min-width:240px;border-right:1px solid rgba(255,255,255,.15)}
.tt-table thead th:not(:first-child){text-align:center;min-width:64px}

.tt-table tbody tr{border-bottom:1px solid #f0f2f5;transition:background .15s}
.tt-table tbody tr:last-child{border-bottom:none}
.tt-table tbody tr:hover{background:#eef1fb}
.tt-table tbody tr:nth-child(even){background:#f8f9fc}
.tt-table tbody tr:nth-child(even):hover{background:#eef1fb}
.tt-table tbody td{padding:10px 16px;color:#555;line-height:1.3;white-space:nowrap;font-size:13px}
.tt-table tbody td:first-child{color:#0D0E48;font-weight:600;white-space:normal;border-right:1px solid #eaecf2;background:#fff}
.tt-table tbody tr:nth-child(even) td:first-child{background:#f8f9fc}
.tt-table tbody tr:hover td:first-child{background:#eef1fb}
.tt-table tbody td:not(:first-child){text-align:center;color:#444;font-family:'Figtree',sans-serif}
.tt-table tbody td:not(:first-child):not(:empty){font-variant-numeric:tabular-nums}

/* Dash/no service styling */
.tt-table tbody td:not(:first-child){color:#444}
.tt-table td[data-val="–"],.tt-table td[data-val="-"]{color:#ccc!important}

/* =====================================================
   RESPONSIVE
===================================================== */
@media(max-width:768px){
  .tt-header{flex-direction:column;gap:16px}
  .tt-sec{padding:40px 0 60px}
  .tt-route-tabs{gap:8px}
  .tt-rtab{font-size:12px;padding:8px 14px}
}
