/* ============================================================
   Блок «Категории» — 6 разделов на главной (dusha)
   ============================================================ */

.dusha-categories {
    padding: 64px 0 32px;
    background: #fff;
}
.dusha-categories *,
.dusha-categories *::before,
.dusha-categories *::after { box-sizing: border-box; }

.dusha-categories__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.dusha-categories__head {
    margin-bottom: 32px;
    text-align: left;
}
.dusha-categories__overline {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D85F05;
    margin-bottom: 8px;
}
.dusha-categories__title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0F2F44;
    margin: 0;
    max-width: 720px;
}

.dusha-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dusha-categories__card {
    background: #fff;
    border: 1px solid #ECEFF3;
    border-radius: 16px;
    padding: 28px 24px 24px;
    text-decoration: none;
    transition: box-shadow 250ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 250ms;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}
.dusha-categories__card:hover {
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(15, 40, 60, 0.08), 0 16px 32px rgba(15, 40, 60, 0.10);
    transform: translateY(-3px);
}

.dusha-categories__head-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.dusha-categories__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background 250ms;
}
.dusha-categories__icon--sky { background: #DDF0FA; color: #175E82; }
.dusha-categories__icon--amber { background: #FFE9CD; color: #B44802; }
.dusha-categories__card:hover .dusha-categories__icon--sky { background: #B8E1F3; }
.dusha-categories__card:hover .dusha-categories__icon--amber { background: #FFD199; }
.dusha-categories__icon img {
    display: block;
    width: 28px; height: 28px;
}

.dusha-categories__title-row {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: #0F2F44;
    line-height: 1.18;
    flex: 1;
    min-width: 0;
}

.dusha-categories__desc {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #4A5462;
    flex: 1;
}

.dusha-categories__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #D85F05;
    transition: gap 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dusha-categories__card:hover .dusha-categories__more {
    gap: 12px;
}

/* Mobile */
@media (max-width: 1024px) {
    .dusha-categories__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .dusha-categories { padding: 48px 0 24px; }
    .dusha-categories__inner { padding: 0 16px; }
    .dusha-categories__grid { grid-template-columns: 1fr; gap: 14px; }
    .dusha-categories__card { padding: 22px 20px; }
}

/* ============================================================
   КАТАЛОГ — листинг апартаментов /catalog/
   Шаг 3: hero, layout, sidebar (карточки оформляются в Шаге 4)
   ============================================================ */

/* ============================================================
   HERO v2 — dd-hero pattern (full-width photo + dark overlay)
   ============================================================ */
.dusha-catalog__hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 70vh;
    background: center/cover no-repeat;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
/* Placeholder градиент пока нет фото. После заливки /upload/dusha-catalog-hero.jpg
   класс автоматически снимется в PHP. */
.dusha-catalog__hero--placeholder {
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(245, 124, 24, 0.35) 0%, transparent 60%),
        linear-gradient(135deg, var(--sky-700, #175E82) 0%, var(--sky-900, #0F2F44) 60%, var(--amber-800, #8F3A06) 100%);
}
.dusha-catalog__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 40, 60, 0.30) 0%,
        rgba(15, 40, 60, 0.55) 60%,
        rgba(15, 40, 60, 0.85) 100%
    );
    z-index: 1;
}
.dusha-catalog__hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px 32px 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Breadcrumbs (теперь на тёмном фоне) */
.dusha-catalog__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.dusha-catalog__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 150ms;
}
.dusha-catalog__breadcrumb a:hover { color: #fff; }
.dusha-catalog__breadcrumb-sep { color: rgba(255, 255, 255, 0.5); }
.dusha-catalog__breadcrumb-current { color: #fff; font-weight: 500; }

/* Overline-badge "Каталог · …" */
.dusha-catalog__hero-overline {
    display: inline-block;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-200, #FFD199);
    background: rgba(245, 124, 24, 0.22);
    border: 1px solid rgba(255, 180, 97, 0.38);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}

/* Title */
.dusha-catalog__hero-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(15, 40, 60, 0.4);
    margin: 0 0 22px;
    max-width: 860px;
}

/* Lead */
.dusha-catalog__hero-lead {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 28px;
    max-width: 580px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Meta-чипы */
.dusha-catalog__hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 32px;
}
.dusha-catalog__hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    line-height: 1.3;
}
.dusha-catalog__hero-chip strong {
    font-weight: 700;
    color: #fff;
    margin-right: 2px;
}

/* CTA */
.dusha-catalog__hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.dusha-catalog__hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1;
    box-sizing: border-box;
}
.dusha-catalog__hero-btn--primary {
    background: var(--amber-500, #F57C18);
    color: #fff;
    box-shadow: 0 4px 18px rgba(245, 124, 24, 0.4);
}
.dusha-catalog__hero-btn--primary:hover {
    background: var(--amber-600, #D85F05);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 124, 24, 0.55);
    color: #fff;
}
.dusha-catalog__hero-btn--ghost {
    background: rgba(255, 255, 255, 0.95);
    color: var(--sky-900, #0F2F44);
    border-color: rgba(255, 255, 255, 0.25);
}
.dusha-catalog__hero-btn--ghost:hover:not([disabled]) {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 40, 60, 0.25);
}
.dusha-catalog__hero-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.dusha-catalog__hero-btn i { font-size: 13px; }

/* Wave-divider к белому контенту */
.dusha-catalog__hero-wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 60px;
    z-index: 2;
    pointer-events: none;
}
.dusha-catalog__hero-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .dusha-catalog__hero { min-height: 92vh; }
    .dusha-catalog__hero-inner { padding: 100px 16px 90px; }
    .dusha-catalog__hero-title { font-size: clamp(30px, 9vw, 44px); }
    .dusha-catalog__hero-lead { font-size: 15px; }
    .dusha-catalog__hero-cta { width: 100%; }
    .dusha-catalog__hero-btn { flex: 1 1 calc(50% - 6px); justify-content: center; padding: 0 16px; font-size: 14px; }
    .dusha-catalog__hero-wave { height: 40px; }
    /* Mobile-фото для hero (если задана CSS-variable --hero-mob) */
    .dusha-catalog__hero.has-mob-bg {
        background-image: var(--hero-mob) !important;
        background-position: center bottom;
    }
}

/* ------ LAYOUT (full-width listing после filterbar) ------ */
/* Тёплый off-white фон страницы каталога — карточки белые на нём контрастируют */
body:has(.dusha-catalog__hero) {
    background: var(--sand-50, #FBF7EF) !important;
}
body:has(.dusha-catalog__hero) .main-content,
body:has(.dusha-catalog__hero) .container,
body:has(.dusha-catalog__hero) .index_page_all_blocks_container,
body:has(.dusha-catalog__hero) .page_block_container {
    background: transparent !important;
}
section.apartments-section.dusha-catalog {
    background: var(--sand-50, #FBF7EF);
    padding: 0;
}

/* ------ FILTER-BAR (горизонтальная полоса под hero) ------ */
aside.dusha-catalog__sidebar.dusha-catalog__filterbar {
    /* Не sticky — обычный поток */
    position: relative;
    z-index: 1;
    /* Фон шире всего экрана — пробиваем через container/page_block_container */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fff;
    border: 0;
    border-radius: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
}

/* Песочная волна-дивайдер под filter-bar — плавный переход к listing на sand-50 */
.dusha-catalog__filter-wave {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 56px;
    line-height: 0;
    background: #fff;
    overflow: hidden;
    pointer-events: none;
}
.dusha-catalog__filter-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .dusha-catalog__filter-wave { height: 36px; }
}
.dusha-catalog__filterbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
}

/* Filter-bar: filters-section/container — сбрасываем legacy (grid/padding/bg) */
.dusha-catalog__filterbar .filters-section,
.dusha-catalog__filterbar .filters-container {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.dusha-catalog__filterbar .filters-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.2fr 1.1fr !important;
    grid-template-rows: auto auto !important;
    gap: 14px 14px !important;
    align-items: end !important;
}
.dusha-catalog__filterbar .filter-group--checkin  { grid-column: 1; grid-row: 1; }
.dusha-catalog__filterbar .filter-group--checkout { grid-column: 2; grid-row: 1; }
.dusha-catalog__filterbar .filter-group--city     { grid-column: 3; grid-row: 1; }
.dusha-catalog__filterbar .filter-group--sort     { grid-column: 4; grid-row: 1; }
.dusha-catalog__filterbar .filter-group--price    { grid-column: 1; grid-row: 2; }
.dusha-catalog__filterbar .filter-group--area     { grid-column: 2; grid-row: 2; }
.dusha-catalog__filterbar .filter-group--guests   { grid-column: 3; grid-row: 2; }
.dusha-catalog__filterbar .filter-actions         { grid-column: 4; grid-row: 2; align-self: end; }

/* Filter-group в горизонтальной полосе */
.dusha-catalog__filterbar .filter-group {
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
}
.dusha-catalog__filterbar .filter-group > label {
    display: block !important;
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--ink-400, #6B7685) !important;
    margin: 0 0 4px 2px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
}
/* Когда сработал buildRangeSlider: оригинальный select скрыт JS-ом (display:none),
   range-slider-wrap появляется и сам показывает заголовок. Прячем дубль-label через :has(). */
.dusha-catalog__filterbar .filter-group--price:has(.range-slider-wrap) > label,
.dusha-catalog__filterbar .filter-group--area:has(.range-slider-wrap) > label {
    display: none !important;
}
.dusha-catalog__filterbar .filter-input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid var(--ink-150, #DCE2E9) !important;
    border-radius: 12px !important;
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-size: 14px !important;
    color: var(--ink-900, #0A0D12) !important;
    background: #fff !important;
    transition: border-color 150ms, box-shadow 150ms !important;
    min-width: 0;
    box-sizing: border-box;
}
.dusha-catalog__filterbar .filter-input:focus {
    outline: 0 !important;
    border-color: var(--amber-500, #F57C18) !important;
    box-shadow: 0 0 0 3px rgba(245, 124, 24, 0.15) !important;
}

/* Guests — компактный pill-row */
.dusha-catalog__filterbar .guests-filter {
    display: flex !important;
    gap: 4px;
    height: 44px;
}
.dusha-catalog__filterbar .guest-btn {
    flex: 1 1 0;
    min-width: 32px;
    height: 44px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--ink-150, #DCE2E9);
    border-radius: 10px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-700, #22272F);
    cursor: pointer;
    transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dusha-catalog__filterbar .guest-btn:hover {
    border-color: var(--amber-400, #FF9633);
    color: var(--amber-700, #B44802);
}
.dusha-catalog__filterbar .guest-btn.active,
.dusha-catalog__filterbar .guest-btn[aria-pressed="true"] {
    background: var(--amber-500, #F57C18);
    border-color: var(--amber-500, #F57C18);
    color: #fff;
}

/* Reset — иконка-кнопка */
.dusha-catalog__filterbar .filter-actions { margin: 0; }
.dusha-catalog__filterbar .dusha-catalog__filter-reset {
    width: auto;
    height: 44px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--ink-150, #DCE2E9);
    border-radius: 12px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-500, #4A5462);
    cursor: pointer;
    transition: all 180ms;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.dusha-catalog__filterbar .dusha-catalog__filter-reset:hover {
    border-color: var(--amber-500, #F57C18);
    color: var(--amber-600, #D85F05);
}
.dusha-catalog__filterbar .dusha-catalog__filter-reset i { font-size: 11px; }

/* Listing — по центру, max-width 1280 */
.dusha-catalog__listing {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px;
    box-sizing: border-box;
}

/* ------ RANGE-SLIDER (PRICE / AREA) — dusha-палитра ------ */
.dusha-catalog__filterbar .range-slider-wrap {
    padding: 4px 2px 0;
}
.dusha-catalog__filterbar .range-slider-display {
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--ink-700, #22272F) !important;
    text-align: left !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}
.dusha-catalog__filterbar .range-slider-display .range-from-lbl,
.dusha-catalog__filterbar .range-slider-display .range-to-lbl {
    color: var(--amber-600, #D85F05);
    font-weight: 700;
}
.dusha-catalog__filterbar .range-slider-track {
    position: relative;
    height: 24px;
}
.dusha-catalog__filterbar .range-slider-track::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 4px;
    background: var(--ink-150, #DCE2E9);
    border-radius: 999px;
    transform: translateY(-50%);
}
.dusha-catalog__filterbar .range-slider-bar {
    position: absolute;
    top: 50%;
    height: 4px;
    background: var(--amber-500, #F57C18);
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
}
.dusha-catalog__filterbar .range-slider-track input[type="range"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 24px;
    background: transparent !important;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.dusha-catalog__filterbar .range-slider-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--amber-500, #F57C18);
    cursor: grab;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(245, 124, 24, 0.35);
    transition: transform 120ms;
}
.dusha-catalog__filterbar .range-slider-track input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.dusha-catalog__filterbar .range-slider-track input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--amber-500, #F57C18);
    cursor: grab;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(245, 124, 24, 0.35);
}

/* ------ LISTING TOOLBAR ------ */
.dusha-catalog__listing { min-width: 0; }
.dusha-catalog__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--ink-100, #ECEFF3);
    margin-bottom: 24px;
}
.dusha-catalog__count {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink-500, #4A5462);
}
.dusha-catalog__open-filters {
    display: none;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    background: var(--amber-500, #F57C18);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* ------ Перебиваем глобальный фон body на странице каталога ------ */
body.section-catalog,
body.bx_layout_catalog { background: #fff !important; }

/* ------ VIEW-TOGGLE (Список / Карта) ------ */
.dusha-catalog__view-toggle {
    display: inline-flex;
    background: var(--ink-50, #F6F8FA);
    border: 1px solid var(--ink-100, #ECEFF3);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
    margin-left: auto;
}
.dusha-catalog__view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-500, #4A5462);
    cursor: pointer;
    transition: background 180ms, color 180ms;
}
.dusha-catalog__view-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.dusha-catalog__view-btn:hover:not(.is-active):not([disabled]) { color: var(--ink-700, #22272F); }
.dusha-catalog__view-btn.is-active {
    background: #fff;
    color: var(--sky-900, #0F2F44);
    box-shadow: 0 1px 3px rgba(15, 40, 60, 0.08);
}
.dusha-catalog__view-btn i { font-size: 12px; }

/* ------ MINI-MAP (Yandex) ------ */
.dusha-catalog__map {
    width: 100%;
    height: 640px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ink-100, #ECEFF3);
    background: var(--ink-50, #F6F8FA);
}
.dusha-catalog__map[hidden] { display: none; }

/* Yandex balloon — кастомный preview апартамента */
.dusha-catalog__map-balloon {
    display: flex;
    gap: 12px;
    align-items: stretch;
    min-width: 240px;
    max-width: 320px;
    font-family: 'Manrope', system-ui, sans-serif;
}
.dusha-catalog__map-balloon .dcm-img {
    width: 96px; height: 96px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.dusha-catalog__map-balloon .dcm-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}
.dusha-catalog__map-balloon .dcm-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--sky-900, #0F2F44);
    line-height: 1.25;
    margin-bottom: 4px;
}
.dusha-catalog__map-balloon .dcm-price {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--amber-600, #D85F05);
    line-height: 1;
}
.dusha-catalog__map-balloon .dcm-price span {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 500;
    font-size: 11px;
    color: var(--ink-400, #6B7685);
}
.dusha-catalog__map-balloon .dcm-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--amber-600, #D85F05);
    text-decoration: none;
    margin-top: 8px;
}
.dusha-catalog__map-balloon .dcm-link:hover { color: var(--amber-700, #B44802); }

/* ------ MOBILE BOTTOM-SHEET (Шаг 6) ------ */
/* Backdrop виден только когда sheet открыт. Создаётся JS-ом, стилизуем здесь. */
.dusha-catalog__sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 40, 60, 0.45);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms;
    display: none;
}
.dusha-catalog__sheet-handle {
    display: none;
    width: 44px;
    height: 4px;
    margin: 10px auto 14px;
    background: var(--ink-200, #C6CED8);
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* ------ RESPONSIVE ------ */
@media (max-width: 1024px) {
    .dusha-catalog__open-filters { display: inline-flex; }
    .dusha-catalog__map { height: 480px; }
    .dusha-catalog__view-toggle .dusha-catalog__view-btn span { display: none; } /* только иконки */
    .dusha-catalog__listing { padding: 24px 16px; }

    /* Filter-bar на mobile — скрыт, превращается в выезжающую панель снизу */
    aside.dusha-catalog__sidebar.dusha-catalog__filterbar {
        display: none;
        position: fixed;
        inset: auto 0 0 0;
        top: auto;
        max-height: 86vh;
        width: 100%;
        max-width: none;
        background: #fff;
        border-radius: 20px 20px 0 0;
        border: 0;
        box-shadow: 0 -16px 48px rgba(15, 40, 60, 0.18);
        padding: 0 14px 24px;
        z-index: 101;
        transform: translateY(100%);
        transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
        flex-direction: column;
        overflow-y: auto;
    }
    /* Снимаем все ограничения ширины с inner / filters-section / filters-container на mobile */
    aside.dusha-catalog__sidebar.dusha-catalog__filterbar .dusha-catalog__filterbar-inner,
    aside.dusha-catalog__sidebar.dusha-catalog__filterbar .filters-section {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
    }
    /* На mobile — простой flex-column в HTML-order, без хардкодов grid */
    .dusha-catalog__filterbar .filters-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        gap: 10px !important;
        align-items: stretch !important;
        padding: 4px 0 !important;
    }
    /* Прячем labels у самопоясняющих полей (placeholder уже говорит сам за себя) */
    .dusha-catalog__filterbar .filter-group--checkin > label,
    .dusha-catalog__filterbar .filter-group--checkout > label,
    .dusha-catalog__filterbar .filter-group--city > label {
        display: none !important;
    }
    /* Компактнее: input/guests 40px вместо 44 */
    .dusha-catalog__filterbar .filter-input { height: 40px !important; font-size: 14px !important; }
    .dusha-catalog__filterbar .guests-filter { height: 40px !important; }
    .dusha-catalog__filterbar .guest-btn { height: 40px !important; font-size: 13px; }
    .dusha-catalog__filterbar .dusha-catalog__filter-reset { height: 40px !important; }
    .dusha-catalog__filterbar .filter-group,
    .dusha-catalog__filterbar .filter-actions {
        grid-column: auto !important;
        grid-row: auto !important;
        align-self: auto !important;
        width: 100% !important;
    }
    /* Перебиваем legacy order из main-styles.css строки 3136-3143 */
    .dusha-catalog__filterbar .filter-group--checkin  { order: 1 !important; }
    .dusha-catalog__filterbar .filter-group--checkout { order: 2 !important; }
    .dusha-catalog__filterbar .filter-group--city     { order: 3 !important; }
    .dusha-catalog__filterbar .filter-group--price    { order: 4 !important; }
    .dusha-catalog__filterbar .filter-group--area     { order: 5 !important; }
    .dusha-catalog__filterbar .filter-group--guests   { order: 6 !important; }
    .dusha-catalog__filterbar .filter-group--sort     { order: 7 !important; }
    .dusha-catalog__filterbar .filter-actions         { order: 8 !important; }
    aside.dusha-catalog__sidebar .dusha-catalog__sheet-handle { display: block; }

    body.is-catalog-sheet-open aside.dusha-catalog__sidebar.dusha-catalog__filterbar {
        display: flex;
        transform: translateY(0);
    }
    body.is-catalog-sheet-open .dusha-catalog__sheet-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    body.is-catalog-sheet-open { overflow: hidden; }
}
@media (min-width: 1025px) {
    .dusha-catalog__open-filters { display: none; }
}

/* На промежуточных ширинах (1024-1280) — fewer columns с переносом */
@media (min-width: 1025px) and (max-width: 1280px) {
    .dusha-catalog__filterbar .filters-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .dusha-catalog__filterbar .filter-group--guests,
    .dusha-catalog__filterbar .filter-actions {
        grid-column: span 2;
    }
}

/* (Стили блока партнёров вынесены в dusha/partners.css и подключаются
   автоматически из include/blocks/partners.php — здесь дубля нет.) */


/* ============================================================
   КАРТОЧКИ АПАРТАМЕНТОВ — magazine-style (16:9 фото + плотный info-блок)
   ============================================================ */

/* ------ Заголовки секций ------ */
section.apartments-section .section-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--sky-900, #0F2F44);
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}
section.apartments-section .main-container {
    max-width: none;
    margin: 0;
    padding: 0;
}
section.apartments-section .section-title:not(:first-of-type) {
    margin-top: 56px;
}

/* ------ Сетки списка ------ */
.dusha-catalog__listing .list-view {
    display: grid;
    grid-template-columns: 1fr;              /* Популярные — 1 в ряд, карточка горизонтальная (фото слева) */
    gap: 24px;
    margin: 0 0 12px;
}
.dusha-catalog__listing .grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* Все варианты — 2 в ряд */
    gap: 24px;
}

/* ------ Горизонтальная компоновка карточки в .list-view (Популярные) ------ */
.dusha-catalog__listing .list-view article.dusha-catalog__card {
    display: grid;
    grid-template-columns: 1fr 1fr;        /* 50/50 — фото и инфо поровну */
    align-items: stretch;
    min-height: 320px;
}
.dusha-catalog__listing .list-view article.dusha-catalog__card .dusha-catalog__card-link {
    height: 100%;
    overflow: hidden;
}
.dusha-catalog__listing .list-view article.dusha-catalog__card .dusha-catalog__card-photo {
    aspect-ratio: auto;            /* отменяем 16:9 — фото растягивается по высоте инфо-блока */
    width: 100%;
    height: 100%;
    min-height: 280px;
}
.dusha-catalog__listing .list-view article.dusha-catalog__card .dusha-catalog__card-body {
    padding: 24px 28px 22px;
}

@media (max-width: 768px) {
    .dusha-catalog__listing .list-view article.dusha-catalog__card {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .dusha-catalog__listing .list-view article.dusha-catalog__card .dusha-catalog__card-photo {
        aspect-ratio: 16 / 9;       /* возвращаем 16:9 на mobile */
        height: auto;
        min-height: 0;
    }
    .dusha-catalog__listing .list-view article.dusha-catalog__card .dusha-catalog__card-body {
        padding: 18px 18px 16px;
    }
}

/* ------ Базовая карточка (морской фрейм) ------ */
article.dusha-catalog__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--sky-100, #DDF0FA);
    box-shadow: 0 1px 2px rgba(40, 145, 193, 0.05);
    transition:
        transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 480ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 280ms;
    isolation: isolate;
    box-sizing: border-box;
    position: relative;
}
article.dusha-catalog__card:hover {
    transform: translateY(-6px);
    border-color: var(--sky-300, #88CBE8);
    /* морской hover-glow: тёплая sky-тень с лёгкой подсветкой */
    box-shadow:
        0 8px 20px rgba(40, 145, 193, 0.12),
        0 24px 48px rgba(23, 94, 130, 0.14);
}

/* ------ Фото-блок 16:9 ------ */
.dusha-catalog__card-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    background: var(--ink-100, #ECEFF3);
}
.dusha-catalog__card-photo {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: var(--ink-100, #ECEFF3) center/cover no-repeat;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    will-change: transform;
}
article.dusha-catalog__card:hover .dusha-catalog__card-photo {
    transform: scale(1.05);
}

/* Бейджи поверх фото */
.dusha-catalog__card-badges {
    position: absolute;
    top: 14px; left: 14px; right: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
    max-height: 64px;
    overflow: hidden;
}
.dusha-catalog__card-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--sky-700, #175E82);     /* морской бейдж */
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(23, 94, 130, 0.18);
}

/* ------ Info-block под фото ------ */
.dusha-catalog__card-body {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;     /* равномерно распределяем по высоте */
    gap: 16px;
    flex: 1;
    box-sizing: border-box;
}

.dusha-catalog__card-overline {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sky-700, #175E82);     /* морской overline */
    line-height: 1;
}

.dusha-catalog__card-title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--sky-900, #0F2F44);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dusha-catalog__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms;
}
.dusha-catalog__card-title a:hover {
    color: var(--sky-700, #175E82);
}

/* Specs row (горизонтальный) — морские разделители */
.dusha-catalog__card-specs {
    list-style: none;
    margin: 0;
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    border-top: 1px solid var(--sky-100, #DDF0FA);
    border-bottom: 1px solid var(--sky-100, #DDF0FA);
}
.dusha-catalog__card-specs li {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 13px;
    color: var(--ink-500, #4A5462);
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.2;
}
.dusha-catalog__card-specs .num {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--sky-800, #174E6C);     /* морской глубокий для цифр */
    letter-spacing: -0.01em;
}

/* Location pills — sand-фон + морской текст */
.dusha-catalog__card-locs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dusha-catalog__card-loc {
    background: var(--sky-50, #EFF8FD);
    color: var(--sky-800, #174E6C);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid var(--sky-100, #DDF0FA);
}

/* Footer (цены + кнопки) */
.dusha-catalog__card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.dusha-catalog__card-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}
.dusha-catalog__card-price-old {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-300, #9AA5B3);
    text-decoration: line-through;
    line-height: 1.2;
}
.dusha-catalog__card-price-new {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--amber-600, #D85F05);
    line-height: 1;
    letter-spacing: -0.015em;
}
.dusha-catalog__card-price-from {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-400, #6B7685);
    text-transform: lowercase;
    letter-spacing: 0;
    margin-right: 3px;
    vertical-align: 2px;
}

/* Кнопки */
.dusha-catalog__card-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.dusha-catalog__card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms cubic-bezier(0.22, 1, 0.36, 1),
                color 200ms,
                transform 200ms,
                box-shadow 200ms;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}
.dusha-catalog__card-btn--ghost {
    background: transparent;
    color: var(--sky-700, #175E82);
    border-color: var(--sky-300, #88CBE8);
}
.dusha-catalog__card-btn--ghost:hover {
    background: var(--sky-50, #EFF8FD);
    color: var(--sky-800, #174E6C);
    border-color: var(--sky-500, #2891C1);
}
.dusha-catalog__card-btn--solid {
    background: var(--amber-500, #F57C18);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 124, 24, 0.28);
}
.dusha-catalog__card-btn--solid:hover {
    background: var(--amber-600, #D85F05);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 124, 24, 0.40);
}

/* ------ Mobile-адаптация ------ */
@media (max-width: 1024px) {
    .dusha-catalog__listing .list-view { grid-template-columns: 1fr; gap: 20px; }
    .dusha-catalog__listing .grid-view { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
    article.dusha-catalog__card { border-radius: 16px; }
    .dusha-catalog__card-body {
        padding: 20px 20px 18px;
        gap: 14px;
    }
    .dusha-catalog__card-overline { font-size: 11px; }
    .dusha-catalog__card-title { font-size: 19px; line-height: 1.22; }
    .dusha-catalog__card-specs {
        gap: 6px 16px;
        padding: 12px 0;
    }
    .dusha-catalog__card-specs li { font-size: 12px; }
    .dusha-catalog__card-specs .num { font-size: 15px; }
    .dusha-catalog__card-loc { font-size: 11px; padding: 4px 10px; }
    .dusha-catalog__card-price-old { font-size: 13px; }
    .dusha-catalog__card-price-new { font-size: 26px; }
    .dusha-catalog__card-price-from { font-size: 12px; }
    .dusha-catalog__card-footer {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    /* Цены в одну строку через «/», по центру */
    .dusha-catalog__card-prices {
        flex-direction: row;
        align-items: baseline;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    .dusha-catalog__card-price-old::after {
        content: '/';
        display: inline-block;
        margin-left: 8px;
        color: var(--ink-300, #9AA5B3);
        text-decoration: none;
        font-weight: 400;
    }
    .dusha-catalog__card-actions { width: 100%; gap: 8px; }
    .dusha-catalog__card-btn { flex: 1; height: 44px; font-size: 14px; padding: 0 14px; }
    .dusha-catalog__card-badges { top: 10px; left: 10px; right: 10px; }
    .dusha-catalog__card-badge { font-size: 10px; padding: 4px 9px; }
}

/* ============================================================
   Бежевый фон full-width на секцию с карточками апартаментов
   (главная + /catalog/ — везде где есть .apartments-section.dusha-catalog).
   Перенесено из home-page.css, чтобы стиль работал и на каталог-странице.
   ============================================================ */
.apartments-section.dusha-catalog {
    background: var(--sand-50);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 48px max(16px, calc(50vw - 640px)) 56px;
}
@media (max-width: 768px) {
    .apartments-section.dusha-catalog { padding: 32px 16px 40px; }
}
