/* Places component — isolated selectors, no parent coupling. */

/* ── Hero bar background ── */
.places-hero-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16,185,129,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(99,102,241,.12) 0%, transparent 50%);
    pointer-events: none;
}
.places-hero-bar .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.places-hero-left {}
.places-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.places-hero-breadcrumb a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: color .2s;
}
.places-hero-breadcrumb a:hover { color: #10b981; }
.places-hero-breadcrumb span { color: rgba(255,255,255,.2); }
.places-hero-breadcrumb .current { color: rgba(255,255,255,.65); }

.places-hero-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.places-icon-wrap {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(16,185,129,.35);
    flex-shrink: 0;
}
.places-icon-wrap svg { width: 26px; height: 26px; color: #fff; }
.places-hero-title-row h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.05;
}
.places-hero-title-row h1 span {
    background: linear-gradient(90deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.places-hero-sub {
    color: rgba(255,255,255,.5);
    font-size: 0.9rem;
    margin-top: 6px;
    font-weight: 400;
}
.places-hero-stats {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-shrink: 0;
}
.places-stat { text-align: center; }
.places-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}
.places-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 2px;
}

/* ── Filter / Tab Bar ── */
.places-filter-bar {
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: sticky;
    top: 60px;
    z-index: 90;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
.places-filter-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.places-filter-inner::-webkit-scrollbar { display: none; }
.places-region-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
    font-family: inherit;
}
.places-region-tab:hover { background: #f1f5f9; color: #1e293b; }
.places-region-tab.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.places-region-tab .tab-count {
    background: rgba(255,255,255,.15);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 700;
}
.places-region-tab:not(.active) .tab-count {
    background: #e2e8f0;
    color: #64748b;
}
.tab-sep {
    width: 1px; height: 20px;
    background: #e2e8f0;
    flex-shrink: 0;
    margin: 0 2px;
}

/* ── Body ── */
.places-body {
    max-width: 1340px;
    margin: 0 auto;
    padding: 16px 24px 64px;
}
.places-body.catalog-page-body {
    padding: 0 24px 64px;
}

/* «Назад» и коридор — см. partials/_catalog_page_nav_styles.html (.catalog-strip-stack, .catalog-back-corridor) */
.places-strip-back-filter-stack + .places-body.catalog-page-body > .places-grid:first-child {
    margin-top: 0;
}
.places-strip-back-filter-stack:not(:has(.places-featured)):not(:has(.places-filter-inline))
    + .places-body.catalog-page-body
    > .places-grid:first-child {
    margin-top: var(--listing-below-hero-gap, 1rem);
}

/* ── Section Header (compass-matched: white card with shadow) ── */
.places-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 20px 0 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    min-height: 0;
}
.places-section-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 14px;
}
.places-section-icon {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.places-count-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.2);
    border-radius: 999px;
    padding: 4px 12px;
}
