
@import url("home.css"); /* Home.css */
@import url("menu.css"); /* Menu.css */
@import url("map.css"); /* Map.css */
@import url("vendedor.css");
/* --- 1. FUNDAMENTOS E RESET --- */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}''

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* --- 2. ESTRUTURA DE LAYOUT (RESPONSIVO) --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem !important;
    display: block !important; /* Estabilidade para Chrome PC */
}

/* --- 3. MENU DE NAVEGAÇÃO --- */
.nav-link {
    color: #ff6600 !important;
}

.nav-link_my {
    color: lightyellow !important;
}

.nav-link span {
    color: #00ccff;
}

.nav-link.active {
    color: #008000 !important;
}

/* --- 4. SEÇÃO SUPERIOR E BOTÕES --- */
.secao-superior {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.btn-toggle {
    padding: 8px 16px;
    background-color: #03173d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-toggle:hover {
        background-color: #052a6d;
    }

/* --- 5. CONTAINER VISUAL (MAPA E ZOOM IMAGEM) --- */
.map-container {
    position: relative !important;
    width: 100% !important;
    height: 500px !important;
    border: 3px solid #333 !important;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: block !important;
    background-color: #f8f9fa;
}

/* Garante que Mapa e Imagem Zoom ocupem 100% da moldura */
#map, #image-zoom-container {
    height: 100% !important;
    width: 100% !important;
    min-height: 500px;
}

#image-zoom-container {
    outline: none;
    cursor: grab;
}

    #image-zoom-container:active {
        cursor: grabbing;
    }

.leaflet-control-zoom {
    border: 2px solid rgba(0,0,0,0.2) !important;
}

/* --- 6. PAINEL INFERIOR (DETALHES DO PRESTADOR) --- */
.painel-detalhes {
    background-color: #ffffff;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.painel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

    .painel-header h3 {
        margin: 0;
        color: #03173d;
        font-size: 1.4rem;
    }

.painel-corpo {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.informacoes {
    flex: 1;
    min-width: 250px;
}

    .informacoes p {
        margin: 8px 0;
        color: #444;
    }

/* Grid de Botões Ação */
.acoes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.btn-acao {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    text-align: center;
}

.btn-acao:active {
   transform: scale(0.95);
}

.btn-acao:hover {
     opacity: 0.9;
}

.btn-navegar {
    background-color: #1b6ec2;
    color: white;
}

.btn-editar {
    background-color: #ffc107;
    color: #333;
}

.btn-excluir {
    background-color: #dc3545;
    color: white;
}

.btn-contato {
    background-color: #25d366;
    color: white;
}

.painel-placeholder {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #888;
}

/* --- 7. AJUSTES ESPECÍFICOS MOBILE / PWA --- */
@media (max-width: 768px) {
    .content {
        padding: 0.5rem !important;
    }

    .map-container {
        height: 400px !important;
        min-height: 400px;
        border-width: 2px !important;
    }

    #map, #image-zoom-container {
        min-height: 400px;
    }

    .painel-detalhes {
        padding: 15px;
        border-radius: 0; /* No celular vira uma aba full-width */
        border-left: none;
        border-right: none;
    }

    .acoes-grid {
        grid-template-columns: 1fr; /* Um botão por linha no celular */
    }
}

/* --- 8. ERROS BLAZOR --- */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: none;
    padding: 0.6rem 1.25rem;
}


/* Botão que flutua sobre a imagem  VOLTAr para Mapa*/
.btn-voltar-mapa {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000; /* Garante que fique acima do Leaflet */
    background-color: rgba(3, 23, 61, 0.85); /* Azul escuro com transparência */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 8px 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px); /* Efeito de vidro borrado */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-voltar-mapa:hover {
        background-color: rgb(5, 42, 109);
        transform: translateY(-2px);
    }

    .btn-voltar-mapa:active {
        transform: translateY(0);
    }

/* Ajuste para não bater nos botões +/- do zoom no Desktop */
@media (min-width: 769px) {
    .btn-voltar-mapa {
        top: 15px;
        right: 60px; /* Afasta um pouco dos botões de zoom do Leaflet */
    }
    btn-navegar
}

/* =================SerarshBar =================================== */

.search-container {
    flex: 1; /* Faz a busca ocupar todo o espaço disponível */
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #333;
    border-radius: 25px; /* Estilo arredondado de SearchBar */
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.search-input:focus {
        border-color: #1b6ec2;
        box-shadow: 0 0 8px rgba(27, 110, 194, 0.3);
}

.Mybutton {
    background-color: #04AA6D;
    border: none;
    color: white;
    padding: 8px 12px; /*15px 32px;*/
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px; /*16px*/
    margin: 4px 2px;
    cursor: pointer;
}


.painel-c2 {
    background-color: #ffffff;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 5px;
}

/*

https://www.w3schools.com/css/
CSS Styling Buttons
With CSS, different HTML buttons can be styled in many ways.
The most common CSS properties for styling buttons are:
background-color - defines the background color of a button
color - defines the text color of a button
border - defines the border of a button
padding - defines the space between the text and the border of a button
border-radius - adds rounded corners to a button
box-shadow - adds shadows to a button
text-align - centers the text of a button
font-size - defines the font size of the text on a button
text-decoration - removes the underline for <a> elements used as buttons
cursor - changes the mouse cursor when hovering over the button    
*/

