/* Estilos para galeria de imagens dos imóveis */

.property-photo {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.property-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.photo-card {
    transition: transform 0.2s ease-in-out;
    border: 1px solid #dee2e6;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.property-card-image {
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.property-card-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    color: #6c757d;
}

.image-upload-preview {
    max-height: 400px;
    overflow-y: auto;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
}

.image-preview-item {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.image-preview-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.image-preview-item.main-image img {
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
}

.image-preview-item .remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-item .set-main {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 10px;
    cursor: pointer;
}

.dashboard-property-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dashboard-property-image {
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.dashboard-property-placeholder {
    height: 150px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    color: #6c757d;
}

/* Modal de imagem */
.modal-dialog.modal-lg {
    max-width: 90vw;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .property-card-image,
    .property-card-placeholder {
        height: 150px;
    }
    
    .dashboard-property-image,
    .dashboard-property-placeholder {
        height: 120px;
    }
    
    .image-preview-item img {
        width: 80px;
        height: 80px;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Drag and drop para upload */
.image-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.image-upload-area i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}