@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; }
    .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: 81px;
    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;

    min-width: 220px;
    flex: 1;
    max-width: 340px;
    transition: border-color 0.2s;
}
.cfb-search__icon {
    color: var(--ui-text-muted);
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 6px;
}
.cfb-search__input {
    flex: 1;

    font-family: inherit;
    min-width: 0;
}
.cfb-search__input::placeholder {  opacity: 1; }

.filter-modal-footer .btn-primary { background: var(--primary-dark); }
.filter-modal-footer .btn-primary:hover,
.filter-modal-footer .btn-primary:focus-visible { background: #156aa8; }
.cfb-search__clear {

    cursor: pointer;

    display: flex;
    align-items: center;
    transition: color 0.15s;
}

/* Buttons */
.cfb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    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--reset {

    text-decoration: none;
}

.cfb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-primary);
    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;

    box-shadow: 0 8px 32px rgba(0,0,0,0.12);

    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;

    margin-bottom: 8px;

}
.cfb-panel__search-input {

    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: var(--ui-text);
}
.cfb-check-item:hover { background: var(--ui-surface-accent); color: var(--ui-primary); }
.cfb-check-item input[type="checkbox"] {

    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: var(--ui-text-muted);
}
.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: var(--ui-surface-muted);
    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: var(--ui-text-muted); color: var(--ui-text); }
.cfb-chip.active { background: var(--ui-text); border-color: var(--ui-text); 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: var(--ui-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}
.cfb-select {
    width: 100%;

    font-family: inherit;

    cursor: pointer;
}
.cfb-range-container { margin: 8px 0 10px; }
.cfb-range-values {
    font-size: 12px;
    color: var(--ui-text-muted);
    text-align: center;
    margin-top: 6px;
}
.cfb-date-wrapper { position: relative; }
.cfb-input {
    padding-right: 34px;
    width: 100%;

    font-family: inherit;

    box-sizing: border-box;
}
.cfb-date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ui-text-muted);
    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: var(--ui-text-muted);
    white-space: nowrap;
}
.cfb-count strong {
    color: var(--ui-text);
    font-weight: 700;
}

.map-coverage { margin: 0 0 8px; color: var(--gray-dark); font-size: 14px; }
.hotels-map-frame { position: relative; }
.map-empty { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: var(--white); border-radius: 12px; }
.map-empty[hidden] { display: none; }
.map-empty h3 { font-size: 20px; }
.map-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 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 (width < 1100px) {
    .cian-filterbar { top: 65px; }
}
@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__inner > form > :not(.cfb-right) { display: none; }
    .cfb-right { width: 100%; margin-left: 0; justify-content: space-between; gap: 6px; }
    .cfb-count { white-space: normal; }
    .cfb-right .rh-view-switcher { flex-shrink: 0; }
    .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; }
}
/* Shared catalogue search and filters; deliberately scoped away from header/cards. */
html:has(.catalog-top) { overflow-y: scroll; }
.catalog-top [hidden] { display: none !important; }
.catalog-top :is(button, input, select) { scroll-margin-top: 110px; }
.catalog-top-inner { max-width: var(--site-max-w, 1760px); margin: 0 auto; padding: 0 var(--site-pad-x, 40px); }
.catalog-search-stage { background: var(--ui-surface-accent); border-bottom: 1px solid var(--ui-border); padding: 25px 0 18px; }
.catalog-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 20px; }
.catalog-intro h1 { letter-spacing: -1.3px; max-width: 720px; margin: 0; }
.catalog-intro p { font-size: 16px; line-height: 1.65; max-width: 340px; color: var(--ui-text-muted); margin: 0; }
.catalog-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-bottom: 18px; color: var(--ui-text-muted); }
.catalog-breadcrumbs a { color: var(--ui-link); }
.catalog-search { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.4fr) 150px; align-items: center; border-radius: 8px; position: relative; z-index: 6; }
.catalog-search #cfb-region-wrap { min-width: 0; }
.catalog-search #cfb-region-btn { width: 100%; justify-content: space-between; white-space: normal; text-align: left; }
.catalog-search #cfb-region-btn span { min-width: 0; overflow-wrap: anywhere; }
.catalog-search #cfb-region-btn .cfb-chevron { flex-shrink: 0; }
.catalog-search .cfb-search { max-width: none; min-width: 0; width: auto; }
.catalog-search .cfb-search__input { width: 100%; min-width: 0; }
.catalog-find { cursor: pointer; }
.catalog-booking-note { color: var(--ui-text-muted); font-size: 12px; margin: 10px 0 0; }
.catalog-controls { padding-top: 24px; }
.catalog-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--ui-border); padding-bottom: 21px; position: relative; z-index: 5; }
.catalog-filters #cfb-reset-slot { margin-left: auto; }
.catalog-filters .cfb-btn--reset { padding-right: 0; }
/* Reserve the reset action's footprint so applying a sort does not move controls. */
@media (min-width: 768px) {
    .catalog-filters:has(#cfb-reset-slot[hidden])::after {
        content: "Сбросить всё";
        visibility: hidden;
        margin-left: auto;
        padding: 9px 0 9px 16px;
        border: 1px solid transparent;
        min-height: 44px;
        font: 600 16px/24px var(--ui-font);
    }
}
.catalog-top .cfb-panel { width: 305px; min-width: 0; max-width: calc(100vw - 32px); padding: 16px; }
.catalog-top .cfb-panel--region { width: 370px; }
.catalog-top .cfb-panel--more { left: auto; right: 0; max-height: min(520px, 60vh); overflow-y: auto; }
.catalog-top .cfb-range-container { margin-left: 16px; margin-right: 16px; }
 .catalog-range-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.catalog-range-inputs label { min-width: 0; color: var(--ui-text-muted); font-size: 12px; }
.catalog-range-inputs .cfb-input { display: block; min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 5px; margin-top: 4px; }
.catalog-top .cfb-check-item[hidden] { display: none; }
.catalog-results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px; }
.catalog-count { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--ui-text-muted); font-size: 12px; overflow-wrap: anywhere; }
.catalog-count strong { color: var(--ui-text); font-size: 25px; line-height: 1.25; font-weight: 600; }
.catalog-results-actions { display: flex; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.catalog-results-actions .cfb-more-section { margin: 0; }
.catalog-results-actions .cfb-more-label { margin-bottom: 3px; text-transform: none; letter-spacing: 0; }
.catalog-results-actions .cfb-select { max-width: 100%; }
.catalog-results-actions .rh-view-switcher { margin: 0; padding: 0; }
.catalog-chips { display: block; }
.catalog-chips:has(button) { margin-top: 16px; }
.catalog-chip-groups { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; }
.catalog-chip-group { min-width: 0; max-width: 100%; }
.catalog-chip-label { display: block; font-size: 12px; font-weight: 600; color: var(--ui-text-muted); margin-bottom: 5px; }
.catalog-chip-items { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-chips button { text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.catalog-chips button span { margin-left: 8px; }
.catalog-chips .catalog-conditions-toggle { width: 100%; min-height: 44px; display: flex; justify-content: space-between; align-items: center; }
.catalog-conditions-toggle[aria-expanded="true"] { margin-bottom: 12px; }
.catalog-conditions-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.catalog-count:focus { outline: 2px solid var(--ui-focus); outline-offset: 2px; border-radius: 6px; }
.catalog-field-error { display: block; margin-top: 5px; font-size: 12px; line-height: 18px; }
#catalog-error { padding: 12px; margin: 16px 0 0; }
#catalog-error button { margin-left: 8px; }
@media (max-width: 1000px) {
    .catalog-intro p { font-size: 14px; max-width: 260px; }
    .catalog-search { grid-template-columns: minmax(180px, .9fr) minmax(0, 1.3fr) 110px; }
}
@media (max-width: 767px) {
    .catalog-top-inner { padding-left: 16px; padding-right: 16px; }
    .catalog-search-stage { padding-top: 14px; padding-bottom: 12px; }
    .catalog-intro { display: block; margin-bottom: 12px; }
    .catalog-intro h1 { letter-spacing: -.6px; }
    .catalog-intro p { margin-top: 6px; max-width: none; font-size: 13px; }
    .catalog-breadcrumbs { margin-bottom: 10px; }
    .catalog-booking-note { margin-top: 8px; line-height: 18px; }
    .catalog-controls { padding-top: 12px; }
    .catalog-search { grid-template-columns: minmax(0, 1fr) 82px; }
    .catalog-search #cfb-region-wrap { grid-column: 1 / -1; }
    .catalog-search .cfb-search__icon { display: none; }
    .catalog-filters { gap: 8px; padding-bottom: 12px; }
    .catalog-filters .cfb-dropdown { position: static; }
    .catalog-filters .cfb-panel { top: 100%; left: 0; right: 0; width: 100%; max-height: 55vh; overflow-y: auto; }
    .catalog-top .cfb-panel--region { left: 0; max-width: calc(100vw - 50px); }
    .catalog-results-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-top: 12px; }
    .catalog-results-actions { display: contents; }
    .catalog-results-actions .cfb-more-section { grid-column: 1 / -1; grid-row: 2; min-width: 0; display: flex; align-items: center; gap: 8px; }
    .catalog-results-actions .cfb-more-label { margin: 0; flex-shrink: 0; }
    .catalog-results-actions .cfb-select { width: 100%; min-width: 0; }
    .catalog-results-actions .rh-view-switcher { grid-column: 2; grid-row: 1; }
    .catalog-count strong { font-size: 21px; }
}
@media (max-width: 389px) {
    .catalog-results-actions { align-items: stretch; flex-direction: column; }
    .catalog-results-actions .cfb-select { width: 100%; max-width: none; }
    .catalog-results-actions .rh-view-switcher { justify-content: space-between; }
    .catalog-results-actions .rh-view-btn { flex: 1; justify-content: center; }
}

/* Catalogue cards: shared internal tracks, without changing the outer grid. */
#hotels-results .hotel-card {
    font-family: var(--ui-font), sans-serif;
    animation: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    min-width: 0;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ui-text);
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    transition: border-color .15s;
    overflow-wrap: anywhere;
}
#hotels-results .hotel-card:hover { border-color: var(--ui-control-border); transform: none; box-shadow: none; }
#hotels-results .hotel-card:focus-within { opacity: 1; transform: none; }
#hotels-results .hotel-card a { color: var(--ui-link); text-decoration: none; }
#hotels-results .hotel-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
#hotels-results .hc-media {
    position: relative;
    min-width: 0;
    height: 180px;
    background: var(--ui-surface-muted);
    border-radius: 11px 11px 0 0;
}
#hotels-results .hc-photo-link { display: block; width: 100%; height: 100%; border-radius: inherit; }
#hotels-results .hc-photo-link:focus-visible { outline-offset: -4px; }
#hotels-results .hc-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}
#hotels-results .hc-photo-missing {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: var(--ui-text-muted);
}
#hotels-results .hc-photo-missing i { font-size: 31px; }
#hotels-results .hc-photo[hidden], #hotels-results .hc-photo-missing[hidden] { display: none; }
#hotels-results .hc-media-meta {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 0;
    padding: 6px 9px;
    background: #fff;
    color: var(--ui-text-muted);
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    font-size: 12px;
    line-height: 18px;
    pointer-events: none;
}
#hotels-results .hc-media-meta span { min-width: 0; }
#hotels-results .hc-media-meta span + span { border-left: 1px solid var(--ui-border); margin-left: 8px; padding-left: 8px; }
#hotels-results .hc-category {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff;
    color: #926609;
    font-size: 13px;
    pointer-events: none;
}
#hotels-results .hc-heading { min-width: 0; padding: 18px 18px 10px; }
#hotels-results .hc-title {
    margin: 0;

    letter-spacing: -.25px;
    overflow-wrap: anywhere;
}
#hotels-results .hc-title a { color: var(--ui-text); display: block; }
#hotels-results .hc-title a:hover { color: var(--ui-link); }
#hotels-results .hc-location { min-width: 0; padding: 0 18px; }
#hotels-results .hc-region { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ui-text-muted); }
#hotels-results .hc-address { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ui-text-muted); }
#hotels-results .hc-address:first-child { margin-top: 0; }
#hotels-results .hc-feedback {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    min-height: 64px;
    padding: 8px 18px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ui-text-muted);
}
#hotels-results .hc-score { background: var(--ui-surface-accent); color: var(--ui-link); border-radius: 4px; padding: 5px 8px; font-size: 18px; font-weight: 600; line-height: 1.3; }
#hotels-results .hc-score small { font-size: 12px; line-height: 18px; font-weight: 400; }
#hotels-results .hc-reviews, #hotels-results .hc-no-reviews { min-height: 44px; display: inline-flex; align-items: center; }
#hotels-results a.hc-reviews { text-decoration: underline; text-underline-offset: 3px; }
#hotels-results .hc-footer {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--ui-border);
    margin: 0 18px;
    padding: 12px 0 18px;
}
#hotels-results .hc-registry { flex: 1 1 110px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.5; color: var(--ui-text-muted); }
#hotels-results .hc-registry strong { font-size: 13px; font-weight: 600; }
#hotels-results .hc-registry strong::before { content: ''; display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; vertical-align: middle; margin-right: 5px; }
#hotels-results .hc-registry--active strong { color: var(--ui-success); }
#hotels-results .hc-registry--paused strong { color: var(--ui-warning); }
#hotels-results .hc-registry--ended strong { color: var(--ui-danger); }
#hotels-results .hc-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    max-width: 100%;

}
#hotels-results .hc-open span { font-size: 18px; }
#hotels-results .hc-open:hover { background: var(--ui-surface-accent); text-decoration: none; }
#hotels-results .hc-unavailable { font-size: 12px; color: var(--ui-text-muted); }
@media (min-width: 701px) {
    #hotels-results .hc-title {
        min-height: 2lh;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    /* Put the focus ring outside the clipping box that supplies the ellipsis. */
    #hotels-results .hc-heading:has(a:focus-visible) { outline: 2px solid var(--ui-focus); outline-offset: -4px; }
    @supports selector(:has(*)) {
        #hotels-results .hc-title a:focus-visible { outline: none; }
    }
    @supports (grid-template-rows: subgrid) {
        #hotels-results .hotel-card { grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    }
}
@media (max-width: 700px) {
    #hotels-results .hc-title { display: block; overflow: visible; -webkit-line-clamp: unset; }
}
#hotels-results .cards-grid--list .hc-title { display: block; min-height: 0; overflow: visible; -webkit-line-clamp: unset; }
@media (prefers-reduced-motion: reduce) {
    #hotels-results .hotel-card { transition: none; }
}
