.hub {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: min(920px, 100%);
}

.hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(11, 31, 51, 0.14);
    text-decoration: none;
    color: inherit;
}

a.hub-card:hover {
    text-decoration: none;
}

.hub-card-photo {
    display: block;
    width: 100%;
    height: 38%;
    min-height: 180px;
    max-width: none;
    object-fit: cover;
    background: #e8edf1;
}

.hub-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 20px 20px;
}

.hub-card-body h2 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid #fae600;
    text-align: left;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #000;
}

.hub-card-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.72);
}

.hub-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fae600;
    color: #0b1f33;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hub-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: inline-block;
    margin: 0;
    padding: 0.25em 0.55em;
    border-radius: 6px;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.hub-card.is-disabled {
    opacity: 1;
    pointer-events: none;
    user-select: none;
}

.hub-card.is-disabled .hub-card-action {
    background: #e5e7eb;
    color: #6b7280;
}

.ride-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 12px 32px;
}

.ride-shell #customRideForm {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ride-shell .route-card {
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(11, 31, 51, 0.18);
}

.ride-shell .route-card:hover {
    border-color: transparent;
}

.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.page-header-row h2 {
    margin-bottom: 0 !important;
}

#changeRouteLink {
    margin-top: 8px;
    color: #0b1f33;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.page-header .selected-route {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 18px 0 0;
}

.scc-date-field {
    flex: 1 1 240px;
    min-width: 220px;
}

.scc-date {
    position: relative;
}

.scc-date-button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    text-align: left;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    color: #0b1f33;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.scc-date-popover {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    box-sizing: border-box;
    width: min(300px, calc(100vw - 24px));
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(11, 31, 51, 0.18);
    overflow: hidden;
}

.scc-date-popover.is-align-end {
    left: auto;
    right: 0;
}

.scc-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.scc-date-title {
    margin: 0;
    color: #0b1f33;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-align: center;
}

.scc-date-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border: 0;
    border-radius: 10px;
    background: #f6f7f8 !important;
    color: #0b1f33 !important;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.scc-date-nav svg {
    display: block;
    width: 16px;
    height: 16px;
}

.scc-date-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.scc-date-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

.scc-date-dow,
.scc-date-day {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0b1f33;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.scc-date-dow {
    height: 26px;
    font-size: 11px;
}

.scc-date-dow.is-weekend {
    background: #fae600;
}

.scc-date-day {
    cursor: pointer;
    background: #fff !important;
    color: #0b1f33 !important;
}

.scc-date-day:hover:not(:disabled):not(.is-today):not(.is-selected) {
    background: #f3f4f6 !important;
}

.scc-date-day.is-outside {
    color: rgba(11, 31, 51, 0.35) !important;
}

.scc-date-day.is-today {
    background: #d8f3e2 !important;
    color: #0b1f33 !important;
}

.scc-date-day.is-selected:not(.is-today) {
    background: #0b1f33 !important;
    color: #fae600 !important;
}

.scc-date-day.is-today.is-selected {
    background: #b7ebc6 !important;
    box-shadow: inset 0 0 0 2px #0b1f33;
}

.scc-date-day:disabled {
    opacity: 0.28;
    cursor: default;
    background: transparent !important;
    box-shadow: none;
}

@media (max-width: 760px) {
    .scc-date-popover,
    .scc-date-popover.is-align-end {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        width: auto;
        max-width: none;
    }
}

#step-2 .bg-gray-50,
#step-2 #name,
#step-2 #email {
    background: #fff !important;
    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 40px rgba(11, 31, 51, 0.18) !important;
}

@media (min-width: 768px) {
    .hub {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 32px 24px;
    }

    .hub-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hub-card {
        min-height: 620px;
    }

    .hub-card-photo {
        height: 240px;
        min-height: 240px;
    }

    .ride-shell {
        padding: 20px 20px 48px;
    }
}

@media (min-width: 1100px) {
    .hub {
        padding: 40px 24px;
    }

    .hub-card-body {
        padding: 28px 28px 24px;
    }

    .hub-card-body h2 {
        font-size: 34px;
    }

    .hub-card-body p {
        font-size: 17px;
        max-width: 36rem;
    }
}
