/* ── Автокомплит ──────────────────────────────────────────────────────────── */
.kuda3x-ac {
    position: relative;
}

.kuda3x-ac__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    max-height: 260px;
    overflow-y: auto;
}

.kuda3x-ac__item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s;
}

.kuda3x-ac__item:hover {
    background: #f4f4f4;
}

.kuda3x-ac__empty {
    padding: 10px 14px;
    color: #999;
    font-size: 14px;
    list-style: none;
}

/* ── Форма сравнения ────────────────────────────────────────────────────────── */
.kuda3x-compare-form {
    padding: 30px 0;
}

.kuda3x-compare-form__vs {
    font-size: 20px;
    font-weight: 700;
    color: #999;
    padding: 8px 10px;
}

@media (min-width: 960px) {
    .kuda3x-compare-form__vs {
        padding-top: 22px;
    }
}

/* ── Заголовок результата ───────────────────────────────────────────────────── */
.kuda3x-compare__header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.kuda3x-compare__city-title {
    display: block;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.kuda3x-compare__city-title:hover {
    text-decoration: underline;
}

.kuda3x-compare__vs-badge {
    font-size: 28px;
    font-weight: 900;
    color: #ccc;
    padding: 0 20px;
    align-self: center;
}

.kuda3x-compare__overall {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

.kuda3x-compare__overall-score {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #666;
}

.kuda3x-compare__overall--win .kuda3x-compare__overall-score {
    color: #1e87f0;
}

/* ── Таблица рейтингов ──────────────────────────────────────────────────────── */
.kuda3x-cmp__cell--left {
    text-align: right;
}

.kuda3x-cmp__cell--right {
    text-align: left;
}

.kuda3x-cmp__label {
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    color: #666;
    padding: 0 12px;
}

.kuda3x-cmp__val {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    min-width: 36px;
}

.kuda3x-cmp__val--win {
    color: #1e87f0;
    font-size: 20px;
}

.kuda3x-cmp__val--draw {
    color: #999;
}

.kuda3x-cmp__bar {
    display: inline-block;
    width: 120px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
    margin: 0 8px;
}

.kuda3x-cmp__bar span {
    display: block;
    height: 100%;
    background: #1e87f0;
    border-radius: 4px;
    transition: width .4s;
}

.kuda3x-cmp__cell--left .kuda3x-cmp__bar span {
    margin-left: auto;
    float: right;
}

/* ── Карточки отзывов ───────────────────────────────────────────────────────── */
.kuda3x-review-card__up {
    font-weight: 600;
}

.kuda3x-review-card__down {
    font-weight: 600;
}

.kuda3x-review-card__ratings {
    line-height: 1.8;
}

/* ── Адаптив ────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .kuda3x-cmp__bar {
        width: 60px;
    }

    .kuda3x-compare__vs-badge {
        padding: 0 8px;
        font-size: 20px;
    }

    .kuda3x-compare__overall-score {
        font-size: 26px;
    }
}
