/* ═══════════════════════════════════════
   Car Hire Price — Frontend v2.1
   ═══════════════════════════════════════ */

.rentchartx {
    width: 100%;
    padding: 44px 0 0;
}

.rentchartx__inner {
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
}

.rentchartx-header {
    text-align: center;
    margin-bottom: 30px;
}

.rentchartx-title {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.rentchartx-subtitle {
    max-width: 860px;
    margin: 12px auto 0;
    color: #536449;
    line-height: 1.75;
}

.rentchartx-intro {
    max-width: 760px;
    margin: 0 auto 26px;
    color: #617255;
    text-align: center;
    line-height: 1.7;
}

.rentchartx-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.rentchartx-highlight {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 12px;
    min-height: 100%;
    padding: 18px 16px;
    text-align: left;
    border: 1px solid rgba(108, 175, 57, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(108, 175, 57, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, var(--theme-bg-light) 100%);
    box-shadow: 0 14px 28px rgba(69, 140, 40, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.rentchartx-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(180deg, rgba(121, 191, 67, 0.9) 0%, rgba(69, 140, 40, 0.92) 100%);
    opacity: 0.9;
}

.rentchartx-highlight:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 175, 57, 0.28);
    box-shadow: 0 26px 52px rgba(69, 140, 40, 0.14);
}

.rentchartx-highlight__icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(108, 175, 57, 0.12);
    background: linear-gradient(135deg, rgba(108, 175, 57, 0.18) 0%, rgba(255, 255, 255, 0.96) 100%);
    color: var(--theme-accent);
    font-size: 30px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rentchartx-highlight__body {
    display: grid;
    gap: 6px;
    justify-items: start;
    width: 100%;
    min-width: 0;
}

.rentchartx-highlight__heading {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.28;
    font-size: 1rem;
}

.rentchartx-highlight__price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(108, 175, 57, 0.14);
    color: #4f7f26;
    font-weight: 700;
    line-height: 1.3;
    font-size: 0.88rem;
}

.rentchartx-content {
    margin-bottom: 40px;
    line-height: 1.78;
    color: #3e4f35;
}

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

.rentchartx p {
    margin-bottom: 1.2em;
}

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

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

.rentchartx-chart__title {
    margin: 0 0 24px;
    text-align: center;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.12;
}

.rentchartx-chart {
    margin-bottom: 24px;
    padding: 22px 18px 18px;
    border: 1px solid rgba(108, 175, 57, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at top center, rgba(108, 175, 57, 0.14), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, var(--theme-bg-light) 100%);
    box-shadow: 0 22px 44px rgba(69, 140, 40, 0.08);
}

.rentchartx-chart__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 340px;
}

.rentchartx-chart__item {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 10px;
    align-items: end;
    min-width: 0;
    height: 100%;
}

.rentchartx-chart__track {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 260px;
    padding: 6px;
    border-radius: 22px;
    border: 1px solid rgba(108, 175, 57, 0.14);
    background:
        repeating-linear-gradient(
            to top,
            rgba(108, 175, 57, 0.08) 0,
            rgba(108, 175, 57, 0.08) 1px,
            transparent 1px,
            transparent 42px
        ),
        linear-gradient(180deg, #f5f9eb 0%, #edf5dc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.rentchartx-chart__bar-wrap {
    position: relative;
    width: 100%;
    min-height: 8px;
    display: flex;
    align-items: flex-end;
}

.rentchartx-chart__value {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    max-width: calc(100% + 18px);
    padding: 4px 10px;
    border-radius: 999px;
    background: #4d7f24;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.rentchartx-chart__bar {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, #79bf43 0%, #5c9431 52%, #458c28 100%);
    box-shadow: 0 10px 20px rgba(108, 175, 57, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
}

.rentchartx-chart__bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 34%);
}

.rentchartx-chart__track:hover .rentchartx-chart__bar {
    filter: brightness(1.04) saturate(1.06);
}

.rentchartx-chart__month {
    text-align: center;
    color: #647255;
    font-size: 0.82rem;
    white-space: nowrap;
}

.rentchartx-chart__footer {
    margin-top: 18px;
    line-height: 1.74;
    color: #415137;
}

.rentchartx-chart__footer p {
    margin: 0 0 12px;
}

.rentchartx-chart__footer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .rentchartx-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rentchartx-chart__grid {
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .rentchartx {
        padding: 36px 0 0;
    }

    .rentchartx__inner {
        padding: 0 16px;
    }

    .rentchartx-highlights {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rentchartx-highlight {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 16px 14px;
    }

    .rentchartx-highlight__icon {
        width: 46px;
        height: 46px;
        font-size: 26px !important;
    }

    .rentchartx-chart {
        padding: 16px 10px 14px;
        border-radius: 20px;
    }

    .rentchartx-chart__grid {
        gap: 6px;
        min-height: 270px;
    }

    .rentchartx-chart__track {
        height: 200px;
        padding: 4px;
        border-radius: 16px;
    }

    .rentchartx-chart__value {
        padding: 3px 6px;
        font-size: 0.68rem;
    }

    .rentchartx-chart__month {
        font-size: 0.7rem;
    }
}

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