/* =========================================================
   99 DA BELEZA
   CSS PRINCIPAL
   Arquivo:
   assets/css/99beleza.css

   Compatível com:
   index_beleza.php
   assets/js/99beleza.js
   ========================================================= */


/* =========================================================
   1. VARIÁVEIS
   ========================================================= */

:root {

    --rosa: #e91e8f;

    --rosa-escuro: #c21878;

    --roxo: #8b1fc7;

    --roxo-escuro: #6515a0;

    --texto: #252229;

    --texto-secundario: #77727b;

    --fundo: #f8f7fa;

    --branco: #ffffff;

    --borda: #ece8ef;

    --sombra:
        0 8px 30px rgba(70, 30, 80, .08);

    --gradiente:
        linear-gradient(
            135deg,
            #e91e8f 0%,
            #b51bd1 55%,
            #7b1fc7 100%
        );
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--fundo);
    color: var(--texto);
    line-height: 1.5;
}


button,
input,
select,
textarea {
    font-family: inherit;
}


button {
    -webkit-tap-highlight-color: transparent;
}


a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   3. CABEÇALHO
   ========================================================= */

.topo {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(255, 255, 255, .97);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid #eee;

    box-shadow:
        0 3px 20px rgba(0, 0, 0, .05);
}


.topo-interno {

    width: 94%;

    max-width: 1250px;

    min-height: 78px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   4. LOGO
   ========================================================= */

.logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;
}


.logo img {

    display: block;

    width: 185px;

    height: auto;

    max-height: 65px;

    object-fit: contain;
}


/* =========================================================
   5. NAVEGAÇÃO
   ========================================================= */

.navegacao {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    flex: 1;
}


.navegacao a {

    padding: 10px 14px;

    border-radius: 9px;

    color: #55505a;

    font-size: 14px;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;
}


.navegacao a:hover {

    background: #f8e8f3;

    color: var(--rosa-escuro);
}


.navegacao .ativo {

    color: var(--rosa-escuro);
}


/* =========================================================
   6. AÇÕES DO TOPO
   ========================================================= */

.acoes-topo {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


.btn-entrar {

    border: 1px solid #e1dce4;

    background: #fff;

    color: #4e4851;

    padding: 10px 16px;

    border-radius: 9px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;
}


.btn-entrar:hover {

    border-color: var(--rosa);

    color: var(--rosa-escuro);
}


.btn-cadastrar {

    border: none;

    background: var(--gradiente);

    color: #fff;

    padding: 11px 17px;

    border-radius: 9px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(190, 30, 150, .20);

    transition: .2s ease;
}


.btn-cadastrar:hover {

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(190, 30, 150, .28);
}


/* =========================================================
   7. MENU MOBILE
   ========================================================= */

.menu-mobile {

    display: none;

    width: 42px;

    height: 42px;

    border: 1px solid #e5e1e8;

    background: #fff;

    color: #333;

    border-radius: 9px;

    cursor: pointer;

    font-size: 20px;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   8. HERO
   ========================================================= */

.hero {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #fff 0%,
            #fff8fc 50%,
            #f8efff 100%
        );

    border-bottom: 1px solid #eee;
}


.hero::before {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(233, 30, 143, .12),
            transparent 70%
        );

    right: -120px;

    top: -180px;

    pointer-events: none;
}


.hero-interno {

    position: relative;

    z-index: 1;

    width: 94%;

    max-width: 1150px;

    margin: auto;

    padding: 65px 0 55px;

    text-align: center;
}


.hero-etiqueta {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 13px;

    border-radius: 30px;

    background: #fff;

    border: 1px solid #f0d9e9;

    color: var(--rosa-escuro);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 18px;
}


.hero h1 {

    max-width: 800px;

    margin: auto;

    font-size: clamp(32px, 5vw, 52px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    color: var(--texto);
}


.hero h1 span {

    background: var(--gradiente);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.hero p {

    max-width: 650px;

    margin: 18px auto 28px;

    color: var(--texto-secundario);

    font-size: 17px;
}


/* =========================================================
   9. PAINEL DE LOCALIZAÇÃO
   ========================================================= */

.painel-localizacao {

    width: 94%;

    max-width: 800px;

    margin: -20px auto 30px;

    position: relative;

    z-index: 10;
}


.painel {

    background: #fff;

    padding: 20px;

    border-radius: 16px;

    border: 1px solid var(--borda);

    box-shadow:
        0 12px 35px rgba(50, 20, 60, .10);
}


.localizacao-linha {

    display: flex;

    align-items: center;

    gap: 15px;
}


.localizacao-icone {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background: #fce8f5;

    font-size: 23px;
}


.localizacao-texto {

    flex: 1;

    min-width: 0;
}


.localizacao-texto h2 {

    font-size: 17px;

    margin-bottom: 3px;
}


.localizacao-texto p {

    color: var(--texto-secundario);

    font-size: 13px;
}


#btnGPS {

    border: none;

    background: var(--gradiente);

    color: #fff;

    padding: 13px 20px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    box-shadow:
        0 5px 15px rgba(190, 30, 150, .20);

    transition: .2s ease;
}


#btnGPS:hover {

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(190, 30, 150, .28);
}


#btnGPS:disabled {

    background: #aaa;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


#statusLocalizacao {

    margin-top: 15px;

    padding: 12px;

    background: #faf9fb;

    border-radius: 9px;

    border: 1px solid #eee;

    color: #666;

    font-size: 13px;
}


/* =========================================================
   10. CONTAINER PRINCIPAL
   ========================================================= */

.container {

    width: 94%;

    max-width: 1250px;

    margin: 0 auto 50px;
}


/* =========================================================
   11. TÍTULO DA SEÇÃO
   ========================================================= */

.secao-topo {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}


.secao-topo h2 {

    font-size: 24px;

    letter-spacing: -.5px;
}


.secao-topo p {

    color: var(--texto-secundario);

    font-size: 13px;

    margin-top: 3px;
}


.ver-todos {

    color: var(--rosa-escuro);

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   12. CONTEÚDO MAPA + LISTA
   ========================================================= */

.conteudo {

    display: grid;

    grid-template-columns: 400px 1fr;

    gap: 22px;

    align-items: start;
}


/* =========================================================
   13. LISTA
   ========================================================= */

.lista {

    background: #fff;

    border-radius: 16px;

    padding: 18px;

    border: 1px solid var(--borda);

    box-shadow: var(--sombra);

    max-height: 580px;

    overflow-y: auto;
}


.lista::-webkit-scrollbar {

    width: 6px;
}


.lista::-webkit-scrollbar-thumb {

    background: #ddd;

    border-radius: 20px;
}


.lista > h2 {

    display: none;
}


/* =========================================================
   14. SEM RESULTADOS
   ========================================================= */

.sem-resultados {

    color: #777;

    padding: 35px 15px;

    text-align: center;

    font-size: 14px;
}


.icone-sem-resultados {

    font-size: 35px;

    margin-bottom: 10px;
}


/* =========================================================
   15. CARD DO ESTABELECIMENTO
   ========================================================= */

.estabelecimento {

    position: relative;

    border: 1px solid #eee9f0;

    border-radius: 14px;

    padding: 15px;

    margin-bottom: 13px;

    background: #fff;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.estabelecimento:last-child {

    margin-bottom: 0;
}


.estabelecimento:hover {

    transform: translateY(-2px);

    border-color: #ecc5df;

    box-shadow:
        0 8px 22px rgba(70, 30, 80, .10);
}


/* =========================================================
   16. ESTRUTURA INTERNA DO CARD
   ========================================================= */

.card-salao {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 13px;
}


.card-salao-conteudo {

    width: 100%;
}


.card-salao-conteudo h3 {

    margin: 0 0 9px;

    color: var(--texto);

    font-size: 17px;

    line-height: 1.3;

    font-weight: 700;
}


.card-salao-conteudo h3:first-letter {

    color: var(--rosa);
}


/* =========================================================
   17. DISTÂNCIA
   ========================================================= */

.distancia {

    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding: 5px 9px;

    border-radius: 20px;

    background: #fceaf5;

    color: var(--rosa-escuro);

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 7px;
}


/* =========================================================
   18. AVALIAÇÃO
   ========================================================= */

.avaliacao {

    color: #777;

    font-size: 13px;

    margin-top: 5px;
}


/* =========================================================
   19. HORÁRIO
   ========================================================= */

.horario {

    color: #777;

    font-size: 13px;

    margin-top: 5px;
}


/* =========================================================
   20. AÇÕES DO CARD
   ========================================================= */

.card-salao-acoes {

    display: flex;

    flex-direction: column;

    gap: 8px;

    width: 100%;
}


/* =========================================================
   21. BOTÃO VER SALÃO
   ========================================================= */

.btn-ver-salao {

    display: block;

    width: 100%;

    min-height: 42px;

    border: none;

    background: var(--gradiente);

    color: #fff;

    padding: 10px 12px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    text-align: center;

    position: relative;

    z-index: 5;

    touch-action: manipulation;

    -webkit-appearance: none;

    appearance: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.btn-ver-salao:hover {

    transform: translateY(-1px);

    box-shadow:
        0 6px 15px rgba(190, 30, 150, .22);
}


.btn-ver-salao:active {

    transform: scale(.98);
}


/* =========================================================
   22. BOTÃO VER NO MAPA
   ========================================================= */

.btn-ver-mapa {

    display: block;

    width: 100%;

    min-height: 42px;

    margin-top: 0;

    border: 1px solid #ead4e4;

    background: #fff;

    color: var(--rosa-escuro);

    padding: 10px 12px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    text-align: center;

    position: relative;

    z-index: 5;

    touch-action: manipulation;

    -webkit-appearance: none;

    appearance: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.btn-ver-mapa:hover {

    background: #fdf0f8;

    border-color: var(--rosa);
}


.btn-ver-mapa:active {

    transform: scale(.98);
}


/* =========================================================
   23. MAPA
   ========================================================= */

.mapa-container {

    position: sticky;

    top: 100px;

    min-width: 0;
}


#map {

    width: 100%;

    height: 580px;

    border-radius: 16px;

    overflow: hidden;

    border: 1px solid var(--borda);

    box-shadow: var(--sombra);

    background: #eaeaea;
}


/* =========================================================
   24. LEAFLET
   ========================================================= */

.leaflet-container {

    font-family: 'Inter', Arial, sans-serif;

    z-index: 1;
}


.leaflet-popup-content-wrapper {

    border-radius: 10px;
}


.leaflet-popup-content {

    margin: 12px;

    font-size: 13px;
}


/* =========================================================
   25. RODAPÉ
   ========================================================= */

.rodape {

    margin-top: 60px;

    background: #24202a;

    color: #fff;
}


.rodape-interno {

    width: 94%;

    max-width: 1250px;

    margin: auto;

    padding: 35px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.rodape-logo {

    display: inline-block;

    background: #fff;

    border-radius: 8px;

    padding: 5px 10px;
}


.rodape-logo img {

    width: 145px;

    display: block;
}


.rodape p {

    color: #aaa;

    font-size: 12px;
}


.rodape-links {

    display: flex;

    gap: 20px;

    color: #ccc;

    font-size: 13px;
}


.rodape-links a:hover {

    color: #fff;
}


/* =========================================================
   26. TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .navegacao {

        gap: 3px;
    }


    .navegacao a {

        padding-left: 9px;

        padding-right: 9px;

        font-size: 13px;
    }


    .conteudo {

        grid-template-columns: 340px 1fr;
    }


    .logo img {

        width: 165px;
    }

}


/* =========================================================
   27. TABLET MENOR
   ========================================================= */

@media (max-width: 900px) {

    .navegacao {

        display: none;
    }


    .menu-mobile {

        display: flex;
    }


    .topo-interno {

        min-height: 68px;
    }


    .conteudo {

        grid-template-columns: 1fr;
    }


    .lista {

        max-height: none;

        overflow: visible;
    }


    .mapa-container {

        position: static;

        width: 100%;
    }


    #map {

        height: 430px;
    }

}


/* =========================================================
   28. CELULAR
   ========================================================= */

@media (max-width: 700px) {

    .topo-interno {

        width: 92%;

        gap: 10px;
    }


    .logo img {

        width: 145px;

        max-height: 55px;
    }


    .acoes-topo {

        gap: 6px;
    }


    .acoes-topo .btn-entrar {

        display: none;
    }


    .btn-cadastrar {

        padding: 9px 12px;

        font-size: 12px;
    }


    .menu-mobile {

        width: 40px;

        height: 40px;
    }


    .hero-interno {

        padding: 45px 0 40px;
    }


    .hero h1 {

        font-size: 34px;

        letter-spacing: -1px;
    }


    .hero p {

        font-size: 15px;

        line-height: 1.6;
    }


    .painel-localizacao {

        width: 92%;

        margin-top: -15px;
    }


    .painel {

        padding: 16px;
    }


    .localizacao-linha {

        align-items: flex-start;

        flex-wrap: wrap;
    }


    .localizacao-texto {

        min-width: calc(100% - 65px);
    }


    .localizacao-texto h2 {

        font-size: 16px;
    }


    #btnGPS {

        width: 100%;

        min-height: 46px;

        margin-top: 4px;
    }


    .container {

        width: 92%;
    }


    .secao-topo {

        align-items: flex-start;

        margin-bottom: 14px;
    }


    .secao-topo h2 {

        font-size: 21px;
    }


    .ver-todos {

        display: none;
    }


    .conteudo {

        display: flex;

        flex-direction: column;

        width: 100%;
    }


    .lista {

        width: 100%;

        padding: 14px;

        order: 1;
    }


    .mapa-container {

        width: 100%;

        order: 2;
    }


    #map {

        width: 100%;

        height: 380px;

        border-radius: 14px;
    }


    /* =====================================================
       CARD NO CELULAR
       ===================================================== */

    .estabelecimento {

        width: 100%;

        padding: 14px;

        margin-bottom: 12px;
    }


    .card-salao {

        display: flex;

        flex-direction: column;

        width: 100%;

        gap: 12px;
    }


    .card-salao-conteudo {

        width: 100%;
    }


    .card-salao-conteudo h3 {

        font-size: 16px;

        padding-right: 0;

        margin-bottom: 8px;
    }


    .card-salao-acoes {

        display: flex;

        flex-direction: column;

        width: 100%;

        gap: 8px;
    }


    .btn-ver-salao,
    .btn-ver-mapa {

        display: flex;

        align-items: center;

        justify-content: center;

        width: 100%;

        min-height: 44px;

        padding: 11px 12px;

        margin: 0;

        font-size: 13px;

        opacity: 1;

        visibility: visible;
    }


    .rodape-interno {

        flex-direction: column;

        align-items: flex-start;
    }


    .rodape-links {

        flex-wrap: wrap;

        gap: 15px;
    }

}


/* =========================================================
   29. CELULAR PEQUENO
   ========================================================= */

@media (max-width: 480px) {

    .topo-interno {

        width: 92%;
    }


    .logo img {

        width: 135px;

        max-height: 50px;
    }


    .btn-cadastrar {

        padding: 8px 10px;

        font-size: 11px;
    }


    .menu-mobile {

        width: 38px;

        height: 38px;

        font-size: 18px;
    }


    .hero-interno {

        padding: 35px 0;
    }


    .hero-etiqueta {

        font-size: 12px;

        padding: 6px 10px;
    }


    .hero h1 {

        font-size: 30px;
    }


    .hero p {

        font-size: 14px;
    }


    .painel-localizacao {

        width: 92%;
    }


    .painel {

        padding: 14px;
    }


    .localizacao-icone {

        width: 44px;

        height: 44px;

        font-size: 20px;
    }


    .localizacao-texto {

        min-width: calc(100% - 60px);
    }


    .localizacao-texto h2 {

        font-size: 15px;
    }


    .localizacao-texto p {

        font-size: 12px;
    }


    .container {

        width: 92%;
    }


    .secao-topo h2 {

        font-size: 20px;
    }


    .estabelecimento {

        padding: 13px;
    }


    .card-salao-conteudo h3 {

        font-size: 15px;
    }


    .btn-ver-salao,
    .btn-ver-mapa {

        min-height: 45px;

        font-size: 13px;
    }


    #map {

        height: 350px;
    }

}


/* =========================================================
   30. GARANTIA DOS BOTÕES
   ========================================================= */

/*
   Estas regras são intencionais.

   O JavaScript cria os botões dinamicamente.
   Portanto eles precisam continuar visíveis e clicáveis
   independentemente do tamanho da tela.
*/

.card-salao-acoes button {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;

    cursor: pointer;
}


.card-salao-acoes .btn-ver-salao {

    background: var(--gradiente);

    color: #fff;

    border: none;
}


.card-salao-acoes .btn-ver-mapa {

    background: #fff;

    color: var(--rosa-escuro);

    border: 1px solid #ead4e4;
}


/* =========================================================
   CONTROLE DE RAIO DA BUSCA
   ========================================================= */

.controle-raio {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(
        135deg,
        rgba(108, 43, 217, 0.08),
        rgba(255, 79, 163, 0.08)
    );
    border: 1px solid rgba(108, 43, 217, 0.15);
    border-radius: 16px;
}


/* =========================================================
   TÍTULO DO RAIO
   ========================================================= */

.raio-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.raio-titulo:first-letter {
    font-size: 24px;
}

.raio-titulo div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.raio-titulo strong {
    color: #292929;
    font-size: 16px;
}

.raio-titulo span {
    color: #777;
    font-size: 13px;
}


/* =========================================================
   ÁREA DAS OPÇÕES
   ========================================================= */

.raio-opcoes {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.raio-label {
    color: #444;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   SELECT
   ========================================================= */

#raioBusca {
    min-width: 150px;
    height: 46px;

    padding: 0 42px 0 16px;

    border: 2px solid #6C2BD9;
    border-radius: 12px;

    background: #ffffff;

    color: #6C2BD9;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    outline: none;

    box-shadow:
        0 5px 15px rgba(108, 43, 217, 0.12);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

#raioBusca:hover {
    border-color: #FF4FA3;

    box-shadow:
        0 7px 20px rgba(255, 79, 163, 0.18);

    transform: translateY(-1px);
}


/* =========================================================
   FOCO
   ========================================================= */

#raioBusca:focus {
    border-color: #FF4FA3;

    box-shadow:
        0 0 0 4px rgba(255, 79, 163, 0.12);
}


/* =========================================================
   TEXTO DO RAIO
   ========================================================= */

.texto-raio {
    margin-top: 15px;

    padding: 10px 14px;

    display: inline-block;

    border-radius: 10px;

    background: #ffffff;

    color: #555;

    font-size: 13px;

    border: 1px solid rgba(108, 43, 217, 0.10);
}

.texto-raio strong {
    color: #6C2BD9;
    font-size: 14px;
}


/* =========================================================
   RESULTADO DO RAIO
   ========================================================= */

.resultado-raio {
    margin-bottom: 15px;

    padding: 9px 13px;

    display: inline-block;

    background: linear-gradient(
        45deg,
        rgba(108, 43, 217, 0.08),
        rgba(255, 79, 163, 0.08)
    );

    border: 1px solid rgba(108, 43, 217, 0.12);

    border-radius: 10px;

    color: #555;

    font-size: 13px;
}

.resultado-raio strong {
    color: #6C2BD9;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .controle-raio {
        padding: 16px;
    }

    .raio-opcoes {
        flex-direction: column;
        align-items: stretch;
    }

    .raio-label {
        margin-bottom: 2px;
    }

    #raioBusca {
        width: 100%;
        min-width: 100%;
    }

    .texto-raio {
        display: block;
        text-align: center;
    }

}


/* =========================================================
   FIM DO CSS
   ========================================================= */