/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/
 Description:  Child theme for Hello Elementor
 Author:       Shaheer Taimoor
 Template:     hello-elementor
 Version:      1.0.0
*/

/* Add your custom CSS below */


/*our dealership page css*/
select {
    appearance: none;
    /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 18px !important;
}

/*select::after {
    content: "";
    background-image: url(/wp-content/uploads/2025/12/Vector-11.svg);
    font-size: 12px;
    color: #333;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}*/
.select-boxes:has(select):after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    background: url(/wp-content/uploads/2025/12/Vector-11.svg) no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.select-boxes:has(select) {
    position: relative;
}

.make-model-row .select-boxes:has(select):after {
    content: "";
    position: absolute;
    top: 69%;
    right: 12px;
    transform: translateY(-50%);
    width: 12px;
    height: 13px;
    background: url(/wp-content/uploads/2025/12/Vector-11.svg) no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.select-boxes {
    width: 100%;
}

.card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin: 60px auto;
}

.dealer-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0px 2px 3px 0px #0000001F;
}

.dealer-card>img {
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.arrow>img {
    width: 24px;
}

.dealer-card .arrow {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.card-bottom {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    border-top: 1px solid #eee;
}

.logo {
    min-width: 76px;
    height: 76px;
    margin-right: 10px;
    transform: translate(0px, -25px);
}

.card-bottom span {
    font-family: Myriad Pro;
    font-weight: 700;
    font-size: 22px;
    line-height: 120%;
    letter-spacing: 0px;
    vertical-align: middle;
    font-display: swap;
}

.arrow {
    margin-left: auto;
    font-size: 22px;
    color: #5a2ff5;
}

/* Popup */
.dealer-popup {
    display: none;
}

.dealer-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.dealer-popup {
    justify-content: center;
    align-items: center;
    align-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}

.popup-content {
    z-index: 999;
    max-width: 650px;
    background-color: #ffffff;
    border: 1px solid #D9D9D9;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.popup-post-title h2 {
    margin: 0;
    font-family: Myriad Pro !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    line-height: 120% !important;
    letter-spacing: 0px;
    vertical-align: middle;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E2E2E2;
    font-display: swap;
}

.popup-post-title {
    padding: 0px 20px;
}

.dealer-card-pop>img {
    width: 100%;
}

.address-flex-boxes .contact-box {
    width: 70%;
}

.contact-box-icon img {
    width: 18px;
}

.contact-box-content h4 {
    font-family: Myriad Pro !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 120% !important;
    letter-spacing: 0px;
    color: #1F0F74;
    margin: 0;
    font-display: swap;
}

.contact-box-content p {
    font-family: Myriad Pro;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #333333;
    font-display: swap;
}

.contact-information {
    padding: 0px 20px;
}

.w-25 {
    width: 25% !important;
}

h6.get-direction-link {
    font-weight: 600;
    margin: 0;
}

.flex-boxes {
    padding-top: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 33px;
}

.address-flex-boxes {
    display: flex;
    gap: 20px;
    align-items: stretch;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 6px;
}

.contact-box-btn a {
    font-family: Myriad Pro;
    font-display: swap;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0.25px;
    vertical-align: middle;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 0%;
    text-decoration-skip-ink: auto;
    color: #1F0F74;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-flex-boxes.website-boxes .contact-box {
    align-items: center;
}

span.popup-close {
    display: block;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    opacity: 0.7;
    z-index: 9999;
}

.address-flex-boxes.website-boxes {
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid #E2E2E2;
    border-bottom: 1px solid #E2E2E2;
}

.button-pop-group {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 15px;
    padding: 15px 0px;
}

.button-pop-group a:last-child {
    color: #ffffff;
    background-color: #1F0F74;
}

.popup-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    width: 400px;
    position: relative;
}

.popup-box h2 {
    margin-bottom: 10px;
}

.close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 24px;
    cursor: pointer;
}

.dealer-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collision-centre-filters .dealer-filters h2 {
    width: 100%;
    font-size: 34px;
}

.dealer-filters.collision-centre-filters h2 {
    margin-bottom: 0;
    margin-top: 0px;
}

.collision-centre-filters select#dealerLocation {
    background-color: #F8F8F8;
    border: 1px solid #D9D9D9;
    border-radius: 100px;
    display: flex;
    padding: 14px 20px 14px 10px;
    font-size: 16px;
    color: #333333;
    width: 100%;
}

.collision-centre-filters .select-boxes {
    width: 20%;
}

a.dealership-link {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.address-flex-boxes.website-boxes .contact-box {
    width: auto;
}

/*our dealership*/

.card-wrapper.dealership {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 22px auto 150px;
}

.dealership .carGrid__pagination-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    bottom: -10px;
}

.carGrid__pagination ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.carGrid__pagination ul li a {
    color: #333333;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
}

.carGrid__pagination ul li {
    display: block;
}

.carGrid__pagination ul li:last-child {
    display: block;
    background-color: #1F0F74;
    /* padding: 6px 12px; */
    border-radius: 100%;
    font-family: 'Myriad Pro';
    font-display: swap;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
}

.carGrid__pagination ul li:first-child {
    display: block;
    background-color: #1F0F74;
    /* padding: 6px 12px; */
    border-radius: 100%;
    font-family: 'Myriad Pro';
    font-display: swap;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
}

.dealership .dealer-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0px 2px 3px 0px #0000001F;
}

.dealership .dealer-card>img {
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.dealership .arrow>img {
    width: 24px;
}

.dealership .dealer-card .arrow {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.dealership .card-bottom {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-top: 1px solid #eee;
    margin-top: -10px;
}

.dealership .logo {
    min-width: 76px;
    height: 76px;
    margin-right: 10px;
    transform: translate(0px, -25px);
}

.dealership .card-bottom span {
    font-family: Myriad Pro;
    font-display: swap;
    font-weight: 700;
    font-size: 22px;
    line-height: 120%;
    letter-spacing: 0px;
    vertical-align: middle;
}

.dealership .arrow {
    margin-left: auto;
    font-size: 22px;
    color: #5a2ff5;
}

/* Popup */

p.popup-phone {
    margin-bottom: 0;
}

.contact-box-content h4 {
    font-family: Myriad Pro;
    font-display: swap;
    font-weight: 600;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0px;
    color: #1F0F74;
    margin: 0;
}

.contact-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 46%
}

.address-flex-boxes {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding-top: 13px;
}

.contact-box-btn a {
    font-family: Myriad Pro;
    font-display: swap;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0.25px;
    vertical-align: middle;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 0%;
    text-decoration-skip-ink: auto;
    color: #1F0F74;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-flex-boxes.website-boxes .contact-box {
    align-items: center;
}

.address-flex-boxes.website-boxes {
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid #E2E2E2;
    border-bottom: 1px solid #E2E2E2;
}

.button-pop-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 15px;
    padding: 15px 0px;
}

.button-pop-group a {
    width: 100%;
    display: block;
    text-align: center;
    padding: 15px;
    border: 1px solid #2A188F;
    border-radius: 100px;
    color: #1F0F74;
    background: transparent;
    font-family: Myriad Pro;
    font-display: swap;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0.25px;
    vertical-align: middle;
    text-transform: uppercase;
}

.button-pop-group a:last-child {
    color: #ffffff;
    background-color: #1F0F74;
}

.button-pop-group.single-grid {
    grid-template-columns: 1fr;
}

.popup-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    width: 400px;
    position: relative;
}

.popup-box h2 {
    margin-bottom: 10px;
}

.close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 24px;
    cursor: pointer;
}

.dealer-filters {
    display: flex;
    justify-content: space-between;
}

.dropdown-filters {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-pl-search h2 {
    font-size: 34px !important;
}

.title-pl-search span {
    background-color: #F8F8F8;
    border: 1px solid #D9D9D9;
    border-radius: 100px;
    display: flex;
    padding: 3px 20px 3px 10px;
    width: 54%;
}

.title-pl-search span input[type="search"] {
    background-color: transparent;
    border: 0px;
}

.title-pl-search {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 48%;
    font-size: 16px;
    color: #333333;
}

.dropdown-filters select {
    background-color: #F8F8F8;
    border: 1px solid #D9D9D9;
    border-radius: 100px;
    display: flex;
    padding: 12px 20px 12px 10px;
    font-size: 16px;
    color: #333333;
}

.dropdown-filters select option {
    color: #333333;
}

.contact-box a {
    display: flex;
    gap: 10px;
}

/*pagination css*/
select.items-per-page {
    background-color: #F8F8F8;
    border: 1px solid #D9D9D9;
    border-radius: 100px;
    padding: 6px 10px;
    width: 100%;
}

.pagination-size span {
    width: 100%;
}

.pagination-size {
    display: flex;
    width: 18%;
    align-items: center;
    gap: 20px;
    flex-direction: row-reverse;
}

.pagination-info {
    color: #323232;
    font-size: 16px;
    font-weight: 400;
}

.carGrid__pagination-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 70px;
    align-items: center;
    margin-bottom: 60px;
}

@media (max-width: 767px) {
    .carGrid__pagination-bar {
        flex-direction: column;
    }

    .card-wrapper {
        grid-template-columns: 1fr;
    }

    .dealer-filters {
        flex-direction: column;
    }

    .collision-centre-filters select#dealerLocation {
        width: 100%;
    }

    .contact-box {
        width: 100% !important;
    }

    #dealerPopup .address-flex-boxes {
        flex-direction: column;
    }

    a.dealership-link img {
        width: 30px;
    }

    .popup-content {
        top: 0%;
        max-width: 400px;
    }

    .collision-centre-filters .select-boxes {
        width: 100%;
        margin-top: 20px;
    }

    .card-wrapper.dealership {
        grid-template-columns: 1fr;
        margin: 22px auto 180px;
    }

    .pagination-size {
        flex-direction: row;
        width: 60%;
    }

    .dealership .carGrid__pagination-bar {
        bottom: -57px;
        gap: 20px;
    }

    .flex-boxes {
        padding-top: 20px;
        display: grid;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 33px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .card-bottom span {
        font-size: 22px;
    }

    .collision-centre-filters select#dealerLocation {

        width: 50%;
    }

    .card-wrapper {
        grid-template-columns: 1fr 1fr;
        margin: 40px auto;
    }
}