@keyframes rhFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes rhBgPan {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes rhFloat1 {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
@keyframes rhFloat2 {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
}
@keyframes rhFloat3 {
    0%, 100% { transform: translateY(0px) rotate(0.3deg); }
    50%       { transform: translateY(-5px) rotate(-0.3deg); }
}
@keyframes rhSearchPulse {
    0%, 100% { border-color: rgba(255,255,255,0.15); }
    50%       { border-color: rgba(29,143,225,0.55); box-shadow: 0 0 0 4px rgba(29,143,225,0.1); }
}
@keyframes rhCardReveal {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.registry-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: 200% 200%;
    animation: rhBgPan 18s ease infinite;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.registry-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center/60px repeat;
    pointer-events: none;
}
.rh-inner {
    max-width: var(--site-max-w, 1760px);
    margin: 0 auto;
    padding: 64px var(--site-pad-x, 40px);
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
}

.rh-badge       { animation: rhFadeUp 0.55s ease 0.05s both; }
.rh-title       { animation: rhFadeUp 0.6s ease 0.18s both; }
.rh-lead        { animation: rhFadeUp 0.55s ease 0.32s both; }
.rh-stats       { animation: rhFadeUp 0.55s ease 0.46s both; }
.rh-search-form { animation: rhFadeUp 0.55s ease 0.6s both; }
.rh-visual      { animation: rhFadeUp 0.7s ease 0.1s both; }

.rh-visual .rh-mock-card:nth-child(1) { animation: rhFloat3 7s ease-in-out infinite; }
.rh-visual .rh-mock-card:nth-child(2) { animation: rhFloat1 6s ease-in-out infinite 1.2s; }
.rh-visual .rh-mock-card:nth-child(3) { animation: rhFloat2 5.5s ease-in-out infinite 0.5s; }

.rh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(29,143,225,0.15);
    border: 1px solid rgba(29,143,225,0.35);
    color: #74bdff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    width: fit-content;
}
.rh-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.rh-title span { color: #1D8FE1; }
.rh-lead {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,0.7);
    margin: 0 0 32px;
    max-width: 580px;
}
.rh-stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.rh-stat {
    padding-right: 32px;
    margin-right: 32px;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.rh-stat:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: none;
}
.rh-stat-num {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: #1D8FE1;
    line-height: 1;
    font-style: normal;
}
.rh-stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 5px;
}

.rh-content { min-width: 0; }

.rh-search-form { max-width: 560px; width: 100%; box-sizing: border-box; }
.rh-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    animation: rhSearchPulse 3.5s ease-in-out infinite 2.5s;
}
.rh-search-wrap:focus-within {
    border-color: rgba(29,143,225,0.6);
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    animation: none;
}
.rh-search-icon {
    padding: 0 14px;
    color: rgba(255,255,255,0.45);
    font-size: 16px;
    flex-shrink: 0;
}
.rh-search-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 14px 0;
    outline: none;
    font-family: inherit;
    min-width: 0;
}
.rh-search-input::placeholder {
    color: rgba(255,255,255,0.38);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rh-search-btn {
    background: #1D8FE1;
    border: none;
    color: #fff;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background 0.2s;
    flex-shrink: 0;
}
.rh-search-btn:hover { background: #1677c4; }

.rh-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rh-mock-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.rh-mock-card:hover { border-color: rgba(29,143,225,0.4); }
.rh-mock-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 110px 1fr;
}
.rh-mock-featured .rh-mock-img { height: 100%; min-height: 90px; }
.rh-mock-img {
    background: var(--rh-mock-color, rgba(29,143,225,0.2));
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 22px;
    color: rgba(255,255,255,0.3);
}
.rh-mock-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.45);
    color: rgba(255,255,255,0.7);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
}
.rh-mock-body { padding: 10px 12px; }
.rh-mock-stars { color: #f5a623; font-size: 9px; letter-spacing: 1px; margin-bottom: 6px; }
.rh-mock-line { height: 7px; background: rgba(255,255,255,0.15); border-radius: 4px; margin-bottom: 5px; }
.rh-mock-line-lg { width: 80%; }
.rh-mock-line-md { width: 65%; }
.rh-mock-line-sm { width: 45%; }
.rh-mock-footer { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.rh-mock-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4caf50; flex-shrink: 0; }
.rh-mock-status-text { font-size: 10px; color: rgba(255,255,255,0.5); }
.rh-mock-rooms { font-size: 10px; color: rgba(255,255,255,0.4); margin-left: auto; }

.rh-card-placeholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 16px !important;
    text-align: center !important;
}
.rh-placeholder-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.55);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
}
.rh-placeholder-logo i {
    font-size: 22px;
    color: rgba(255,255,255,0.4);
}
.rh-placeholder-type {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card hover effect */
.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    border-radius: 12px !important;
    position: relative !important;
    cursor: pointer !important;
}
.card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14) !important;
}

.card-image {
    overflow: hidden !important;
}
.card-image img {
    transition: transform 0.25s ease !important;
}
.card:hover .card-image img {
    transform: scale(1.04) !important;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    transition: opacity 0.22s ease;
    background: var(--card-accent, #1D8FE1);
    z-index: 3;
}
.card:hover .card-image::after { opacity: 1; }

.card-title { transition: color 0.2s ease; }
.card:hover .card-title { color: var(--card-accent, var(--primary)) !important; }

.card-badge-type {
    transition: background 0.2s ease, color 0.2s ease !important;
}
.card:hover .card-badge-type {
    background: var(--card-accent, #1D8FE1) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.card-type-hotel    { --card-accent: #1D8FE1; }
.card-type-sanatory { --card-accent: #22c55e; }
.card-type-nature   { --card-accent: #f59e0b; }
.card-type-hostel   { --card-accent: #8b5cf6; }
.card-type-house    { --card-accent: #f97316; }
.card-type-apart    { --card-accent: #14b8a6; }

.card.card-reveal { opacity: 0; }
.card.card-reveal.is-visible { animation: rhCardReveal 0.45s ease forwards; }

.stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray);
    margin-bottom: 28px !important;
}
.stats-count {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--gray-dark);
}
.stats-count-icon {
    width: 34px;
    height: 34px;
    background: rgba(29,143,225,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
}
.stats-count strong {
    color: var(--black);
    font-weight: 700;
    font-size: 17px;
}

.stats-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* View switcher */
.rh-view-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 3px;
}

.rh-view-btn {
    height: 32px;
    padding: 0 10px;
    gap: 5px;
    white-space: nowrap;
    border: none;
    background: transparent;
    border-radius: calc(var(--radius) - 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gray-dark);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.rh-view-btn:hover:not(:disabled) {
    background: rgba(0,0,0,0.06);
    color: var(--black);
}

.rh-view-btn.is-active,
.rh-view-btn.rh-view-btn--active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

.rh-view-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* List view mode */
.cards-grid--list {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

.cards-grid--list .card {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: unset;
    align-items: center;
}

.cards-grid--list .card-image {
    height: 100%;
    min-height: 90px;
    max-height: 120px;
    overflow: hidden;
}

.cards-grid--list .card-icon-badge {
    display: none;
}

.cards-grid--list .card-image img {
    height: 100%;
    max-height: 120px;
    object-fit: cover;
}

.cards-grid--list .card-placeholder {
    height: 90px;
    min-height: 90px;
    max-height: 120px;
}

.cards-grid--list .card-body,
.cards-grid--list .card-content {
    padding: 12px 16px;
    overflow: hidden;
}

.pagination {
    margin-top: 40px !important;
    padding-top: 24px;
    border-top: 1px solid var(--gray);
    gap: 6px !important;
}
.page-btn {
    border-radius: 10px !important;
    border: 1px solid var(--gray) !important;
    background: #fff !important;
    color: var(--black) !important;
    font-weight: 500 !important;
    transition: all 0.18s ease !important;
    font-size: 14px !important;
}
.page-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29,143,225,0.25);
}
.page-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(29,143,225,0.3);
}
.page-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    font-size: 14px;
}

.empty-state {
    background: linear-gradient(135deg, rgba(29,143,225,0.04) 0%, rgba(29,143,225,0.01) 100%) !important;
    border: 2px dashed rgba(29,143,225,0.25) !important;
    border-radius: 20px !important;
    margin: 16px 0 !important;
}
.empty-state i {
    color: var(--primary) !important;
    opacity: 0.45 !important;
    margin-bottom: 20px !important;
}
.empty-state h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--black) !important;
}

@media (max-width: 1200px) {
    .rh-inner { grid-template-columns: 1fr 300px; padding: 52px 32px; gap: 36px; }
}
@media (max-width: 991px) {
    .rh-inner { grid-template-columns: 1fr; padding: 44px 24px; }
    .rh-visual { display: none; }
    .rh-title { font-size: 32px; }
    .rh-lead { margin-bottom: 24px; }
}
@media (max-width: 767px) {
    .rh-stat { padding-right: 20px; margin-right: 20px; }
    .rh-view-switcher,
    .hotels-map-view {
        display: none !important;
    }
}
@media (max-width: 576px) {
    .rh-inner { padding: 28px 16px 32px; }
    .rh-title { font-size: 24px; letter-spacing: 0; }
    .rh-lead { font-size: 14px; line-height: 1.55; margin-bottom: 20px; max-width: 100%; }
    .rh-stats { gap: 12px 0; margin-bottom: 24px; }
    .rh-stat { padding-right: 14px; margin-right: 14px; }
    .rh-stat-num { font-size: 22px; }
    .rh-stat-label { font-size: 12px; }
    .rh-search-btn { padding: 14px 14px; font-size: 13px; }
    .rh-search-form { animation: none; }
    .stats-bar { padding: 16px 0; }
    .stats-count-icon { display: none; }
}
@media (max-width: 360px) {
    .rh-lead { display: none; }
    .rh-inner { padding: 24px 12px 28px; }
    .rh-badge { font-size: 11px; padding: 5px 10px; }
    .rh-title { font-size: 22px; }
    .rh-stat-num { font-size: 20px; }
    .rh-stat { padding-right: 12px; margin-right: 12px; }
}

.btn-export:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}
.filter-count {
    background: white;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}
@media (min-width: 992px) {
    .mobile-filter-btn, .filter-modal, .filter-modal-overlay { display: none !important; }
}
.mobile-regions-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--gray); border-radius: 8px; padding: 8px; }
.mobile-region-item { padding: 8px 4px; border-bottom: 1px solid var(--gray-light); }
.mobile-region-item:last-child { border-bottom: none; }
.mobile-region-item.hidden { display: none; }
@media (min-width: 577px) and (max-width: 991px) { .filter-modal { border-radius: 0 !important; } }
.date-inputs-row { display: flex; gap: 12px; }
@media (max-width: 420px) { .date-inputs-row { flex-direction: column; gap: 8px; } }
@media (max-width: 576px) {
    .stats-bar { flex-direction: column; align-items: stretch; }
    .stats-actions { width: 100%; }
    .stats-actions .btn { width: 100%; font-size: 14px !important; padding: 12px 16px; }
}
@media (max-width: 576px) {
    #exportModal .modal-dialog { margin: 0; max-width: 100%; min-height: 100vh; }
    #exportModal .modal-content { border-radius: 0 !important; min-height: 100vh; display: flex; flex-direction: column; }
    #exportModal .modal-body { flex: 1; overflow-y: auto; }
    #exportModal .modal-header, #exportModal .modal-footer { flex-shrink: 0; }
    #exportModal .export-option { flex-wrap: wrap; }
    #exportModal .export-option label { flex: 1 1 100%; margin-bottom: 8px; }
    #exportModal .export-option span:last-child { width: 100%; text-align: right; }
}
/* Quick preset tags (P2) */
.rh-preset-tags {
    max-width: var(--site-max-w, 1760px);
    margin: 0 auto;
    padding: 16px var(--site-pad-x, 40px) 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rh-preset-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--gray);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.rh-preset-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(29,143,225,0.05);
}
.rh-preset-tag.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
@media (max-width: 576px) {
    .rh-preset-tags { padding: 12px var(--site-pad-x, 16px) 0; }
}

/* Category filter stars (P2) */
.chip-stars { font-size: 12px; letter-spacing: -1px; color: #f59e0b; }

.rh-mock-img--green  { --rh-mock-color: rgba(76,175,80,0.22); }
.rh-mock-img--orange { --rh-mock-color: rgba(255,152,0,0.18); }
.rh-dropdown-toggle { cursor: pointer; }
.rh-filter-dropdown-menu { max-height: 300px; overflow-y: auto; }
.rh-region-search { padding: 10px 12px; font-size: 14px; }
.rh-sidebar-spacer { height: 100px; }
.page-btn--disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.rh-range-inputs { display: flex; gap: 12px; }

/* === hotel/_export_modal === */
.em-modal-content { border-radius: var(--radius-lg); border: none; }
.em-modal-header { border-bottom: 1px solid var(--gray); padding: 20px 24px; }
.em-modal-title { font-weight: 600; font-size: 18px; margin: 0; }
.em-modal-title-icon { color: var(--primary); margin-right: 8px; }
.em-modal-body { padding: 24px; }
.em-modal-desc { color: var(--gray-dark); margin-bottom: 20px; }
.em-export-options { margin-bottom: 24px; }
.em-options-label { font-weight: 600; margin-bottom: 12px; display: block; }
.em-export-option { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--gray-light); border-radius: var(--radius); margin-bottom: 8px; }
.em-option-label { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; }
.em-option-checkbox { width: 20px; height: 20px; }
.em-option-price { font-weight: 600; color: var(--primary); }
.em-export-total { background: var(--black); color: var(--white); padding: 16px 20px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.em-total-label { font-weight: 500; }
.em-total-amount { font-size: 24px; font-weight: 700; }
.em-export-email { margin-bottom: 16px; }
.em-email-label { font-weight: 600; margin-bottom: 8px; display: block; }
.em-email-input { width: 100%; }
.em-export-note { font-size: 12px; color: var(--gray-dark); }
.em-modal-footer { border-top: 1px solid var(--gray); padding: 16px 24px; display: flex; gap: 12px; }
.em-btn-flex-1 { flex: 1; }
.em-btn-flex-2 { flex: 2; }

/* ============================
   Map view
   ============================ */
.hotels-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--gray-dark, #64748b);
}
.map-counter { font-weight: 500; }
.map-scroll-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.map-scroll-toggle input { cursor: pointer; accent-color: var(--primary, #2563eb); }

.hotels-map-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

#hotels-map {
    width: 100%;
    height: 600px;
}

.map-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-dark, #64748b);
    z-index: 10;
}
.map-loader__spinner {
    width: 32px; height: 32px;
    border: 3px solid rgba(29,143,225,0.2);
    border-top-color: #1D8FE1;
    border-radius: 50%;
    animation: mapSpin 0.8s linear infinite;
}
@keyframes mapSpin { to { transform: rotate(360deg); } }

/* ============================
   Balloon — polished card
   ============================ */
.ymap-balloon {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px 10px;
    min-width: 200px;
    max-width: 260px;
    font-family: Inter, system-ui, sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
}
.ymap-balloon__title {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #1a2a4a;
    text-decoration: none;
    margin-bottom: 7px;
    line-height: 1.38;
    letter-spacing: -0.1px;
}
.ymap-balloon__title:hover { color: #1D8FE1; }
.ymap-balloon__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.ymap-balloon__cat {
    display: inline-block;
    background: #e8f2fc;
    color: #1D8FE1;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    padding: 2px 8px;
    white-space: nowrap;
}
.ymap-balloon__rooms {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}
.ymap-balloon__region {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ymap-balloon__btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 7px 0;
    background: #1D8FE1;
    color: #fff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s;
    box-sizing: border-box;
}
.ymap-balloon__btn:hover { background: #1565C0; color: #fff; }

/* ============================
   Cian-style Filter Bar
   ============================ */
.cian-filterbar {
    position: sticky;
    top: 0;
    z-index: 120;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cian-filterbar__inner {
    max-width: var(--site-max-w, 1760px);
    margin: 0 auto;
    padding: 10px var(--site-pad-x, 40px);
}
.cian-filterbar__inner > form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Search */
.cfb-search {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    min-width: 220px;
    flex: 1;
    max-width: 340px;
    transition: border-color 0.2s;
}
.cfb-search:focus-within {
    border-color: #1D8FE1;
    background: #fff;
}
.cfb-search__icon {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 6px;
}
.cfb-search__input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: #1e293b;
    padding: 9px 0;
    font-family: inherit;
    min-width: 0;
}
.cfb-search__input::placeholder { color: #94a3b8; }
.cfb-search__clear {
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.cfb-search__clear:hover { color: #ef4444; }

/* Buttons */
.cfb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    user-select: none;
    position: relative;
}
.cfb-btn:hover { border-color: #1D8FE1; color: #1D8FE1; background: #f0f8ff; }
.cfb-btn--active {
    border-color: #1D8FE1;
    background: #e8f4fd;
    color: #1D8FE1;
}
.cfb-btn--reset {
    color: #ef4444;
    border-color: #fecaca;
    background: #fff5f5;
    text-decoration: none;
}
.cfb-btn--reset:hover { border-color: #ef4444; background: #fee2e2; color: #dc2626; }

.cfb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1D8FE1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    line-height: 1.4;
}
.cfb-chevron { font-size: 11px; transition: transform 0.2s; }
.cfb-btn--dropdown[aria-expanded="true"] .cfb-chevron { transform: rotate(180deg); }

/* Dropdown wrapper */
.cfb-dropdown { position: relative; }

/* Panel */
.cfb-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 10px;
    min-width: 200px;
    z-index: 200;
    max-height: 340px;
    overflow-y: auto;
}
.cfb-panel--open { display: block; }
.cfb-panel--region { min-width: 280px; }
.cfb-panel--more {
    min-width: 320px;
    max-height: none;
    overflow: visible;
    right: 0;
    left: auto;
}
.cfb-range-container {
    margin: 10px 16px 4px;  /* horizontal margin so handles don't clip */
    padding: 8px 0 4px;
}

.cfb-panel__search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    padding: 6px 10px;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 14px;
}
.cfb-panel__search-input {
    border: none;
    background: none;
    outline: none;
    font-size: 13px;
    color: #1e293b;
    width: 100%;
    font-family: inherit;
}

.cfb-panel__list { max-height: 240px; overflow-y: auto; }

.cfb-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    color: #334155;
}
.cfb-check-item:hover { background: #f0f8ff; color: #1D8FE1; }
.cfb-check-item input[type="checkbox"] {
    accent-color: #1D8FE1;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}
.cfb-check-item__label { line-height: 1.3; }

/* Status dot in dropdown */
.cfb-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #94a3b8;
}
.cfb-status-dot.dot-success { background: #16a34a; }
.cfb-status-dot.dot-warning { background: #d97706; }
.cfb-status-dot.dot-danger  { background: #dc2626; }

/* Status chips inline (kept for mobile modal) */
.cfb-status-chips {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.cfb-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
    user-select: none;
}
.cfb-chip input[type="checkbox"] { display: none; }
.cfb-chip:hover { border-color: #94a3b8; color: #1e293b; }
.cfb-chip.active { background: #1e293b; border-color: #1e293b; color: #fff; }
.cfb-chip.chip-success:hover { border-color: #22c55e; color: #166534; }
.cfb-chip.chip-success.active { background: #16a34a; border-color: #16a34a; color: #fff; }
.cfb-chip.chip-warning:hover { border-color: #f59e0b; color: #92400e; }
.cfb-chip.chip-warning.active { background: #d97706; border-color: #d97706; color: #fff; }
.cfb-chip.chip-danger:hover { border-color: #ef4444; color: #7f1d1d; }
.cfb-chip.chip-danger.active { background: #dc2626; border-color: #dc2626; color: #fff; }

/* "Ещё" panel content */
.cfb-more-section { margin-bottom: 14px; }
.cfb-more-section:last-child { margin-bottom: 0; }
.cfb-more-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}
.cfb-select {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    color: #334155;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
}
.cfb-select:focus { border-color: #1D8FE1; }
.cfb-range-container { margin: 8px 0 10px; }
.cfb-range-values {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin-top: 6px;
}
.cfb-date-wrapper { position: relative; }
.cfb-input {
    width: 100%;
    padding: 8px 34px 8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    color: #334155;
    background: #f8fafc;
    outline: none;
    box-sizing: border-box;
}
.cfb-input:focus { border-color: #1D8FE1; }
.cfb-date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

/* Right section */
.cfb-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cfb-count {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}
.cfb-count strong {
    color: #1e293b;
    font-weight: 700;
}
.cfb-export-label { }

/* Full-width content layout (no sidebar) */
.main-layout { display: block !important; }
.main-layout > .content { max-width: var(--site-max-w, 1760px); margin: 0 auto; padding: 28px var(--site-pad-x, 40px); width: 100%; box-sizing: border-box; }

/* Responsive filterbar */
@media (max-width: 1200px) {
    .cian-filterbar__inner { padding: 8px 24px; }
    .cfb-status-chips { display: none; } /* hidden on tablet, go to mobile modal */
    .cfb-search { min-width: 180px; }
}
@media (max-width: 991px) {
    .cian-filterbar { display: none; }
    .mobile-filter-btn { display: flex !important; }
}
@media (min-width: 992px) {
    .mobile-filter-btn, .filter-modal, .filter-modal-overlay { display: none !important; }
}
@media (max-width: 767px) {
    .cfb-right .cfb-export-label { display: none; }
    .main-layout > .content { padding: 20px 16px; }
}
@media (max-width: 576px) {
    .cian-filterbar__inner { padding: 8px 12px; }
}
