/* ===== Trains Page CSS ===== */

.trains-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 36px 0 48px; color: #fff; }
.trains-hero h1 { font-size: 34px; font-weight: 900; margin-bottom: 8px; }
.trains-hero > .container > p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }

.trains-search-bar { overflow: hidden; }
.tsb-tabs { display: flex; background: var(--bg); border-bottom: 1px solid var(--border); }
.tsb-tab { flex: 1; padding: 13px 8px; background: none; border: none; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; font-family: inherit; transition: all 0.2s; }
.tsb-tab.active { color: var(--navy); border-bottom-color: var(--red); background: #fff; }
.tsb-tab:hover { color: var(--navy); }

.tsb-inputs { padding: 20px; display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tsb-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 200px; }
.tsb-field label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.tsb-date-field { max-width: 180px; }

.trains-result-section { padding: 32px 0 60px; }

/* Schedule table */
.schedule-header { margin-bottom: 16px; }
.schedule-header h2 { font-size: 22px; font-weight: 800; color: var(--navy); }
.schedule-header p { color: var(--text-muted); font-size: 14px; }

.schedule-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1.5px solid var(--border); }
.schedule-table { width: 100%; border-collapse: collapse; background: #fff; }
.schedule-table th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 700; }
.schedule-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.schedule-table tr:last-child td { border: none; }
.schedule-table tr:hover td { background: var(--bg); }
.origin-row td { background: rgba(26,35,126,0.04); font-weight: 700; }
.dest-row td { background: rgba(198,40,40,0.04); font-weight: 700; }
.stn-code { font-size: 12px; background: var(--bg); padding: 2px 6px; border-radius: 4px; font-weight: 700; color: var(--navy); }
.halt-time { font-size: 12px; color: var(--text-muted); }
.day-num { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; text-align: center; line-height: 22px; }

/* Featured trains grid */
.featured-trains-section { padding: 48px 0 60px; }
.featured-trains-section h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.featured-trains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ft-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; cursor: pointer; transition: all 0.2s; }
.ft-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.ft-num { font-size: 13px; font-weight: 800; color: var(--navy); background: rgba(26,35,126,0.08); display: inline-block; padding: 3px 10px; border-radius: 5px; margin-bottom: 8px; }
.ft-name { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.ft-route { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.ft-info { display: flex; gap: 10px; flex-wrap: wrap; }
.ft-chip { font-size: 11px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; color: var(--text-muted); }

@media (max-width: 768px) { .featured-trains-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .featured-trains-grid { grid-template-columns: 1fr; } }