/* Places component — isolated selectors, no parent coupling. */

/* ── Side Stack: 3 cards (1:1 с compass-side-stack) ── */
.places-side-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    max-height: var(--places-featured-h, 480px);
    overflow: hidden;
    justify-content: flex-start;
}
.places-side-card-wrap {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}
.places-side-card-wrap .places-side-card {
    height: 100%;
}
/* 1–2 боковые карточки: равномерно заполняют колонку */
.places-featured--compact-side .places-side-stack {
    justify-content: stretch;
}
.places-featured > .places-main-card-wrap,
.places-featured > .places-side-stack {
    min-width: 0;
    max-width: 100%;
}
.places-side-card {
    display: flex;
    border-radius: var(--z-card-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    border: var(--z-card-gap) solid #fff;
    box-sizing: border-box;
    align-items: stretch;
}
.places-side-card:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.places-side-img {
    aspect-ratio: 1 / 1;
    height: 100%;
    width: auto;
    min-width: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Full rounded photo (left + right edges), desktop horizontal & mobile */
    border-radius: var(--z-card-radius, 20px);
}
.places-side-img .card-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset !important;
    border-radius: inherit;
}
.places-side-img .card-carousel__track,
.places-side-img .card-carousel__slide {
    height: 100%;
}
.places-side-img .card-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
.places-side-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
    display: block;
    border-radius: inherit;
}
.places-side-card:hover .places-side-img > img,
.places-side-card:hover .places-side-img .card-carousel__slide.active img {
    transform: scale(1.06);
}
.places-side-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
    z-index: 2;
    background: rgba(16, 185, 129, 0.85);
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.places-side-text {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.places-side-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 6px;
}
.places-side-excerpt {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 1 auto;
    margin: 0;
}
.places-side-date {
    font-size: 0.66rem;
    color: #cbd5e1;
    margin-top: 8px;
    flex-shrink: 0;
}
