.cyv-catalog {
    width: 100%;
}

.cyv-catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.cyv-property-card {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.cyv-property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cyv-property-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f1f1;
}

.cyv-property-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cyv-property-card__image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cyv-property-card__image.is-active {
    display: block;
}

.cyv-property-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #666;
}

.cyv-property-card__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.cyv-property-card__arrow--prev {
    left: 12px;
}

.cyv-property-card__arrow--next {
    right: 12px;
}

.cyv-property-card__counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
}

.cyv-property-card__body {
    display: block;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.cyv-property-card__city {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.cyv-property-card__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
}

.cyv-property-card__price {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
}

.cyv-property-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.cyv-property-card__feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.cyv-catalog .cyv-property-card__feature-icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #64717b;
}

.cyv-property-card__feature strong {
    margin-right: 3px;
}

.cyv-property-card__code {
    margin-top: 14px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cyv-catalog__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.cyv-catalog__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.cyv-catalog__pagination .page-numbers.current {
    border-color: currentColor;
    font-weight: 700;
}

.cyv-catalog__empty {
    text-align: center;
}

@media (max-width: 900px) {
    .cyv-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cyv-catalog__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* CYV catalog visual refresh: scoped to the shortcode wrapper. */
.cyv-catalog, .cyv-catalog * { box-sizing: border-box; }
.cyv-catalog { width: min(1240px, 100%); max-width: 1240px; margin: 0 auto; padding: 12px 0 64px; font-family: inherit; color: #20232a; }
.cyv-catalog__filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding: 24px; margin: 0 0 26px; border: 1px solid #e5e9ed; border-radius: 18px; background: #f8fafb; box-shadow: 0 6px 22px rgba(25,37,50,.04); }
.cyv-catalog__search { grid-column: 1/-1; }
.cyv-catalog__filter, .cyv-catalog__search { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cyv-catalog__filters label { display: block; font-size: 13px; font-weight: 650; line-height: 1.35; color: #394450; margin: 0; }
.cyv-catalog__filters input[type="search"], .cyv-catalog__filters select { display: block; width: 100%; min-width: 0; height: 45px; padding: 9px 12px; margin: 0; border: 1px solid #cfd8df; border-radius: 9px; background: #fff; color: #20232a; font: inherit; font-size: 14px; box-shadow: none; }
.cyv-catalog__filters input:focus, .cyv-catalog__filters select:focus { outline: 2px solid #bdcbd7; outline-offset: 1px; border-color: #607d91; }
.cyv-catalog__filter-actions { grid-column: 1/-1; display: flex; align-items: center; justify-content: flex-end; margin-top: -4px; }
.cyv-catalog__filter-clear { font-size: 14px; color: #405a70; text-decoration: underline; text-underline-offset: 3px; }
.cyv-catalog__results-count { margin: 0 0 20px; font-size: 16px; font-weight: 650; }
.cyv-catalog__grid { gap: 24px; }
.cyv-catalog .cyv-property-card { display: flex; flex-direction: column; min-width: 0; border-radius: 15px; box-shadow: 0 5px 18px rgba(24,35,45,.07); }
.cyv-catalog .cyv-property-card__media { flex: 0 0 auto; aspect-ratio: 16/11; }
.cyv-catalog .cyv-property-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 18px; color: #20232a; text-decoration: none; }
.cyv-catalog .cyv-property-card__body:hover { color: #20232a; }
.cyv-catalog .cyv-property-card__city { font-size: 12px; color: #63707a; line-height: 1.4; }
.cyv-catalog .cyv-property-card__title { margin: 2px 0 12px; font-size: clamp(17px,1.5vw,20px); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.cyv-catalog .cyv-property-card__price { margin: 0 0 16px; font-size: clamp(19px,1.7vw,24px); font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.cyv-catalog .cyv-property-card__features { gap: 8px 12px; padding: 13px 0 0; margin-top: auto; font-size: 13px; color: #3d4b56; }
.cyv-catalog .cyv-property-card__location { margin-top: 12px; color: #64717b; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.cyv-catalog .cyv-property-card__code { margin-top: 10px; color: #64717b; font-size: 11px; font-weight: 400; line-height: 1.4; letter-spacing: 0.02em; }
.cyv-catalog .cyv-property-card__arrow { display: grid; place-items: center; width: 38px; height: 38px; font-size: 25px; }
.cyv-catalog__pagination .page-numbers { background: #fff; }
.cyv-catalog__pagination .page-numbers:hover, .cyv-catalog__pagination .page-numbers.current { background: #172f43; border-color: #172f43; color: #fff; }
@media (max-width: 1000px) { .cyv-catalog__filters { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) { .cyv-catalog__filters { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 16px; gap: 12px; } .cyv-catalog__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; } .cyv-catalog .cyv-property-card__body { padding: 13px; } }
@media (max-width: 540px) { .cyv-catalog__filters { grid-template-columns: 1fr; } .cyv-catalog__grid { grid-template-columns: 1fr; } .cyv-catalog .cyv-property-card__media { aspect-ratio: 16/10; } .cyv-catalog__filter-actions { justify-content: flex-start; } }
