/* ===== BREADCRUMBS ===== */
#breadcrumbs {
    padding: 100px 0 30px 0;
    background-color: #fff;
}
#breadcrumbs .page-title {
    color: #1B3A69;
    font-family: var(--font-BaksoSapi);
    font-size: 50px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 20px 0;
}
#breadcrumbs .page-desc {
    max-width: 700px;
    color: #00376A;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    margin: 0 auto;
}


/* ===== SEÇÃO MAPA ===== */
#mapa-franquias {
    background-color: #fff;
    padding: 0 0 80px 0;
}

.mapa-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 400px;
}


/* ===== PAINEL ESQUERDO ===== */
.mapa-info {
    width: 380px;
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Placeholder inicial */
.info-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 380px;
}

.info-placeholder-text {
    color: #00376A;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* Lista de franquias */
.info-lista {
    animation: fadeIn 0.3s ease;
}
.info-vazio {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.info-estado-nome {
    color: #1B3A69;
    font-family: var(--font-BaksoSapi);
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

/* Lista de franquias simples, sem card */
.franquia-item {
    padding: 0 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.franquia-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.franquia-item-nome {
    color: #0058A5;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.franquia-item-linha {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #4A5568;
    line-height: 1.5;
}
.franquia-item-linha:last-child {
    margin-bottom: 0;
}
.franquia-item-linha svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #E63331;
    margin-top: 2px;
}
.franquia-item-linha a {
    color: #0058A5;
    text-decoration: none;
}
.franquia-item-linha a:hover {
    text-decoration: underline;
}

/* Vazio */
.info-vazio-texto {
    color: #4A5568;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.btn-seja {
    display: inline-block;
    padding: 10px 26px;
    background-color: #E63331;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(230,51,49,0.3);
    transition: transform 0.2s ease;
    margin-bottom: 16px;
}
.btn-seja:hover {
    transform: scale(1.05);
    color: #fff;
}

/* Botão voltar */
.btn-limpar {
    display: inline-block;
    background: none;
    border: none;
    color: #0058A5;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    text-decoration: underline;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.btn-limpar:hover {
    opacity: 1;
}


/* ===== MAPA SVG (brmap.js) ===== */
.mapa-svg-wrapper {
    flex: 1;
    min-width: 0;
}

#brmap-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* Estilos do SVG gerado pelo brmap.js */
#brmap-container svg {
    display: block;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
}

/* Estado padrão (sem franquia) */
#brmap-container .state .shape {
    fill: #BCC4D0;
    stroke: #fff;
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.2s ease;
}

/* Estado com franquia */
#brmap-container .state.--com-franquia .shape {
    fill: #FF8802;
}

/* Hover em qualquer estado */
#brmap-container .state:hover .shape,
#brmap-container .state.--com-franquia:hover .shape {
    fill: #0058A5;
}

/* Estado ativo / selecionado */
#brmap-container .state.--ativo .shape,
#brmap-container .state.--com-franquia.--ativo .shape {
    fill: #0058A5 !important;
}

/* Remover underline das tags a dentro do mapa */
#brmap-container a, #brmap-container a:hover {
    text-decoration: none !important;
}

/* Mudar a cor do texto para branco no hover/ativo */
#brmap-container .state:hover text.circle_state,
#brmap-container .state.--ativo text.circle_state {
    fill: #FFFFFF !important;
}

/* Círculos e labels do brmap */
#brmap-container circle.circle_state {
    display: none !important;
}
#brmap-container text.circle_state {
    cursor: pointer;
    transition: fill 0.2s ease;
}
#brmap-container .label_icon_state {
    fill: #0058A5;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-Gibson), sans-serif;
}


/* ===== SEÇÃO SEJA FRANQUEADO ===== */
#seja-franqueado {
    position: relative;
    padding: 80px 0 100px 0;
    background-color: #1B3A69;
    overflow: hidden;
}
#seja-franqueado::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(148,75,150,0.25) 0%, transparent 70%);
    pointer-events: none;
}
#seja-franqueado::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,88,165,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.seja-titulo {
    color: #fff;
    font-family: var(--font-BaksoSapi);
    font-size: 42px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
}
.seja-desc {
    color: rgba(255,255,255,0.75);
    font-size: 18px;
    text-align: center;
    margin: 0 0 50px 0;
}

.form-franqueado .form-control-custom {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    height: 55px;
    padding: 10px 30px;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    width: 100%;
    transition: all 0.2s ease-in-out;
}
.form-franqueado .form-control-custom::placeholder {
    color: rgba(255,255,255,0.5);
    opacity: 1;
}
.form-franqueado .form-control-custom:focus {
    outline: none;
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.form-franqueado .form-control-custom.--textarea {
    border-radius: 20px;
    height: 160px;
    padding: 20px 30px;
    resize: none;
}

.botao-enviar {
    display: block;
    width: fit-content;
    padding: 14px 70px;
    background-color: #E63331;
    border-radius: 50px;
    border: none;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(230,51,49,0.4);
    line-height: normal;
    margin: 30px auto 0 auto;
    transition: all 0.15s ease-in-out;
}
.botao-enviar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(230,51,49,0.5);
}


/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .mapa-wrapper {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .mapa-info {
        width: 100%;
        min-width: unset;
    }
    .info-placeholder {
        min-height: 80px;
    }
    #brmap-container {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    #breadcrumbs { padding: 80px 0 40px 0; }
    #breadcrumbs .page-title { font-size: 36px; }
    #breadcrumbs .page-desc  { font-size: 15px; }
    .seja-titulo { font-size: 30px; }
    .seja-desc   { font-size: 16px; }
    .botao-enviar { font-size: 18px; padding: 12px 50px; }
}
