/*
 * =====================================
 * СТИЛИ ДЛЯ LOCAL-ATTRACTIONS.PHP
 * =====================================
 */

/* --- Секция 1: Хлебные крошки (адаптация из UME.css) --- */
.breadcrumbs-container {
    max-width: 944px;
    margin: 20px auto 0 auto;
    padding: 0 15px;
}
.breadcrumbs {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    color: #555;
    text-align: left;
}
.breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumbs li {
    display: inline-block;
}
.breadcrumbs li span {
    color: #333;
    font-weight: 600;
}
.breadcrumbs li a {
    color: #555;
    text-decoration: none;
}
.breadcrumbs li a:hover {
    text-decoration: underline;
}
.breadcrumbs li + li::before {
    content: '→';
    margin: 0 8px;
    color: #888;
}

/* --- Секция 2: Интро-блок (адаптация из style.css) --- */
.entry.text-center {
    max-width: 100%;
}
.entry .container {
    max-width: 944px;
    margin-left: auto;
    margin-right: auto;
}
.entry .h1 {
    font-family: "Raleway", sans-serif;
    font-size: 44px;
    color: #333333;
    font-weight: 400;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-transform: uppercase;
}
.entry .h2 {
    font-family: "EB Garamond", serif;
    font-size: 24px;
    color: #333333;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 20px 0;
}
.attraction-intro-text p {
    font-family: "EB Garamond", serif;
    font-size: 17px;
    color: #333333;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* --- Секция 3: Заглушка карты --- */
.map-placeholder-wrapper {
    width: 100%;
    max-height: 450px; /* Ограничиваем высоту */
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 40px;
}

/* * =====================================
 * Секция 4: Сетка Карточек (Flipping Cards)
 * =====================================
 */
.poi-section {
    padding: 20px 0 50px 0;
}
.poi-container {
    max-width: 1236px;
    margin: 0 auto;
    padding: 0 15px;
}
.poi-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.poi-count-label {
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    color: #555;
}
.poi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Стили для переворачивания --- */
.flipping-card {
    perspective: 1000px;
    height: 450px;
    background-color: transparent;
}
.flipping-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}
.flipping-card.is-flipped .flipping-card-inner {
    transform: rotateY(180deg);
}
.flipping-card-front,
.flipping-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}
.flipping-card-front {
    background-color: #ffffff;
}
.flipping-card-back {
    background-color: #f9f9f9;
    transform: rotateY(180deg);
    padding: 20px;
    box-sizing: border-box;
}

/* --- Содержимое карточек --- */
.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.card-image-wrapper .ratio-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content-front {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.cat-name {
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}
.card-title {
    font-family: "Raleway", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-top: 5px;
    min-height: 60px; /* Для 2-3 строк */
}
.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.link-more {
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #00498D;
    text-decoration: none;
    cursor: pointer;
}

.card-content-back {
    font-family: "EB Garamond", serif;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    overflow-y: auto;
    flex-grow: 1;
    /* Стилизация скроллбара (опционально) */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}
.card-content-back::-webkit-scrollbar {
    width: 5px;
}
.card-content-back::-webkit-scrollbar-track {
    background: #f9f9f9;
}
.card-content-back::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 6px;
}
.card-footer-back {
    padding-top: 15px;
    margin-top: auto;
}

/* --- Адаптация --- */
@media (max-width: 992px) {
    .poi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .entry .h1 { font-size: 32px; }
    .entry .h2 { font-size: 22px; }
}
@media (max-width: 767px) {
    .poi-grid {
        grid-template-columns: 1fr;
    }
    .flipping-card {
        height: auto; 
        min-height: 400px;
    }
}