/* Route Type Detail Page */

.rt-page {
    margin: 0;
    padding: 0;
}

/* Hero */
.rt-hero {
    background: #fafafa;
}

.rt-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rt-hero__icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rt-hero__icon {
    max-width: 100%;
    max-height: 100%;
}

.rt-hero__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extra-bold);
    margin: 0 0 0.25rem;
    line-height: var(--line-height-tight);
}

.rt-hero__count {
    font-size: var(--font-size-sm);
    color: #888;
    margin: 0;
}

/* Map */
.rt-map-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.rt-map-container {
    height: 55vh;
    min-height: 350px;
    max-height: 600px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    position: relative;
}

.rt-map-container .leaflet-container {
    height: 100%;
    width: 100%;
}

.rt-map-container #rt-map-interaction-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
    pointer-events: none;
    border-radius: 8px;
}

.rt-map-fullmap-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 0.5rem 0.85rem;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
}

.rt-map-fullmap-btn:hover {
    background: #f4f4f4;
    color: #333;
    text-decoration: none;
}

/* Map lock button (reuse from main.css via .map-lock-button) */
.rt-map-container .map-lock-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1500;
}

/* Routes grid */
.rt-routes {
    padding: 0 0 3rem;
}

.rt-routes__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.rt-routes__empty {
    color: #888;
    font-size: var(--font-size-lg);
    text-align: center;
    padding: 3rem 0;
}

/* Responsive */
@media (max-width: 767px) {
    .rt-hero__inner {
        padding: 1.75rem 1.25rem;
        gap: 1rem;
    }

    .rt-hero__title {
        font-size: var(--font-size-2xl);
    }

    .rt-map-section {
        padding: 0 1rem 1.5rem;
    }

    .rt-map-container {
        height: 45vh;
        min-height: 280px;
    }

    .rt-routes__inner {
        padding: 0 1.25rem;
    }
}
