/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra (rent-go.com.ua)
Author: Brainstorm Force
Author URI: https://wpastra.com
Template: astra
Version: 1.0.0
*/

/* ==============================
   GLOBAL / ASTRA OVERRIDES
============================== */
.site-content {
    padding: 0;
}

.ast-container,
.site-content,
.content-area {
    overflow: visible !important;
}

/* ==============================
   COMMON ELEMENTS
============================== */
.auto-price {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 20px 0;
}

.auto-rent-button a {
    display: inline-block;
    padding: 14px 28px;
    background: #ffb703;
    color: #000;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.auto-rent-button a:hover {
    background: #e0a800;
}

/* ==============================
   CONTACT FORM 7
============================== */
.wpcf7 form {
    max-width: 500px;
}

.wpcf7 input,
.wpcf7 textarea {
    width: 100%;
}

/* ==============================
   LEGACY SINGLE AVTO LAYOUT
============================== */
.single-avto-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.avto-featured-image img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.avto-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin: 20px 0;
}

.avto-form-box {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
    .single-avto-layout {
        grid-template-columns: 1fr;
    }

    .avto-specs {
        grid-template-columns: 1fr;
    }

    .avto-form-box {
        position: static;
        margin-top: 30px;
    }
}

/* ==============================
   CARS GRID (FINAL)
============================== */
.rg-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto 0;
}

@media (max-width: 480px) {
    .rg-cars-grid {
        gap: 16px;
    }
}

/* ==============================
   CAR CARD
============================== */
.rg-car-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rg-car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.rg-car-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

@media (max-width: 480px) {
    .rg-car-image img {
        height: 160px;
    }
}

.rg-car-content {
    padding: 16px 18px 20px;
}

.rg-car-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}

.rg-car-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.rg-car-btn {
    width: 100%;
    text-align: center;
    background: #f7c600;
    color: #000;
    padding: 12px 0;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
}

/* ==============================
   SINGLE AUTO (MODERN)
============================== */
.rg-single-avto {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

.rg-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

@media (max-width: 900px) {
    .rg-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ==============================
   GALLERY (FINAL)
============================== */
.rg-gallery {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
}

.rg-gallery > img,
.rg-gallery-main img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
}

@media (max-width: 768px) {
    .rg-gallery > img,
    .rg-gallery-main img {
        height: 260px;
    }
}

.rg-gallery-thumbs,
.rg-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
}

.rg-gallery-thumbs img,
.rg-thumbs img {
    width: 90px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.rg-gallery-thumbs img:hover,
.rg-gallery-thumbs img.active,
.rg-thumbs img:hover {
    opacity: 1;
}

/* ==============================
   SUMMARY / RIGHT PANEL
============================== */
.rg-summary {
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.rg-summary h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .rg-summary h1 {
        font-size: 26px;
    }
}

.rg-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.rg-specs li {
    padding: 6px 0;
}

.rg-base-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.rg-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #1F2937;
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.rg-btn:hover {
    background: #111827;
}

/* ==============================
   PRICING
============================== */
.rg-pricing {
    margin-top: 48px;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.rg-pricing-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.rg-pricing h2 {
    font-size: 26px;
    margin: 0;
}

.rg-pricing-table {
    margin-top: 24px;
}

.rg-pricing-table div {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.rg-deposit {
    margin-top: 18px;
    font-weight: 600;
}

/* ==============================
   TOGGLE SWITCH
============================== */
.rg-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.rg-switch {
    position: relative;
    width: 46px;
    height: 24px;
}

.rg-switch input {
    display: none;
}

.rg-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    cursor: pointer;
}

.rg-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    transition: transform 0.2s;
}

.rg-switch input:checked + .rg-slider {
    background: #1F2937;
}

.rg-switch input:checked + .rg-slider::before {
    transform: translateX(22px);
}

/* ==============================
   CLEANUP
============================== */
.car-card,
.auto-card,
.auto-item,
.elementor-widget-container {
    border: none !important;
    outline: none !important;
    box-shadow: none;
}




/* Контейнер перемикача на десктопі */
.rentgo-language-block {
    display: flex;
    justify-content: flex-start; /* під логотипом зліва */
    align-items: center;
    gap: 12px;                  /* відстань між мовами */
    margin: 10px 40px;           /* відступ зверху і від краю сторінки */
    font-weight: 700;
    font-size: 16px;             /* трохи більший шрифт */
    padding: 6px 12px;           /* внутрішній відступ для "кнопкового" вигляду */
    border-radius: 8px;           /* округлі краї */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* легка тінь */
    background-color: #fff;       /* світлий фон */
    transition: transform 0.2s, box-shadow 0.2s;
}

.rentgo-language-block a {
    text-decoration: none;
    color: #000;
    transition: color 0.2s;
}

.rentgo-language-block a.active {
    color: #007bff; /* підсвічування активної мови */
}

.rentgo-language-block a:hover {
    color: #007bff;
    transform: scale(1.05);          /* легке збільшення при наведенні */
}

/* Мобільна версія (залишаємо центровану) */
@media (max-width: 768px) {
    .rentgo-language-block {
        justify-content: center;
        margin: 10px 0;
        width: 100%;
        font-size: 18px;  /* трохи більший на мобільних */
        padding: 0;       /* прибираємо фон і тінь для мобільних */
        box-shadow: none;
        background-color: transparent;
    }
    .rentgo-language-block a {
        transform: none; /* без hover ефекту на мобільних */
    }
}
