/* Стили для категорий маршрутов */
.route-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 16px;
}

.route-category {
    background: var(--tg-theme-bg-color, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.route-category:hover {
    transform: translateY(-2px);
}

.route-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.route-category-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.route-category-title {
    padding: 16px;
    margin: 0;
    font-size: 18px;
    color: var(--tg-theme-text-color, #000);
}

.route-category-description {
    padding: 0 16px 16px;
    color: var(--tg-theme-hint-color, #666);
    font-size: 14px;
}

/* Стили для списка маршрутов */
.routes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 16px;
}

.route-item {
    background: var(--tg-theme-bg-color, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.route-item:hover {
    transform: translateY(-2px);
}

.route-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.route-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.route-content {
    padding: 16px;
}

.route-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--tg-theme-text-color, #000);
}

.route-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    color: var(--tg-theme-hint-color, #666);
    font-size: 14px;
}

.route-excerpt {
    color: var(--tg-theme-text-color, #000);
    font-size: 14px;
    line-height: 1.5;
}

/* Стили для страницы маршрута */
.route-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

.route-header {
    margin-bottom: 24px;
}

.route-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.route-info {
    margin-bottom: 24px;
}

.route-description {
    margin-bottom: 24px;
    line-height: 1.6;
}

.route-map {
    height: 300px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.route-points {
    margin-bottom: 24px;
}

.points-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.point-item {
    background: var(--tg-theme-bg-color, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.point-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.point-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.point-content {
    padding: 16px;
}

.point-title {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--tg-theme-text-color, #000);
}

.route-actions {
    position: fixed;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--tg-theme-bg-color, #fff);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.start-route,
.complete-point {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--tg-theme-button-color, #2481cc);
    color: var(--tg-theme-button-text-color, #fff);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.start-route:hover,
.complete-point:hover {
    opacity: 0.9;
}

/* Стили для страницы точки маршрута */
.point-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

.point-header {
    margin-bottom: 24px;
}

.point-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.point-description {
    margin-bottom: 24px;
    line-height: 1.6;
}

.point-audio {
    margin-bottom: 24px;
}

.point-audio audio {
    width: 100%;
    margin-top: 8px;
}

.point-map {
    height: 300px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

/* Адаптивные стили */
@media (max-width: 600px) {
    .route-categories,
    .routes-list {
        grid-template-columns: 1fr;
    }

    .route-header img,
    .point-header img {
        height: 200px;
    }

    .route-map,
    .point-map {
        height: 200px;
    }
} 