@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-body: #f3f4f6;
    --text-primary: #111827;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body { background-color: var(--bg-body); font-family: 'Inter', sans-serif; color: var(--text-primary); }

/* NAVBAR & CARDS */
.navbar { background: #1e293b !important; padding: 1rem 0; box-shadow: var(--shadow-md); }
.navbar-brand { font-weight: 700; color: white !important; }
.card { background: #fff; border: none; border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden; }

#map { height: 650px; width: 100%; z-index: 1; }

/* --- ÍCONE GOTA PREMIUM (TEARDROP) --- */
.custom-div-icon { background: none; border: none; }

.marker-pin {
    width: 42px; height: 42px;
    border-radius: 50% 50% 50% 0;
    background: var(--pin-color); /* FUNDO DA GOTA */
    position: absolute;
    transform: rotate(-45deg);
    left: 50%; top: 50%; margin: -21px 0 0 -21px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 3px solid white;
}

/* Círculo Branco no Meio */
.marker-pin::after {
    content: ''; width: 24px; height: 24px;
    background: #fff; border-radius: 50%;
    position: absolute;
    z-index: 1; /* Fica acima do fundo colorido */
}

/* O Ícone Colorido */
.marker-pin i {
    transform: rotate(45deg); 
    color: var(--pin-color); /* COR DO ÍCONE IGUAL AO FUNDO */
    font-size: 14px;
    z-index: 5; /* Fica acima do branco */
    position: relative;
}

/* Hover */
.custom-div-icon:hover .marker-pin { transform: rotate(-45deg) scale(1.15); z-index: 999; }

/* Animação */
.marker-pin::before {
    content: ''; width: 100%; height: 100%; border-radius: 50% 50% 50% 0;
    position: absolute; background: inherit; opacity: 0.6; z-index: -1;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }

/* --- FEED LATERAL (CLEAN) --- */
.feed-header { padding: 15px; background: #fff; border-bottom: 1px solid #eee; font-weight: 700; color: #555; }
.feed-container { height: 600px; overflow-y: auto; background: #fff; }

.feed-item {
    display: flex; align-items: flex-start; padding: 15px;
    border-bottom: 1px solid #f9f9f9; transition: all 0.2s; cursor: pointer;
}
.feed-item:hover { background-color: #f8fafc; }

.feed-icon-box {
    width: 40px; height: 40px; border-radius: 10px;
    background-color: var(--item-color-bg); color: var(--item-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-right: 15px; flex-shrink: 0;
}
.feed-content { flex-grow: 1; }
.feed-title { font-weight: 700; font-size: 0.9rem; color: #333; margin-bottom: 3px; }
.feed-desc { font-size: 0.85rem; color: #777; margin-bottom: 5px; }
.feed-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: #999; }
.feed-badge { padding: 2px 8px; border-radius: 4px; background: #eee; color: #555; font-weight: 600; }

/* POPUP */
.leaflet-popup-content-wrapper { padding: 0; border-radius: 8px; overflow: hidden; }
.popup-header { padding: 12px; background: var(--popup-color); color: white; font-weight: 600; display: flex; justify-content: space-between; }
.popup-body { padding: 15px; }

/* Scrollbar */
.feed-container::-webkit-scrollbar { width: 6px; }
.feed-container::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
.btn-float-map { position: absolute; bottom: 30px; right: 30px; z-index: 900; border-radius: 50px; font-weight: 700; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-body: #f3f4f6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

body { background-color: var(--bg-body); font-family: 'Inter', sans-serif; color: var(--text-primary); }

/* NAVBAR & CARDS */
.navbar { background: #0f172a !important; padding: 0.8rem 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.navbar-brand { font-weight: 700; letter-spacing: -0.5px; color: white !important; }
.card { background: #fff; border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }

/* MAPA */
#map { height: 650px; width: 100%; z-index: 1; }

/* --- ÍCONE GOTA (PINO) --- */
.custom-div-icon { background: none; border: none; }
.marker-pin {
    width: 44px; height: 44px; border-radius: 50% 50% 50% 0;
    background: var(--pin-color); position: absolute; transform: rotate(-45deg);
    left: 50%; top: 50%; margin: -22px 0 0 -22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25); border: 3px solid white;
}
.marker-pin::after {
    content: ''; width: 26px; height: 26px; background: #fff; border-radius: 50%;
    position: absolute; z-index: 1;
}
.marker-pin i {
    transform: rotate(45deg); color: var(--pin-color); font-size: 15px;
    z-index: 5; position: relative;
}
.custom-div-icon:hover .marker-pin { transform: rotate(-45deg) scale(1.15); z-index: 999; cursor: pointer; }

/* --- POPUP (ARRUMADO) --- */
.leaflet-popup-content-wrapper { padding: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.leaflet-popup-content { margin: 0 !important; width: 300px !important; }

.popup-header {
    padding: 12px 16px;
    background: var(--popup-color);
    color: white;
    display: flex;
    justify-content: space-between; /* Separa Título da Hora */
    align-items: center;
}

.popup-title {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex; align-items: center; gap: 8px;
    text-transform: uppercase;
}

.popup-time {
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.popup-body { padding: 16px; background: #fff; }
.popup-addr { font-size: 0.95rem; font-weight: 500; color: #334155; margin-bottom: 8px; line-height: 1.4; }

/* --- RANKING (LISTA ELEGANTE) --- */
.ranking-list { padding: 15px; }

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.ranking-item:last-child { border-bottom: none; }

.rank-left { display: flex; align-items: center; gap: 12px; }

.rank-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rank-name { font-weight: 600; color: #475569; font-size: 0.9rem; }

.rank-badge {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* --- FEED LATERAL --- */
.feed-header { padding: 15px; border-bottom: 1px solid #e2e8f0; font-weight: 700; color: #64748b; font-size: 0.85rem; letter-spacing: 0.5px; text-transform: uppercase; }
.feed-container { height: 600px; overflow-y: auto; background: #fff; padding: 0; }
.feed-item { display: flex; align-items: flex-start; padding: 16px; border-bottom: 1px solid #f8fafc; transition: background 0.2s; cursor: pointer; }
.feed-item:hover { background-color: #f8fafc; }
.feed-icon-box { width: 40px; height: 40px; border-radius: 10px; background-color: var(--item-color-bg); color: var(--item-color); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 15px; flex-shrink: 0; }
.feed-content { flex-grow: 1; }
.feed-title { font-weight: 600; font-size: 0.9rem; color: #1e293b; margin-bottom: 3px; }
.feed-desc { font-size: 0.85rem; color: #64748b; margin-bottom: 6px; }
.feed-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; }
.btn-float-map { position: absolute; bottom: 30px; right: 30px; z-index: 900; border-radius: 50px; font-weight: 700; padding: 12px 25px; }
.feed-container::-webkit-scrollbar { width: 5px; }
.feed-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }


/* ... MANTENHA O CSS ANTERIOR ... */

/* RODAPÉ PERSONALIZADO */
.footer-custom {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
}

.footer-custom .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-custom .form-control:focus {
    background-color: #334155;
    color: white;
    box-shadow: none;
}