/* Estilos para el Modal de Propiedades */

/* Estilos modernos para el modal */
.modal-xl {
  max-width: 1300px;
}

.modern-modal {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.property-header {
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  border: none;
  padding: 25px 30px;
  color: white;
}

.modal-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.5em;
}

.modern-body {
  padding: 30px;
  background: #f8f9fa;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
}

.step.active .step-circle {
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  color: white;
  transform: scale(1.1);
}

.step span {
  font-size: 0.9em;
  font-weight: 500;
  color: #6c757d;
}

.step.active span {
  color: #495057;
  font-weight: 600;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Sections */
.form-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f3f4;
}

.section-header i {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-header h6 {
  margin: 0;
  font-weight: 600;
  color: #495057;
}

/* Modern Inputs */
.modern-input, .modern-select, .modern-textarea {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.modern-input:focus, .modern-select:focus, .modern-textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  background: #fff;
}

.modern-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

/* Characteristics Grid */
.characteristics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.char-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.char-item:hover {
  border-color: #0d6efd;
  background: #fff;
}

.char-icon {
  font-size: 1.5em;
  width: 40px;
  text-align: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.feature-card {
  position: relative;
}

.feature-input {
  display: none;
}

.feature-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 15px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-label:hover {
  border-color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-input:checked + .feature-label {
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  color: white;
  border-color: #0d6efd;
}

.feature-icon {
  font-size: 1.8em;
}

/* Upload Area */
.upload-area {
  border: 3px dashed #dee2e6;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: #0d6efd;
  background: #f0f8ff;
  transform: scale(1.02);
}

.upload-content {
  color: #6c757d;
}

.upload-icon {
  font-size: 3em;
  color: #0d6efd;
  margin-bottom: 15px;
}

.upload-link {
  color: #0d6efd;
  font-weight: 600;
}

/* Images Preview */
.images-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.preview-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.preview-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.preview-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.preview-image:hover .image-overlay {
  opacity: 1;
}

.image-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(13, 110, 253, 0.9);
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.main-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.btn-remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-image:hover {
  background: #dc3545;
  transform: scale(1.1);
}

/* Drag and Drop Styles */
.upload-area.drag-over {
  border-color: #0d6efd;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  transform: scale(1.02);
}

.upload-area.drag-over .upload-icon {
  animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-10px);
  }
}

/* Navigation Buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f1f3f4;
}

.btn-property-prev {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-property-prev:hover {
  background: #5a6268;
  color: white;
  transform: translateY(-2px);
}

.btn-property-next {
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-property-next:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-property-submit {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.btn-property-submit:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.property-footer {
  background: #f8f9fa;
  border-top: 2px solid #e9ecef;
  padding: 20px 30px;
}

.btn-property-cancel {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-property-cancel:hover {
  background: #5a6268;
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-xl {
    max-width: 95%;
    margin: 10px;
  }
  
  .modern-body {
    padding: 20px;
  }
  
  .progress-steps {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .step-circle {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
  
  .characteristics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .feature-label {
    padding: 15px 10px;
    font-size: 0.9em;
  }
  
  .step-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-property-prev, .btn-property-next, .btn-property-submit {
    width: 100%;
    justify-content: center;
  }
  
  .upload-area {
    padding: 30px 15px;
  }
  
  .upload-icon {
    font-size: 2.5em;
  }
  
  .images-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Estilos adicionales para mejorar la experiencia */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #0d6efd;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Mejoras para los emojis en los selects */
.modern-select option {
  padding: 8px 12px;
  font-size: 14px;
}

/* Animación suave para los pasos */
.form-step {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.form-step.active {
  opacity: 1;
  transform: translateX(0);
}

/* Mejorar el aspecto de los botones */
.btn-property-next,
.btn-property-prev,
.btn-property-submit {
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
}

/* Hover effects mejorados */
.feature-card:hover .feature-label {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.char-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
