/* Route sharing public page */
.rs-index-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef8f5 0%, #ffffff 42%, #f8fafc 100%);
}

.rs-index-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 36px 16px 56px;
}

.rs-index-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 32px 28px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 45%, #14b8a6 100%);
    box-shadow: 0 16px 48px rgba(15, 118, 110, 0.18);
}

.rs-index-hero, .rs-index-hero h1, .rs-index-hero p { color: #fff !important; }

.rs-index-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0 0 10px;
}

.rs-index-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 10px;
}

.rs-index-hero__subtitle {
    font-size: 0.95rem;
    opacity: 0.92;
    margin: 0;
    max-width: 720px;
    line-height: 1.55;
}

.rs-search-panel {
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 28px rgba(15, 118, 110, 0.08);
}

.rs-search-panel h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: #115e59;
}

.rs-search-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.rs-search-grid .span-2 { grid-column: span 2; }

@media (max-width: 991px) {
    .rs-search-grid { grid-template-columns: 1fr 1fr; }
    .rs-search-grid .span-2 { grid-column: span 2; }
}

@media (max-width: 640px) {
    .rs-search-grid { grid-template-columns: 1fr; }
    .rs-search-grid .span-2 { grid-column: span 1; }
}

.rs-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.rs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.rs-btn--primary { background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff !important; }
.rs-btn--outline { background: #fff; color: #0f766e !important; border: 1px solid #99f6e4; }
.rs-btn--ghost { background: #f0fdfa; color: #115e59 !important; }

.rs-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.rs-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ccfbf1;
    font-size: 0.85rem;
    font-weight: 700;
    color: #115e59;
}

.rs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.rs-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .18s, box-shadow .18s;
}

.rs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
    text-decoration: none;
    color: inherit;
}

.rs-card__photo {
    width: 100%;
    height: 180px;
    background: #f3f4f6;
    overflow: hidden;
}

.rs-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-card__photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
    background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
}

.rs-card__top {
    padding: 16px 16px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.rs-card__type {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
}

.rs-card__type--school { background: #eff6ff; color: #1d4ed8; }

.rs-card__seats {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
}

.rs-card__body { padding: 14px 16px; flex: 1; }

.rs-card__title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: #111827;
}

.rs-card__route {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.rs-card__point {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #374151;
}

.rs-card__point i {
    color: #14b8a6;
    margin-top: 3px;
    width: 14px;
}

.rs-card__point small {
    display: block;
    color: #6b7280;
    margin-top: 2px;
}

.rs-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: #6b7280;
}

.rs-card__footer {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.rs-card__footer span {
    font-weight: 800;
    color: #0f766e;
    font-size: 0.85rem;
}

.rs-empty, .rs-cta {
    border-radius: 16px;
    background: #fff;
    border: 1px dashed #99f6e4;
    padding: 40px 20px;
    text-align: center;
}

.rs-cta {
    border-style: solid;
    border-color: #ccfbf1;
    margin-bottom: 24px;
    text-align: left;
}

.rs-cta__head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.rs-cta__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.rs-pagination { margin-top: 24px; }
