/**
 * Стили маршрутов (маркетплейс-слой)
 * single-route.php
 *
 * @package Arkhyz
 */

/* =============================================
   Страница маршрута (single-route)
   ============================================= */

.arkhyz-route-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Галерея — используем .service-hero__gallery из service.css */
.arkhyz-route-page .gallery-mobile-wrap {
    margin-bottom: 32px;
}

/* Заголовок и мета */
.route-header {
    margin-bottom: 32px;
}

.route-header__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.route-header__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #666;
}

.route-header__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1a1a1a;
}

.route-header__star {
    color: #f59e0b;
    font-size: 18px;
}

.route-header__reviews {
    color: #888;
    font-weight: 400;
}

.route-header__providers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.route-header__divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
}

/* Описание */
.route-description {
    position: relative;
    margin-bottom: 40px;
}

.route-description__content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    max-height: 150px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    transition: max-height 0.4s ease;
}

.route-description.expanded .route-description__content {
    max-height: 2000px;
    -webkit-mask-image: none;
    mask-image: none;
}

.route-description.short .route-description__content {
    -webkit-mask-image: none;
    mask-image: none;
    max-height: none;
}

.route-description__content p {
    margin: 0 0 16px;
}

.route-description__content p:last-child {
    margin-bottom: 0;
}

.route-description__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.route-description__toggle:hover {
    color: #000;
}

.route-description__toggle svg {
    transition: transform 0.3s;
}

.route-description.expanded .route-description__toggle svg {
    transform: rotate(180deg);
}

.route-description__toggle .show-less {
    display: none;
}

.route-description.expanded .route-description__toggle .show-more {
    display: none;
}

.route-description.expanded .route-description__toggle .show-less {
    display: inline;
}

.route-description.short .route-description__toggle {
    display: none;
}

/* Информация о маршруте */
.route-info {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.route-info__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.route-info__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.route-info__label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-info__value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-info__dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.route-info__dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.route-info__dots .dot.filled {
    background: #F7941D;
}

.route-info__dots .dot.empty {
    background: #D9D9D9;
}

.route-info__section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.route-info__subtitle {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.route-info__text {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* Чеклист — что взять с собой */
.route-info__checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.route-info__checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

.route-info__checklist li svg {
    flex-shrink: 0;
}

/* Таймлайн — ключевые точки */
.route-info__timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.route-info__timeline li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
    padding: 8px 0;
}

.route-info__timeline li:not(:last-child)::after {
    content: '→';
    color: #ccc;
    font-size: 18px;
    margin: 0 16px;
}

.route-info__timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F7941D;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Провайдеры */
.route-providers {
    margin-bottom: 48px;
}

.route-providers__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #1a1a1a;
}

/* =============================================
   Адаптив
   ============================================= */

@media (max-width: 768px) {
    .route-info {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 32px;
    }

    .route-info__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .route-info__item {
        padding: 12px 0;
        gap: 4px;
    }

    .route-info__item:nth-child(odd) {
        padding-right: 12px;
        border-right: 1px solid #e5e7eb;
    }

    .route-info__item:nth-child(even) {
        padding-left: 12px;
    }

    .route-info__item {
        border-bottom: 1px solid #e5e7eb;
    }

    .route-info__item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .route-info__label {
        font-size: 12px;
    }

    .route-info__value {
        font-size: 15px;
    }

    .route-info__section {
        margin-top: 16px;
        padding-top: 16px;
    }

    .route-info__subtitle {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .route-info__text {
        font-size: 14px;
    }

    .route-info__checklist {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .route-info__checklist li {
        font-size: 14px;
    }

    .route-info__timeline {
        flex-direction: column;
    }

    .route-info__timeline li {
        padding: 6px 0;
        font-size: 14px;
    }

    .route-info__timeline li:not(:last-child)::after {
        display: none;
    }

    .route-info__timeline-dot {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .route-header__title {
        font-size: 24px;
    }

    .arkhyz-route-page .container {
        padding: 0 20px;
    }
}
