/* Property Form Styles */
.property-form-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.property-form-container input::placeholder,
.property-form-container select::placeholder,
.property-form-container textarea::placeholder {
  color: #9ca3af;
}

.property-form-header {
  background: linear-gradient(135deg, #45A735, #2d4a22);
  color: white;
  text-align: center;
  padding: 40px 30px;
}

.form-header-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-header-icon i {
  font-size: 32px;
  color: white;
}

.property-form-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  color: white;
}

.property-form-header p {
  font-size: 15px;
  margin: 0;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.95);
}

.property-form {
  padding: 40px;
}

.form-group-pro {
  margin-bottom: 25px;
}

.form-group-pro label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2b3137;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group-pro label i {
  color: #45A735;
  font-size: 16px;
}

.required {
  color: #dc3545;
  margin-left: 2px;
}

.form-group-pro input,
.form-group-pro select,
.form-group-pro textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e4ea;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.form-group-pro select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fafbfc;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345A735' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 45px;
  cursor: pointer;
  color: #9ca3af !important;
  font-weight: 400;
}

.form-group-pro select option {
  color: #2b3137 !important;
}

.form-group-pro select:not([value=""]):valid,
.form-group-pro select[value]:not([value=""]) {
  color: #2b3137 !important;
}

.form-group-pro select:valid {
  color: #2b3137;
}

.form-group-pro select::-ms-expand {
  display: none;
}

.form-group-pro select option {
  background: white;
  color: #2b3137;
}

.form-group-pro select option:first-child {
  color: #9ca3af;
}

.form-group-pro input:focus,
.form-group-pro select:focus,
.form-group-pro textarea:focus {
  outline: none;
  border-color: #45A735;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(69, 167, 53, 0.1);
}

.form-group-pro select:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345A735' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  color: #2b3137;
}

.form-group-pro select:hover {
  border-color: #cbd5e0;
}

.form-group-pro textarea {
  resize: vertical;
  min-height: 120px;
}

.field-hint {
  display: block;
  font-size: 12px;
  color: #80868b;
  margin-top: 6px;
}

.form-row-pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

/* File Upload Styling */
.file-upload-wrapper {
  position: relative;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  border: 2px dashed #cbd5e0;
  border-radius: 10px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  border-color: #45A735;
  background: rgba(69, 167, 53, 0.05);
}

.file-upload-label i {
  font-size: 40px;
  color: #45A735;
}

.file-upload-label span {
  font-weight: 600;
  color: #2b3137;
}

.file-upload-label small {
  font-size: 12px;
  color: #80868b;
}

.image-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.image-preview-container img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e0e4ea;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 2px solid #f0f2f5;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #45A735, #2d4a22);
  color: white;
  box-shadow: 0 4px 12px rgba(69, 167, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69, 167, 53, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f1f5f9;
  color: #64748b;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #475569;
}

/* Prevent Nice Select plugin from interfering with property form */
#section-owner .nice-select {
  display: none !important;
}

#section-owner select.no-nice-select {
  display: block !important;
  opacity: 1 !important;
}

/* Ensure native select is always visible in property form */
#propertyListingForm select {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  height: auto !important;
}

/* Notification Styles */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  transform: translateX(450px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 4px solid;
  min-width: 350px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-success {
  border-left-color: #10b981;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.05), white);
}

.notification-error {
  border-left-color: #ef4444;
  background: linear-gradient(to right, rgba(239, 68, 68, 0.05), white);
}

.notification-warning {
  border-left-color: #f59e0b;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.05), white);
}

.notification-info {
  border-left-color: #3b82f6;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.05), white);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-success .notification-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.notification-error .notification-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.notification-warning .notification-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.notification-info .notification-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.notification-icon i {
  font-size: 20px;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 700;
  font-size: 15px;
  color: #1f2328;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.notification-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: #f1f5f9;
  color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .property-form {
    padding: 25px 20px;
  }

  .property-form-header {
    padding: 30px 20px;
  }

  .form-row-pro {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    min-width: auto;
    width: 100%;
  }
}
