.schedule-header {
    padding: 8rem 0 1.75rem;
    background: #fff;
    border-bottom: 1px solid #e9eef5;
    box-shadow: 0 4px 16px rgba(15, 46, 89, .04);
}

.schedule-header h1 {
    margin: 0;
    color: var(--brand-navy);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.schedule-header p {
    margin: .55rem 0 0;
    color: var(--text-muted);
}

.schedule-breadcrumb {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .65rem;
    color: #8290a5;
    font-size: .78rem;
}

.schedule-breadcrumb a {
    color: #8290a5;
    text-decoration: none;
}

.schedule-breadcrumb a:hover,
.schedule-breadcrumb span {
    color: var(--brand-blue);
}

.schedule-breadcrumb i {
    font-size: .58rem;
}

.schedule-page-main {
    min-height: 70vh;
    padding: 2rem 0 5rem;
    background: #f7f9fc;
}

.schedule-page-content,
.schedule-card-list {
    display: grid;
    gap: 1.5rem;
}

.schedule-card-list {
    gap: .9rem;
}

.schedule-filter-card {
    padding: 1.35rem 1.5rem 1.5rem;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(15, 46, 89, .07);
}

.schedule-card-heading,
.schedule-status-banner {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.schedule-card-heading {
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf1f6;
}

.schedule-heading-icon,
.schedule-status-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    color: var(--brand-blue);
    background: #eaf6fc;
    border-radius: .7rem;
}

.schedule-card-heading h2,
.schedule-status-banner h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1rem;
    font-weight: 800;
}

.schedule-card-heading p,
.schedule-status-banner p {
    margin: .15rem 0 0;
    color: var(--text-muted);
    font-size: .78rem;
}

.schedule-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1rem;
}

.schedule-filter-field label {
    display: block;
    margin-bottom: .4rem;
    color: #68768a;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.schedule-input-wrap {
    position: relative;
}

.schedule-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: .9rem;
    color: var(--brand-blue);
    font-size: .8rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.schedule-input-wrap select,
.schedule-input-wrap input {
    width: 100%;
    min-height: 2.75rem;
    padding: .65rem 2.5rem;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: .75rem;
    outline: none;
    font-size: .83rem;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.schedule-input-wrap select:focus,
.schedule-input-wrap input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 .2rem rgba(2, 132, 199, .12);
}

.schedule-input-wrap select:disabled,
.schedule-input-wrap input:disabled {
    color: #7b889a;
    background: #f8fafc;
    cursor: not-allowed;
    opacity: 1;
}

.schedule-date-input input {
    padding-right: 3rem;
}

.schedule-date-input button {
    position: absolute;
    top: 50%;
    right: .45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: #8491a4;
    background: transparent;
    border: 0;
    border-radius: .55rem;
    transform: translateY(-50%);
}

.schedule-date-input button:hover {
    color: var(--brand-navy);
    background: #f0f4f8;
}

.schedule-status-banner {
    padding: .9rem 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #eefbf6, #eff8fc);
    border: 1px solid #cceade;
    border-radius: 1rem;
}

.schedule-status-icon {
    color: #fff;
    background: #159a72;
}

.schedule-status-badge {
    padding: .25rem .55rem;
    margin-left: auto;
    color: #14795d;
    background: #dff6ed;
    border-radius: .4rem;
    font-size: .68rem;
    font-weight: 800;
}

.schedule-result-card {
    padding: 1.25rem 1.4rem;
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 1rem;
    box-shadow: 0 4px 14px rgba(15, 46, 89, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.schedule-result-card:hover {
    border-color: #8ccce9;
    box-shadow: 0 10px 25px rgba(15, 46, 89, .09);
    transform: translateY(-2px);
}

.schedule-preview-card {
    pointer-events: none;
}

.schedule-preview-card:hover {
    border-color: #e0e7ef;
    box-shadow: 0 4px 14px rgba(15, 46, 89, .04);
    transform: none;
}

.schedule-preview-heading,
.schedule-preview-port {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
}

.schedule-preview-heading {
    flex-direction: row;
    align-items: center;
    gap: .65rem;
}

.schedule-preview-port-end {
    align-items: flex-end;
}

.schedule-skeleton {
    display: block;
    height: .7rem;
    background: linear-gradient(90deg, #edf1f5 25%, #f7f9fb 50%, #edf1f5 75%);
    background-size: 200% 100%;
    border-radius: .35rem;
    animation: schedule-skeleton-loading 1.6s ease-in-out infinite;
}

.schedule-skeleton-badge {
    width: 5.5rem;
    height: 1.2rem;
}

.schedule-skeleton-title {
    width: 8rem;
    height: .85rem;
}

.schedule-skeleton-date {
    width: 6.5rem;
    height: 1.5rem;
}

.schedule-skeleton-label {
    width: 5rem;
    height: .5rem;
}

.schedule-skeleton-time {
    width: 4rem;
    height: 1.35rem;
}

.schedule-skeleton-port {
    width: 7.5rem;
}

@keyframes schedule-skeleton-loading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.schedule-result-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid #edf1f6;
}

.schedule-ship-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.schedule-ship-name h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: .95rem;
    font-weight: 800;
}

.schedule-route-label {
    padding: .22rem .55rem;
    color: #086b9e;
    background: #eaf6fc;
    border: 1px solid #cce9f6;
    border-radius: .4rem;
    font-size: .66rem;
    font-weight: 800;
}

.schedule-date-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .6rem;
    color: #14795d;
    background: #edf9f5;
    border-radius: .45rem;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-route-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.15rem;
}

.schedule-port {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.schedule-port-destination {
    text-align: right;
}

.schedule-time-label {
    color: #8a96a8;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.schedule-port strong {
    color: var(--brand-navy);
    font-size: 1.35rem;
    font-weight: 800;
}

.schedule-port > span:last-child {
    color: #536176;
    font-size: .8rem;
    font-weight: 700;
}

.schedule-route-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    color: var(--brand-blue);
    text-align: center;
}

.schedule-route-line > span {
    height: 2px;
    background: #b8dfee;
}

.schedule-route-line i {
    padding: 0 .55rem;
}

.schedule-route-line small {
    grid-column: 1 / -1;
    margin-top: .35rem;
    color: #159a72;
    font-size: .65rem;
    font-weight: 700;
}

.schedule-result-note {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-top: 1.15rem;
    padding-top: .9rem;
    border-top: 1px dashed #e2e8f0;
    font-size: .8rem;
    color: #4b5563;
    line-height: 1.45;
}

.schedule-note-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    color: var(--brand-navy);
    white-space: nowrap;
    flex-shrink: 0;
}

.schedule-note-label i {
    color: var(--brand-blue);
    font-size: .85rem;
}

.schedule-note-value {
    color: #1e293b;
    font-weight: 600;
}

.schedule-empty-state {
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    background: #fff;
    border: 1px dashed #cdd7e3;
    border-radius: 1rem;
    text-align: center;
}

.schedule-empty-state > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: .8rem;
    color: var(--brand-blue);
    background: #eaf6fc;
    border-radius: 50%;
    font-size: 1.35rem;
}

.schedule-empty-state h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1rem;
    font-weight: 800;
}

.schedule-empty-state p {
    margin: .35rem 0 0;
    font-size: .82rem;
}

@media (max-width: 767.98px) {
    .schedule-header {
        padding-top: 7rem;
    }

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

    .schedule-status-badge {
        display: none;
    }

    .schedule-result-topline {
        align-items: flex-start;
    }

    .schedule-route-detail {
        gap: .65rem;
    }

    .schedule-port strong {
        font-size: 1.05rem;
    }
}

@media (max-width: 479.98px) {
    .schedule-result-card,
    .schedule-filter-card {
        padding: 1rem;
    }

    .schedule-result-topline {
        flex-direction: column;
    }

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

    .schedule-route-line {
        width: 100%;
    }

    .schedule-port-destination {
        text-align: left;
    }

    .schedule-preview-port-end {
        align-items: flex-start;
    }

    .schedule-result-note {
        flex-direction: column;
        gap: .25rem;
    }
}
