
/* =========================================================
   TABS
========================================================= */

.ohm-routes-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: 0;
    padding: 6px;
   
    border-radius: var(--radius-md);     
}


/* Bootstrap nav item */

.ohm-routes-tabs .nav-item {
    flex: 1 1 0;
}


/* =========================================================
   TAB BUTTON
========================================================= */

.ohm-route-tab {
    width: 100%;
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: var(--space-xs);

    padding: 12px 20px;

    border: 0 !important;
    border-radius: var(--radius-sm) !important;

    background: var(--bg-light); 

    color: var(--primary) !important;

    font-family: var(--font-main);

    font-size: 14px;
    line-height: var(--lh-body-md);

    font-weight: 400;
    
    line-height: 1.4;

    transition:
        background var(--transition),
        color var(--transition),
       
}


/* Hover */

.ohm-route-tab:hover {
    background: var(--gray-100) !important;

    color: var(--primary) !important;
}


/* Active */

.ohm-route-tab.active {
    background: var(--primary) !important;

    color: var(--white) !important;

    box-shadow: var(--shadow-sm);
}


/* =========================================================
   TAB ICON
========================================================= */

.ohm-route-tab__icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.ohm-route-tab__icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   TAB TITLE
========================================================= */

.ohm-route-tab__title {
    display: inline-block;
}


/* =========================================================
   CONTENT
========================================================= */

.ohm-routes-content {
    margin-top: var(--space-lg);
}


/* =========================================================
   ROUTE CARD
========================================================= */

.ohm-route-card {
    overflow: hidden;
    background: var(--white);   
    border-radius: var(--radius-lg);    
}



/* =========================================================
   LARGE ICON
========================================================= */

.ohm-route-card__icon {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    background: var(--white);

    border-radius: var(--radius-sm);
}

.ohm-route-card__icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   ROUTE WYSIWYG CONTENT
========================================================= */

.ohm-route-card__content {
    padding: var(--space-lg);

    color: var(--text-color);

    font-size: var(--body-md);
    line-height: var(--lh-body-md);
}


/* Paragraph */

.ohm-route-card__content p {
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.ohm-route-card__content p:last-child {
    margin-bottom: 0;
}


/* Headings */




/* Links */

.ohm-route-card__content a {
    color: var(--link-color);

    font-weight: 700;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition: color var(--transition-fast);
}

.ohm-route-card__content a:hover {
    color: var(--link-hover);
}


/* Lists */

.ohm-route-card__content ul,
.ohm-route-card__content ol {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);

    padding-left: 24px;
}

.ohm-route-card__content li {
    margin-bottom: 8px;
}


/* Images */

.ohm-route-card__content img {
    max-width: 100%;
    height: auto;

    border-radius: var(--radius-sm);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.ohm-routes-empty {
    padding: var(--space-lg);

    background: var(--white);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

    color: var(--text-muted);

    text-align: center;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .ohm-routes-page {
        padding-top: var(--space-md);
        padding-bottom: var(--section-space-md);
    }


    .ohm-routes-title {
        font-size: 32px;
        line-height: 40px;
    }


    .ohm-routes-tabs {
        flex-direction: column;
    }


    .ohm-routes-tabs .nav-item {
        width: 100%;
        flex: none;
    }


    .ohm-route-tab {
        justify-content: flex-start;

        padding: 14px 16px;

        text-align: left;
    }


    .ohm-route-card {
        border-radius: var(--radius-md);
    }


    .ohm-route-card__header {
        gap: var(--space-sm);

        padding: var(--space-md);
    }


    .ohm-route-card__icon {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        padding: 8px;
    }


    .ohm-route-card__heading h2 {
        font-size: var(--h3);
        line-height: var(--lh-h3);
    }


    .ohm-route-card__content {
        padding: var(--space-md);

        font-size: var(--body-sm);
        line-height: var(--lh-body-sm);
    }

}



/* =========================================
   ВЕРТИКАЛЬНІ КРОКИ
========================================= */

.vertical-steps {
    position: relative;
    width: 100%;
    padding: 20px 0;
}


/* =========================================
   ВЕРТИКАЛЬНА ПУНКТИРНА ЛІНІЯ
========================================= */

.vertical-steps::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 21.5px;

    width: 3px;

    background: repeating-linear-gradient(
        to bottom,
        #d9e6ed 0,
        #d9e6ed 10px,
        transparent 10px,
        transparent 18px
    );
}


/* =========================================
   ОКРЕМИЙ КРОК
========================================= */

.vertical-steps__item {
    position: relative;

    display: grid;

    /*
     * 1 колонка — круг
     * 2 колонка — назва
     * 3 колонка — контент
     */
    grid-template-columns:
        43px
        minmax(180px, 0.7fr)
        minmax(0, 1.3fr);

    column-gap: 30px;

    margin-bottom: 50px;

    align-items: center;
}


/* Останній крок */

.vertical-steps__item:last-child {
    margin-bottom: 0;
}


/* =========================================
   КРУГ З ЦИФРОЮ
========================================= */

.vertical-steps__marker {
    position: relative;
    z-index: 2;

    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #1d4053;
    color: #ffffff;

    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}


/* =========================================
   НАЗВА КРОКУ
========================================= */

.vertical-steps__title {
    min-width: 0;

    margin: 0;

    color: #1d4053;

    font-size: 18px;
    line-height: 1.4;
}


/*
 * Якщо WYSIWYG у назві створює p,
 * прибираємо зайві відступи
 */

.vertical-steps__title > :first-child {
    margin-top: 0;
}

.vertical-steps__title > :last-child {
    margin-bottom: 0;
}


/* =========================================
   ОСНОВНИЙ КОНТЕНТ
========================================= */

.vertical-steps__content {
    min-width: 0;

    font-size: 17px;
    line-height: 1.65;
}


/* Перший елемент без зайвого верхнього відступу */

.vertical-steps__content > :first-child {
    margin-top: 0;
}


/* Останній елемент без зайвого нижнього відступу */

.vertical-steps__content > :last-child {
    margin-bottom: 0;
}


/* =========================================
   ЗОБРАЖЕННЯ
========================================= */

.vertical-steps__content img {
    max-width: 100%;
    height: auto;
}


/* =========================================
   GOOGLE MAP / IFRAME
========================================= */

.vertical-steps__content iframe {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 25px 0;

    border: 0;
}


/* =========================================
   ПОСИЛАННЯ
========================================= */

.vertical-steps__content a {
    word-break: break-word;
}


/* =========================================
   СПИСКИ
========================================= */

.vertical-steps__content ul,
.vertical-steps__content ol {
    margin-top: 15px;
    margin-bottom: 15px;
}


/* =========================================
   МОБІЛЬНА ВЕРСІЯ
========================================= */

@media (max-width: 767px) {

    .vertical-steps {
        width: 100%;
        padding: 10px 0;
    }


    /* =====================================
       ПУНКТИРНА ЛІНІЯ
    ===================================== */

    .vertical-steps::before {
        left: 17px;
        width: 2px;
    }


    /* =====================================
       ОКРЕМИЙ КРОК
    ===================================== */

    .vertical-steps__item {
        display: grid;

        grid-template-columns: 34px minmax(0, 1fr);

        column-gap: 18px;
        row-gap: 8px;

        margin-bottom: 40px;

        align-items: start;
    }


    /* =====================================
       КРУГ
    ===================================== */

    .vertical-steps__marker {
        grid-column: 1;
        grid-row: 1 / span 2;

        width: 34px;
        height: 34px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 16px;
        line-height: 1;

        align-self: start;
    }


    /* =====================================
       НАЗВА
    ===================================== */

    .vertical-steps__title {
        grid-column: 2;
        grid-row: 1;

        min-width: 0;

        margin: 0;

        font-size: 18px;
        line-height: 1.4;

        color: #1d4053;
    }


    /* WYSIWYG всередині назви */

    .vertical-steps__title p {
        margin-top: 0;
        margin-bottom: 8px;
    }

    .vertical-steps__title p:last-child {
        margin-bottom: 0;
    }


    /* =====================================
       КОНТЕНТ
    ===================================== */

    .vertical-steps__content {
        grid-column: 2;
        grid-row: 2;

        min-width: 0;

        font-size: 16px;
        line-height: 1.6;

        width: 100%;
    }


    /* =====================================
       КАРТИНКИ
    ===================================== */

    .vertical-steps__content img {
        display: block;

        max-width: 100%;
        width: auto;
        height: auto;

        margin: 15px 0;
    }


    /* =====================================
       GOOGLE MAP / IFRAME
    ===================================== */

    .vertical-steps__content iframe {
        display: block;

        width: 100%;
        max-width: 100%;

        min-height: 250px;

        margin: 20px 0;

        border: 0;
    }


    /* =====================================
       СПИСКИ
    ===================================== */

    .vertical-steps__content ul,
    .vertical-steps__content ol {
        margin-top: 10px;
        margin-bottom: 10px;

        padding-left: 20px;
    }


    /* =====================================
       ОСТАННІ ВІДСТУПИ
    ===================================== */

    .vertical-steps__content > :first-child {
        margin-top: 0;
    }

    .vertical-steps__content > :last-child {
        margin-bottom: 0;
    }

}