/* ===============  TWO-COLUMN LAYOUT  =============== */
/* 1. Меняем stretch на flex-start */
.detail-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ---------- LEFT COLUMN ---------- */
.detail-main {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}
.detail-main .main-container {
    padding-left: 0;
    padding-right: 0;
}
/* сброс центрирования внутри левой колонки */
.detail-main h1,
.detail-main .cnt,
.detail-main #map,
.detail-main .tuor-3d-wrp {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}
.detail-main .cnt,
.detail-main .cnt p {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.detail-main .cnt blockquote {
    padding-left: 10% !important;
    padding-right: 10% !important;
}

/* ---------- RIGHT COLUMN ---------- */
.detail-sidebar {
    flex: 0 0 310px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.routes-header {
    position: relative;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    padding: 17px 0 10px;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 300;
    color: #1b1b1b;
}
.routes-header:before {
    content: '';
    display: block;
    width: 90px;
    border-top: 2px solid #800000;
    position: absolute;
    left: 50%;
    top: 100%;
    margin-left: -45px;
}
/* 3. Контейнер карточек */
.routes-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-self: center;
    overflow: hidden;
}
.route-card {
    width: 310px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    overflow: hidden;
    margin: 0 auto 25px;
}
.route-card.hidden {
    display: none !important;
}
.route-card img {
    width: 310px;
    height: 370px;
    object-fit: cover;
    display: block;
}
.route-card__body {
    padding: 15px 20px;
}
.route-card__ttl {
    font-size: 18px;
    font-weight: 700;
    color: #800000;
    margin-bottom: 8px;
    text-decoration: none;
    text-align: center;
    display: block;
}
.route-card__txt {
    font-size: 14px;
    color: #4f4f4f;
    line-height: 1.3;
    text-align: center;
}
/* ---------- ALSO-SEE SECTION ---------- */
.also-see {
    width: 100%;
    margin-top: 25px;
    text-align: center;
}

/* ===============  RESPONSIVE  =============== */
@media (max-width: 992px) {
    .detail-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .detail-main {
        padding-left: 0;
    }
    .detail-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        padding-right: 0;
    }
    .route-card {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        margin: 0 auto 25px !important;
        box-sizing: border-box;
    }
    .route-card img {
        width: 100% !important;
        height: auto !important;
    }
    .route-card__body {
        padding: 15px !important;
    }
    .also-see {
        box-sizing: border-box;
        margin-top: 0;
    }
}
@media (max-width: 768px) {
    .detail-wrapper {
        gap: 15px;
    }
}
@media (max-width: 480px) {
    .detail-wrapper {
        gap: 10px;
    }
    .route-card {
        width: calc(100% - 10px) !important;
        margin-bottom: 20px !important;
    }
    .route-card img {
        height: 250px !important;
    }
}

/* ==========  ШАПКА ТОЛЬКО ДЛЯ ЭТОЙ СТРАНИЦЫ  ========== */
.detail-place-page .main-container {
    position: relative;
}
.detail-place-page .main-container::after {
    content: '';
    display: block;
    height: 3px;
    background-color: #800000;
}
.detail-place-page.main__top::before,
.detail-place-page.main__top::after {
    display: none;
}
.detail-place-page .place-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.detail-place-page h1.publications {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #800000;
    padding-bottom: 10px;
}
.detail-place-page .place-top__addr,
.detail-place-page .place-top__coord,
.detail-place-page .place-top__authors,
.detail-place-page .place-top__contacts {
    font-size: 15px;
    font-weight: 400;
    color: #800000;
    padding: 0 0 5px;
}
.detail-place-page .place-top__authors div {
    margin-bottom: 10px; /* Отступ между элементами */
}
.detail-place-page .addr-street-nowrap {
    font-size: 15px;
    white-space: nowrap;
    display: inline-block;
    color: #800000;
}
.detail-place-page .Social-Share {
    padding-bottom: 15px;
}
.detail-place-page .place-top a {
    color: #800000;
    font-size: 15px;
    text-decoration: none;
}
.detail-place-page .place-top a:hover {
    text-decoration: underline;
}

/* Иконки и дополнительные стили */
.place-icon {
    font-size: 14px;
    color: #800000;
    margin-right: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}
.place-icon:hover {
    color: #5a0000;
    transform: scale(1.1);
}
.place-top__coord {
    display: flex;
    align-items: center;
    gap: 4px;
}
.coord-link {
    text-decoration: none;
    color: #800000;
    transition: all 0.3s ease;
    font-size: 15px;
}
.coord-link:hover {
    text-decoration: underline;
}
.place-top__contacts {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
}
.place-top__contacts-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.place-top__contacts-item a {
    font-size: 15px;
    color: #800000;
}
.place-top__views {
    display: flex;
    align-items: center;
/*    font-size: 14px;*/
    color: #800000; /* Изменено с #000000 на #800000 для десктопа */
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 6px;
}
.views-block {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px; /* Добавлено для обеих версий */
}
.views-text {
    padding-top: 2px; /* Сдвиг текста вниз */
    display: inline-block;
    vertical-align: middle; /* Выравнивание текста по центру иконки */
    color: #800000; /* Убедимся, что цвет совпадает */
}
/*.views-block + .views-block {
    margin-left: 16px;
}*/

/* Responsive: улучшения для мобильных (max-width: 768px) */
@media (max-width: 768px) {
    .detail-place-page .place-top {
        align-items: center;
        text-align: center;
        gap: 1px;
    }
    .detail-place-page .main-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .detail-place-page .main-container::before {
        content: '';
        display: block;
        height: 2px;
        background-color: #800000;
    }
    .detail-place-page .main-container::after {
        height: 2px;
    }
    .detail-place-page h1.publications {
        font-size: 25px;
        font-weight: 500;
    }
    .detail-place-page .place-top__addr,
    .detail-place-page .place-top__coord,
    .detail-place-page .place-top__contacts {
        font-size: 15px;
        line-height: 1.3;
        color: #800000;
    }
    .detail-place-page .place-top a,
    .coord-link,
    .place-top__contacts-item a {
        color: #800000;
        font-size: 15px;
    }
    .place-icon {
        font-size: 13px;
    }
    .place-top__views {
        flex-direction: row; /* Изменено с column на row для одной строки */
        align-items: center;
    }
/*    .views-block + .views-block {
        margin-left: 16px;
        margin-top: 0; /* Убрано, так как строка 
    }*/
    .place-top__contacts {
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .detail-place-page .place-top a:hover,
    .coord-link:hover {
        text-decoration: none;
    }
}
@media (max-width: 480px) {
    .detail-wrapper {
        gap: 10px;
    }
    .route-card {
        width: calc(100% - 10px) !important;
        margin-bottom: 20px !important;
    }
    .route-card img {
        height: 250px !important;
    }
}