  * { box-sizing: border-box; }
  body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #F4F8FC; color: #042C53; }
  .preview-banner { background: #042C53; color: #fff; text-align: center; font-size: 13px; padding: 8px 12px; }
  header { background: #fff; border-bottom: 1px solid #E6F1FB; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
  .logo { font-size: 18px; font-weight: 700; color: #185FA5; }
  nav a { color: #0C447C; text-decoration: none; margin-left: 20px; font-size: 14px; }

  /* ===== MVV-inspired split hero ===== */
  .hero-wrap {
    display: flex;
    min-height: 300px;
    background: #042C53;
  }
  .hero-panel {
    flex: 1 1 46%;
    background: #042C53;
    color: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-panel h1 { font-size: 32px; font-weight: 700; margin: 0 0 10px; line-height: 1.25; }
  .hero-panel p { color: #B7D3EE; font-size: 15px; margin: 0; max-width: 420px; }
  .hero-photo {
    flex: 1 1 54%;
    background:
      linear-gradient(180deg, rgba(4,44,83,0) 0%, rgba(4,44,83,0.55) 100%),
      linear-gradient(120deg, #2E6FA7 0%, #6FA8D8 38%, #BFE0F5 62%, #E8F4FC 100%);
    position: relative;
    overflow: hidden;
  }
  .hero-photo::before, .hero-photo::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: #185FA5;
    opacity: 0.55;
  }
  .hero-photo::before { height: 42%; clip-path: polygon(0 60%, 12% 30%, 28% 55%, 42% 20%, 58% 48%, 74% 15%, 88% 42%, 100% 25%, 100% 100%, 0 100%); }
  .hero-photo::after { height: 26%; opacity: 0.75; clip-path: polygon(0 70%, 15% 40%, 30% 65%, 48% 35%, 65% 60%, 82% 30%, 100% 55%, 100% 100%, 0 100%); }

  .search-shell { max-width: 760px; margin: -64px auto 0; padding: 0 20px 20px; position: relative; z-index: 2; }
  .search-card { background: #fff; border-radius: 16px; border: 1px solid #B5D4F4; box-shadow: 0 12px 32px rgba(4,44,83,0.16); padding: 22px; }
  .search-row { display: flex; gap: 12px; flex-wrap: wrap; }
  .search-row .field { flex: 1; min-width: 200px; }
  .search-row label { display: block; font-size: 12px; color: #5F5E5A; margin-bottom: 6px; font-weight: 500; }
  .swap-clear { display: flex; gap: 10px; margin-top: 14px; }
  .btn { border: none; border-radius: 10px; padding: 10px 18px; font-size: 14px; cursor: pointer; }
  .btn-primary { background: #185FA5; color: #fff; }
  .btn-secondary { background: #E6F1FB; color: #0C447C; }

  /* select2 polish + result-icon */
  .select2-container { font-size: 14px; }
  .select2-container--default .select2-selection--single {
    height: 46px; border: 1px solid #C9DEF2; border-radius: 10px;
    display: flex; align-items: center; padding-left: 4px;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .select2-container--default.select2-container--open .select2-selection--single,
  .select2-container--default .select2-selection--single:hover {
    border-color: #185FA5;
  }
  .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 10px; font-weight: 500; color: #042C53; }
  .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #8DA9C4; font-weight: 400; }
  .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; width: 32px; }
  .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #185FA5 transparent transparent transparent; border-width: 6px 5px 0 5px; }

  .select2-dropdown {
    border: 1px solid #C9DEF2; border-radius: 12px; overflow: hidden;
    box-shadow: 0 16px 36px rgba(4,44,83,0.18); margin-top: 4px;
  }
  .select2-search--dropdown { padding: 10px; background: #F7FAFD; }
  .select2-search--dropdown .select2-search__field {
    border: 1px solid #C9DEF2; border-radius: 8px; padding: 8px 10px;
    font-size: 14px; outline: none;
  }
  .select2-search--dropdown .select2-search__field:focus { border-color: #185FA5; }
  .select2-results__options { max-height: 280px; }
  .select2-results__option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; }
  .select2-results__option--highlighted[aria-selected] {
    background: #185FA5 !important; color: #fff !important;
  }
  .select2-results__option--highlighted[aria-selected] .stop-icon { color: #fff; }
  .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    background: #E6F1FB; font-weight: 600;
  }
  .select2-results__option .stop-icon { color: #185FA5; font-size: 13px; flex: 0 0 auto; }
  .select2-results__message { padding: 14px; color: #5F5E5A; font-size: 13px; }
  .stop-icon { color: #185FA5; font-size: 13px; flex: 0 0 auto; }

  #result { max-width: 760px; margin: 20px auto 0; padding: 0 20px; }

  /* ===== Route summary pill row (auto-injected by search JS, styled via enhancement script) ===== */
  .route-summary-box {
    max-width: 760px; margin: 20px auto 0; padding: 0 20px;
  }
  .route-summary-box b { display: none; }
  .route-summary-box { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0; }
  .route-summary-box br { display: none; }

  /* ===== Real filter checkboxes (auto-injected by search JS) ===== */
  .route-filters-box {
    max-width: 760px; margin: 10px auto 0; padding: 0 20px;
    display: flex; gap: 14px; flex-wrap: wrap;
  }
  .route-filters-box br { display: none; }
  .route-filters-box label {
    display: flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid #E6F1FB; border-radius: 20px;
    padding: 7px 14px; font-size: 13px; color: #0C447C; cursor: pointer;
  }

  /* ===== Boarding / alighting bus cards ===== */
  .bus-card {
    background: #fff; border: 1px solid #B5D4F4; border-radius: 14px;
    padding: 20px 20px; margin-bottom: 16px;
  }
  .bus-card-inner { position: relative; cursor: pointer; }
  .bus-card-inner br:first-of-type { display: none; }
  .bus-card-mode {
    display: inline-block; background: #E6F1FB; color: #0C447C;
    font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
    padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
  }
  .bus-card-time { font-size: 19px; font-weight: 700; color: #042C53; margin-bottom: 4px; display: block; }
  .bus-card-time::after {
    content: "\25BE  Tap for stop-by-stop timing";
    font-size: 12px; font-weight: 400; color: #185FA5; margin-left: 10px;
  }
  .bus-card-inner.is-expanded .bus-card-time::after { content: "\25B4  Hide stop-by-stop timing"; }
  .bus-card-meta { display: block; font-size: 12px; color: #8DA9C4; margin: 2px 0 4px; }
  .bus-card-inner .route-line-wrap {
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed #E6F1FB;
  }

  .stops-table { border-collapse: collapse; width: 100%; margin: 10px 0 6px; }
  .stops-table td { font-size: 13px; padding: 3px 0; color: #5F5E5A; }
  .stops-table tr.stop-board td, .stops-table tr.stop-alight td { color: #042C53; font-weight: 600; }
  .stops-table tr.stop-board td:first-child::before { content: "\25CF  "; color: #1F9D55; }
  .stops-table tr.stop-alight td:first-child::before { content: "\25CF  "; color: #C0392B; }
  .stops-table tr.stop-mid td:first-child::before { content: "\25CB  "; color: #B5D4F4; }
  .stops-table-hidden { display: none; }

  /* ===== Route line (stop-by-stop, MVV-style dots-on-a-line) ===== */
  .route-line-wrap { margin: 8px 0 2px; }
  .route-stop { display: flex; align-items: center; padding: 2px 0; }
  .route-stop-dotcol { width: 18px; flex: 0 0 18px; display: flex; justify-content: center; }
  .route-stop-dot { width: 8px; height: 8px; border-radius: 50%; background: #C9DEF2; display: block; }
  .route-stop-name { flex: 1; font-size: 13px; color: #5F5E5A; padding-left: 8px; }
  .route-stop-time { font-size: 12px; color: #8DA9C4; font-variant-numeric: tabular-nums; padding-left: 8px; white-space: nowrap; }

  .route-stop--start .route-stop-dot, .route-stop--final .route-stop-dot { background: #042C53; }
  .route-stop--start .route-stop-name, .route-stop--final .route-stop-name { color: #042C53; font-weight: 600; }

  .route-stop--board .route-stop-dot, .route-stop--alight .route-stop-dot { width: 13px; height: 13px; box-shadow: 0 0 0 2px #fff; }
  .route-stop--board .route-stop-dot { background: #1F9D55; }
  .route-stop--alight .route-stop-dot { background: #C0392B; }
  .route-stop--board .route-stop-name, .route-stop--alight .route-stop-name { color: #042C53; font-weight: 700; }
  .route-stop--board .route-stop-time { color: #1F9D55; font-weight: 700; }
  .route-stop--alight .route-stop-time { color: #C0392B; font-weight: 700; }

  .route-stop--mid-ride .route-stop-dot { background: #185FA5; }
  .route-stop--mid-ride .route-stop-name { color: #0C447C; }
  .route-stop--mid-outside .route-stop-dot { background: #E6F1FB; }
  .route-stop--mid-outside .route-stop-name { color: #8DA9C4; }

  .route-seg { width: 2px; height: 12px; background: #D9E6F2; margin-left: 8px; }
  .route-seg--ride { background: #185FA5; width: 3px; margin-left: 7.5px; }

  .route-gap { display: flex; align-items: center; padding: 1px 0; }
  .route-gap-dotcol { width: 18px; flex: 0 0 18px; display: flex; justify-content: center; }
  .route-gap-line {
    width: 2px; height: 18px;
    background-image: linear-gradient(180deg, #B5D4F4 0 3px, transparent 3px 7px);
    background-size: 2px 7px; background-repeat: repeat-y;
  }
  .route-gap--ride .route-gap-line {
    width: 3px;
    background-image: linear-gradient(180deg, #185FA5 0 3px, transparent 3px 7px);
    background-size: 3px 7px;
  }
  .route-gap-label {
    font-size: 11px; color: #8DA9C4; font-style: italic; padding-left: 8px;
    background: none; border: none; margin: 0; text-align: left;
    cursor: pointer; font-family: inherit;
  }
  .route-gap-label:hover { text-decoration: underline; }
  .route-gap--ride .route-gap-label { color: #185FA5; font-style: normal; font-weight: 600; }

  .route-line-toggle {
    display: inline-flex; align-items: center; margin-top: 4px; margin-left: 26px;
    background: none; border: none; color: #185FA5; font-size: 12px; font-weight: 600;
    cursor: pointer; padding: 0; font-family: inherit;
  }
  .route-line-toggle:hover { text-decoration: underline; }

  .combo-leg .route-line-wrap { margin-top: 8px; }

  .bus-card-inner a.card-link {
    display: inline-block; font-size: 12px; color: #185FA5; text-decoration: none;
    margin-right: 16px; margin-top: 10px;
  }
  .bus-card-inner a.card-link.map-link { display: none !important; } /* replaced by map-toggle-btn below; vendor script sets an inline display:block on this link, so !important is required to win the cascade */

  /* "Report incorrect timing" - a calmer amber flag rather than alarm-red */
  .bus-card-inner a.card-link.report-link,
  .combo-card a.report-link {
    color: #B7791B !important;
  }
  .bus-card-inner a.card-link.report-link:hover,
  .combo-card a.report-link:hover {
    color: #8A5A10 !important;
    text-decoration: underline;
  }

  .map-toggle-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; color: #185FA5; font-size: 12px; font-weight: 600;
    cursor: pointer; padding: 0; margin-right: 16px; margin-top: 6px; font-family: inherit;
  }
  .map-embed-wrap {
    margin-top: 12px; border-radius: 10px; overflow: hidden; border: 1px solid #E6F1FB;
    position: relative; display: none;
  }
  .map-embed-wrap.is-open { display: block; }
  .map-embed-wrap iframe { display: block; width: 100%; height: 260px; border: 0; }
  .map-embed-wrap .map-loading, .map-embed-wrap .map-error {
    display: flex; align-items: center; justify-content: center;
    height: 260px; font-size: 13px; color: #5F5E5A; background: #F7FAFD;
  }
  .map-embed-wrap .map-error a { color: #185FA5; font-weight: 600; }
  .map-embed-topbar {
    display: flex; justify-content: space-between; align-items: center;
    background: #F7FAFD; padding: 6px 10px; font-size: 12px; color: #5F5E5A;
  }
  .map-embed-topbar a { color: #185FA5; font-weight: 600; text-decoration: none; }

  /* ===== Share this route bar (sits inside every card, below its content) ===== */
  .share-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 14px; padding-top: 14px; border-top: 1px dashed #E6F1FB;
  }
  .share-bar .share-label { font-size: 12px; color: #5F5E5A; font-weight: 600; margin-right: 2px; }
  .share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #C9DEF2; border-radius: 20px; background: #F7FAFD;
    color: #0C447C; font-size: 13px; font-weight: 600; padding: 7px 14px;
    cursor: pointer; text-decoration: none; font-family: inherit;
  }
  .share-btn:hover { background: #E6F1FB; }
  .share-btn.whatsapp { border-color: #BFE6C9; background: #F1FBF3; color: #1F9D55; }
  .share-btn.whatsapp:hover { background: #E3F7E8; }
  .share-btn.copy-link.is-copied { background: #E6F1FB; color: #185FA5; border-color: #B5D4F4; }

  /* ===== Combination / multi-leg suggested routes ===== */
  .no-direct-banner {
    background: #FFF6E5; border: 1px solid #F3D9A0; color: #7A5B12;
    border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-bottom: 12px;
  }
  .combo-section-title { font-size: 14px; font-weight: 700; color: #042C53; margin: 4px 0 10px; }
  .combo-card {
    background: #fff; border: 1px solid #B5D4F4; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 12px;
  }
  .combo-badge {
    display: inline-block; background: #185FA5; color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: 0.03em; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
  }
  .combo-leg { padding: 8px 0; border-top: 1px dashed #E6F1FB; }
  .combo-leg:first-of-type { border-top: none; padding-top: 0; }
  .combo-leg .leg-mode { font-size: 11px; font-weight: 700; color: #0C447C; text-transform: uppercase; letter-spacing: .02em; }
  .combo-leg .leg-stops { font-size: 14px; font-weight: 600; color: #042C53; margin-top: 2px; }
  .combo-leg .leg-stops .dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
  .combo-leg .leg-stops .dot.board { background:#1F9D55; }
  .combo-leg .leg-stops .dot.alight { background:#C0392B; }
  .combo-leg a.card-link {
    display: inline-block; font-size: 12px; text-decoration: none;
    margin-right: 16px; margin-top: 8px;
  }
  .combo-connector {
    display: flex; align-items: center; gap: 8px; font-size: 12px; color: #185FA5;
    font-weight: 600; padding: 6px 0 6px 4px; margin: 2px 0;
  }
  .combo-total {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid #E6F1FB;
    font-size: 13px; color: #5F5E5A;
  }
  .combo-total b { color: #042C53; }

  .section { max-width: 900px; margin: 40px auto; padding: 0 20px; }
  .section h2 { font-size: 20px; color: #042C53; margin-bottom: 14px; }
  #popularRoutes { display: flex; flex-wrap: wrap; gap: 10px; }
  #popularRoutes a, #popularRoutes button { background: #E6F1FB; color: #0C447C; border: none; font-size: 13px; padding: 8px 14px; border-radius: 20px; text-decoration: none; cursor: pointer; }
  .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
  .stat-card { background: #fff; border: 1px solid #E6F1FB; border-radius: 12px; padding: 14px; text-align: center; }
  .stat-card .num { font-size: 20px; font-weight: 700; color: #185FA5; }
  .stat-card .label { font-size: 12px; color: #5F5E5A; margin-top: 4px; }
  footer { text-align: center; padding: 30px 20px; color: #888780; font-size: 12px; }
  .footer-feedback-link {
    display: inline-block; margin-top: 10px; color: #185FA5; font-size: 12px;
    text-decoration: none; font-weight: 600; cursor: pointer;
  }
  .footer-feedback-link:hover { text-decoration: underline; }

  /* ===== Feedback / correction modals ===== */
  .modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(4,44,83,0.55);
    z-index: 100; align-items: center; justify-content: center; padding: 20px;
  }
  .modal-overlay.is-open { display: flex; }
  .modal-box {
    background: #fff; border-radius: 16px; max-width: 440px; width: 100%;
    max-height: 90vh; overflow-y: auto; padding: 26px 24px; position: relative;
    box-shadow: 0 20px 50px rgba(4,44,83,0.25);
  }
  .modal-close {
    position: absolute; top: 14px; right: 14px; background: none; border: none;
    font-size: 22px; color: #8DA9C4; cursor: pointer; line-height: 1; padding: 4px;
  }
  .modal-close:hover { color: #185FA5; }
  .modal-box h3 { margin: 0 0 4px; font-size: 18px; color: #042C53; }
  .modal-sub { font-size: 13px; color: #5F5E5A; margin: 0 0 16px; }
  .modal-context {
    background: #F7FAFD; border: 1px solid #E6F1FB; border-radius: 10px;
    padding: 10px 14px; font-size: 13px; color: #0C447C; margin-bottom: 16px;
  }
  .modal-context b { color: #042C53; }
  .modal-field { margin-bottom: 14px; }
  .modal-field label { display: block; font-size: 12px; font-weight: 600; color: #5F5E5A; margin-bottom: 6px; }
  .modal-field textarea, .modal-field input, .modal-field select {
    width: 100%; border: 1px solid #C9DEF2; border-radius: 10px; padding: 10px 12px;
    font-size: 14px; font-family: inherit; color: #042C53; outline: none;
  }
  .modal-field textarea:focus, .modal-field input:focus, .modal-field select:focus { border-color: #185FA5; }
  .modal-field textarea { resize: vertical; min-height: 70px; }
  .modal-actions { display: flex; gap: 10px; margin-top: 4px; }
  .modal-actions .btn { flex: 1; }
  .modal-error { color: #C0392B; font-size: 12px; margin: -8px 0 12px; display: none; }
  .modal-error.is-visible { display: block; }
  .modal-success { text-align: center; padding: 10px 0 4px; }
  .modal-success .ok-icon {
    width: 48px; height: 48px; border-radius: 50%; background: #E6F7EC; color: #1F9D55;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    margin: 0 auto 14px;
  }
  .modal-success h4 { margin: 0 0 6px; font-size: 16px; color: #042C53; }
  .modal-success p { margin: 0 0 4px; font-size: 13px; color: #5F5E5A; }
  .modal-success .report-id { font-weight: 700; color: #185FA5; }

  @media (max-width: 640px) {
    .hero-wrap { flex-direction: column; min-height: 0; }
    .hero-panel, .hero-photo { flex: none; }
    .hero-photo { height: 90px; }
    .hero-panel { padding: 32px 20px; }
    .search-shell { margin-top: -40px; }
  }

  /* ===== SEO content sections: services / why-choose / features / route-link lists ===== */
  .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
  .feature-card { background: #fff; border: 1px solid #E6F1FB; border-radius: 12px; padding: 16px 18px; }
  .feature-card h3 { margin: 0 0 8px; font-size: 15px; color: #042C53; }
  .feature-card p { margin: 0; font-size: 13px; line-height: 1.6; color: #5F5E5A; }

  .feature-bullets { margin: 0 0 18px; padding-left: 20px; color: #5F5E5A; font-size: 14px; line-height: 1.8; }
  .feature-bullets b { color: #042C53; }

  .depot-table-wrap { overflow-x: auto; border: 1px solid #E6F1FB; border-radius: 12px; }
  .depot-table { border-collapse: collapse; width: 100%; background: #fff; font-size: 13px; }
  .depot-table th, .depot-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid #F0F5FA; }
  .depot-table th { background: #F7FAFD; color: #0C447C; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
  .depot-table tr:last-child td { border-bottom: none; }

  .route-links-list { list-style: none; margin: 10px 0 0; padding: 0; columns: 2; column-gap: 24px; }
  .route-links-list li { font-size: 13px; color: #5F5E5A; padding: 4px 0; break-inside: avoid; }
  .route-links-list li a { color: #185FA5; text-decoration: none; }
  .route-links-list li a:hover { text-decoration: underline; }
  .route-links-list--plain { columns: 1; }
  @media (min-width: 640px) { .route-links-list--plain { columns: 2; } }

  .route-links-group { background: #fff; border: 1px solid #E6F1FB; border-radius: 10px; margin-bottom: 8px; padding: 4px 16px; }
  .route-links-group summary { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 600; color: #042C53; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  .route-links-group summary::-webkit-details-marker { display: none; }
  .route-links-group summary::after { content: "+"; font-size: 18px; color: #185FA5; font-weight: 400; }
  .route-links-group[open] summary::after { content: "\2212"; }
  .rl-count { font-size: 12px; font-weight: 400; color: #8DA9C4; margin-left: 8px; }
  .route-links-group .route-links-list { padding-bottom: 12px; }
  @media (min-width: 640px) { .route-links-group .route-links-list { columns: 3; } }
