/* Toggle Foto Decorada com IA */
.btn-toggle-ia {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 110px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.badge-foto-ia {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 20;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 110px;
}

/* Overlay de comparação Antes/Depois (Ver decorado com IA) */
.ia-compare-overlay {
    display: none;
    position: fixed !important;
    inset: 0;
    z-index: 100000 !important;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ia-compare-overlay.active {
    display: flex;
}

.ia-compare-overlay .ia-compare-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ia-compare-overlay .ia-compare-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ia-compare-overlay .ia-compare-hint {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 10;
    color: #fff;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 110px;
}

.ia-compare-wrapper {
    display: flex;
    max-width: 100%;
    max-height: 100%;
}

.ia-compare-wrapper img-comparison-slider {
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    border-radius: 8px;
    overflow: hidden;
}

.ia-compare-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    object-fit: contain;
    background: #000;
}

.ia-compare-handle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #073B3A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Map Button Image Styles */
.btn-map-view-image {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.btn-map-view-image:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-4px);
}

.btn-map-view-image:hover img {
    transform: scale(1.03);
}

.btn-map-view-image:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(0);
}

.btn-map-view-image:active img {
    transform: scale(1);
}

@media (max-width: 767px) {
    .btn-map-view-image {
        max-width: 160px !important;
        margin-top: 16px;
    }

    .text-end {
        text-align: center !important;
    }
}

/* SweetAlert Map Popup Customization */
.swal-map-popup {
    padding: 24px !important;
    border-radius: 12px !important;
}

.swal-map-title {
    color: #073B3A !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    padding-bottom: 16px !important;
}

.swal-map-button {
    padding: 12px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.swal-map-button:hover {
    background-color: #0a5350 !important;
}

/* Leaflet popup in SweetAlert */
.swal2-html-container .leaflet-container {
    font-family: inherit;
}

.swal2-html-container .leaflet-popup-content-wrapper {
    border-radius: 8px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .swal-map-popup {
        padding: 16px !important;
        margin: 10px !important;
    }

    .swal-map-title {
        font-size: 18px !important;
        padding-bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    .swal-map-title {
        font-size: 16px !important;
    }
}
