/* Places component — isolated selectors, no parent coupling. */

@media (max-width: 1024px) {
  .places-featured {
    --places-featured-h: 420px;
    gap: 16px;
    margin-bottom: 36px;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .places-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .places-hero-bar { padding: 28px 0 22px; }
    .places-hero-title-row h1 { font-size: 1.8rem; }
    .places-hero-stats { display: none; }
    .places-body { padding: 20px 14px 48px; }
    .places-body.catalog-page-body { padding: 0 14px 48px; }
    .places-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .place-card { flex-direction: column; border-radius: var(--z-card-radius); align-items: stretch; }
    .place-card-img {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: var(--z-card-photo-radius);
        isolation: isolate;
        flex-shrink: 0;
    }
    .place-card-img img {
        -webkit-clip-path: inset(0 round var(--z-card-photo-radius));
        clip-path: inset(0 round var(--z-card-photo-radius));
        border-radius: inherit;
    }
    .place-card-region-badge { top: 8px; left: 8px; bottom: auto; font-size: 0.45rem; max-width: calc(100% - 16px); }
    .place-card-body { padding: 8px 12px; justify-content: center; }
    .place-card-title { font-size: 0.8rem; -webkit-line-clamp: 2; flex: 0 1 auto; margin-bottom: 5px; }
    .place-card-desc { display: none; }
    .place-card-actions { justify-content: space-between; }
    .place-card-read-btn { font-size: 0.7rem; }
    .places-filter-bar { top: 56px; }

    /* ── Mobile: Featured ── */
    .places-featured {
        --places-featured-h: auto;
        --places-side-slot-h: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
        margin-bottom: 28px;
    }
    .places-main-card { min-height: 260px; height: auto; }
    .places-main-content h2 { font-size: 1.2rem; }
    .places-main-content .excerpt {
        -webkit-line-clamp: 4;
        margin-bottom: 10px;
    }
    /* Override desktop overflow:hidden on both base AND parent-combinator selectors */
    .places-side-stack,
    .places-featured > .places-side-stack {
        flex-direction: row;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 10px;
        max-height: none;
        height: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x;
    }
    .places-side-stack::-webkit-scrollbar { display: none; }
    /* Фиксированная ширина — иначе flex-basis:auto растягивает карточку по intrinsic-ширине текста */
    .places-side-card { width: 100%; min-width: 0; max-width: 100%; flex-direction: column; height: auto; scroll-snap-align: start; flex-shrink: 0; }
    .places-side-card-wrap { overflow: visible; flex-shrink: 0; width: 220px; min-width: 220px; max-width: 220px; flex: 0 0 220px; }
    .places-side-img { width: 100%; min-width: 0; max-width: none; height: auto; flex: none; aspect-ratio: 1 / 1; }

    /* ── Mobile: Filter bar ── */
    .places-filter-inline {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        overflow: visible;
    }
    .places-filter-brand {
        padding: 10px 14px;
        justify-content: center;
        gap: 8px;
    }
    .places-filter-brand-icon {
        width: 24px; height: 24px;
    }
    .places-filter-brand-icon svg {
        width: 14px; height: 14px;
    }
    .places-filter-brand-text {
        font-size: 1.1rem;
    }
    .places-filter-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, #e2e8f0, transparent);
        margin: 0;
    }
    .places-filter-tabs {
        padding: 8px 10px;
        justify-content: flex-start;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .places-tab {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .places-tab .tab-count {
        padding: 1px 5px;
        font-size: 0.6rem;
    }
    .places-kind-filter-inner {
        padding: 8px 10px;
        gap: 6px;
    }
    .places-kind-filter-label {
        width: 100%;
        margin-bottom: 2px;
    }
    .places-kind-chip {
        padding: 4px 10px;
        font-size: 0.72rem;
    }

    /* ── Mobile: Section heads ── */
    .places-section-head {
        padding: 12px 14px;
        margin-bottom: 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .places-section-head h2 {
        font-size: 0.95rem;
        gap: 8px;
    }
    .places-section-head h2 .section-icon {
        width: 28px; height: 28px;
        border-radius: 8px;
    }
    .places-section-head h2 .section-icon svg {
        width: 16px; height: 16px;
    }
    .places-count-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}
@media (max-width: 480px) {
    .place-card-img::after { display: none; }
    .place-card-region-badge { display: none; }
}
.places-hub-subtitle {
    margin: -0.5rem 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #64748b;
    max-width: 820px;
}
