#objectmap {
    width: 100%;
    height: 400px;
    z-index: 1;
}

.carousel-image {
    height: 400px;
    object-fit: contain;
}

/* Bloque foto + carrusel; el badge PERDIDO/ENCONTRADO va encima de las imágenes */
/* Comparación revisión: texto largo (título, descripción) sin perder saltos de línea */
.revision-diff-value {
    white-space: pre-wrap;
    word-break: break-word;
}

.product-media-with-badge {
    z-index: 1;
}

/* Mismo ancho que el carrusel: el badge se centra sobre la zona de imágenes */
.product-media-with-badge .ads-details-wrapper {
    position: relative;
}

.condition-badge-overlay {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 15;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.condition-badge {
    font-size: 1.2rem;
    padding: 8px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}
.badge-lost {
    background: linear-gradient(135deg, #e91e63, #ff4081);
    color: white;
}

.badge-found {
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
}

.product-img {
    position: relative;
}

.newly-created-account-alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.15);
    margin-bottom: 25px;
    padding: 20px;
}

.newly-created-account-alert .alert-heading {
    color: #155724;
    font-weight: 600;
    margin-bottom: 15px;
}

.newly-created-account-alert p {
    color: #155724;
    line-height: 1.6;
}

.newly-created-account-alert .alert-link {
    color: #0f5132;
    text-decoration: underline;
    font-weight: 600;
}

.newly-created-account-alert .alert-link:hover {
    color: #051b11;
}

.newly-created-account-alert hr {
    border-color: rgba(40, 167, 69, 0.2);
    margin: 15px 0;
}

.newly-created-account-alert i.lni-checkmark-circle {
    margin-right: 15px;
}

.newly-created-account-alert i.lni-information {
    color: #17a2b8;
}

.badge {
    min-width: 18px;
    height: 20px;
    font-size: 13px;
    padding: 0 8px;
    border-radius: 9px;
}

/* Responsive para pantallas menores a 992px */
@media (max-width: 991px) {
    .carousel-image {
        height: 300px;
    }

    #objectmap {
        height: 300px;
    }

    .condition-badge {
        font-size: 1rem;
        padding: 6px 20px;
    }

    .details-box {
        margin-top: 20px;
    }

    .ads-details-info h2 {
        font-size: 24px;
    }
}

/* Centrar sidebar en tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .product-info .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin: 0 auto;
    }
}

/* Responsive para pantallas menores a 768px */
@media (max-width: 767px) {
    .carousel-image {
        height: 250px;
    }

    #objectmap {
        height: 250px;
    }

    .condition-badge {
        font-size: 0.9rem;
        padding: 5px 15px;
    }

    .ads-details-info h2 {
        font-size: 20px;
    }

    .newly-created-account-alert,
    .newly-created-guest-object-alert {
        padding: 15px;
    }

    .newly-created-account-alert .d-flex,
    .newly-created-guest-object-alert .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .newly-created-account-alert i,
    .newly-created-guest-object-alert i {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    .carousel-image {
        height: 200px;
    }

    #objectmap {
        height: 200px;
    }

    .condition-badge {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    .ads-details-info h2 {
        font-size: 18px;
    }
}

/* Estilos para el botón de conversación de coincidencia */
.btn-match-conversation {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: none !important;
    padding: 9px 16px !important;
    font-weight: 600 !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    white-space: normal !important;
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    text-align: center !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

.btn-match-conversation:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-match-conversation:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3) !important;
}

.btn-match-conversation i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Estilos para el alert de coincidencia activa */
.alert-info.match-active-alert {
    border-left: 4px solid #17a2b8;
    border-radius: 8px;
    padding: 20px;
    background-color: #d1ecf1;
    margin-bottom: 20px;
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.match-alert-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.match-alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(23, 162, 184, 0.1);
    border-radius: 50%;
}

.match-alert-icon i {
    font-size: 24px;
    color: #17a2b8;
}

.match-alert-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.match-alert-title {
    font-size: 16px;
    color: #0c5460;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
}

.match-alert-title i.lni-check-mark-circle {
    color: #28a745;
    margin-right: 8px;
    font-size: 18px;
}

.match-alert-text {
    margin-bottom: 12px;
    color: #0c5460;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: none;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive para el botón de conversación y alert */
@media (max-width: 767px) {
    .btn-match-conversation {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 9px 12px !important;
        font-size: 12px !important;
        white-space: normal !important;
        word-wrap: normal !important;
        overflow-wrap: normal !important;
        line-height: 1.4 !important;
    }

    .btn-match-conversation i {
        font-size: 14px;
    }

    .match-active-alert {
        padding: 15px !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .match-alert-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .match-alert-icon {
        margin-bottom: 0;
    }

    .match-alert-body {
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .match-alert-title {
        font-size: 15px;
        text-align: center;
        word-wrap: break-word;
    }

    .match-alert-text {
        font-size: 13px;
        text-align: center;
        padding: 0 5px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .match-active-alert {
        padding: 12px !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .match-alert-icon {
        width: 35px;
        height: 35px;
    }

    .match-alert-icon i {
        font-size: 20px;
    }

    .match-alert-title {
        font-size: 14px;
        word-wrap: break-word;
    }

    .match-alert-text {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .btn-match-conversation {
        padding: 8px 10px !important;
        font-size: 11px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        word-wrap: normal !important;
        overflow-wrap: normal !important;
    }

    .btn-match-conversation i {
        font-size: 12px;
        flex-shrink: 0;
    }
}

/* Vista previa revisión post-publicación (dueño / staff en ficha) */
.revision-preview-main-img {
    max-height: 240px;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid #dee2e6;
    display: block;
}

.revision-preview-main-img--proposed {
    border: 2px solid #0d6efd;
}

.revision-preview-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #dee2e6;
    display: block;
}

.revision-preview-thumb--remove {
    border: 2px dashed #dc3545;
    opacity: 0.9;
    box-sizing: border-box;
}

.revision-preview-thumb--new {
    border: 2px solid #0d6efd;
    box-sizing: border-box;
}

.share .social-link a.whatsapp {
    background-color: #25d366;
}

.share .social-link a.whatsapp:hover {
    background-color: #1da851;
}