.route-page {
    --route-container-max: 1296px;
    --route-text: #000000;
    --route-muted: #6b7280;
    --route-border: #dfe1e6;
    --route-surface: #ffffff;
    --route-sunken: #f4f5f7;
    --route-soft: #f8f9fa;
    color: var(--route-text);
    background: var(--route-surface);
    font-family: "Primary", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.route-page *,
.route-page *::before,
.route-page *::after {
    box-sizing: border-box;
}

.route-container {
    width: min(var(--route-container-max), calc(100% - 32px));
    margin: 0 auto;
}

.route-breadcrumb-bar {
    width: 100%;
    border-bottom: 1px solid var(--route-border);
    background: #f8f8f8;
}

.route-breadcrumb {
    padding: 18px 0;
}

.route-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--route-muted);
}

.route-breadcrumb li + li::before {
    content: "›";
    margin-right: 8px;
}

.route-breadcrumb a {
    color: var(--route-muted);
}

.route-breadcrumb a:hover {
    color: var(--route-brand);
    text-decoration: none;
}

.route-breadcrumb .route-breadcrumb-active,
.route-breadcrumb a.route-breadcrumb-active:hover {
    color: #000;
}

.route-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 64px 0 32px;
    text-align: left;
}

.route-header h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--route-text);
}

.route-header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--route-muted);
}

.route-primary-button,
.route-search-submit {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--route-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.route-primary-button:hover,
.route-search-submit:hover {
    color: #fff;
    filter: brightness(.92);
    text-decoration: none;
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 48px;
}

.route-stat-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--route-border);
    border-radius: 10px;
    background: var(--route-surface);
}

.route-stat-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--route-brand);
    color: #fff;
    font-size: 18px;
}

.route-stat-card div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.route-stat-card small {
    color: var(--route-muted);
    font-size: 12px;
    line-height: 1.3;
}

.route-stat-card strong {
    overflow: hidden;
    color: var(--route-text);
    font-size: 16px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.route-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.route-section-heading span {
    color: var(--route-brand);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.route-section-heading h2 {
    margin: 4px 0 0;
    color: var(--route-text);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.route-section-heading p {
    max-width: 420px;
    margin: 0;
    color: var(--route-muted);
    text-align: right;
}

.route-schedule {
    padding-bottom: 72px;
}

.route-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.route-schedule-item {
    overflow: hidden;
    border: 1px solid var(--route-border);
    border-radius: 8px;
    background: var(--route-surface);
    transition: box-shadow .2s ease;
}

.route-schedule-item:not(.route-is-collapsed) {
    box-shadow: 0 8px 24px rgba(30, 31, 33, .08);
}

.route-schedule-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    cursor: pointer;
}

.route-schedule-summary {
    min-width: 0;
    flex: 1;
}

.route-schedule-summary h2 {
    margin: 0;
    color: var(--route-text);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
}

.route-schedule-summary h2 span {
    margin: 0 8px;
    font-weight: 400;
}

.route-schedule-summary p {
    margin: 10px 0 0;
    color: var(--route-muted);
    font-size: 14px;
}

.route-schedule-summary p i {
    margin-right: 6px;
}

.route-schedule-toggle,
.route-icon-button {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--route-border);
    border-radius: 50%;
    background: var(--route-surface);
    color: var(--route-text);
    cursor: pointer;
}

.route-schedule-toggle {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.route-schedule-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.route-schedule-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.route-schedule-content {
    display: grid;
    grid-template-columns: minmax(280px, 34%) 1fr;
    gap: 18px;
    padding: 0 18px 18px;
}

.route-pool-detail {
    padding: 20px 18px;
}

.route-pool-leg {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 12px;
    min-height: 92px;
}

.route-pool-leg:not(.route-pool-leg-last)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 13px;
    bottom: -4px;
    width: 1px;
    background: var(--route-border);
}

.route-pool-marker {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border: 1px solid var(--route-border);
    border-radius: 50%;
    background: var(--route-surface);
}

.route-pool-leg-last .route-pool-marker {
    border-color: var(--route-brand);
    background: var(--route-brand);
}

.route-pool-leg strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.route-pool-leg p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 5px;
    color: var(--route-muted);
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.route-pool-leg a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--route-brand);
    font-size: 12px;
    font-weight: 600;
}

.route-departures {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--route-border);
    border-radius: 10px;
    background: var(--route-sunken);
}

.route-departures-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.route-departures-head > strong {
    white-space: nowrap;
    font-size: 16px;
}

.route-day-tabs {
    display: flex;
    min-width: 0;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.route-day-tab {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid var(--route-border);
    border-radius: 999px;
    background: var(--route-surface);
    color: var(--route-muted);
    font-size: 14px;
    cursor: pointer;
}

.route-day-tab.route-is-active {
    border-color: var(--route-brand);
    background: var(--route-brand);
    color: #fff;
}

.route-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.route-time-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--route-surface);
    color: var(--route-text);
}

.route-time-card:hover {
    color: var(--route-text);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30,31,33,.08);
}

.route-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.route-promo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px 3px 3px;
    border-radius: 999px;
    background: #d83a32;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    white-space: nowrap;
}

.route-promo img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transform: scale(1.4);
}

.route-time-buy {
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.route-time-buy strong {
    font-size: 16px;
    white-space: nowrap;
}

.route-time-buy small {
    color: var(--route-muted);
    font-weight: 400;
}

.route-empty-schedule {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border-radius: 8px;
    background: var(--route-surface);
    color: var(--route-muted);
    text-align: center;
}

.route-journey-info {
    padding: 64px 0;
    background: var(--route-soft);
}

.route-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.route-info-card {
    min-width: 0;
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--route-border);
    border-radius: 10px;
    background: var(--route-surface);
}

.route-info-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--route-brand);
    color: #fff;
}

.route-info-icon img {
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
}

.route-info-card h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
}

.route-info-card p {
    margin: 0;
    color: var(--route-muted);
    font-size: 14px;
    line-height: 1.5;
}

.route-facilities {
    padding: 72px 0;
}

.route-section-heading-row {
    align-items: center;
}

.route-section-badge {
    padding: 7px 12px;
    border: 1px solid var(--route-border);
    border-radius: 999px;
    color: var(--route-muted) !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: var(--route-surface);
}

.route-facility-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.route-facility-card {
    padding: 18px;
    border: 1px solid var(--route-border);
    border-radius: 9px;
}

.route-facility-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.route-facility-card p {
    margin: 8px 0 0;
    color: var(--route-muted);
    font-size: 14px;
    line-height: 1.5;
}

.route-faq {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background-color: var(--route-sunken);
    background-image: linear-gradient(rgba(120,120,120,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120,120,120,.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

.route-faq-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.route-faq-intro h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 700;
}

.route-faq-intro p {
    margin: 0;
    color: var(--route-muted);
    line-height: 1.6;
}

.route-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-faq-item {
    overflow: hidden;
    border: 1px solid var(--route-border);
    border-radius: 10px;
    background: var(--route-surface);
}

.route-faq-item.route-is-open {
    border-color: var(--route-brand);
}

.route-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 18px;
    border: 0;
    background: transparent;
    color: var(--route-text);
    text-align: left;
    cursor: pointer;
}

.route-faq-question span {
    min-width: 0;
    flex: 1;
    font-size: 14px;
    font-weight: 700;
}

.route-faq-question i {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--route-border);
    border-radius: 50%;
    font-size: 12px;
    transition: transform .2s ease;
}

.route-faq-item.route-is-open .route-faq-question i {
    transform: rotate(45deg);
    background: var(--route-brand);
    color: #fff;
}

.route-faq-answer {
    padding: 0 62px 18px 18px;
}

.route-faq-answer p {
    margin: 0;
    color: var(--route-muted);
    font-size: 14px;
    line-height: 1.6;
}

.route-related {
    padding: 72px 0;
}

.route-related h2 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
}

.route-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.route-related-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 18px;
    border: 1px solid var(--route-border);
    border-radius: 9px;
    background: var(--route-surface);
    color: var(--route-text);
}

.route-related-card:hover {
    color: var(--route-text);
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(30,31,33,.08);
}

.route-related-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-related-card span {
    align-self: flex-end;
    color: var(--route-brand);
    font-size: 14px;
    font-weight: 700;
}

.route-related-card i {
    margin-left: 6px;
}

.route-related-search {
    margin: 24px auto 0;
}

.route-directory {
    min-height: 70vh;
    background: #f8f8f8;
}

.route-directory .route-container,
.route-detail-page .route-container {
    width: min(var(--route-container-max), calc(100% - 32px));
}

.route-city-name {
    text-transform: capitalize;
}

.route-directory-list {
    padding-bottom: 80px;
}

.route-directory-columns {
    column-count: 3;
    column-gap: 32px;
}

.route-directory-group {
    width: 100%;
    display: inline-block;
    padding: 0;
    margin: 0 0 40px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.route-directory-group + .route-directory-group {
    margin-top: 0;
}

.route-directory-group-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.route-directory-group-head h2, .route-directory-group-head h2 span {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.route-empty-directory {
    padding: 36px;
    border: 1px solid var(--route-border);
    border-radius: 10px;
    color: var(--route-muted);
    text-align: center;
}

.route-directory-hero {
    display: flex;
    justify-content: center;
    padding: 72px 0 36px;
    text-align: center;
}

.route-directory-hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
}

.route-directory-hero p {
    margin: 0;
    color: var(--route-muted);
    font-size: 16px;
    line-height: 1.6;
}

.route-directory-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 64px;
}

.route-directory-stat {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--route-border);
    border-radius: 8px;
    background: #fff;
}

.route-directory-stat > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.route-directory-stat small {
    color: var(--route-muted);
    font-size: 14px;
}

.route-directory-stat strong {
    color: var(--route-text);
    font-size: 16px;
}

.route-directory .route-stat-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.route-directory-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.route-directory-filter-control {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.route-directory-filter-control > i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--route-muted);
    font-size: 14px;
    pointer-events: none;
    transform: translateY(-50%);
}

.route-directory-filter-control input {
    width: 100%;
    height: 48px;
    padding: 10px 16px 10px 44px;
    border: 1px solid var(--route-border);
    border-radius: 8px;
    background: var(--route-surface);
    color: var(--route-text);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.route-directory-filter-control input:focus {
    border-color: var(--route-brand);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.route-directory-filter > span {
    flex: 0 0 auto;
    color: var(--route-muted);
    font-size: 14px;
    white-space: nowrap;
}

.route-directory-filter-empty {
    margin: 0 0 24px;
    padding: 28px;
    border: 1px solid var(--route-border);
    border-radius: 8px;
    color: var(--route-muted);
    font-size: 14px;
    text-align: center;
}

.route-directory-group[hidden],
.route-directory-link[hidden],
.route-directory-filter-empty[hidden] {
    display: none !important;
}

.route-directory-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--route-border);
}

.route-directory-link {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--route-border);
    color: var(--route-text);
    font-size: 14px;
    line-height: 1.4;
    transition: color .2s ease, padding-left .2s ease;
}

.route-directory-link > i {
    width: 18px;
    flex: 0 0 18px;
    color: var(--route-text);
    font-size: 14px;
    text-align: center;
}

.route-directory-link:hover {
    padding-left: 8px;
    color: var(--route-brand);
    text-decoration: none;
}

.route-directory-link:hover > i {
    color: var(--route-brand);
}

.route-directory-search {
    margin: 28px auto 0;
}

.route-detail-hero {
    justify-content: center;
    padding-top: 56px;
    padding-bottom: 28px;
    text-align: center;
}

.route-detail-hero h1 {
    font-size: 36px;
}

.route-detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 64px;
}

.route-detail-stats .route-stat-card {
    border-radius: 8px;
}

.route-faq-image {
    display: block;
    width: 100%;
    max-width: 330px;
    max-height: 210px;
    margin-top: 26px;
    object-fit: contain;
}

.route-detail-page .route-related-card {
    gap: 8px;
    min-height: 148px;
    padding: 20px;
    border-radius: 8px;
}

.route-detail-page .route-related-card strong {
    white-space: normal;
    line-height: 1.45;
}

.route-detail-page .route-related-card small {
    color: var(--route-muted);
    font-size: 14px;
    line-height: 1.5;
}

.route-related-title-arrow {
    margin: 0 7px !important;
    color: var(--route-brand);
    font-size: 12px;
}

.route-related-card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--route-border);
    text-align: right;
}

/* Detail rute mengikuti komposisi prototype rute/index.html. */
.route-detail-page {
    background: #f8f8f8;
}

.route-detail-page .route-breadcrumb {
    background: #f8f8f8;
}

.route-detail-page .route-header {
    padding-top: 64px;
}

.route-detail-page .route-stat-card {
    padding: 12px 16px;
    border-radius: 8px;
}

.route-detail-page .route-stat-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

.route-detail-page .route-schedule {
    padding-bottom: 80px;
}

.route-detail-page .route-schedule-item {
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(30, 31, 33, .03);
}

.route-detail-page .route-schedule-item:not(.route-is-collapsed) {
    display: grid;
    grid-template-columns: minmax(320px, 34%) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0 18px;
    padding: 18px;
}

.route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-schedule-header {
    grid-column: 1;
    grid-row: 1;
    min-height: auto;
    align-items: flex-start;
    padding: 12px 18px 0;
}

.route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-schedule-content {
    display: contents;
}

.route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-pool-detail {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    padding: 24px 18px 72px;
}

.route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-departures {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.route-detail-page .route-journey-info {
    padding: 80px 0;
    background: #f0f1f2;
}

.route-detail-page .route-facilities {
    padding: 80px 0;
    background: #f8f8f8;
}

.route-detail-page .route-facility-card {
    border-radius: 8px;
    background: #fff;
}

.route-detail-page .route-faq {
    padding: 80px 0;
    background: rgba(30, 31, 33, .03);
    background-image: none;
}

.route-detail-page .route-faq-layout {
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 32px;
}

.route-detail-page .route-faq-item {
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(30, 31, 33, .03);
}

.route-detail-page .route-faq-question {
    min-height: 72px;
    padding: 20px;
}

.route-detail-page .route-faq-question span {
    font-size: 16px;
    line-height: 20px;
}

.route-detail-page .route-faq-answer {
    padding: 0 64px 20px 20px;
}

.route-detail-page .route-related {
    padding: 80px 0;
    background: #f8f8f8;
}

.route-detail-page .route-detail-hero {
    padding-top: 88px;
}

.route-detail-page .route-schedule-list {
    gap: 16px;
}

.route-detail-page .route-pool-detail {
    position: relative;
    padding-bottom: 72px;
}

.route-detail-page .route-pool-book {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 8px 16px;
}

.route-detail-page .route-facility-grid {
    gap: 12px;
}

.route-detail-page .route-facility-card {
    min-height: 152px;
    padding: 20px;
}

.route-detail-page .route-related-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    color: var(--route-text);
    text-align: left;
}

.route-detail-page .route-related-card-footer > span {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.route-detail-page .route-related-card-footer small {
    font-size: 14px;
    font-weight: 400;
}

.route-detail-page .route-related-card-footer strong {
    font-size: 16px;
}

.route-detail-page .route-related-card-footer > i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: var(--route-brand);
    color: #fff;
}

.route-directory-hero,
.route-detail-page .route-detail-hero {
    justify-content: center;
    padding: 72px 0 36px;
    text-align: center;
}

.route-directory-hero h1,
.route-detail-page .route-detail-hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
}

.route-directory-hero p,
.route-detail-page .route-detail-hero p {
    margin: 0;
    color: var(--route-muted);
    font-size: 16px;
    line-height: 1.6;
}

.route-directory-stat small,
.route-detail-page .route-stat-card small {
    font-size: 14px;
    line-height: 1.3;
}

.route-directory-stat strong,
.route-detail-page .route-stat-card strong {
    font-size: 16px;
    line-height: 1.35;
}

.route-directory .route-related-card > strong,
.route-detail-page .route-related-card > strong {
    font-size: 16px;
    line-height: 1.45;
}

.route-empty-state {
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 24px 80px;
    text-align: center;
}

.route-empty-state-image {
    width: min(420px, 84vw);
    height: auto;
    margin: -40px 0 -42px;
    object-fit: contain;
}

.route-empty-state h1 {
    margin: 0 0 10px;
    color: var(--route-text);
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
}

.route-empty-state p {
    max-width: 560px;
    margin: 0;
    color: var(--route-muted);
    font-size: 18px;
    line-height: 1.65;
}

.route-empty-state-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 48px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--route-brand);
    color: #fff;
    font-size: 16px;
}

.route-empty-state-action:hover {
    color: #fff;
    filter: brightness(.92);
    text-decoration: none;
}

.route-search-modal .modal-dialog {
    width: calc(100% - 48px);
    max-width: 1320px;
    padding: 0;
}

.route-search-modal .modal-content {
    padding: 26px;
    border: 1px solid var(--route-border);
    border-radius: 8px;
}

.route-search-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.route-search-title {
    min-width: 0;
    flex: 1;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.route-search-return {
    margin-bottom: 16px;
}

.route-search-grid {
    display: grid;
    gap: 10px;
    align-items: end;
}

.route-search-grid-one-way {
    grid-template-columns: minmax(160px, 1.2fr) minmax(160px, 1.2fr) minmax(150px, 1fr) 140px 140px;
}

.route-search-grid-return {
    grid-template-columns: minmax(160px, 1.2fr) minmax(160px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) 140px 140px;
}

.route-form-field {
    min-width: 0;
}

.route-form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--route-muted);
    font-size: 16px;
}

.route-form-field select,
.route-form-field input {
    width: 100%;
    height: 54px;
    padding: 10px 15px;
    border: 1px solid var(--route-border);
    border-radius: 8px;
    background: var(--route-surface);
    color: var(--route-text);
    font: inherit;
}

.route-form-field .ss-main {
    width: 100%;
    color: var(--route-text);
    font: inherit;
}

.route-search-modal .route-form-field .ss-main .ss-single-selected {
    height: 54px !important;
    padding: 10px 15px !important;
    border: 1px solid var(--route-border) !important;
    border-radius: 8px !important;
    background: var(--route-surface) !important;
    color: var(--route-text) !important;
    box-sizing: border-box;
}

.route-form-field .ss-main .ss-single-selected .placeholder {
    color: var(--route-text);
    line-height: 1.4;
}

.route-form-field .ss-main .ss-single-selected .placeholder .ss-disabled {
    color: var(--route-muted);
}

.route-form-field .ss-main .ss-content {
    z-index: 1080;
    border-color: var(--route-border);
    background: var(--route-surface);
}

.route-form-field .ss-main .ss-content .ss-search input {
    height: 42px;
    border: 1px solid var(--route-border);
    border-radius: 8px;
}

.route-form-field .ss-main .ss-content .ss-list .ss-option {
    padding: 10px 12px;
    color: var(--route-text);
}

.route-form-field .ss-main .ss-content .ss-list .ss-option.ss-highlighted,
.route-form-field .ss-main .ss-content .ss-list .ss-option:hover {
    color: #fff;
    background: var(--route-brand);
}

.route-form-field input.route-date-display {
    display: block;
    width: 100%;
    height: 54px !important;
    padding: 10px 15px !important;
    border: 1px solid var(--route-border) !important;
    border-radius: 8px !important;
    outline: none;
    background: var(--route-surface) !important;
    color: var(--route-text) !important;
    font: inherit;
    cursor: pointer;
}

.route-form-field input.route-date-display:disabled {
    border-color: #e2e4e7 !important;
    background: #f1f2f3 !important;
    color: #b7bbc2 !important;
    cursor: not-allowed;
}

.route-search-submit {
    height: 54px;
    border-radius: 8px;
}

.route-search-error {
    margin: 12px 0 0;
    color: #b42318;
    font-size: 14px;
}

.btn, button {
    outline: none !important;
}

@media (max-width: 1100px) {
    .route-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-info-grid, .route-facility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .route-directory-columns {
        column-count: 2;
    }

    .route-header {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 44px;
    }

    .route-schedule-content {
        grid-template-columns: 1fr;
    }

    .route-pool-detail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .route-pool-leg {
        min-height: 0;
    }

    .route-pool-leg::before {
        display: none;
    }

    .route-faq-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .route-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-faq-image {
        max-width: 280px;
    }

    .route-detail-page .route-faq-layout {
        grid-template-columns: 1fr;
    }

    .route-detail-page .route-schedule-item:not(.route-is-collapsed) {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0;
        padding: 10px;
    }

    .route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-schedule-header,
    .route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-pool-detail,
    .route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-departures {
        grid-column: 1;
    }

    .route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-schedule-header {
        grid-row: 1;
    }

    .route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-pool-detail {
        grid-row: 2;
    }

    .route-detail-page .route-schedule-item:not(.route-is-collapsed) .route-departures {
        grid-row: 3;
    }
}

@media (max-width: 700px) {
    .route-directory-columns {
        column-count: 1;
    }

    .route-container {
        width: min(var(--route-container-max), calc(100% - 24px));
    }

    .route-header {
        padding: 36px 0 24px;
        gap: 22px;
    }

    .route-header h1 {
        font-size: 24px;
    }

    .route-header .route-primary-button {
        width: 100%;
    }

    .route-stats {
        gap: 8px;
        padding-bottom: 36px;
    }

    .route-stat-card {
        padding: 12px;
        gap: 9px;
    }

    .route-stat-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 16px;
    }

    .route-stat-card strong {
        font-size: 14px;
    }

    .route-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .route-section-heading h2, .route-faq-intro h2, .route-related h2 {
        font-size: 20px;
    }

    .route-section-heading p {
        text-align: left;
    }

    .route-schedule {
        padding-bottom: 44px;
    }

    .route-schedule-header {
        padding: 18px;
    }

    .route-schedule-summary h2 {
        font-size: 18px;
    }

    .route-schedule-content {
        padding: 0 10px 10px;
    }

    .route-pool-detail {
        grid-template-columns: 1fr;
        padding: 10px 8px;
    }

    .route-departures {
        padding: 12px;
    }

    .route-departures-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-day-tabs {
        width: 100%;
    }

    .route-time-grid {
        grid-template-columns: 1fr;
    }

    .route-time-card {
        padding: 13px;
    }

    .route-journey-info, .route-facilities, .route-faq, .route-related {
        padding: 44px 0;
    }

    .route-info-grid, .route-facility-grid, .route-related-grid {
        grid-template-columns: 1fr;
    }

    .route-section-heading-row {
        align-items: flex-start;
    }

    .route-search-modal .modal-dialog {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 8px;
        min-height: 100%;
    }

    .route-search-modal .modal-content {
        max-height: calc(100vh - 16px);
        overflow-y: auto;
        padding: 18px;
    }

    .route-search-grid {
        grid-template-columns: 1fr;
    }

    .route-search-submit {
        width: 100%;
    }

    .route-empty-state {
        min-height: 520px;
        padding: 28px 18px 60px;
    }

    .route-empty-state-image {
        width: min(360px, 96vw);
        margin: -36px 0 -38px;
    }

    .route-empty-state h1 {
        font-size: 26px;
    }

    .route-empty-state p {
        font-size: 16px;
    }

    .route-empty-state-action {
        width: 100%;
        max-width: 260px;
        margin-top: 34px;
    }

    .route-directory-hero {
        padding: 44px 0 28px;
    }

    .route-directory-hero h1 {
        font-size: 26px;
    }

    .route-directory-stats {
        grid-template-columns: 1fr;
        padding-bottom: 44px;
    }

    .route-directory-group {
        padding: 0;
    }

    .route-directory-filter {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .route-directory-group + .route-directory-group {
        margin-top: 0;
    }

    .route-directory-group-head h2 {
        font-size: 18px;
    }

    .route-directory-search {
        width: 100%;
    }

    .route-detail-hero {
        padding-top: 36px;
    }

    .route-detail-hero h1 {
        font-size: 26px;
    }

    .route-directory-hero,
    .route-detail-page .route-detail-hero {
        padding: 44px 0 28px;
    }

    .route-directory-hero h1,
    .route-detail-page .route-detail-hero h1 {
        font-size: 26px;
    }

    .route-detail-stats {
        grid-template-columns: 1fr;
        padding-bottom: 44px;
    }

    .route-detail-stats .route-stat-card {
        justify-content: flex-start;
    }

    .route-faq-image {
        max-width: 240px;
        margin: 20px auto 0;
    }
}

@media (max-width: 420px) {
    .route-stats {
        grid-template-columns: 1fr;
    }

    .route-time-buy strong {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .route-page *, .route-page *::before, .route-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
