/* Rental Price Chart — Frontend v3.0 */

.vxuiren-section {
    width: 100%;
    padding: 40px 0 0;
}

.vxuiren-inner {
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.vxuiren-header {
    text-align: center;
    margin-bottom: 28px;
}

.vxuiren-title {
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.vxuiren-subtitle {
    margin: 8px auto 0;
    line-height: 1.6;
}

.vxuiren-blocks-intro {
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Redesigned cards */
.vxuiren-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 38px;
}

.vxuiren-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(145deg, var(--theme-bg-light) 0%, #ffffff 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.vxuiren-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    border-color: rgba(15, 23, 42, 0.14);
}

.vxuiren-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.vxuiren-card__icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: var(--theme-bg-light);
    color: var(--theme-accent);
    font-size: 31px !important;
}

.vxuiren-card__heading {
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.vxuiren-card__price {
    display: inline-block;
    font-weight: 600;
    color: var(--theme-accent);
    line-height: 1.4;
}

.vxuiren-content {
    margin-bottom: 36px;
    line-height: 1.7;
}

.vxuiren-content table {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.vxuiren-section p {
    margin-bottom: 1.2em;
}

.vxuiren-content p {
    margin: 0 0 12px;
}

.vxuiren-content p:last-child {
    margin-bottom: 0;
}

.vxuiren-chart-title {
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.3;
}

/* Fully redesigned chart: independent track + bar */
.vxuiren-chart {
    margin-bottom: 24px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 22px;
    padding: 20px 14px 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.9) 100%),
        var(--theme-bg-light);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.vxuiren-chart-bars {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.vxuiren-chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vxuiren-chart-track {
    position: relative;
    width: 100%;
    max-width: 46px;
    height: 260px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #f7f7f7 0%, #f6f6f6 100%);
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
}

.vxuiren-chart-bar {
    width: 100%;
    border-radius: 10px;
    background: var(--theme-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: height 0.45s ease;
    min-height: 0;
    position: relative;
}

.vxuiren-chart-value {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    white-space: nowrap;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 600;
    font-size: 0.8em;
    color: var(--theme-accent);
}

.vxuiren-chart-month {
    text-align: center;
    font-size: 0.82em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.vxuiren-chart-footer {
    line-height: 1.7;
}

.vxuiren-chart-footer p {
    margin: 0 0 12px;
}

.vxuiren-chart-footer p:last-child {
    margin-bottom: 0;
}

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

    .vxuiren-chart-bars {
        gap: 6px;
    }

    .vxuiren-chart-track {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .vxuiren-section {
        padding: 36px 0;
    }

    .vxuiren-inner {
        padding: 0 16px;
    }

    .vxuiren-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vxuiren-card {
        min-height: 0;
        padding: 18px 16px;
    }

    .vxuiren-chart {
        border-radius: 16px;
        padding: 14px 8px 8px;
    }

    .vxuiren-chart-bars {
        gap: 4px;
    }

    .vxuiren-chart-track {
        height: 170px;
        max-width: 28px;
        padding: 3px;
    }

    .vxuiren-chart-month {
        font-size: 0.72em;
    }

    .vxuiren-chart-value {
        font-size: 0.7em;
        padding: 1px 6px;
    }
}

/* ── Submenu fix ── */
@media (min-width: 992px) {
    .top-menu ul li .sub-menu li .sub-menu {
        top: 0;
        right: 100% !important;
        left: auto !important;
    }
}