﻿html {
    overflow: unset !important
}

#SearchIt:disabled:hover {
    background: inherit;
    color: inherit;
    border-color: inherit;
    transform: none;
    box-shadow: none;
}
.dealer-info {
    border: 1px solid rgba(241, 243, 249, 1);
    background: rgba(252, 252, 252, 1);
    border-radius: 32px;
    padding: 43px 22px;
    margin: 14px;
}

.dealer-row {
    align-items: stretch;
}


.dealer-map {
    padding: 14px !important;
    display: flex;
}

    .dealer-map figure {
        width: 100%;
        margin: 0;
        display: flex;
    }

    .dealer-map iframe {
        width: 100%;
        height: 100%;
        min-height: 400px;
        border: 0;
        border-radius: 25px;
    }
.dealer-info-item {
    border: 1px solid rgba(241, 243, 249, 1);
    padding: 8px 12px;
    border-radius: 12px;
    margin: 0px 4px;
}
.btn-location {
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.btn-call .icon-orange {
    display: none !important;
}

.btn-call .icon-black {
    display: inline-block !important;
}

/* hover / focus: سفید */
.btn-call:hover .icon-orange,
.btn-call:focus .icon-orange {
    display: inline-block !important;
}

.btn-call:hover .icon-black,
.btn-call:focus .icon-black {
    display: none !important;
}

#filterDealer {
    width: 190px
}
@media(max-width:991px){
    #filterDealer {
        width: 100% !important
    }
}
@media (min-width: 992px) {
    .dealer-map {
        display: flex;
        align-items: stretch;
    }

        .dealer-map figure {
            flex: 1;
        }

        .dealer-map iframe {
            height: 100%;
            min-height: 0;
        }
}


.cancelled-agency {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    direction: rtl;
}

.cancelled-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffe0e0;
    color: #dc3545;
    font-size: 25px;
    font-weight: bold;
}

.cancelled-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cancelled-title {
    font-size: 14px;
    font-weight: 700;
    color: #c82333;
}

.cancelled-date {
    font-size: 13px;
    color: #777;
}

    .cancelled-date strong {
        color: #333;
        font-weight: 700;
    
        
        }





.route-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 25, 55, .18);
}

    .route-modal .modal-header {
        padding: 25px 25px 15px;
        border-bottom: 0;
        align-items: flex-start;
    }

    .route-modal .modal-title {
        color: #00396b;
        font-size: 21px;
        font-weight: 700;
    }

.route-subtitle {
    margin: 8px 0 0;
    color: #718096;
    font-size: 13px;
}

.route-modal .modal-body {
    padding: 10px 25px 25px;
}

.route-modal .close {
    font-size: 27px;
    color: #64748b;
    opacity: .8;
}

.route-option {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 14px;
    padding: 18px;
    margin-bottom: 14px;
    text-align: right;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

    .route-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 30, 70, .08);
    }

.route-sale {
    background: #f0f6ff;
    border-color: #d5e5ff;
    color: var(--blue-color);
}

    .route-sale:hover {
        border-color: #2676d2;
    }

.route-service {
    background: color-mix(in srgb, var(--silver-color) 20%, transparent);
    border-color: color-mix(in srgb, var(--silver-color) 40%, transparent);
    color: black;
}

    .route-service:hover {
        border-color: color-mix(in srgb, var(--silver-color) 80%, transparent);
    }

.route-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
    font-size: 23px;
}

.route-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
}

    .route-info strong {
        font-size: 15px;
        font-weight: 700;
    }

    .route-info small {
        font-size: 12px;
        color: #64748b;
    }

.route-arrow {
    font-size: 13px;
    opacity: .7;
}

.route-hint {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px;
    margin-top: 4px;
    border-radius: 9px;
    background: #f5f7fa;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 575.98px) {
    .route-modal .modal-dialog {
        margin: 12px;
    }

    .route-modal .modal-header {
        padding: 20px 18px 12px;
    }

    .route-modal .modal-body {
        padding: 10px 18px 20px;
    }

    .route-modal .modal-title {
        font-size: 18px;
    }

    .route-option {
        padding: 14px 12px;
        gap: 10px;
    }

    .route-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .route-info strong {
        font-size: 14px;
    }

    .route-info small {
        font-size: 11px;
    }
}





.contact-group {
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid;
    border-radius: 11px;
    background: #fff;
}

.sale-group {
    border-color: #cfe3ff;
}

.service-group {
    border-color: color-mix(in srgb, var(--silver-color) 40%, transparent);

}

.contact-group-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 10px 16px;
    margin-bottom: 3px;
}

.sale-group .contact-group-heading {
    background: #edf5ff;
    border-bottom: 1px solid #d6e7ff;
}

.service-group .contact-group-heading {
    background: color-mix(in srgb, var(--silver-color) 20%, transparent);
    border-bottom: color-mix(in srgb, var(--silver-color) 40%, transparent);
}

.contact-group-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}


.sale-group .contact-group-title strong {
    color: #092e61;
}

.service-group .contact-group-title strong {
    color: black;

}

.contact-group-title span {
    font-size: 13px;
}

.sale-group .contact-group-title span {
    color: #587ba9;
}

.service-group .contact-group-title span {
    color: background: rgb(0 0 0 / 50%);

}

.contact-group-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

.sale-icon {
    color: var(--blue-color);
    background: color-mix(in srgb, var(--blue-color) 20%, transparent);
}

.service-icon {
    color:black;
    background: color-mix(in srgb, var(--silver-color) 20%, transparent);
}

/* ردیف هر شماره */
.contact-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 28px;
    padding: 5px 0;
    border-bottom: 1px solid #e6edf5;
}

    .contact-phone-row:last-child {
        border-bottom: none;
    }

.contact-phone-number {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    flex: 1;
    text-align: right;
}

    .contact-phone-number strong {
        color: #5a769e;
        font-size: 13px;
        font-weight: 500;
    }

    .contact-phone-number span {
        color: #355985;
        font-size: 15px;
        direction: ltr;
        text-align: right;
        overflow-wrap: anywhere;
    }

/* دکمه تماس هر شماره */
.contact-call-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 112px;
    padding: 8px 16px;
    border-radius: 28px;
    color: #fff !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity .2s ease;
}

    .contact-call-link:hover {
        opacity: .85;
    }

.contact-call-sale {
    background: var(--blue-color);
}

.contact-call-service {
    background: black;
}

.contact-call-link i {
    font-size: 18px;
}

/* پیام نبود شماره */
.contact-empty {
    padding: 16px;
    color: #8190a5;
    font-size: 13px;
    text-align: center;
}

/* راهنمای پایین مودال */
.contact-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 10px;
    background: #f1f6fc;
    color: #617998;
    font-size: 13px;
}

    .contact-hint i {
        font-size: 22px;
    }

/* نمایش در موبایل */
@media (max-width: 575.98px) {
    .contact-modal .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .contact-heading {
        gap: 13px;
        padding: 30px 16px 20px;
    }

    .contact-heading-icon {
        width: 55px;
        height: 55px;
        font-size: 25px;
    }

    .contact-heading-text h5 {
        font-size: 18px;
    }

    .contact-heading-text p {
        font-size: 12px;
    }

    .contact-body {
        padding: 8px 12px 18px;
    }

    .contact-group-heading {
        gap: 12px;
        padding: 12px;
    }

    .contact-group-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .contact-group-title strong {
        font-size: 14px;
    }

    .contact-group-title span {
        font-size: 11px;
    }

    .contact-phone-row {
        margin: 0 12px;
        padding: 13px 0;
        gap: 8px;
    }

    .contact-phone-number strong {
        font-size: 11px;
    }

    .contact-phone-number span {
        font-size: 12px;
    }

    .contact-call-link {
        min-width: 80px;
        padding: 10px;
        gap: 7px;
        font-size: 12px;
    }

        .contact-call-link i {
            font-size: 15px;
        }

    .contact-hint {
        padding: 12px;
        font-size: 11px;
    }
}


.dealer-type-group {
    display: flex;
    align-items: center;
    gap: 14px;
    direction: rtl;
}

.dealer-type-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 24px;
    border: 2px solid #f0f1f8;
    border-radius: 50px;
    background: #fff;
    color: #191919;
    cursor: pointer;
    user-select: none;
    margin: 0;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.dealer-type-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}



.dealer-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.8px solid #222;
    border-radius: 50%;
    background: transparent;
    transition: background .25s ease, border-color .25s ease;
}

    .dealer-type-icon svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: #fff;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0;
        transition: opacity .2s ease;
    }

/* حالت انتخاب‌شده */
.dealer-type-option:has(.dealer-type-checkbox:checked) {
    background: #191919;
    border-color: #191919;
    color: #fff;
}

.dealer-type-checkbox:checked ~ .dealer-type-icon {
    background: #191919;
    border-color: #fff;
}

    .dealer-type-checkbox:checked ~ .dealer-type-icon svg {
        opacity: 1;
    }

/* فوکوس کیبورد */
.dealer-type-checkbox:focus-visible ~ .dealer-type-icon {
    outline: 3px solid #b8c7e8;
    outline-offset: 3px;
}

@media (max-width: 576px) {
    .dealer-type-group {
        gap: 10px;
    }
}

