/* Frontend Styles - Mapa de Distribuidores */


.mapa-distribuidores-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.mapa-distribuidores-grid {
    display: grid;
    grid-template-columns: 550px 1fr ;
    gap: 30px;
    margin: 0 auto;
    max-width: 1140px;
}

/* Coluna de InformaÃ§Ãµes - Agora Ã  esquerda */
.info-column {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.info-column::before {
    display: none;
}

.info-header {
    margin-bottom: 10px;
    padding-left: 0;
}

.info-header h2 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 0.9em;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-align: left;
}

.info-header p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 10px;
    text-align: left;
    max-width: 380px;
}

/* Seletor de Estado */
.estado-selector {
    margin-bottom: 15px;
    padding-left: 0;
}

.estado-selector label {
    display: none;
}

.estado-select {
    width: 100%;
    padding: 5px 10px 5px 25px;
    border-radius: 30px;
    background: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    text-align: left;
}

 

 

/* Container da Lista de Distribuidores */
.distribuidores-list-container {
    flex: 1;
    padding-left: 0;
    border: 1px solid #df4198;
    border-radius: 30px;

}

/* Fix para conflito com Smooth Scroll */
.distribuidores-list {
    display: flex;
    flex-direction: column;
    align-content: center;
    border-radius: 0;
    height: 260px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 15px;
    border: none;
    position: relative;
}

.distribuidores-list::-webkit-scrollbar {
    width: 8px;
}

.distribuidores-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.distribuidores-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.distribuidores-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Items da Lista */

.distribuidor-item {
    display: flex;
    padding: 8px 10px 8px 10px;
    border-bottom: 1px solid #3d3d3d;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    align-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    z-index: 0;
    background: none;
}

 

.distribuidor-item:hover {
  background: rgba(255, 255, 255, 0.05);
 
}

.distribuidor-item:hover::before {
    opacity: 1;
}

.distribuidor-item:last-child {
    border-bottom: 0;
}

.distribuidor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0px;
    position: relative;
    z-index: 1;
}

.distribuidor-icon {
    width: 24px;
    height: 24px;
    color: #e60881;
    flex-shrink: 0;
}

.distribuidor-nome {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    line-height: 1.3;
}

.distribuidor-cidade {
    color: #cccccc;
    font-size: 12px;
    margin: 0;
    padding-left: 36px;
    position: relative;
    font-weight: 400;
    z-index: 1;
}

/* Coluna do Mapa - Agora Ã  direita */
.mapa-column {
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mapa-column::before {
    display: none;
}

.mapa-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

#mapa-brasil {
    max-width: 100%;
    height: auto;
 
    transition: transform 0.3s ease;
}

#mapa-brasil:hover {
  
}

/* Estados do Mapa */
.estado {
    cursor: pointer;
    transition: all 0.3s ease;
}

.estado path {
    fill: #fff;
    stroke: #e4e4e4;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.estado path.circle {
    fill: #fff;
    stroke: #e4e4e4;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.estado:hover path {
    fill: #e60881;
    stroke: #ffffff;
    transform-origin: center;
}

.estado.active path {
    fill: #e60881;
    stroke: #ffffff;
}

.estado text {
    fill: #333;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 12px;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.estado:hover text {
    fill: #fff;
    color: #ffffff!important;
}

.estado.active text {
    fill: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Estados Vazios */
.no-distribuidores {
    display: flex;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    color: #cccccc;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.no-distribuidores-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 5px;
    color: rgba(255, 255, 255, 0.3);
}

.no-distribuidores h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 12px;
    font-weight: 600;
}

.no-distribuidores p {
    margin: 0;
    line-height: 1.5;
    color: #cccccc;
}

/* BotÃ£o WhatsApp */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 24px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Loading State */
.loading-distribuidores {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #cccccc;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #e60881;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SweetAlert2 Customization */
.swal2-popup {
    border-radius: 20px !important;
    padding: 15px !important;
}

.swal2-title {
    color: #171717 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin:0;
    padding: 15px 0 0 30px ;
    text-align: left;
}

.swal2-html-container {
    color: #64748b !important;
    line-height: 1.3 !important;
}

.distribuidor-details {
    text-align: left;
    max-width: 100%;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    padding: 10px;
    background: #f3f3f3a8;
    border-radius: 8px;
    justify-content: center;
}

.detail-icon {
    width: 20px;
    height: 20px;
    color: #e60881;
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-weight: 600;
    color: #171717;
    font-size: 14px;
    margin-bottom: 4px;
}

.detail-value {
    color: #171717;
    font-size: 14px;
    line-height: 1.4;
}

.detail-value a {
    text-decoration: underline;
    text-underline-offset:5px;
    text-decoration-color: #1717174f;
    transition: color 0.2s ease;
}

.detail-value a:hover {
    color: #e60881;
    text-decoration: underline;
}


button.swal2-close {
    color: #e60881
}

button.swal2-close:hover {
    color: #e608817d
}

div#swal2-html-container {
    padding: 15px 15px 10px 15px;
    margin:0;
    width: 100%;
}


/* Responsive Design */
@media (max-width: 768px) {
    .mapa-distribuidores-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mapa-column {
        order: -1;
        padding: 30px 20px;
        min-height: 300px;
    }
    
    .info-column {
        padding: 30px 20px;
    }
    
    .info-header h2 {
        font-size: 32px;
    }
    
    .info-header,
    .estado-selector,
    .distribuidores-list-container {
        padding-left: 0;
    }
    
    .distribuidores-list {
    
    }
    
    .distribuidor-item {
        padding: 8px;
    }
    
    .distribuidor-nome {
        font-size: 14px;
    }
    
    .distribuidor-cidade {
        font-size: 11px;
        padding-left: 32px;
    }
}

@media (max-width: 480px) {
    .mapa-distribuidores-container {
        border-radius: 0;
        margin: 0 -20px;
    }
    
    .mapa-column,
    .info-column {
        padding: 20px 15px;
    }
    
    .info-header h2 {
        font-size: 28px;
    }
    
    .info-header p {
        font-size: 14px;
    }
    
    .estado-select {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .distribuidores-list {
        padding: 0;
    }
    
    .distribuidor-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .detail-item {
        padding: 8px;
        margin-bottom: 12px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #mapa-brasil {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Controle de scroll quando SweetAlert estiver aberto */
body.swal2-shown {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 0 !important;
}

body.swal2-height-auto {
    height: auto !important;
}

/* Prevenir scroll horizontal no container do SweetAlert */
.swal2-container {
    overflow-x: hidden !important;
}

.swal2-popup {
    overflow-x: hidden !important;
}

/* Dark Mode Support - JÃ¡ estÃ¡ otimizado para fundo escuro */
@media (prefers-color-scheme: dark) {
    .info-column {
        background: transparent;
        color: #e2e8f0;
    }
    
    .info-header h2 {
        color: #ffffff;
    }
    
    .info-header p {
        color: #cccccc;
    }
    
    .estado-selector label {
        color: #e2e8f0;
    }
    
    .estado-select {
        background: #171717;
        color: #fff;
        border-color: #fff;
    }
    
    .distribuidores-list {
        background: transparent;
        border-color: transparent;
    }
    
    .distribuidor-item {
        color: #e2e8f0;
    }
    
    .distribuidor-nome {
        color: #ffffff;
    }
    
    .distribuidor-cidade {
        color: #cccccc;
    }
}


/* Remove Outlines - Mapa de Distribuidores */
.mapa-distribuidores-container *,
.mapa-distribuidores-container *:focus,
.mapa-distribuidores-container *:active,
.mapa-distribuidores-container *:hover,
.mapa-distribuidores-admin *,
.mapa-distribuidores-admin *:focus,
.mapa-distribuidores-admin *:active,
.mapa-distribuidores-admin *:hover {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
}

.mapa-distribuidores-container button,
.mapa-distribuidores-container button:focus,
.mapa-distribuidores-container button:active,
.mapa-distribuidores-container a,
.mapa-distribuidores-container a:focus,
.mapa-distribuidores-container a:active,
.mapa-distribuidores-container input,
.mapa-distribuidores-container input:focus,
.mapa-distribuidores-container input:active,
.mapa-distribuidores-container select,
.mapa-distribuidores-container select:focus,
.mapa-distribuidores-container select:active,
.mapa-distribuidores-container textarea,
.mapa-distribuidores-container textarea:focus,
.mapa-distribuidores-container textarea:active,
.mapa-distribuidores-container button.swal2-close,
.mapa-distribuidores-containerbutton.swal2-close:focus
.estado,
.estado:focus,
.estado:active,
.distribuidor-item,
.distribuidor-item:focus,
.distribuidor-item:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
}

.mapa-distribuidores-admin button,
.mapa-distribuidores-admin button:focus,
.mapa-distribuidores-admin button:active,
.mapa-distribuidores-admin a,
.mapa-distribuidores-admin a:focus,
.mapa-distribuidores-admin a:active,
.mapa-distribuidores-admin input,
.mapa-distribuidores-admin input:focus,
.mapa-distribuidores-admin input:active,
.mapa-distribuidores-admin select,
.mapa-distribuidores-admin select:focus,
.mapa-distribuidores-admin select:active,
.mapa-distribuidores-admin textarea,
.mapa-distribuidores-admin textarea:focus,
.mapa-distribuidores-admin textarea:active,
.md3-button,
.md3-button:focus,
.md3-button:active,
.md3-icon-button,
.md3-icon-button:focus,
.md3-icon-button:active,
.md3-input,
.md3-input:focus,
.md3-input:active,
.md3-select,
.md3-select:focus,
.md3-select:active,
.md3-textarea,
.md3-textarea:focus,
.md3-textarea:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
}



/**
 * Ventura Web
 * https://venturaweb.com.br
 */