html.route-mapa, html.route-mapa body, body.route-mapa {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
    user-select: none;
}
html.route-mapa body {
    background: #e5e5e5;
}

#map-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
    outline: none;
    touch-action: none;
    background: #e5e5e5;
}

#search-results {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    display: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-item:hover {
    background-color: #f1f5f9;
}

.search-item:last-child {
    border-bottom: none;
}

.search-icon {
    width: 32px;
    height: 32px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.custom-pin {
    background: transparent;
    border: none;
}

.pin-head {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.pin-tail {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #333;
    margin: -4px auto 0;
    position: relative;
    z-index: 1;
}

.custom-pin-obra {
    background: transparent;
    border: none;
}

.custom-cluster {
    background: rgba(13, 110, 253, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
}

.custom-cluster-marker {
    background: transparent !important;
    border: none !important;
}

.custom-cluster-marker div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.2s ease;
}

.custom-cluster-marker:hover div {
    transform: scale(1.1);
}

.pin-novo {
    z-index: 10000 !important;
}

.pin-novo .pin-head {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0) !important;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.6);
    animation: pulse-pin-head 1.5s ease-out 3;
}

.pulse-ring-new {
    position: absolute;
    top: -8px;
    left: -2px;
    width: 40px;
    height: 40px;
    border: 3px solid #0d6efd;
    border-radius: 50%;
    animation: pulse-ring-anim 1.5s ease-out 3;
    pointer-events: none;
}

@keyframes pulse-pin-head {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes pulse-ring-anim {
    0% {
        transform: scale(0.8);
        opacity: 1;
        border-width: 3px;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
        border-width: 0;
    }
}

.leaflet-popup-pane,
.leaflet-tooltip-pane,
.leaflet-popup {
    z-index: 1200 !important;
}

.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

.leaflet-popup-close-button {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 22px !important;
    top: 8px !important;
    right: 8px !important;
    transition: transform 0.2s;
    z-index: 1201 !important;
}

.leaflet-popup-close-button:hover {
    transform: scale(1.1);
}

.pop-card {
    font-family: 'Inter', sans-serif;
    position: relative;
}

.pop-hero {
    height: 150px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pop-hero.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    opacity: 0.95;
}

.video-bg {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
}

.pop-status {
    position: absolute;
    top: 135px;
    right: 15px;
    color: #fff;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.pop-body {
    padding: 18px 15px 15px;
    background: #fff;
}

.pop-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.pop-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f3f5;
    padding-top: 12px;
    margin-top: 5px;
}

.pop-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}

.pop-user img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

#center-target {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    color: #dc3545;
    font-size: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: none;
}

#top-instruction {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

#btn-confirmar-local {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    width: 85%;
    max-width: 320px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px;
    font-size: 1rem;
    border: 2px solid #fff;
}

#btn-cancelar-reporte {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    width: auto;
    padding: 8px 20px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #ccc;
    font-weight: 600;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #dc3545;
}

#btn-floating-report {
    position: absolute;
    bottom: 30px;
    right: 20px;
    z-index: 900;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #dc3545;
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.2s;
}

#btn-floating-report:active {
    transform: scale(0.9);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    background-color: rgba(220, 53, 69, 0.6);
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.menu-drawer {
    position: fixed;
    top: 60px;
    right: 0;
    width: 340px;
    max-width: 85vw;
    background: #fff;
    height: calc(100% - 60px);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.menu-drawer.open {
    transform: translateX(0);
}

.menu-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    backdrop-filter: blur(3px);
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.drawer-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.drawer-section:last-child {
    border-bottom: none;
}

.drawer-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #adb5bd;
    margin-bottom: 12px;
    letter-spacing: 1px;
    display: block;
}

.btn-drawer {
    width: 100%;
    text-align: left;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    border: 1px solid #f1f3f5;
    background: #fff;
    color: #333;
    transition: all 0.2s;
}

.btn-drawer:active {
    background: #f8f9fa;
    transform: scale(0.98);
}

.btn-drawer i {
    font-size: 1.2rem;
    margin-right: 12px;
    color: #0d6efd;
}

.gps-active {
    background-color: #e7f1ff !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
}

.modal {
    z-index: 30000 !important;
}

.modal-backdrop {
    z-index: 29990 !important;
}

.modal-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#carouselFotos .carousel-item {
    height: 250px;
    background-color: #000;
    cursor: default;
}

@media (max-width: 576px) {
    #carouselFotos .carousel-item {
        height: 35vh;
    }
}

#carouselFotos .carousel-item img,
#carouselFotos .carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#carouselFotos .carousel-item img {
    cursor: zoom-in;
}

.carousel-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-media-wrapper .detalhes-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-open-lightbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.btn-open-lightbox:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: scale(1.05);
}

.btn-open-lightbox:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#modalLightbox {
    z-index: 30120 !important;
}

#modalLightbox .modal-content {
    background-color: transparent;
    box-shadow: none;
    border: 0;
}

#modalLightbox .lightbox-body {
    position: relative;
    min-height: 260px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
    padding-left: calc(env(safe-area-inset-left, 0px) + 10px);
    padding-right: calc(env(safe-area-inset-right, 0px) + 10px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    background: rgba(0, 0, 0, 0.94);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#modalLightbox .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.55));
}

.lightbox-stage {
    width: 100%;
    height: min(80vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#imgLightboxExpanded,
#videoLightboxExpanded {
    max-width: 100%;
    max-height: calc(100vh - 170px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
    user-select: none;
}

.lightbox-loader {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    z-index: 3;
    background: rgba(0, 0, 0, 0.35);
    font-weight: 600;
}

.lightbox-loader.active {
    display: flex;
}

.lightbox-error {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 3;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.lightbox-error.active {
    display: flex;
}

.lightbox-caption {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: all 0.2s ease;
}

.lightbox-nav-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lightbox-nav-prev {
    left: 12px;
}

.lightbox-nav-next {
    right: 12px;
}

@media (max-width: 576px) {
    .btn-open-lightbox {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav-prev {
        left: 8px;
    }

    .lightbox-nav-next {
        right: 8px;
    }

    .lightbox-caption {
        font-size: 0.82rem;
    }

    #imgLightboxExpanded,
    #videoLightboxExpanded {
        max-height: calc(100vh - 150px);
    }
}

.search-container {
    position: absolute;
    top: calc(60px + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1003;
    width: 90%;
    max-width: 500px;
}

.search-box {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 4px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #0b5ed7;
    transform: scale(1.05);
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-autocomplete.active {
    display: block;
}

.autocomplete-section {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-section:last-child {
    border-bottom: none;
}

.autocomplete-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #adb5bd;
    padding: 0 16px 8px;
    letter-spacing: 0.5px;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

.autocomplete-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #495057;
    flex-shrink: 0;
}

.autocomplete-content {
    flex: 1;
    min-width: 0;
}

.autocomplete-title {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
}

.autocomplete-badge {
    background: #0d6efd;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.pop-card-rich {
    font-family: 'Inter', sans-serif;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.pop-hero-rich {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pop-hero-rich.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.pop-status-badge {
    position: absolute;
    bottom: -12px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pop-body-rich {
    padding: 20px 16px 16px;
}

.pop-meta-rich {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pop-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pop-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.pop-title-rich {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pop-stats {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #f1f3f5;
    border-bottom: 1px solid #f1f3f5;
    margin-bottom: 12px;
}

.pop-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6c757d;
}

.pop-stat i {
    color: #0d6efd;
}

.pop-footer-rich {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pop-user-rich {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pop-user-rich img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pop-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.pop-actions {
    display: flex;
    gap: 8px;
}

.pop-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pop-btn-primary {
    background: #0d6efd;
    color: #fff;
}

.pop-btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.pop-btn-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.pop-btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.pop-score {
    margin-top: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.pop-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 6px;
}

.pop-score-value {
    font-weight: 700;
    color: #212529;
}

.pop-score-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.pop-score-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #ffc107, #198754);
    border-radius: 3px;
    transition: width 0.5s ease;
}


/* ===== Refinamento visual (F1–F5): só apresentação, sem regra de negócio ===== */

/* F2: halo por status no pino (aro da categoria mantido via inline) */
.pin-head { border: 3px solid #fff; }
.pin-head.pin-st-aberto { box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.45), 0 3px 8px rgba(0, 0, 0, 0.3); }
.pin-head.pin-st-em_analise { box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.55), 0 3px 8px rgba(0, 0, 0, 0.3); }
.pin-head.pin-st-resolvido { box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.45), 0 3px 8px rgba(0, 0, 0, 0.3); }

/* F2: clusters em gradiente por densidade */
.custom-cluster.cl-pequeno { background: radial-gradient(circle at 35% 35%, #3b82f6, #1d4ed8); border-color: rgba(255, 255, 255, 0.85); }
.custom-cluster.cl-medio { background: radial-gradient(circle at 35% 35%, #f59e0b, #b45309); border-color: rgba(255, 255, 255, 0.9); }
.custom-cluster.cl-grande { background: radial-gradient(circle at 35% 35%, #ef4444, #991b1b); border-color: #fff; }
.custom-cluster { transition: transform 0.2s ease; }
.custom-cluster:hover { transform: scale(1.08); }

/* F2: linha com brilho para visibilidade sobre qualquer fundo */
.ocorrencia-linha { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }

/* Clima inteligente (chip + painel) */
#clima-chip {
    position: absolute; top: 72px; right: 12px; z-index: 900;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
    border-radius: 999px; padding: 8px 14px; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: #0f172a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
#clima-chip .bi-sun-fill { color: #f59e0b; }
#clima-chip .bi-cloud-rain-fill, #clima-chip .bi-cloud-lightning-rain-fill { color: #0d6efd; }
#clima-chip .clima-chuva { color: #0d6efd; font-weight: 700; display: flex; align-items: center; gap: 3px; }
#clima-chip .clima-stale { color: #94a3b8; }
#clima-painel {
    position: absolute; top: 124px; right: 12px; z-index: 900;
    width: min(330px, calc(100vw - 24px));
    background: #fff; border-radius: 16px; padding: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}
#clima-painel .clima-alerta {
    display: flex; gap: 10px; align-items: center;
    background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8;
    border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
    font-size: 0.8rem;
}
#clima-painel .clima-horas { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
#clima-painel .clima-hora { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.7rem; color: #475569; min-width: 34px; }
#clima-painel .clima-barra { width: 8px; height: 44px; border-radius: 4px; background: #f1f5f9; display: flex; align-items: flex-end; overflow: hidden; }
#clima-painel .clima-preench { width: 100%; background: linear-gradient(#38bdf8, #0d6efd); border-radius: 4px; }
#clima-painel .clima-rodape { font-size: 0.7rem; color: #94a3b8; margin-top: 8px; text-align: center; }

/* F4: FAB círculo refinado (revertido do pill) */
#btn-floating-report { border-radius: 50% !important; width: 65px !important; height: 65px !important; padding: 0 !important; }
#btn-floating-report:hover { transform: scale(1.06); }
#btn-floating-report .fab-label { display: none !important; }

/* Busca expansível (canto superior esquerdo) */
.search-container { top: 72px !important; left: 12px !important; transform: none !important; width: auto !important; max-width: calc(100vw - 24px); display: flex !important; align-items: center; gap: 8px; z-index: 1004; }
#btn-search-toggle {
    width: 48px; height: 48px; border-radius: 50%; border: none; flex-shrink: 0;
    background: #0d6efd; color: #fff; font-size: 20px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.45);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}
#btn-search-toggle:hover { transform: scale(1.06); background: #0a58ca; }
.search-container .search-box { max-width: min(420px, calc(100vw - 90px)); transition: max-width 0.3s ease, opacity 0.25s ease, margin 0.3s ease; overflow: hidden; white-space: nowrap; }
.search-container.search-collapsed .search-box { max-width: 0; opacity: 0; margin: 0; padding-left: 0; padding-right: 0; border-width: 0; pointer-events: none; }
.search-container.search-collapsed .search-box .search-input { pointer-events: none; }
.search-container .search-autocomplete { left: 56px; }
.search-container.search-collapsed .search-autocomplete { display: none !important; }

/* F4: busca em pill flutuante */
.search-container { filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.12)); }
.search-box { border-radius: 999px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.06); }
.search-autocomplete { border-radius: 0 0 16px 16px; overflow: hidden; }

/* F4: controle de zoom refinado */
.leaflet-control-zoom { border: none !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important; }
.leaflet-control-zoom a { border: none !important; color: #334155 !important; }

/* F3: popup rico — hero 16:9, selo flutuante, pills */
.pop-card-rich { width: 300px; }
.pop-hero-rich { height: 168px; }
.pop-hero-rich::after { content: ''; position: absolute; inset: auto 0 0 0; height: 56px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.45)); }
.pop-status-badge { border: 2px solid #fff; }
.pop-body-rich { padding: 14px 16px 16px; }
.pop-title-rich { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.95rem; line-height: 1.45; }
.pop-footer-rich .pop-btn-primary { background: #0d6efd; color: #fff; padding: 8px 20px; box-shadow: 0 3px 10px rgba(13, 110, 253, 0.35); }
.pop-footer-rich .pop-btn-outline { border: 1px solid #dee2e6; color: #495057; }
.leaflet-popup-content-wrapper { border-radius: 18px; padding: 0; overflow: hidden; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22); }
.leaflet-popup-content { margin: 0; line-height: 1.4; }
.leaflet-popup-tip { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }

/* F5: acessibilidade — reduz movimento quando solicitado */
@media (prefers-reduced-motion: reduce) {
    .custom-cluster, .custom-cluster:hover { transition: none; transform: none; }
    .pulse-ring, .pulse-ring-new { animation: none !important; display: none !important; }
}
