/* Estilos Gerais (sem alterações) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

/* Container Principal (sem alterações) */
.map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: inline-block;
}

.map-container > img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hotspots (pontos) */
.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 5;
}

.hotspot:hover, .hotspot.active { /* NOVO: Adiciona o estado .active */
    transform: translate(-50%, -50%) scale(1.4);
    background-color: #ff6347;
    border-color: #fff;
}


/* Card Flutuante (Desktop) */
#info-card {
    position: absolute;
    width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    padding: 15px;
    z-index: 10;
    pointer-events: none;
    opacity: 0; /* Começa invisível */
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#info-card.visible { /* NOVO: Classe para controlar visibilidade */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#info-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}
/* ... (Resto do estilo do #info-card sem alterações) ... */
#info-card h3 { margin: 0 0 8px 0; color: #0056b3; }
#info-card p { margin: 0; line-height: 1.5; }


/* NOVO: Container do Card Mobile */
.mobile-card-display {
    display: none; /* Escondido por padrão */
    width: 100%;
    max-width: 1200px; /* Mesma largura máxima do mapa */
    margin-top: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.mobile-card-display.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-card-display img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Evita imagens gigantes no celular */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.mobile-card-content {
    padding: 20px;
}

.mobile-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    color: #333;
}

.mobile-card-content p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}


/* ------------------------------------------- */
/* --- REGRAS RESPONSIVAS --- */
/* ------------------------------------------- */
@media (max-width: 768px) {
    
    /* Esconde o card flutuante do desktop em telas pequenas */
    #info-card {
        display: none !important;
    }

    /* Aumenta um pouco o tamanho dos pontos para facilitar o toque */
    .hotspot {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
}