﻿.directors-header {
    background-color: #f6f6f6;
    background-image: url('../img/corporate/banner-bg-image.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 495px;
    position: relative;
    padding: 0;
}

.dealers {
    padding: 80px 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.logo {
    filter: drop-shadow(2px 4px 6px rgb(255, 255, 255, 0,30));
    background-color: rgba(255, 255, 255, 0.5);
    /*backdrop-filter: blur(5px);*/
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

    .section-title:after {
        content: '';
        position: absolute;
        width: 80px;
        height: 3px;
        background-color: #ff0000;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

.main-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: absolute;
    z-index: -1;
    width: 100%;
}

.main-map {
    height: 500px;
    width: 100%;
}

.custom-accordion .accordion-item {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .custom-accordion .accordion-item:hover {
        box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    }

.custom-accordion .accordion-button {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background-color: #fff;
    border-left: 4px solid #ff0000;
    transition: all 0.3s ease;
}

    /*.custom-accordion .accordion-button:not(.collapsed) {
        color: #fff;
        background-color: #ff0000;
    }*/

    .custom-accordion .accordion-button:focus {
        box-shadow: none;
    }

/*.accordion-button:not(.collapsed)::after {
    filter: invert(90%) sepia(90%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    
}*/
#mainMap .leaflet-tile-pane {
    filter: grayscale(130%) contrast(130%) !important;
}

.map .leaflet-tile-pane {
    filter: grayscale(130%) contrast(130%) !important;
}

.leaflet-touch .leaflet-control-attribution, .leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    display: none !important;
}

.btn-check:focus + .btn-outline-primary, .btn-outline-primary:focus {
    box-shadow: none !important;
}

.btn-outline-primary {
    border: none;
    background-color: #1F1F1F;
    padding: .65rem;
    color: #fff !important;
    border-radius: 8px;
}

    .btn-outline-primary:hover {
        color: #fff !important;
        background-color: #ff0000;
        border: 1px solid #fff;
    }

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg) !important;
    filter: invert(20%) sepia(100%) saturate(6000%) hue-rotate(340deg) brightness(100%) contrast(100%);
}

.dealer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
}

.dealer-info {
    padding: 15px;
}

    .dealer-info h4 {
        font-size: 20px;
        font-weight: 600;
        color: #222;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

.info-group {
    display: flex;
    margin-bottom: 15px;
}

.info-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    font-size: 16px;
    margin-right: 15px;
}

.info-content {
    flex: 1;
}

    .info-content label {
        display: block;
        font-size: 13px;
        color: #777;
        margin-bottom: 3px;
        font-weight: 500;
    }

    .info-content p, .info-content a {
        font-size: 15px;
        color: #333;
        margin-bottom: 0;
        text-decoration: none;
    }

        .info-content a:hover {
            color: #ff0000;
        }

.dealer-map-container {
    height: 100%;
    min-height: 350px;
    padding: 15px;
}

.dealer-map {
    height: 100%;
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.branches-section {
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.branches-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.branches-accordion .accordion-item {
    margin-bottom: 10px;
}

.branch-item .accordion-button {
    font-size: 16px;
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-left: 4px solid #222222;
}

    .branch-item .accordion-button:not(.collapsed) {
        color: #fff;
        background-color: #222222;
    }

.branch-card {
    background-color: #fafafa;
}

.filter-container {
    max-width: 500px;
    margin: 0 auto 30px;
}

/* Responsive adjustments */
@@media (max-width: 992px) {
    .dealer-map-container {
        margin-top: 20px;
        min-height: 250px;
    }

    .main-map {
        height: 400px;
    }
}

@@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .main-map {
        height: 350px;
    }

    .dealer-map-container {
        min-height: 200px;
    }

    .dealer-map {
        min-height: 200px;
    }

    .custom-accordion .accordion-button {
        font-size: 16px;
        padding: 15px 20px;
    }
}

.leaflet-container a {
    color: #ff0000;
}
/* Marker styling for main map */
.branch-marker {
    background-color: #ac0808; /* Branch orange color from design */
    color: white;
    width: 24px !important;
    height: 24px !important;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.dealer-marker {
    background-color: #ff0000; /* Main red color from design */
    color: white;
    width: 32px !important;
    height: 32px !important;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
/* Border animation styles */
@keyframes border-expand {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

.header-img-osm {
    margin-right: 10px;
    border-right: 1px solid #dbdbdb;
    padding-right: 10px;
    max-height: 55px;
}
/* Remove the default left border from accordion buttons */
.custom-accordion .accordion-button {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background-color: #fff;
    border-left: none; /* Remove default border */
    transition: all 0.3s ease;
    position: relative; /* For the pseudo-element positioning */
}

    /* Add a pseudo-element for the animated border */
    .custom-accordion .accordion-button::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background-color: #ff0000;
    }

/* Create expanded state styling and animation */
.accordion-collapse.collapse.show {
    position: relative;
}

    .accordion-collapse.collapse.show::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        background-color: #ff0000;
        height: 100%;
        animation: border-expand 0.4s ease-out forwards;
    }

/* Keep the branch styling intact */
.branch-item .accordion-button {
    font-size: 16px;
    padding: 15px 20px;
    background-color: #f8f8f8;
    position: relative;
}

    .branch-item .accordion-button::before {
        background-color: #222222;
    }

.branch-item .accordion-collapse.collapse.show::before {
    background-color: #222222;
}
