/* Lightbox containers - hidden by default */
[id^="lightbox-"] {
    display: none;
}

.th_full_width_top_container {
    color: #203754;
    font-style: normal;
    margin-bottom: 5em;

    h1 {
        font-size: 44px;
        font-weight: 700;
        line-height: 120%;
    }

    span {
        font-size: 16px;
        font-weight: 400;
        line-height: 140%;
    }

    .th_list_stats {
        font-size: 16px;
        font-weight: 400;
        line-height: 140%;
        margin-top: 4px;
        margin-bottom: 0;
    }
}

.columns-container {
    #left_column {
        padding-left: 0;
    }

    .th_cars_filters {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 16px;
        border: 2px solid #EBE9EF;
        background: #FFF;
        box-shadow: 0 4px 12px 0 #EBE9EF;

        h3 {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            padding: 16px 24px;
            align-self: stretch;
            color: #203754;
            font-family: Roboto;
            font-size: 20px;
            font-style: normal;
            font-weight: 700;
            border-bottom: 2px solid #EBE9EF;

            i {
                display: none;
            }
        }

        .th_cars_filters_content {
            display: flex;
            padding: 24px;
            flex-direction: column;
            align-items: flex-start;
            align-self: stretch;

            .th_cars_filters_brand_container {
                margin-bottom: 16px;
            }

            .th_cars_filters_brand_container,
            .th_cars_filters_model_container {
                display: flex;
                justify-content: start;
                align-items: start;
                flex-direction: column;
                align-self: stretch;

                label {
                    color: #203754;
                    font-family: Inter;
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 140%;
                }

                div {
                    display: flex;
                    width: 100%;

                    select {
                        display: flex;
                        height: 38px;
                        padding: 8px 30px 8px 8px;
                        align-items: center;
                        flex: 1 0 0;
                        border-radius: 8px;
                        border: 1px solid #ADC6E5;
                        color: #375E8D;
                        font-family: Inter;
                        font-size: 16px;
                        font-style: normal;
                        font-weight: 400;
                        line-height: 140%;

                        /* Remove default arrow */
                        appearance: none;
                        -webkit-appearance: none;
                        -moz-appearance: none;
                        background: none;
                        width: 100%;
                        cursor: pointer;
                    }

                    .th_cars_select_wrapper {
                        position: relative;
                    }

                    .th_cars_select_wrapper.th_disabled select {
                        cursor: not-allowed;
                    }

                    .th_cars_select_wrapper.th_disabled {
                        opacity: .5;
                    }

                    .th_cars_select_wrapper.th_disabled::after {
                        opacity: .5;
                    }

                    .th_cars_select_wrapper::after {
                        content: "";
                        position: absolute;
                        right: 10px;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 20px;
                        height: 20px;
                        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M6.66602 7.49996L9.99935 4.16663L13.3327 7.49996M13.3327 12.5L9.99935 15.8333L6.66602 12.5" stroke="%23203754" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
                        background-size: contain;
                        background-repeat: no-repeat;
                        pointer-events: none;
                    }

                    a {
                        margin-left: 8px;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        flex-shrink: 0;
                        padding: 12px;
                        border-radius: 8px;
                        border: 1px solid #ADC6E5;
                        background: #FFF;
                        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.04);
                    }
                }
            }
        }
    }

    .th_car_details {
        display: flex;
        border-radius: 16px;
        border: 2px solid #EBE9EF;
        align-items: flex-start;
        justify-content: center;
        flex: 1 0 0;
        padding: 24px;
        margin-bottom: 20px;
        min-height: 14em;

        .th_details_container {
            padding-left: 0;
        }

        .th_images_container {
            padding-right: 20px;
            padding-left: 0;

            img {
                object-fit: cover;
                width: 100%;
                height: 100%;
            }

            .th_images_cover {
                margin-bottom: 6px;

                .swiper-slide {
                    height: 11em;
                    overflow: hidden;
                    border-radius: 8px;
                    background: rgba(0, 0, 0, 0.5);
                    cursor: pointer;
                }
            }

            .th_images_bottom {
                .swiper-slide {
                    height: 3.5em;
                    overflow: hidden;
                    border-radius: 4px;
                    background: rgba(0, 0, 0, 0.5);
                }
            }
        }

        .th_car_title {
            color: #203754;
            font-family: Roboto;
            font-size: 20px;
            font-style: normal;
            font-weight: 700;
            line-height: 150%;
            margin-bottom: .8em;
        }

        .th_car_detail_label {
            color: #203754;
            font-family: Inter;
            font-size: 16px;
            font-style: normal;
            font-weight: 700;
            line-height: 140%;
        }

        .th_car_detail_value {
            color: #203754;
            font-family: Inter;
            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: 140%;
        }

        .th_car_detail.row {
            border-bottom: 1px solid #E6E8E9;
            margin: 0;
            padding-bottom: .3em;
            margin-bottom: .3em;

            .col-6 {
                padding: 0;
            }
        }

        a.btn.btn-default {
            display: flex;
            height: 48px;
            padding: 16px 28px;
            justify-content: center;
            align-items: center;
            gap: 8px;
            align-self: stretch;
            border-radius: 8px;
            border: 2px solid rgba(255, 255, 255, 0.24);
            background: #E95712;
            color: #FFF;
            font-family: Roboto;
            font-size: 16px;
            font-style: normal;
            font-weight: 700;
            line-height: 150%;
            margin-bottom: 16px;
        }

        a.whatsappchat-anchor {
            div {
                width: 100%;
            }

            span:first-child {
                width: 100%;
                display: block;
                margin: 0;
                text-align: center;
            }
        }

        .th_car_notify_card {
            background: #FFF;
            border: 2px solid #EBE9EF;
            border-radius: 12px;
            padding: 16px;
            margin-top: 16px;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.2s;
        }

        .th_car_notify_card:hover {
            border-color: #E95712;
        }

        .th_car_notify_card.th_car_notify_active {
            border-color: #E95712;
            background: #FFF5F0;
            cursor: pointer;
        }

        .th_car_notify_card_header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .th_car_notify_card_icon {
            color: #E95712;
            font-size: 24px;
            display: flex;
        }

        .th_car_notify_card_title {
            color: #203754;
            font-family: Inter;
            font-size: 16px;
            font-weight: 600;
        }

        .th_car_notify_card_text {
            color: #375E8D;
            font-family: Inter;
            font-size: 13px;
            font-weight: 400;
            margin-top: 4px;
        }

        .th_car_notify_card .th_car_notify_icon_filled { display: none; }
        .th_car_notify_card.th_car_notify_active .th_car_notify_icon_outlined { display: none; }
        .th_car_notify_card.th_car_notify_active .th_car_notify_icon_filled { display: flex; }

        .th_car_notify_card .th_car_notify_title_active { display: none; }
        .th_car_notify_card.th_car_notify_active .th_car_notify_title_inactive { display: none; }
        .th_car_notify_card.th_car_notify_active .th_car_notify_title_active { display: inline; }

        .th_car_notify_card .th_car_notify_text_active { display: none; }
        .th_car_notify_card.th_car_notify_active .th_car_notify_text_inactive { display: none; }
        .th_car_notify_card.th_car_notify_active .th_car_notify_text_active { display: inline; }

        .th_car_buttons_container {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
    }

    .th_cars_footer {
        .dropdown_list {
            right: 0;
            left: auto;
        }
    }
}

/* Subscribe modal */
#th_car_notify_modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    margin-right: 10px;
    position: relative;
}

#th_car_notify_modal .modal-header {
    border-bottom: none;
    padding: 0;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

.th_car_notify_modal_hero {
    padding: 24px 24px 16px;
}

.th_car_notify_modal_icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #EBE9EF;
    color: #375E8D;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

#th_car_notify_modal .modal-title {
    font-family: Roboto;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #203754;
    margin-bottom: 8px;
}

.th_car_notify_modal_desc {
    color: #375E8D;
    font-family: Inter;
    font-size: 14px;
    margin-bottom: 0;
}

#th_car_notify_modal .modal-body {
    padding: 8px 24px;
}

#th_car_notify_modal .modal-footer {
    border-top: none;
    justify-content: center;
    padding: 8px 24px 24px;
}

#th_car_notify_modal .form-group input:not([type="checkbox"]) {
    border-radius: 8px;
    border: 1px solid #ADC6E5;
    padding: 0 16px;
    height: 56px;
    font-size: 16px;
}

#th_car_notify_modal button[type="submit"] {
    width: 100%;
    padding: 12px 28px;
    border-radius: 8px;
    background: #E95712;
    border: unset;
    margin-bottom: 4px;
    font-weight: 700;
    color: #FFF;
    font-size: .875rem;
    text-transform: none;
    font-family: Roboto;
    min-height: 3.5em;
}

#th_car_notify_modal button[type="submit"]:hover {
    box-shadow: 0 4px 12px 0 #64291833;
}

#th_car_notify_modal button[type="submit"]:active,
#th_car_notify_modal button[type="submit"]:focus {
    background: #FACEC2 !important;
    color: #E95712 !important;
}

#th_car_notify_modal input[type="checkbox"] {
    width: 22px;
    height: 22px;
}

#th_car_notify_modal .th_car_notify_modal_consent {
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #061119;
    display: flex;
    gap: 10px;
}

#th_car_notify_modal input[type="checkbox"]:checked:after {
    content: '✓';
    display: block;
    text-align: center;
    width: 100%;
    height: 100%;
    color: #E95712;
    background: white;
    border: 1px solid #E95712;
    border-radius: 2px;
    font-weight: 700;
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 32px;
    margin-top: -16px;
    z-index: 10;
    cursor: pointer;
    background-size: 20px 32px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

.swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
    left: 10px;
}

.swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
    right: 10px;
}

.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Unsubscribe confirmation modal */
/* Unsubscribe confirmation modal */
.th_car_unsubscribe_modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    margin-right: 10px;
}

.th_car_unsubscribe_modal .modal-body {
    padding: 24px 24px 8px;
}

.th_car_unsubscribe_modal .modal-body h5 {
    color: #203754;
    font-family: Inter;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.th_car_unsubscribe_modal .modal-body p {
    color: #375E8D;
    font-family: Inter;
    font-size: 14px;
    margin-bottom: 0;
}

.th_car_unsubscribe_icon {
    color: #E95712;
    margin-bottom: 12px;
}

.th_car_unsubscribe_modal .modal-footer {
    border-top: none;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px 24px;
}

.th_car_unsubscribe_modal .btn-secondary {
    display: flex;
    height: 48px;
    padding: 16px 28px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 2px solid #E95712;
    background: #FFF;
    color: #E95712;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
    text-transform: none;
}

.th_car_unsubscribe_modal .btn-secondary:hover {
    background: #E95712;
    color: #FFF;
}

.th_car_unsubscribe_modal .btn-primary {
    display: flex;
    height: 48px;
    padding: 16px 28px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.24);
    background: #E95712;
    color: #FFF;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
    text-transform: none;
}

.th_car_unsubscribe_modal .btn-primary:hover {
    box-shadow: 0 4px 12px 0 #64291833;
    background: #d14e10;
}

@media only screen and (min-width: 320px) and (max-width: 991px) {
    #left_column {
        display: block !important;
        margin-bottom: 2em;
        padding-right: 0;
    }

    .columns-container .row {
        display: flex;
        justify-content: center;
    }
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
    .th_details_container {
        margin-top: 1em;
    }

    .th_car_buttons_container {
        height: unset !important;
        margin-top: 1em;
    }

    .th_full_width_top_container {
        margin-bottom: 2em;
    }

    .th_images_container {
        padding-right: 0 !important;
    }

    .th_full_width_top_container {
        h1 {
            font-size: 32px;
        }

        span {
            text-align: center !important;
            display: block;
        }
    }

    .th_car_buttons_container {
        padding: 0 !important;
    }

    .th_cars_filters {
        h3 {
            flex-direction: row !important;
            justify-content: space-between !important;
            margin-bottom: 0 !important;

            i.show {
                display: block;
            }
        }
    }

    .columns-container {
        .th_cars_filters {
            .th_cars_filters_content {
                display: none;
            }
        }
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
    .th_car_details {
        .th_images_cover {
            .swiper-slide {
                height: 20em !important;
            }
        }
    }
}

/* Car image placeholder */
.th_car_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 8px;
}

.th_car_placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.4;
}

/* SEO Section */
.th-seo-section {
    margin-top: 3em;
    margin-bottom: 3em;
}

.th-seo-content {
    color: #203754;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.th-seo-content h2 {
    font-family: Roboto, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1em;
    color: #203754;
}

.th-seo-content h3 {
    font-family: Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #203754;
}

.th-seo-content p {
    margin-bottom: 1em;
    color: #375E8D;
}

/* FAQ Accordion */
.th-seo-faq {
    margin-top: 2em;
    border-top: 2px solid #EBE9EF;
    padding-top: 1.5em;
}

.th-seo-faq > h3 {
    margin-top: 0;
    margin-bottom: 1em;
}

.th-seo-faq-item {
    border-bottom: 1px solid #EBE9EF;
}

.th-seo-faq-question {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #203754;
    text-align: left;
    line-height: 1.4;
}

.th-seo-faq-question::after {
    content: "+";
    font-size: 24px;
    font-weight: 400;
    color: #E95712;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.2s;
}

.th-seo-faq-question[aria-expanded="true"]::after {
    content: "−";
}

.th-seo-faq-answer {
    display: none;
    padding: 0 0 16px 0;
}

.th-seo-faq-answer p {
    margin: 0;
}

.th-seo-faq-question[aria-expanded="true"] + .th-seo-faq-answer {
    display: block;
}

@media only screen and (max-width: 767px) {
    .th-seo-content h2 {
        font-size: 22px;
    }

    .th-seo-content h3 {
        font-size: 18px;
    }

    .th-seo-section {
        margin-top: 2em;
    }
}