/* =========================================
   Overrides do Google Maps InfoWindow (Limpa o lixo padrão)
   ========================================= */
.gm-style-iw-c {
    padding: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 16px !important;
}
.gm-style-iw-d {
    overflow: hidden !important; /* MATA OS SCROLLBARS HORIZONTAIS E VERTICAIS */
    max-height: none !important;
}
.gm-ui-hover-effect {
    display: none !important; /* Esconde o botão de fechar padrão do Google Maps */
}

/* =========================================
   Estilos específicos para a página de localidade
   ========================================= */
.map-fullscreen-container {
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
    margin-top: 0;
    padding: 0;
}

#mapa-explorador {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .map-fullscreen-container {
        height: calc(100vh - 70px);
    }
}

/* =========================================
   Estilos do Cartão Premium
   ========================================= */
.modern-card {
    width: 260px; /* Largura fixa para evitar resizes esquisitos */
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    font-family: 'Inter', sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* O Nosso Botão de Fechar Personalizado */
.card-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
}

.card-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.card-header {
    position: relative;
    height: 150px;
    width: 100%;
    overflow: hidden;
}

.card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-card:hover .card-header img {
    transform: scale(1.08);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.card-body p {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: #64748b;
}

/* Botão em destaque no fundo */
.btn-explore {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: var(--accent, #b98b56);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
    margin-top: auto; /* Empurra o botão para baixo */
}

.btn-explore:hover {
    background: #9c7343;
}

.btn-explore span {
    margin-left: 6px;
    transition: transform 0.2s;
}

.btn-explore:hover span {
    transform: translateX(4px);
}