
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    margin: 0;
    overflow-x: hidden;
}


.dealerskv-container {
    position: relative;
    display: block;
    max-width: 100%;
    overflow: hidden;
    height: clamp(300px, 50vh, 600px);
}

.dealerskv-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dealerskv-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 5vw, 3.125rem);
    box-sizing: border-box;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0) 70%);
    justify-content: flex-end;
    align-items: flex-start;
}

.dealerskv-maintitle {
    color: #ffffff;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 0 2rem 0;
    max-width: 25ch;
    line-height: 1.2;
    white-space: normal;

}






.dealer-locations {
    width: 100%;
    padding: 0;
}


.title-section {
    text-align: center;
    padding: 40px 20px;
}

.title-section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    margin-bottom: 16px;
}

.title-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}


.tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 10px;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 10px;
    width: 100%;
    max-width: 1200px;
}

.tab-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    transition: transform 0.3s ease;
}

.tab-button:hover {
    transform: scale(1.1);
}

.flag-icon {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 4px;
}

.tab-button span {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}


.tab-button.active .flag-icon {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.tab-button.active span {
    color: #3B82F6;
    font-weight: 600;
}


.map-container {
    width: 100%;
    max-width: 100%;
    margin: 40px 0 0 0!important;
    padding: 0;
    display: flex;
    justify-content: center;
    top: -10px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.map-static {
    max-width: 2300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}





@media (max-width: 768px) {
    .flag-icon {
        width: 36px;
        height: 24px;
    }
    .tab-buttons {
        gap: 10px;
    }
    .country-flag span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .flag-icon {
        width: 32px;
        height: 22px;
    }
    .tab-buttons {
        gap: 8px;
        padding: 0 5px;
    }
    .country-flag {
        min-width: 50px;
    }
}

@media (max-width: 360px) {
    .tab-buttons {
        gap: 6px;
    }
    .country-flag {
        min-width: 45px;
    }
    .country-flag span {
        font-size: 10px;
    }
}


@media (max-width: 480px) {
    .dealerskv-maintitle {
        white-space: normal;
        max-width: 90%;
        margin-bottom: 1rem;
    }
}