/***** PAGE SHELL *****/

header.desktop.blue-bg nav {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body {
    background-color: #0D0D0D;
}

header.mobile {
    background: #0D0D0D;
    min-height: 100px;
}

header.mobile .navbar {
    min-height: 101px;
    padding-bottom: 0;
    margin-bottom: 0;
}

h1 {
    margin-top: 134px;
    color: #FFFFFF;
    font-family: "BigShouldersDisplay-Bold", sans-serif;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

/***** FILTER TOGGLES *****/

.switch-container .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1B1B1B;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch-container .slider.round {
    height: 24px;
    border-radius: 34px;
    top: 12%;
    right: 2px;
}

.switch-container .switch input {
    display: none;
}

.switch-container .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    float: right;
    margin: 0;
}

.switch-container .slider.round:before {
    border-radius: 50%;
}

.switch-container .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 1px;
    background-color: #FFFFFF;
    -webkit-transition: .4s;
    transition: .4s;
    border: 0.5px solid #FFFFFF;
}

.switch-container input.default:checked + .slider:before {
    background-color: #CC0000;
    border: 0.5px solid #CC0000;
}

.switch-container input.default:checked + .slider {
    background-color: #FFFFFF;
}

.switch-container input:checked + .slider:before {
    -webkit-transform: translateX(31px);
    -ms-transform: translateX(31px);
    transform: translateX(31px);
}

.switch-container .list-group-item {
    height: 32px;
    background: transparent;
    border: 1px solid #ACACAC;
    border-radius: 34px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Rubik-Regular", sans-serif;
    color: #A8A8A8;
    padding-left: 0.75rem;
}

.switch-container .list-group-item.active-list {
    border-color: #CC0000;
    color: #FFFFFF;
}

.switch-container .list-group-item label {
    margin: 0;
}

.switch-container.list-group-flush>.list-group-item:last-child {
    border-bottom-width: 1px;
}

ul.switch-container.list-group.list-group-flush {
    margin-bottom: 16px;
}

.switch-container .list-group-item.active-box {
    color: #CC0000;
}

/***** SEARCH CONTROLS *****/

.dealer-search-container {
    position: relative;
    margin-bottom: 16px;
}

.dealer-search-container input, .dealer-search-container select {
    border-radius: 22px;
    background-color: #EDEDED;
    font-family: "Rubik-Regular", sans-serif;
}

.dealer-search-container img {
    position: absolute;
    right: 10px;
    top: 20%;
    max-width: 20px;
    max-height: 20px;
}

/***** DEALER CARDS *****/

.dealers-container .divider {
    width: 100px;
    height: 4px;
    background-color: #FFFFFF;
    border-radius: 7px;
    margin: 8px auto 4px auto;
}

.dealers-container .dealer-card {
    background-color: #8E8E8E;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 16px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.dealers-container .dealer-card .dealer-link {
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.dealers-container .dealer-card .dealer-title {
    font-family: "Rubik-Medium", sans-serif;
    font-size: .8rem;
    color: #FFFFFF;
    line-height: 1rem;
}

.dealers-container .dealer-card .dealer-details {
    font-family: "Rubik-Regular", sans-serif;
    font-size: .8rem;
    color: #000000;
    line-height: 1rem;
}

.dealers-container .dealer-card p {
    margin: 0;
}

.dealers-container {
    transition: all 0.2s ease;
}

.dealers-container.open-panel {
    max-height: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    top: 162px;
}

#dealers-trigger {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
    font-family: 'Rubik-Regular', sans-serif;
    font-size: 13px;
    color: #FFFFFF;
    cursor: pointer;
}

/***** MAP LAYOUT *****/

.map-container {
    height: 100vh;
}

#map {
    position: relative;
    height: inherit;
}

.desktop .col-4 {
    padding-right: 0;
}

.desktop .col-8 {
    padding-left: 0;
}

.dealers-section > .desktop {
    margin-top: 88px;
}

.desktop .map-container {
    max-height: calc(100vh - 88px);
    height: 100%;
}

.dealers-container.mobile.open-panel .container-fluid .col-6.custom-left {
    padding-left: 4px;
}

.dealers-container.mobile.open-panel .container-fluid .col-6.custom-right {
    padding-right: 4px;
}

.col-8.custom-col-12 {
    padding: 0;
}

.dealers-container.mobile > .container-fluid:not(.grid) {
    z-index: 9;
    background-color: #0D0D0D;
    transition: bottom 0.5s ease;
}

.dealers-container.mobile.open-panel > .container-fluid:not(.grid) {
    position: fixed;
}

.dealers-container.mobile.open-panel > .container-fluid:not(.grid) {
    bottom: auto;
}

h1.mobile.open-panel-title {
    position: fixed;
    width: 100%;
    height: 48px;
    z-index: 9;
    margin-top: 0;
    padding-top: 120px;
    padding-bottom: 40px;
    background: #000000;
}
.select-wrapper select {
appearance: none; /* clave */
-webkit-appearance: none;
-moz-appearance: none;

padding-right: 30px; /* espacio para tu flecha */
}

/* contenedor */
.select-wrapper {
position: relative;
display: inline-block;
width: 100%;
}

/* flecha custom */
.select-wrapper::after {
content: "";
position: absolute;
right: 10px; /* acá la movés hacia adentro */
top: 50%;
transform: translateY(-50%);
pointer-events: none;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
width: 20px;
height: 20px;
}


/***** RESPONSIVE ADJUSTMENTS *****/

@media only screen and (max-width: 1023px) {
    .dealers-container .dealer-card {
        width: calc(100% - 30px);;
    }

    .dealer-search-container img {
        position: absolute;
        right: 8px;
        top: 7px;
    }

    .dealer-search-container {
        margin-bottom: 16px;
    }

    .dealers-container.mobile.open-panel .container-fluid.grid {
        /*margin-top: 204px; descomentar cuando haya filtros visibles*/
        margin-top: 174px;
    }

    .col-8.custom-col-12 {
        position: relative;
    }

    h1 {
        font-size: 24px;
        margin-top: 120px;
        border-bottom: 2px solid #003C80;
        margin-bottom: 0;
        padding-bottom: 1rem;
    }

    footer {
        border-top: 2px solid #003C80;
    }

    .custom-col-12 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100% !important;
    }

    .dealers-section > .container-fluid {
        padding-right: 0;
        padding-left: 0;
    }

    .dealers-container {
        position: absolute;
        bottom: 0;
        background-color: #0D0D0D;
        left: 0;
        padding: 0 15px;
        z-index: 7;
        max-height: 240px;
        overflow-y: scroll;
        transition: all 0.5s ease;
        border-top-left-radius: 48px;
        border-top-right-radius: 48px;
        width: 100%;
    }

    .map-container {
        min-height: 700px;
    }

    .switch-container .switch {
        height: 28px;
    }

    .switch-container .slider.round {
        border-radius: 44px;
        top: 6%;
    }
}

@media only screen and (min-width: 1024px) {
    h1 {
        margin-top: 0;
        font-size: 1.6rem;
        text-align: left;
        margin-bottom: 20px;
    }

    .dealers-section .col-4.custom-col-12 > .container-fluid {
        padding-top: 87px;
        position: fixed;
        top: 0;
        z-index: 9;
        background-color: #0D0D0D;
        max-width: 31.333333%;
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        padding-bottom: 16px;
    }

    .dealers-container {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .dealers-container .dealer-card {
        margin-right: 15px;
        width: calc(100% - 30px);
    }

    .switch-container input:checked + .slider:before {
        -webkit-transform: translateX(31px);
        -ms-transform: translateX(31px);
        transform: translateX(31px);
    }

    .dealers-container {
        padding-top: 15px;
        padding-bottom: 15px;
        /* margin-top: 290px; descomentar cuando haya filtros visibles */
        margin-top: 262px;
    }

    .dealers-section .col-4 {
        max-height: 100vh;
        overflow-y: auto;
    }

    .dealers-section .col-4.custom-col-12 .container-fluid.desktop .col-6.no-padding-left {
        padding-left: 0;
        padding-right: 4px;
    }

    .dealers-section .col-4.custom-col-12 .container-fluid.desktop .col-6.no-padding-right {
        padding-right: 0;
        padding-left: 4px;
    }
}

/* Para navegadores WebKit (Chrome, Safari, Edge) */
/***** CUSTOM SCROLLBAR *****/

main .col-4::-webkit-scrollbar {
    width: 12px; /* Ancho de la barra */
}

main .col-4::-webkit-scrollbar-track {
    background: #323232; /* Fondo de la pista */
    border-radius: 6px;
}

main .col-4::-webkit-scrollbar-thumb {
    background-color: #888888; /* Color del scroll */
    border-radius: 6px;
    border: 3px solid #323232; /* Espacio entre el dedo y la pista */
}

main .col-4::-webkit-scrollbar-thumb:hover {
    background-color: #888888; /* Hover mÃƒÂ¡s oscuro */
}

/* Firefox (versiÃƒÂ³n moderna) */
@supports (scrollbar-color: auto) {
    main .col-4 {
        scrollbar-width: thin; /* Opciones: auto | thin | none */
        scrollbar-color: #888888 #323232; /* thumb color | track color */
    }
}

/***** MAP INFO WINDOW *****/

.gm-style .gm-style-iw-c {
    padding-top: 16px !important;
}

.gm-style .gm-style-iw-c .gm-style-iw-chr {
    position: absolute;
    right: 13px;
    top: -7px;
}

.gm-style-iw-chr button {
    width: 24px !important;
    height: 24px !important;
}
