/* KristinaHouse — /property/catalog.css */

.property-catalog {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

.property-catalog-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: center;
}
.kh-filter-select, .kh-filter-price {
    padding: 6px 10px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-main, #1f2937);
    background: white;
    outline: none;
    font-family: inherit;
}
.kh-filter-select { cursor: pointer; }
.kh-filter-price { width: 96px; }
.kh-filter-price:focus, .kh-filter-select:focus { border-color: var(--primary, #2563eb); }
.kh-catalog-add-btn {
    padding: 6px 14px;
    border: none; border-radius: 8px;
    background: var(--primary, #2563eb); color: #fff;
    font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.kh-catalog-add-btn:hover { background: var(--primary-hover, #1d4ed8); }
.kh-catalog-add-btn:disabled { opacity: .6; cursor: wait; }
.kh-filter-reset {
    padding: 6px 12px;
    border: none; border-radius: 8px;
    background: transparent;
    font-size: 13px; color: #dc2626;
    cursor: pointer; font-family: inherit;
}
.kh-filter-reset:hover { text-decoration: underline; }

/* фильтр доступности: календарь-поповер */
.kh-avail-wrap { position: relative; }
.kh-avail-btn {
    padding: 6px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px;
    background: #fff; font-size: 13px; color: var(--text-main, #1f2937);
    cursor: pointer; font-family: inherit; white-space: nowrap;
}
.kh-avail-btn:hover { border-color: var(--primary, #2563eb); }
.kh-avail-btn.active { background: var(--primary, #2563eb); color: #fff; border-color: var(--primary, #2563eb); }
.kh-avail-pop {
    position: absolute; z-index: 60; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    width: 300px; background: #fff; border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.14); padding: 12px;
}
.kh-ac-hint { font-size: 11px; color: var(--text-muted, #6b7280); margin-bottom: 8px; text-align: center; }
.kh-ac-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.kh-ac-nav { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-color, #e5e7eb);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
.kh-ac-nav:hover { background: #f3f4f6; }
.kh-ac-tbl { width: 100%; border-collapse: collapse; }
.kh-ac-tbl th { font-size: 10px; color: var(--text-muted, #6b7280); font-weight: 600; padding: 2px 0; }
.kh-ac-tbl td { text-align: center; padding: 1px; }
.kh-ac-day {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: 50%; font-size: 12px; cursor: pointer; color: var(--text-main, #1f2937);
    position: relative;
}
.kh-ac-day::after { content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.kh-ac-day.ok::after { background: #16a34a; }
.kh-ac-day.low::after { background: #f59e0b; }
.kh-ac-day.full { color: #b91c1c; text-decoration: line-through; }
.kh-ac-day.full::after { background: #dc2626; }
.kh-ac-day.past { color: #d1d5db; cursor: default; }
.kh-ac-day.past::after { background: transparent; }
.kh-ac-day:not(.past):hover { background: #eff6ff; }
.kh-ac-day.in-range { background: #dbeafe; border-radius: 4px; }
.kh-ac-day.range-start, .kh-ac-day.range-end { background: var(--primary, #2563eb); color: #fff; border-radius: 50%; }
.kh-ac-day.range-start::after, .kh-ac-day.range-end::after { background: #fff; }
.kh-ac-legend { display: flex; gap: 10px; justify-content: center; font-size: 10px; color: var(--text-muted, #6b7280); margin: 8px 0 4px; }
.kh-ac-lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 2px; vertical-align: middle; }
.kh-ac-lg.ok { background: #16a34a; } .kh-ac-lg.low { background: #f59e0b; } .kh-ac-lg.full { background: #dc2626; }
.kh-ac-sel { text-align: center; font-size: 13px; font-weight: 600; margin: 4px 0 8px; }
.kh-ac-btns { display: flex; gap: 6px; }
.kh-ac-apply { flex: 1; padding: 8px; border: none; border-radius: 8px; background: var(--primary, #2563eb);
    color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.kh-ac-apply:disabled { opacity: .5; cursor: default; }
.kh-ac-clear { padding: 8px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px;
    background: #fff; font-size: 13px; cursor: pointer; font-family: inherit; color: var(--text-muted, #6b7280); }

.property-catalog-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}
.property-catalog-tags button {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: white;
    font-size: 13px; font-weight: 500;
    color: var(--text-main, #1f2937);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}
.property-catalog-tags button:hover { border-color: var(--tag-color, #2563eb); }
.property-catalog-tags button.property-catalog-filtered {
    background: var(--tag-color, #2563eb);
    border-color: var(--tag-color, #2563eb);
    color: white;
}

.property-catalog-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 64px;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 48px;
}

.property-catalog-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.kh-catalog-sort {
    padding: 6px 10px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-main, #1f2937);
    background: white;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}
.kh-catalog-page-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e5e7eb);
    background: white;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s;
    color: var(--text-main, #1f2937);
}
.kh-catalog-page-btn:hover:not(:disabled) { background: #f3f4f6; }
.kh-catalog-page-btn:disabled { opacity: 0.35; cursor: default; }
.kh-catalog-page-indicator {
    font-size: 14px; font-weight: 600;
    color: var(--text-main, #1f2937);
    min-width: 60px; text-align: center;
}
.kh-catalog-total { font-size: 12px; color: var(--text-muted, #4b5563); }

@media (max-width: 480px) {
    .property-catalog-cards { padding: 16px 8px; gap: 56px 24px; }
}
