/* Route sharing public page */
.rs-index-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff4ef 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: 22px;
    padding: 36px 36px;
    margin-bottom: 24px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #0b1526 0%, #1c1917 45%, #7c2d12 100%);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rs-index-hero__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.rs-index-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.rs-index-hero__glow--1 {
    width: 320px;
    height: 320px;
    top: -100px;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 112, 67, 0.45) 0%, transparent 70%);
}

.rs-index-hero__glow--2 {
    width: 260px;
    height: 260px;
    bottom: -80px;
    left: 25%;
    background: radial-gradient(circle, rgba(43, 122, 196, 0.3) 0%, transparent 70%);
}

.rs-index-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
}

.rs-index-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 40rem;
    flex: 1 1 auto;
}

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

.rs-index-hero__visual {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 230px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-index-hero__visual-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 112, 67, 0.25) 0%, transparent 70%);
    animation: rsGlowPulse 4s ease-in-out infinite alternate;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes rsGlowPulse {
    0% { transform: scale(0.92) translateZ(0); opacity: 0.6; }
    100% { transform: scale(1.12) translateZ(0); opacity: 1; }
}

.rs-hero-lottie {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.28));
    contain: layout paint;
    transform: translateZ(0);
}

.rs-hero-lottie svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    transform: translateZ(0);
}

.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;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

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

@media (max-width: 900px) {
    .rs-index-hero {
        padding: 28px 22px;
        gap: 16px;
    }
    .rs-index-hero__visual {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 640px) {
    .rs-index-hero {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 24px 18px;
        min-height: auto;
        border-radius: 16px;
    }
    .rs-index-hero__visual {
        width: 130px;
        height: 130px;
        align-self: center;
        margin-bottom: -6px;
    }
}

.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; }
